summaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2006-09-22 11:35:14 +0000
committerAlan Modra <amodra@bigpond.net.au>2006-09-22 11:35:14 +0000
commita3e413fd8cf73faceb6f7be85d528d50361a7a1f (patch)
treedabe2810f5b2139d723a8f3215bac644faf95289 /gas/symbols.c
parentc3d86d031d83ca0e7524c64dcb12bd5f578dd7ac (diff)
downloadbinutils-redhat-a3e413fd8cf73faceb6f7be85d528d50361a7a1f.tar.gz
* as.h (as_perror): Delete declaration.
* gdbinit.in (as_perror): Delete breakpoint. * messages.c (as_perror): Delete function. * doc/internals.texi: Remove as_perror description. * listing.c (listing_print: Don't use as_perror. * output-file.c (output_file_create, output_file_close): Likewise. * symbols.c (symbol_create, symbol_clone): Likewise. * write.c (write_contents): Likewise. * config/obj-som.c (obj_som_version, obj_som_copyright): Likewise. * config/tc-tic54x.c (tic54x_mlib): Likewise.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 117d1220e6..bd4745083e 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1,6 +1,6 @@
/* symbols.c -symbol table-
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -144,7 +144,7 @@ symbol_create (const char *name, /* It is copied, the caller can destroy/modify.
symbolP->bsym = bfd_make_empty_symbol (stdoutput);
if (symbolP->bsym == NULL)
- as_perror ("%s", "bfd_make_empty_symbol");
+ as_fatal ("bfd_make_empty_symbol: %s", bfd_errmsg (bfd_get_error ()));
symbolP->bsym->udata.p = (PTR) symbolP;
S_SET_NAME (symbolP, preserved_copy_of_name);
@@ -570,7 +570,7 @@ symbol_clone (symbolS *orgsymP, int replace)
*newsymP = *orgsymP;
bsymnew = bfd_make_empty_symbol (bfd_asymbol_bfd (bsymorg));
if (bsymnew == NULL)
- as_perror ("%s", "bfd_make_empty_symbol");
+ as_fatal ("bfd_make_empty_symbol: %s", bfd_errmsg (bfd_get_error ()));
newsymP->bsym = bsymnew;
bsymnew->name = bsymorg->name;
bsymnew->flags = bsymorg->flags;