gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH] fix arm neon ICE by widening tree_type's precision field

Subject: Re: [PATCH] fix arm neon ICE by widening tree_type's precision field
From: Steven Bosscher
Date: Tue, 9 Jun 2009 17:44:38 +0200
On Tue, Jun 9, 2009 at 5:00 PM, Richard
Guenther<richard.guenther@xxxxxxxxx> wrote:
> Hmm.  I guess a more proper approach would be to try to remove
> one of the lang-specific flags and instead force the frontends to use
> flags in their TYPE_LANG_SPECIFIC structure.  Ada seems to be
> the only one using all lang-specific flags - maybe there is an obvious
> candidate.  Eric?

unless I grepped wrong, C++ also uses them all.

/me double checks

stevenb@gsyprf3:~/devel/trunk/gcc$ grep -r --exclude-dir=.svn
TYPE_LANG_FLAG_ * | grep cp
cp/ChangeLog-2003:      rather than TYPE_LANG_FLAG_0.
cp/cp-tree.h:   Usage of TYPE_LANG_FLAG_?:
cp/cp-tree.h:  (TYPE_LANG_FLAG_5 (T) = (VAL))
cp/cp-tree.h:  (RECORD_OR_UNION_CODE_P (TREE_CODE (T)) && TYPE_LANG_FLAG_5 (T))
cp/cp-tree.h:#define TYPE_FOR_JAVA(NODE) TYPE_LANG_FLAG_3 (NODE)
cp/cp-tree.h:#define TYPE_DEPENDENT_P(NODE) TYPE_LANG_FLAG_0 (NODE)
cp/cp-tree.h:#define TYPE_DEPENDENT_P_VALID(NODE) TYPE_LANG_FLAG_6(NODE)
cp/cp-tree.h:  (TREE_CODE (TYPE) == ENUMERAL_TYPE && TYPE_LANG_FLAG_5 (TYPE))
cp/cp-tree.h:  (TREE_CODE (TYPE) == ENUMERAL_TYPE && !TYPE_LANG_FLAG_5 (TYPE))
cp/cp-tree.h:  (TYPE_LANG_FLAG_5 (ENUMERAL_TYPE_CHECK (TYPE)) = (VAL))
cp/cp-tree.h:#define TYPE_HAS_USER_CONSTRUCTOR(NODE) (TYPE_LANG_FLAG_1 (NODE))
cp/cp-tree.h:  (TYPE_LANG_FLAG_4 (NODE))
cp/ChangeLog-2007:      * cp-tree.h: Update comment - TYPE_LANG_FLAG_0 is not
cp/ChangeLog-2008:      TYPE_LANG_FLAG_5.

OK, so C++ doesn't use TYPE_LANG_FLAG_2.  Oops :-)

Ciao!
Steven

<Prev in Thread] Current Thread [Next in Thread>