>From the new dup. Committed to trunk and branch.
Richard. 2014-06-17 Richard Biener <rguent...@suse.de> PR lto/61012 * gcc.dg/lto/pr61526_0.c: New testcase. * gcc.dg/lto/pr61526_1.c: Likewise. Index: gcc/testsuite/gcc.dg/lto/pr61526_0.c =================================================================== --- gcc/testsuite/gcc.dg/lto/pr61526_0.c (revision 0) +++ gcc/testsuite/gcc.dg/lto/pr61526_0.c (working copy) @@ -0,0 +1,6 @@ +/* { dg-lto-do link } */ +/* { dg-lto-options { { -fPIC -flto -flto-partition=1to1 } } } */ +/* { dg-extra-ld-options { -shared } } */ + +static void *master; +void *foo () { return master; } Index: gcc/testsuite/gcc.dg/lto/pr61526_1.c =================================================================== --- gcc/testsuite/gcc.dg/lto/pr61526_1.c (revision 0) +++ gcc/testsuite/gcc.dg/lto/pr61526_1.c (working copy) @@ -0,0 +1,2 @@ +extern void *master; +void *bar () { return master; }