mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-24 12:41:09 +08:00
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
This commit is contained in:
parent
a4da64857d
commit
402c1cb4c8
gcc
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
7
gcc/testsuite/gcc.dg/lto/pr47188_0.c
Normal file
7
gcc/testsuite/gcc.dg/lto/pr47188_0.c
Normal file
@ -0,0 +1,7 @@
|
||||
/* { dg-lto-do assemble } */
|
||||
/* { dg-require-linker-plugin "" } */
|
||||
/* { dg-extra-ld-options "-fuse-linker-plugin -fwhole-program" } */
|
||||
int foo(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
8
gcc/testsuite/gcc.dg/lto/pr47188_1.c
Normal file
8
gcc/testsuite/gcc.dg/lto/pr47188_1.c
Normal file
@ -0,0 +1,8 @@
|
||||
/* { dg-options "-fno-lto" } */
|
||||
|
||||
extern int foo(void);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return foo();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user