diff options
author | Alan Modra <amodra@bigpond.net.au> | 2001-06-21 06:12:11 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2001-06-21 06:12:11 +0000 |
commit | 8e22c11006cee0b7d034ed0132ae8426e6856dc5 (patch) | |
tree | f1be7e83f2f3790d2a98de8ad3fd911def52c6df /gas/config/tc-m68k.c | |
parent | 053f6786450634033474b2fc5d432e9ba55c084f (diff) | |
download | binutils-redhat-8e22c11006cee0b7d034ed0132ae8426e6856dc5.tar.gz |
* config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
(md_apply_fix): Use it here. Replace printf with equivalent
as_bad_where.
(tc_gen_reloc): Use as_bad_where instead of as_bad.
(md_apply_fix): Here too.
* config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
* config/tc-m68k.c (tc_gen_reloc): Likewise.
(md_convert_frag_1): Likewise.
Diffstat (limited to 'gas/config/tc-m68k.c')
-rw-r--r-- | gas/config/tc-m68k.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index c672ffef5e..e14c8cb821 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -900,8 +900,9 @@ tc_gen_reloc (section, fixp) if (fixp->fx_tcbit) { if (fixp->fx_addsy) - as_bad (_("Unable to produce reloc against symbol '%s'"), - S_GET_NAME (fixp->fx_addsy)); + as_bad_where (fixp->fx_file, fixp->fx_line, + _("Unable to produce reloc against symbol '%s'"), + S_GET_NAME (fixp->fx_addsy)); return NULL; } @@ -4374,7 +4375,8 @@ md_convert_frag_1 (fragP) case TAB (BRANCHBW, BYTE): know (issbyte (disp)); if (disp == 0) - as_bad (_("short branch with zero offset: use :w")); + as_bad_where (fragP->fr_file, fragP->fr_line, + _("short branch with zero offset: use :w")); fixP = fix_new (fragP, fragP->fr_fix - 1, 1, fragP->fr_symbol, fragP->fr_offset, 1, RELAX_RELOC_PC8); fixP->fx_pcrel_adjust = -1; |