OSDN Git Service

PR tree-optimization/29484
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2008 08:33:57 +0000 (08:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2008 08:33:57 +0000 (08:33 +0000)
commit361c9aad59cd53541245e876f3b78953e87cff57
treec01a04f37d6590c350dcd0b897f1ffa43b5099c8
parentbfe20447cb8ed0643e71f42a4277b643ed1f952f
PR tree-optimization/29484
* tree-inline.c (inline_forbidden_p_2): New function.
(inline_forbidden_p): Disallow inlining if some static var
has an address of a local LABEL_DECL in its initializer.
* doc/extend.texi (Labels as Values): Document &&foo behaviour
vs. inlining.

* gcc.c-torture/execute/20071220-1.c: New test.
* gcc.c-torture/execute/20071220-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131300 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20071220-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/20071220-2.c [new file with mode: 0644]
gcc/tree-inline.c