2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-25 10:40:56 +08:00

* config/avr/avr.c (print_operand_address): Fix invalid RTL access.

From-SVN: r173548
This commit is contained in:
Eric Botcazou 2011-05-08 09:15:34 +00:00 committed by Eric Botcazou
parent c461a95732
commit f64c36badc
2 changed files with 7 additions and 1 deletions
gcc
ChangeLog
config/avr

@ -1,3 +1,7 @@
2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
* config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
* config/rs6000/rs6000.c (output_profile_hook): Fix thinko.

@ -1318,7 +1318,9 @@ print_operand_address (FILE *file, rtx addr)
if (CONSTANT_ADDRESS_P (addr)
&& text_segment_operand (addr, VOIDmode))
{
rtx x = XEXP (addr,0);
rtx x = addr;
if (GET_CODE (x) == CONST)
x = XEXP (x, 0);
if (GET_CODE (x) == PLUS && GET_CODE (XEXP (x,1)) == CONST_INT)
{
/* Assembler gs() will implant word address. Make offset