From 59f968797461e667478c4858837fb00883c1bfb2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 27 Mar 2002 02:30:45 -0800 Subject: [PATCH] freebsd.h, [...] (LOCAL_LABEL_PREFIX): Define. * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h, config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h, config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define. * gcc.dg/debug/20020327-1.c: New. From-SVN: r51443 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/freebsd.h | 3 +++ gcc/config/sparc/linux.h | 3 +++ gcc/config/sparc/linux64.h | 3 +++ gcc/config/sparc/netbsd-elf.h | 3 +++ gcc/config/sparc/pbd.h | 3 +++ gcc/config/sparc/sol2.h | 3 +++ gcc/config/sparc/vxsim.h | 3 +++ gcc/testsuite/gcc.dg/debug/20020327-1.c | 4 ++++ 9 files changed, 31 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/debug/20020327-1.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7bc10e..80df83c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-03-27 Richard Henderson + + * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h, + config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h, + config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define. + 2002-03-27 Danny Smith * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32, diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h index ff7c3e7..e2dfa59 100644 --- a/gcc/config/sparc/freebsd.h +++ b/gcc/config/sparc/freebsd.h @@ -102,6 +102,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /************************[ Assembler stuff ]********************************/ +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* XXX2 */ /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index c07648b..12d859c 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -204,6 +204,9 @@ do { \ #undef COMMON_ASM_OP #define COMMON_ASM_OP "\t.common\t" +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 136864f..55624fb 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -325,6 +325,9 @@ do { \ #undef COMMON_ASM_OP #define COMMON_ASM_OP "\t.common\t" +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/sparc/netbsd-elf.h b/gcc/config/sparc/netbsd-elf.h index 280ec38..f454b96 100644 --- a/gcc/config/sparc/netbsd-elf.h +++ b/gcc/config/sparc/netbsd-elf.h @@ -56,6 +56,9 @@ Boston, MA 02111-1307, USA. */ #define DBX_REGISTER_NUMBER(REGNO) \ (TARGET_FLAT && REGNO == HARD_FRAME_POINTER_REGNUM ? 31 : REGNO) +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/sparc/pbd.h b/gcc/config/sparc/pbd.h index 27dfa96..9d267a5 100644 --- a/gcc/config/sparc/pbd.h +++ b/gcc/config/sparc/pbd.h @@ -111,6 +111,9 @@ Boston, MA 02111-1307, USA. */ * Internal labels are prefixed with a period. */ +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* This is how to store into the string LABEL the symbol_ref name of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index 2f504b3..64e54b7 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -104,6 +104,9 @@ Boston, MA 02111-1307, USA. */ #define ASM_OUTPUT_SKIP(FILE,SIZE) \ fprintf (FILE, "\t.skip %u\n", (SIZE)) +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/sparc/vxsim.h b/gcc/config/sparc/vxsim.h index 30d9279..09e1f16 100644 --- a/gcc/config/sparc/vxsim.h +++ b/gcc/config/sparc/vxsim.h @@ -71,6 +71,9 @@ do { \ #undef COMMON_ASM_OP #define COMMON_ASM_OP "\t.common\t" +#undef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX "." + /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/testsuite/gcc.dg/debug/20020327-1.c b/gcc/testsuite/gcc.dg/debug/20020327-1.c new file mode 100644 index 0000000..3ad1b1b --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug/20020327-1.c @@ -0,0 +1,4 @@ +/* { dg-do link } */ + +void Letext (void) { } +int main() { return 0; } -- 2.7.4