This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Kill -fgnu-linker


The -fgnu-linker option has had no effect in the entire history of the
CVS repository, except for a few days in 2001 when iris6.h used it.

bootstrapped i686-linux (C only) just to be sure.

zw

        * common.opt: Remove -fgnu-linker.
        * flags.h: Remove flag_gnu_linker.
        * opts.c: Don't handle OPT_fgnu_linker.
        * toplev.c: Don't initialize flag_gnu_linker.
        Remove gnu-linker entry from f_options.
        * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
        Don't reset flag_gnu_linker.
        * config/mips/mips.c (override_options): Likewise.
        * doc/invoke.texi: Remove all mention of -fgnu-linker.

===================================================================
Index: common.opt
--- common.opt	21 Nov 2003 04:05:04 -0000	1.21
+++ common.opt	1 Dec 2003 18:21:46 -0000
@@ -366,10 +366,6 @@ fgcse-las
 Common
 Perform redundant load after store elimination in global common subexpression elimination
 
-fgnu-linker
-Common
-Output GNU ld formatted global initializers
-
 fguess-branch-probability
 Common
 Enable guessing of branch probabilities
===================================================================
Index: flags.h
--- flags.h	20 Oct 2003 21:46:33 -0000	1.126
+++ flags.h	1 Dec 2003 18:21:46 -0000
@@ -549,10 +549,6 @@ extern int flag_dump_rtl_in_asm;
    in generated assembly code.  */
 extern int flag_leading_underscore;
 
-/* -fgnu-linker specifies use of the GNU linker for initializations.
-   -fno-gnu-linker says that collect will be used.  */
-extern int flag_gnu_linker;
-
 /* Tag all structures with __attribute__(packed) */
 extern int flag_pack_struct;
 
===================================================================
Index: opts.c
--- opts.c	21 Nov 2003 04:05:05 -0000	1.46
+++ opts.c	1 Dec 2003 18:21:46 -0000
@@ -1023,10 +1023,6 @@ common_handle_option (size_t scode, cons
       flag_gcse_las = value;
       break;
 
-    case OPT_fgnu_linker:
-      flag_gnu_linker = value;
-      break;
-
     case OPT_fguess_branch_probability:
       flag_guess_branch_prob = value;
       break;
===================================================================
Index: toplev.c
--- toplev.c	1 Dec 2003 17:53:10 -0000	1.846
+++ toplev.c	1 Dec 2003 18:21:47 -0000
@@ -882,15 +882,6 @@ int flag_debug_asm = 0;
 
 int flag_dump_rtl_in_asm = 0;
 
-/* -fgnu-linker specifies use of the GNU linker for initializations.
-   (Or, more generally, a linker that handles initializations.)
-   -fno-gnu-linker says that collect2 will be used.  */
-#ifdef USE_COLLECT2
-int flag_gnu_linker = 0;
-#else
-int flag_gnu_linker = 1;
-#endif
-
 /* Nonzero means put zero initialized data in the bss section.  */
 int flag_zero_initialized_in_bss = 1;
 
@@ -1112,7 +1103,6 @@ static const lang_independent_options f_
   {"function-sections", &flag_function_sections, 1 },
   {"data-sections", &flag_data_sections, 1 },
   {"verbose-asm", &flag_verbose_asm, 1 },
-  {"gnu-linker", &flag_gnu_linker, 1 },
   {"regmove", &flag_regmove, 1 },
   {"optimize-register-move", &flag_regmove, 1 },
   {"pack-struct", &flag_pack_struct, 1 },
===================================================================
Index: config/dsp16xx/dsp16xx.h
--- config/dsp16xx/dsp16xx.h	3 Jul 2003 05:26:31 -0000	1.63
+++ config/dsp16xx/dsp16xx.h	1 Dec 2003 18:21:47 -0000
@@ -293,8 +293,6 @@ extern int target_flags;
 
 #define OPTIMIZATION_OPTIONS(LEVEL,SIZE)              \
 {                                                     \
-    flag_gnu_linker             = FALSE;              \
-                                                      \
     if (LEVEL >= 2)                                   \
     {                                                 \
         /* The dsp16xx family has so few registers    \
===================================================================
Index: config/mips/mips.c
--- config/mips/mips.c	30 Nov 2003 19:30:14 -0000	1.345
+++ config/mips/mips.c	1 Dec 2003 18:21:48 -0000
@@ -4622,8 +4622,6 @@ override_options (void)
      defaults for the N32/N64 ABIs.  */
   if (TARGET_IRIX && !TARGET_SGI_O32_AS)
     {
-      flag_gnu_linker = 1;
-
       targetm.have_ctors_dtors = true;
       targetm.asm_out.constructor = default_named_section_asm_out_constructor;
       targetm.asm_out.destructor = default_named_section_asm_out_destructor;
===================================================================
Index: doc/invoke.texi
--- doc/invoke.texi	21 Nov 2003 11:42:58 -0000	1.364
+++ doc/invoke.texi	1 Dec 2003 18:21:50 -0000
@@ -675,7 +675,7 @@ in the following sections.
 -fnon-call-exceptions  -funwind-tables @gol
 -fasynchronous-unwind-tables @gol
 -finhibit-size-directive  -finstrument-functions @gol
--fno-common  -fno-ident  -fno-gnu-linker @gol
+-fno-common  -fno-ident @gol
 -fpcc-struct-return  -fpic  -fPIC -fpie -fPIE @gol
 -freg-struct-return  -fshared-data  -fshort-enums @gol
 -fshort-double  -fshort-wchar @gol
@@ -11284,17 +11284,6 @@ program will work on other systems which
 @item -fno-ident
 @opindex fno-ident
 Ignore the @samp{#ident} directive.
-
-@item -fno-gnu-linker
-@opindex fno-gnu-linker
-Do not output global initializations (such as C++ constructors and
-destructors) in the form used by the GNU linker (on systems where the GNU
-linker is the standard method of handling them).  Use this option when
-you want to use a non-GNU linker, which also requires using the
-@command{collect2} program to make sure the system linker includes
-constructors and destructors.  (@command{collect2} is included in the GCC
-distribution.)  For systems which @emph{must} use @command{collect2}, the
-compiler driver @command{gcc} is configured to do this automatically.
 
 @item -finhibit-size-directive
 @opindex finhibit-size-directive


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]