This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 02/18] enforce TREE_CHAIN and TREE_TYPE accesses


Nathan Froyd <froydnj@codesourcery.com> writes:

> On Thu, Mar 10, 2011 at 11:23:10PM -0500, Nathan Froyd wrote:
>> Now that we have a structure where not every node might include
>> TREE_CHAIN or TREE_TYPE, we need to make sure that when we call said
>> accessors that the argument is properly typed.  This requires a number
>> of changes:
>
> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00565.html
>
> Ping.  I was going to commit this, but I realized I hadn't received
> approval for the go or LTO bits.  They probably qualify as obvious,
> given that they're exactly the same as all the other languages, but just
> to rubber-stamp everything...
>
>> gcc/go/
>> 	* go-lang.c (union lang_tree_node): Check for TS_COMMON before
>> 	calling TREE_CHAIN.
>> 
>> gcc/lto/
>> 	* lto-tree.h (union lang_tree_node): Check for TS_COMMON before
>> 	calling TREE_CHAIN.
>> 	* lto.c (lto_fixup_common): Likewise.

This is OK.

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]