summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-23 19:30:37 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-23 19:30:37 +0000
commitc01af040e6ad8d9dff091807fe0e01d89512f15d (patch)
tree73ead45881757d95acc7524e8fff52b796d0f9b1 /gcc/gcc.c
parent3bd7a983695352a99f7dd597725eb5b839d4b4cf (diff)
downloadgcc-c01af040e6ad8d9dff091807fe0e01d89512f15d.tar.gz
2010-07-23 Richard Guenther <rguenther@suse.de>
PR lto/43071 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug for -flto and -fwhopr. * g++.dg/lto/20100723-1_0.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162481 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 6a0dae5c5a0..efaf8133ce6 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -752,6 +752,7 @@ proper position among the other output files. */
%{static|static-libgcc:-plugin-opt=-pass-through=%(lto_libgcc)} \
%{static:-plugin-opt=-pass-through=-lc} \
} \
+ %{flto:%<fcompare-debug*} %{fwhopr*:%<fcompare-debug*} \
%{flto} %{fwhopr*} %l " LINK_PIE_SPEC \
"%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\
%{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\