diff --git a/gcc-13-20240113/gcc/gcc.cc b/gcc-13-20240113/gcc/gcc.cc index 7f93660..40aa95b 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc @@ -1077,7 +1077,7 @@ proper position among the other output files. */ -fuse-linker-plugin if the linker used understands -plugin. */ /* The linker has some plugin support. */ -#if HAVE_LTO_PLUGIN > 0 + /* The linker used has full plugin support, use LTO plugin by default. */ #if HAVE_LTO_PLUGIN == 2 #define PLUGIN_COND "!fno-use-linker-plugin:%{!fno-lto" @@ -1097,11 +1097,6 @@ proper position among the other output files. */ %{flinker-output=*:-plugin-opt=-linker-output-known} \ %{!nostdlib:%{!nodefaultlibs:%:pass-through-libs(%(link_gcc_c_sequence))}} \ }" PLUGIN_COND_CLOSE -#else -/* The linker used doesn't support -plugin, reject -fuse-linker-plugin. */ -#define LINK_PLUGIN_SPEC "%{fuse-linker-plugin:\ - %e-fuse-linker-plugin is not supported in this configuration}" -#endif /* Linker command line options for -fsanitize= early on the command line. */ #ifndef SANITIZER_EARLY_SPEC