Skip to content
  • Richard Henderson's avatar
    exec: Reorganize the GETRA/GETPC macros · 0f842f8a
    Richard Henderson authored
    
    
    Always define GETRA; use __builtin_extract_return_addr, rather than
    having a special case for s390.  Split GETPC_ADJ out of GETPC; use 2
    universally, rather than having a special case for arm.
    
    Rename GETPC_LDST to GETRA_LDST to indicate that it does not
    contain the GETPC_ADJ value.  Likewise with GETPC_EXT to GETRA_EXT.
    
    Perform the GETPC_ADJ adjustment inside helper_ret_ld/st.  This will
    allow backends to pass along the "true" return address rather than
    the massaged GETPC value.  In the meantime, double application of
    GETPC_ADJ does not hurt, since the call insn in all ISAs is at least
    4 bytes long.
    
    Reviewed-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
    0f842f8a