[PATCH] Fix PR optimization/7675
Richard Henderson
rth@redhat.com
Thu Apr 17 21:12:00 GMT 2003
On Wed, Apr 16, 2003 at 02:22:55AM +0200, Eric Botcazou wrote:
> * 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.
> * gcc.c-torture/compile/20030415-1.c: New test.
Ok.
r~
More information about the Gcc-patches
mailing list