This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for expand_end_bindings
- To: mark at codesourcery dot com
- Subject: Re: PATCH for expand_end_bindings
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Mon, 24 May 1999 01:37:50 -0600
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990521154252U.mitchell@codesourcery.com>you write:
>
> This patch modifies expand_end_bindings to ignore any elements of the
> VARS list it is passed that are not VAR_DECLs. It almost did this
> already, but would ocasionally look at DECL_RTL for things that were
> not DECLs. (It's convenient for the C++ front-end to be able to put
> non-VAR_DECLs on this list.)
>
> I'd like to put this patch on the branch as well since it avoids
> accessing nodes incorrectly, which we sometimes did, even for legal
> code.
>
> (BTW, this is more stuff revealed by --enable_checking.)
>
> --
> Mark Mitchell mark@codesourcery.com
> CodeSourcery, LLC http://www.codesourcery.com
>
> Fri May 21 15:39:51 1999 Mark Mitchell <mark@codesourcery.com>
>
> * stmt.c (expand_end_bindings): Ignore any elements of VARS that
> are not VAR_DECLs.
This is fine. Thanks!
jeff