I forgot to check for visibility support. I've also copied the testcases to trunk.
Richard. 2011-03-11 Richard Guenther <rguent...@suse.de> PR tree-optimization/47278 * gcc.dg/torture/pr47278-1.c: Require visibility support. * gcc.dg/torture/pr47278-2.c: Likewise. Index: gcc/testsuite/gcc.dg/torture/pr47278-1.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr47278-1.c (revision 170867) +++ gcc/testsuite/gcc.dg/torture/pr47278-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-visibility "" } */ /* { dg-additional-sources "pr47278-2.c" } */ int foo (void) { return 1; } Index: gcc/testsuite/gcc.dg/torture/pr47278-2.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr47278-2.c (revision 170867) +++ gcc/testsuite/gcc.dg/torture/pr47278-2.c (working copy) @@ -1,3 +1,5 @@ +/* { dg-require-visibility "" } */ + extern void abort (void); int __attribute__((weak,visibility("hidden"))) foo (void)