Commit dcb9e2c1 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/47278 (hidden weak function not handled properly)

2011-03-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47278
	* gcc.dg/torture/pr47278-1.c: New testcase.
	* gcc.dg/torture/pr47278-2.c: Likewise.

From-SVN: r170869
parent e89e03ab
2011-03-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47278
* gcc.dg/torture/pr47278-1.c: New testcase.
* gcc.dg/torture/pr47278-2.c: Likewise.
2011-03-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/48063
......
/* { dg-do run } */
/* { dg-require-visibility "" } */
/* { dg-additional-sources "pr47278-2.c" } */
int foo (void) { return 1; }
/* { dg-require-visibility "" } */
extern void abort (void);
int __attribute__((weak,visibility("hidden"))) foo (void)
{
return 0;
}
int main()
{
if (foo() != 1)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment