From f9d6db0261675f5d0f696844458284080ee8cccb Mon Sep 17 00:00:00 2001 From: jakub Date: Tue, 16 Sep 2003 08:04:34 +0000 Subject: [PATCH] * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71425 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 11 +++++++++++ gcc/config/alpha/linux.h | 5 ++++- gcc/config/arm/linux-elf.h | 5 ++++- gcc/config/linux.h | 5 ++++- gcc/config/rs6000/linux.h | 3 +++ gcc/config/rs6000/linux64.h | 3 +++ gcc/config/sh/linux.h | 3 +++ gcc/config/sparc/linux.h | 6 +++++- gcc/config/sparc/linux64.h | 5 ++++- 9 files changed, 41 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04c27b0..fd93ae0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2003-09-16 Jakub Jelinek + + * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define. + 2003-09-16 Jason Merrill Jakub Jelinek diff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h index bad20a6..87d62eb 100644 --- a/gcc/config/alpha/linux.h +++ b/gcc/config/alpha/linux.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler, for Alpha Linux-based GNU systems. - Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 2002, 2003 Free Software Foundation, Inc. Contributed by Richard Henderson. This file is part of GNU CC. @@ -65,6 +65,9 @@ Boston, MA 02111-1307, USA. */ #define TARGET_HAS_F_SETLKW +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h index 1a86e45..f55a425 100644 --- a/gcc/config/arm/linux-elf.h +++ b/gcc/config/arm/linux-elf.h @@ -1,5 +1,5 @@ /* Definitions for ARM running Linux-based GNU systems using ELF - Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002 + Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Philip Blundell @@ -127,3 +127,6 @@ #undef CC1_SPEC #define CC1_SPEC "%{profile:-p}" + +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" diff --git a/gcc/config/linux.h b/gcc/config/linux.h index 75b4030..2c85148 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -1,5 +1,6 @@ /* Definitions for Linux-based GNU systems with ELF format - Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2003 + Free Software Foundation, Inc. Contributed by Eric Youngdale. Modified for stabs-in-ELF by H.J. Lu (hjl@lucon.org). @@ -103,6 +104,8 @@ Boston, MA 02111-1307, USA. */ /* Define this so we can compile MS code for use with WINE. */ #define HANDLE_PRAGMA_PACK_PUSH_POP +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" /* Determine whether the the entire c99 runtime is present in the runtime library. */ diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h index c3e4a58..1ef484e 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -63,6 +63,9 @@ #undef LINK_OS_DEFAULT_SPEC #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + #undef TARGET_VERSION #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)"); diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 5d7c74d..cbe1864 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -537,6 +537,9 @@ while (0) #define TARGET_ASM_FILE_END file_end_indicate_exec_stack +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h index 1ba1a1a..f6a9d7c 100644 --- a/gcc/config/sh/linux.h +++ b/gcc/config/sh/linux.h @@ -105,6 +105,9 @@ do { \ #define ENDFILE_SPEC \ "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + /* Output assembler code to STREAM to call the profiler. */ #undef FUNCTION_PROFILER diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index a53e796..cf94390 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -1,5 +1,6 @@ /* Definitions for SPARC running Linux-based GNU systems with ELF. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2003 + Free Software Foundation, Inc. Contributed by Eddie C. Dost (ecd@skynet.be) This file is part of GCC. @@ -248,6 +249,9 @@ do { \ #define TARGET_ASM_FILE_END file_end_indicate_exec_stack +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index fe7470a..c3ecfaf 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -1,5 +1,5 @@ /* Definitions for 64-bit SPARC running Linux-based GNU systems with ELF. - Copyright 1996, 1997, 1998, 2000, 2002 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc. Contributed by David S. Miller (davem@caip.rutgers.edu) This file is part of GCC. @@ -331,6 +331,9 @@ do { \ #define TARGET_ASM_FILE_END file_end_indicate_exec_stack +#define LINK_GCC_C_SEQUENCE_SPEC \ + "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" + /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ -- 2.7.4