summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-01-06 19:50:20 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2011-01-06 18:50:20 +0000
commit402c1cb4c884a4b9b0428e4e31bb877f5e7c81b4 (patch)
treef715c405e49bf93799f68e21cc9b75c63695969b /gcc/collect2.c
parenta4da64857da9eae83672910e1a427d3239de0b47 (diff)
downloadgcc-402c1cb4c884a4b9b0428e4e31bb877f5e7c81b4.tar.gz
re PR lto/47188 (Undefined reference errors when combining IR and non-IR object files)
PR lto/47188 * collect2.c (main): Do not enable LTOmode when plugin is active. * testsuite/gcc.dg/lto/pr47188_0.c: New testcase. * testsuite/gcc.dg/lto/pr47188_1.c: New testcase. From-SVN: r168548
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 77f794ff49c..42e35b607ff 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1236,7 +1236,7 @@ main (int argc, char **argv)
#endif
}
vflag = debug;
- if (no_partition)
+ if (no_partition && lto_mode == LTO_MODE_WHOPR)
lto_mode = LTO_MODE_LTO;
}