Make the declarations of fix_new consistent under __STDC__. It might
authorMichael Tiemann <tiemann@cygnus>
Sun, 1 Mar 1992 12:45:17 +0000 (12:45 +0000)
committerMichael Tiemann <tiemann@cygnus>
Sun, 1 Mar 1992 12:45:17 +0000 (12:45 +0000)
be better to #define NEED_FX_R_TYPE in TC_A29K and TC_SPARC instead of
having this complicated conditional, but that's not my call.

gas/write.c
gas/write.h

index 710044749a3899ed5fb56fecc3ddef543e680180..8f9a57423784c302c1fe09e2ed73f475d748dc9f 100644 (file)
@@ -75,7 +75,11 @@ void relax_segment();
  *
  * Create a fixS in obstack 'notes'.
  */
-fixS *fix_new(frag, where, size, add_symbol, sub_symbol, offset, pcrel, r_type)
+fixS *fix_new(frag, where, size, add_symbol, sub_symbol, offset, pcrel
+#if defined(TC_SPARC) || defined(TC_A29K) || defined(NEED_FX_R_TYPE)
+             , r_type
+#endif
+             )
 fragS *frag;           /* Which frag? */
 int where;             /* Where in that frag? */
 short int size;                /* 1, 2, or 4 usually. */
@@ -83,7 +87,7 @@ symbolS *add_symbol;  /* X_add_symbol. */
 symbolS *sub_symbol;   /* X_subtract_symbol. */
 long offset;           /* X_add_number. */
 int pcrel;             /* TRUE if PC-relative relocation. */
-#if defined(TC_SPARC) || defined(TC_A29K)
+#if defined(TC_SPARC) || defined(TC_A29K) || defined(NEED_FX_R_TYPE)
 int    r_type; /* Relocation type */
 #endif
 {
@@ -98,7 +102,7 @@ int  r_type; /* Relocation type */
        fixP->fx_subsy  = sub_symbol;
        fixP->fx_offset = offset;
        fixP->fx_pcrel  = pcrel;
-#if defined(TC_SPARC) || defined(TC_A29K)
+#if defined(TC_SPARC) || defined(TC_A29K) || defined( NEED_FX_R_TYPE)
        fixP->fx_r_type = r_type;
 #endif
        /* JF these 'cuz of the NS32K stuff */
@@ -384,7 +388,7 @@ void write_object_file()
                                          lie->sub,
                                          lie->addnum,
                                          0, 0, 2, 0, 0);
-#elif defined(TC_SPARC) || defined(TC_A29K)
+#elif defined(TC_SPARC) || defined(TC_A29K) || defined(NEED_FX_R_TYPE)
                            fix_new(    lie->frag,  lie->word_goes_here - lie->frag->fr_literal,
                                    2,  lie->add,
                                    lie->sub,  lie->addnum,
index 9ce6529f30dbba1d8ddf2c64ce9c7ffa3f794383..0b47dcbac5b47d40b28cbf2f18c1896b6f6cb6d7 100644 (file)
@@ -54,7 +54,7 @@ struct fix {
        char fx_im_disp;           /* TRUE: value is a displacement */
        bit_fixS *fx_bit_fixP;     /* IF NULL no bitfix's to do */  
        char fx_bsr;               /* sequent-hack */
-#if defined(TC_SPARC) || defined(TC_A29K)
+#if defined(TC_SPARC) || defined(TC_A29K) || defined(NEED_FX_R_TYPE)
        /* Hacks for machines where the type of reloc can't be
           worked out by looking at how big it is */
 
@@ -90,8 +90,11 @@ fixS *fix_new(fragS *frag,
              symbolS *add_symbol,
              symbolS *sub_symbol,
              long offset,
-             int pcrel,
-             enum reloc_type r_type);
+             int pcrel
+#if defined(TC_SPARC) || defined(TC_A29K) || defined(NEED_FX_R_TYPE)
+             , int r_type
+#endif
+);
 
 #else /* not __STDC__ */