aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-avr.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-05-16 08:23:43 +0000
committerNick Clifton <nickc@redhat.com>2006-05-16 08:23:43 +0000
commitcce7653bc1d91f890f9e6434fa5b35206b44679f (patch)
tree28059bd3f3a06eaf604e97360909112ea58e4952 /gas/config/tc-avr.h
parentb36b7f4f14b28884c113275544a3cdb8a7b1dc2c (diff)
downloadgdb-cce7653bc1d91f890f9e6434fa5b35206b44679f.zip
gdb-cce7653bc1d91f890f9e6434fa5b35206b44679f.tar.gz
gdb-cce7653bc1d91f890f9e6434fa5b35206b44679f.tar.bz2
* config/tc-avr.h (TC_VALIDATE_FIX): Allow fixups for immediate constant values.
Diffstat (limited to 'gas/config/tc-avr.h')
-rw-r--r--gas/config/tc-avr.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/gas/config/tc-avr.h b/gas/config/tc-avr.h
index 61e76e6..b79fc05 100644
--- a/gas/config/tc-avr.h
+++ b/gas/config/tc-avr.h
@@ -126,14 +126,15 @@ extern long md_pcrel_from_section (struct fix *, segT);
We could in principle keep these fixups in gas when not relaxing.
However, there is no serious performance penilty when making the linker
make the fixup work. */
-#define TC_VALIDATE_FIX(FIXP,SEG,SKIP) \
- if ( FIXP->fx_r_type == BFD_RELOC_AVR_7_PCREL \
- || FIXP->fx_r_type == BFD_RELOC_AVR_13_PCREL \
- || FIXP->fx_r_type == BFD_RELOC_AVR_LO8_LDI_PM \
- || FIXP->fx_r_type == BFD_RELOC_AVR_HI8_LDI_PM \
- || FIXP->fx_r_type == BFD_RELOC_AVR_HH8_LDI_PM \
- || FIXP->fx_r_type == BFD_RELOC_AVR_16_PM) \
- { \
- goto SKIP; \
- }
+#define TC_VALIDATE_FIX(FIXP,SEG,SKIP) \
+ if ( (FIXP->fx_r_type == BFD_RELOC_AVR_7_PCREL \
+ || FIXP->fx_r_type == BFD_RELOC_AVR_13_PCREL \
+ || FIXP->fx_r_type == BFD_RELOC_AVR_LO8_LDI_PM \
+ || FIXP->fx_r_type == BFD_RELOC_AVR_HI8_LDI_PM \
+ || FIXP->fx_r_type == BFD_RELOC_AVR_HH8_LDI_PM \
+ || FIXP->fx_r_type == BFD_RELOC_AVR_16_PM) \
+ && (FIXP->fx_addsy)) \
+ { \
+ goto SKIP; \
+ }