diff options
author | David Edelsohn <edelsohn@gnu.org> | 2004-10-21 14:53:11 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2004-10-21 10:53:11 -0400 |
commit | 0dda4eea66db8f6452c7f2f13969cb36cfd0a43a (patch) | |
tree | ad17b968a673ec6c2eb174dc78b401a5116d30f2 | |
parent | 996e539545fa047c2df21645768d40cb67f50acf (diff) | |
download | gcc-0dda4eea66db8f6452c7f2f13969cb36cfd0a43a.tar.gz |
dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
* dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
* xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
From-SVN: r89378
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dbxout.c | 2 | ||||
-rw-r--r-- | gcc/xcoffout.h | 18 |
3 files changed, 15 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4c75f70255b..ef8b36c64d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-21 David Edelsohn <edelsohn@gnu.org> + + * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument. + * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE). + 2004-10-21 Kazu Hirata <kazu@cs.umass.edu> * expr.c (store_expr): Clean up by renaming want_value to diff --git a/gcc/dbxout.c b/gcc/dbxout.c index df5b4b0b5b1..9f8c37aefb0 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2774,7 +2774,7 @@ static void dbxout_finish_symbol (tree sym) { #ifdef DBX_FINISH_SYMBOL - DBX_FINISH_SYMBOL (sym); + DBX_FINISH_SYMBOL (asm_out_file, sym); #else int line = 0; if (use_gnu_debug_info_extensions && sym != 0) diff --git a/gcc/xcoffout.h b/gcc/xcoffout.h index eca245d103c..21d2b838c4a 100644 --- a/gcc/xcoffout.h +++ b/gcc/xcoffout.h @@ -70,12 +70,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* Define our own finish symbol function, since xcoff stabs have their own different format. */ -#define DBX_FINISH_SYMBOL(SYM) \ +#define DBX_FINISH_SYMBOL(ASMFILE,SYM) \ { \ if (current_sym_addr && current_sym_code == N_FUN) \ - fprintf (asmfile, "\",."); \ + fprintf ((ASMFILE), "\",."); \ else \ - fprintf (asmfile, "\","); \ + fprintf ((ASMFILE), "\","); \ /* If we are writing a function name, we must ensure that \ there is no storage-class suffix on the name. */ \ if (current_sym_addr && current_sym_code == N_FUN \ @@ -83,18 +83,18 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA { \ const char *_p = XSTR (current_sym_addr, 0); \ if (*_p == '*') \ - fprintf (asmfile, "%s", _p+1); \ + fprintf ((ASMFILE), "%s", _p+1); \ else \ for (; *_p != '[' && *_p; _p++) \ - fprintf (asmfile, "%c", *_p); \ + fprintf ((ASMFILE), "%c", *_p); \ } \ else if (current_sym_addr) \ - output_addr_const (asmfile, current_sym_addr); \ + output_addr_const ((ASMFILE), current_sym_addr); \ else if (current_sym_code == N_GSYM) \ - assemble_name (asmfile, XSTR (XEXP (DECL_RTL (SYM), 0), 0)); \ + assemble_name ((ASMFILE), XSTR (XEXP (DECL_RTL (SYM), 0), 0)); \ else \ - fprintf (asmfile, "%d", current_sym_value); \ - fprintf (asmfile, ",%d,0\n", stab_to_sclass (current_sym_code)); \ + fprintf ((ASMFILE), "%d", current_sym_value); \ + fprintf ((ASMFILE), ",%d,0\n", stab_to_sclass (current_sym_code)); \ } /* These are IBM XCOFF extensions we need to reference in dbxout.c |