* xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89378
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
* expr.c (store_expr): Clean up by renaming want_value to
dbxout_finish_symbol (tree sym)
{
#ifdef DBX_FINISH_SYMBOL
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)
#else
int line = 0;
if (use_gnu_debug_info_extensions && sym != 0)
/* Define our own finish symbol function, since xcoff stabs have their
own different format. */
/* 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) \
{ \
if (current_sym_addr && current_sym_code == N_FUN) \
- fprintf (asmfile, "\",."); \
+ fprintf ((ASMFILE), "\",."); \
- 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 \
/* 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 \
{ \
const char *_p = XSTR (current_sym_addr, 0); \
if (*_p == '*') \
{ \
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++) \
else \
for (; *_p != '[' && *_p; _p++) \
- fprintf (asmfile, "%c", *_p); \
+ fprintf ((ASMFILE), "%c", *_p); \
} \
else if (current_sym_addr) \
} \
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) \
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)); \
- 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
}
/* These are IBM XCOFF extensions we need to reference in dbxout.c