This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
sdbout.c patch to use assemble_name (Was: Re: varasm patch breaks sh-coff)
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: sdbout.c patch to use assemble_name (Was: Re: varasm patch breaks sh-coff)
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Mon, 11 Sep 2000 19:51:50 +0100 (BST)
- CC: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> PUT_SDB_DEF (and all the other macros in sdbout.c that use
> ASM_OUTPUT_LABELREF) should be using assemble_name instead. sdbout.c
> is the only place in the compiler that does _not_ use assemble_name
> for this purpose.
>
> I can't test sh-coff; can you do the patch, please?
I'm currently doing C tests with the following patch; if all goes well,
I should have a test result tomorrow.
Mon Sep 11 19:46:34 2000 J"orn Rennecke <amylaar@redhat.co.uk>
* sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
Replace ASM_OUTPUT_LABELREF with assemble_name.
Index: sdbout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/sdbout.c,v
retrieving revision 1.33
diff -p -r1.33 sdbout.c
*** sdbout.c 2000/09/11 01:50:46 1.33
--- sdbout.c 2000/09/11 18:47:27
*************** static void sdbout_reg_parms PARAMS ((t
*** 161,169 ****
#ifndef PUT_SDB_DEF
#define PUT_SDB_DEF(a) \
do { fprintf (asm_out_file, "\t.def\t"); \
! ASM_OUTPUT_LABELREF (asm_out_file, a); \
fprintf (asm_out_file, SDB_DELIM); } while (0)
#endif
#ifndef PUT_SDB_PLAIN_DEF
--- 161,174 ----
#ifndef PUT_SDB_DEF
#define PUT_SDB_DEF(a) \
+
+ #undef PUT_SDB_DEF
+ PUT_SDB_DEF(a) \
+ char *a; {
do { fprintf (asm_out_file, "\t.def\t"); \
! assemble_name (asm_out_file, a); \
fprintf (asm_out_file, SDB_DELIM); } while (0)
+ ; }
#endif
#ifndef PUT_SDB_PLAIN_DEF
*************** do { fprintf (asm_out_file, "\t.def\t");
*** 202,208 ****
#ifndef PUT_SDB_TAG
#define PUT_SDB_TAG(a) \
do { fprintf (asm_out_file, "\t.tag\t"); \
! ASM_OUTPUT_LABELREF (asm_out_file, a); \
fprintf (asm_out_file, SDB_DELIM); } while (0)
#endif
--- 207,213 ----
#ifndef PUT_SDB_TAG
#define PUT_SDB_TAG(a) \
do { fprintf (asm_out_file, "\t.tag\t"); \
! assemble_name (asm_out_file, a); \
fprintf (asm_out_file, SDB_DELIM); } while (0)
#endif
*************** do { fprintf (asm_out_file, "\t.tag\t");
*** 237,243 ****
#ifndef PUT_SDB_EPILOGUE_END
#define PUT_SDB_EPILOGUE_END(NAME) \
do { fprintf (asm_out_file, "\t.def\t"); \
! ASM_OUTPUT_LABELREF (asm_out_file, NAME); \
fprintf (asm_out_file, \
"%s\t.val\t.%s\t.scl\t-1%s\t.endef\n", \
SDB_DELIM, SDB_DELIM, SDB_DELIM); } while (0)
--- 242,248 ----
#ifndef PUT_SDB_EPILOGUE_END
#define PUT_SDB_EPILOGUE_END(NAME) \
do { fprintf (asm_out_file, "\t.def\t"); \
! assemble_name (asm_out_file, NAME); \
fprintf (asm_out_file, \
"%s\t.val\t.%s\t.scl\t-1%s\t.endef\n", \
SDB_DELIM, SDB_DELIM, SDB_DELIM); } while (0)