PR optimization/7675
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Apr 2003 06:45:15 +0000 (06:45 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Apr 2003 06:45:15 +0000 (06:45 +0000)
commitf3d3a8e25ed135d4c539aed7203030dc140d4820
treee0dee3b9bf6420657cea4b3e36c2550d4e9614f9
parent2113f013b978972368794f4e76b47553d19186e1
PR optimization/7675
* c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
nested functions if they refer to declarations from parent functions.
* stmt.c (expand_decl): Don't put automatic variables in registers
if the DECL_NONLOCAL flag is set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65774 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20030418-1.c [new file with mode: 0644]