aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-02-18 19:53:26 +0000
committerKen Raeburn <raeburn@cygnus>1994-02-18 19:53:26 +0000
commit741f4d6676868508190f1a60d2e6d4519b91b6fc (patch)
tree63681775448e98d7d53e52747903596ffa8bf157 /gas
parent04bde70d0447328c52ed416a4921cb39a3a4fa0e (diff)
downloadfsf-binutils-gdb-741f4d6676868508190f1a60d2e6d4519b91b6fc.zip
fsf-binutils-gdb-741f4d6676868508190f1a60d2e6d4519b91b6fc.tar.gz
fsf-binutils-gdb-741f4d6676868508190f1a60d2e6d4519b91b6fc.tar.bz2
write.c (write_object_file): Removed register declarations.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/write.c22
2 files changed, 17 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 47c8f45..a7b7b10 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+Fri Feb 18 14:16:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
+
+ * write.c (write_object_file): Removed register declarations.
+
Thu Feb 17 16:25:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
Some support for PowerPC ELF, although it isn't in BFD yet.
diff --git a/gas/write.c b/gas/write.c
index 20949f7..f50d825 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -935,9 +935,9 @@ relax_and_size_all_segments ()
void
write_object_file ()
{
- register struct frchain *frchainP; /* Track along all frchains. */
+ struct frchain *frchainP; /* Track along all frchains. */
#if ! defined (BFD_ASSEMBLER) || ! defined (WORKING_DOT_WORD)
- register fragS *fragP; /* Track along all frags. */
+ fragS *fragP; /* Track along all frags. */
#endif
#if !defined (BFD_ASSEMBLER) && !defined (OBJ_VMS)
long object_file_size;
@@ -1897,8 +1897,9 @@ fixup_segment (fixP, this_segment_type)
}
else
bad_sub_reloc:
- as_bad ("Negative of non-absolute symbol %s",
- S_GET_NAME (sub_symbolP));
+ as_bad_where (fixP->fx_file, fixP->fx_line,
+ "Negative of non-absolute symbol %s",
+ S_GET_NAME (sub_symbolP));
}
else if ((S_GET_SEGMENT (sub_symbolP) == add_symbol_segment)
&& (SEG_NORMAL (add_symbol_segment)
@@ -1911,7 +1912,8 @@ fixup_segment (fixP, this_segment_type)
/* Makes no sense to use the difference of 2 arbitrary symbols
as the target of a call instruction. */
if (fixP->fx_tcbit)
- as_bad ("callj to difference of 2 symbols");
+ as_bad_where (fixP->fx_file, fixP->fx_line,
+ "callj to difference of 2 symbols");
#endif /* TC_I960 */
add_number += S_GET_VALUE (add_symbolP) -
S_GET_VALUE (sub_symbolP);
@@ -1964,9 +1966,10 @@ fixup_segment (fixP, this_segment_type)
{
char buf[50];
sprint_value (buf, fragP->fr_address + where);
- as_bad ("Can't emit reloc {- %s-seg symbol \"%s\"} @ file address %s.",
- segment_name (S_GET_SEGMENT (sub_symbolP)),
- S_GET_NAME (sub_symbolP), buf);
+ as_bad_where (fixP->fx_file, fixP->fx_line,
+ "Can't emit reloc {- %s-seg symbol \"%s\"} @ file address %s.",
+ segment_name (S_GET_SEGMENT (sub_symbolP)),
+ S_GET_NAME (sub_symbolP), buf);
}
}
}
@@ -2035,7 +2038,8 @@ fixup_segment (fixP, this_segment_type)
* for local branches: flag as error, don't generate
* relocation.
*/
- as_bad ("can't use COBR format with external label");
+ as_bad_where (fixP->fx_file, fixP->fx_line,
+ "can't use COBR format with external label");
fixP->fx_addsy = NULL;
fixP->fx_done = 1;
continue;