re PR lto/48100 (Assertion failed in lto_varpool_replace_node, at lto-symtab.c:304 with mixed LTO/non-LTO objects)

2011-12-07  Richard Guenther  <rguenther@suse.de>

	PR lto/48100
	* gcc.dg/lto/20111207-1_0.c: New testcase.
	* gcc.dg/lto/20111207-1_1.c: Likewise.
	* gcc.dg/lto/20111207-1_2.c: Likewise.
	* gcc.dg/lto/20111207-1_3.c: Likewise.

From-SVN: r182082
This commit is contained in:
Richard Guenther 2011-12-07 13:53:30 +00:00 committed by Richard Biener
parent f867f13406
commit 543dfd37ec
5 changed files with 22 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2011-12-07 Richard Guenther <rguenther@suse.de>
PR lto/48100
* gcc.dg/lto/20111207-1_0.c: New testcase.
* gcc.dg/lto/20111207-1_1.c: Likewise.
* gcc.dg/lto/20111207-1_2.c: Likewise.
* gcc.dg/lto/20111207-1_3.c: Likewise.
2011-12-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50823

View file

@ -0,0 +1,4 @@
/* { dg-lto-do run } */
/* { dg-lto-options { { -flto } } } */
/* { dg-require-linker-plugin "" } */
/* { dg-extra-ld-options "-fuse-linker-plugin" } */

View file

@ -0,0 +1,3 @@
/* { dg-options "-fno-lto" } */
int i;

View file

@ -0,0 +1 @@
int i;

View file

@ -0,0 +1,6 @@
extern int i;
int main()
{
return i;
}