This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[BFIN] Remove specific definiton of ASM_FORMAT_PRIVATE_NAME
- From: "Jie Zhang" <jzhang918 at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 22 Mar 2006 16:15:24 +0800
- Subject: [BFIN] Remove specific definiton of ASM_FORMAT_PRIVATE_NAME
It's not necessary for bfin port to have a specific definition of
ASM_FORMAT_PRIVATE_NAME. And this specific definition will cause
several FAILs in testsuite (tree-ssa dump tests). This patch is going
to remove it and make bfin port use the default definiton. Tested on
bf533-stamp board running uClinux for gcc and g++. It remove two
dozens of FAILs and with no regressions.
Is it OK for mainline, all gcc-4.x branches?
Thanks,
Jie
* config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
Index: config/bfin/bfin.h
===================================================================
RCS file: /cvsroot/gcc3/gcc-4.1/gcc/config/bfin/bfin.h,v
retrieving revision 1.2
diff -u -r1.2 bfin.h
--- config/bfin/bfin.h 15 Mar 2006 05:34:08 -0000 1.2
+++ config/bfin/bfin.h 22 Mar 2006 07:58:47 -0000
@@ -1055,19 +1055,6 @@
do { fprintf (FILE, "_%s", NAME); \
} while (0)
-#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
- do { \
- int len = strlen (NAME); \
- char *temp = (char *) alloca (len + 4); \
- temp[0] = 'L'; \
- temp[1] = '_'; \
- strcpy (&temp[2], (NAME)); \
- temp[len + 2] = '_'; \
- temp[len + 3] = 0; \
- (OUTPUT) = (char *) alloca (strlen (NAME) + 13); \
- sprintf (OUTPUT, "_%s$%d", temp, LABELNO); \
- } while (0)
-
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
do { char __buf[256]; \
fprintf (FILE, "\t.dd\t"); \