* config/tc-avr.h (TC_VALIDATE_FIX): Allow fixups for immediate constant values.
authorNick Clifton <nickc@redhat.com>
Tue, 16 May 2006 08:23:43 +0000 (08:23 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 May 2006 08:23:43 +0000 (08:23 +0000)
gas/ChangeLog
gas/config/tc-avr.h

index 1b9b1dd941f020f54bfe4a605d3c2bba3e5de4b8..0acf61a14897e474d4bef2431607a3f209490b6a 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-16  Bjoern Haase  <bjoern.m.haase@web.de>
+
+        * config/tc-avr.h (TC_VALIDATE_FIX): Allow fixups for immediate
+       constant values.
+
 2006-05-15  Paul Brook  <paul@codesourcery.com>
 
        * config/tc-arm.c (arm_adjust_symtab): Use
index 61e76e60dff5e339fa14d7e50116575e4dcbec55..b79fc051aedad8577a53ddebdaea0a4dd519a7ea 100644 (file)
@@ -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;                                            \
+   }