+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.
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