re PR ipa/61144 (Invalid optimizations for extern vars with local weak definitions)
PR ipa/61144 * gcc.dg/tree-ssa/pr61144.c: New testcase. From-SVN: r215897
This commit is contained in:
parent
dc89806877
commit
2add94cd44
|
@ -1,3 +1,8 @@
|
|||
2014-10-04 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
PR ipa/61144
|
||||
* gcc.dg/tree-ssa/pr61144.c: New testcase.
|
||||
|
||||
2014-10-04 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* g++.dg/ipa/devirt-46.C: New testcase.
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-weak "" } */
|
||||
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
||||
static int dummy = 0;
|
||||
extern int foo __attribute__((__weak__, __alias__("dummy")));
|
||||
int bar() { if (foo) return 1; return 0; }
|
||||
/* { dg-final { scan-tree-dump-not "return 0" "optimized"} } */
|
Loading…
Reference in New Issue