* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168548
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-01-06 Jan Hubicka <jh@suse.cz>
+
+ PR lto/47188
+ * collect2.c (main): Do not enable LTOmode when plugin is active.
+
2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR other/45915
#endif
}
vflag = debug;
- if (no_partition)
+ if (no_partition && lto_mode == LTO_MODE_WHOPR)
lto_mode = LTO_MODE_LTO;
}
+2011-01-06 Jan Hubicka <jh@suse.cz>
+
+ * testsuite/gcc.dg/lto/pr47188_0.c: New testcase.
+ * testsuite/gcc.dg/lto/pr47188_1.c: New testcase.
+
2011-01-06 Daniel Franke <franke.daniel@gmail.com>
PR fortran/33117
--- /dev/null
+/* { dg-lto-do assemble } */
+/* { dg-require-linker-plugin "" } */
+/* { dg-extra-ld-options "-fuse-linker-plugin -fwhole-program" } */
+int foo(void)
+{
+ return 0;
+}
--- /dev/null
+/* { dg-options "-fno-lto" } */
+
+extern int foo(void);
+
+int main(void)
+{
+ return foo();
+}