diff options
author | Steve Ellcey <sje@cup.hp.com> | 2010-02-05 18:21:06 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2010-02-05 18:21:06 +0000 |
commit | 1f65437dad53634e95b8bb77139e0f6f4ad925a9 (patch) | |
tree | 3509fe429faf587345d051050bf7f836b63e25bd /gcc | |
parent | 4e4d27aae5e823e2c443de54871a357fcf760861 (diff) | |
download | gcc-1f65437dad53634e95b8bb77139e0f6f4ad925a9.zip gcc-1f65437dad53634e95b8bb77139e0f6f4ad925a9.tar.gz gcc-1f65437dad53634e95b8bb77139e0f6f4ad925a9.tar.bz2 |
re PR target/42924 (pex-unix.c:589:1: internal compiler error: output_operand)
2010-02-05 Steve Ellcey <sje@cup.hp.com>
PR target/42924
* config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
(pa_delegitimize_address): New function.
From-SVN: r156526
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 15 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7020d4f..be49d98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-02-05 Steve Ellcey <sje@cup.hp.com> + + PR target/42924 + * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine. + (pa_delegitimize_address): New function. + 2010-02-05 Ozkan Sezer <sezeroz@gmail.com> * config/i386/msformat-c.c (ms_printf_length_specs): Set the diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index d4caad2..7054c50 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -167,6 +167,7 @@ static enum machine_mode pa_promote_function_mode (const_tree, static void pa_asm_trampoline_template (FILE *); static void pa_trampoline_init (rtx, tree, rtx); static rtx pa_trampoline_adjust_address (rtx); +static rtx pa_delegitimize_address (rtx); /* The following extra sections are only used for SOM. */ static GTY(()) section *som_readonly_data_section; @@ -339,6 +340,8 @@ static size_t n_deferred_plabels = 0; #define TARGET_TRAMPOLINE_INIT pa_trampoline_init #undef TARGET_TRAMPOLINE_ADJUST_ADDRESS #define TARGET_TRAMPOLINE_ADJUST_ADDRESS pa_trampoline_adjust_address +#undef TARGET_DELEGITIMIZE_ADDRESS +#define TARGET_DELEGITIMIZE_ADDRESS pa_delegitimize_address struct gcc_target targetm = TARGET_INITIALIZER; @@ -9994,5 +9997,17 @@ pa_trampoline_adjust_address (rtx addr) addr = memory_address (Pmode, plus_constant (addr, 46)); return addr; } + +static rtx +pa_delegitimize_address (rtx orig_x) +{ + rtx x = delegitimize_mem_from_attrs (orig_x); + + if (GET_CODE (x) == LO_SUM + && GET_CODE (XEXP (x, 1)) == UNSPEC + && XINT (XEXP (x, 1), 1) == UNSPEC_DLTIND14R) + return gen_const_mem (Pmode, XVECEXP (XEXP (x, 1), 0, 0)); + return x; +} #include "gt-pa.h" |