re PR rtl-optimization/7675 (ICE in fixup_var_refs_1)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Fri, 18 Apr 2003 06:45:15 +0000 (08:45 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 18 Apr 2003 06:45:15 +0000 (06:45 +0000)
commit6a29edeae52a48b159ebe4eb024be65b8d69eb9b
treee0dee3b9bf6420657cea4b3e36c2550d4e9614f9
parent06e7ca50abc3a0a39798d38672110abbd3a8dcc3
re PR rtl-optimization/7675 (ICE in fixup_var_refs_1)

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.

From-SVN: r65774
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]