diff options
author | Michael Tiemann <tiemann@cygnus> | 1992-03-01 12:45:17 +0000 |
---|---|---|
committer | Michael Tiemann <tiemann@cygnus> | 1992-03-01 12:45:17 +0000 |
commit | 961815e432a36e08f4e599fcc2412a27fc9f1b87 (patch) | |
tree | 60a2f831ceddd4e4cfbfa6e311d3277a89ba4bca /gas/write.c | |
parent | a6f40e945349935331feff183af10b80e3796622 (diff) | |
download | gdb-961815e432a36e08f4e599fcc2412a27fc9f1b87.zip gdb-961815e432a36e08f4e599fcc2412a27fc9f1b87.tar.gz gdb-961815e432a36e08f4e599fcc2412a27fc9f1b87.tar.bz2 |
Make the declarations of fix_new consistent under __STDC__. It might
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.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gas/write.c b/gas/write.c index 71004474..8f9a574 100644 --- a/gas/write.c +++ b/gas/write.c @@ -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, |