diff mbox

[13/18] move TS_EXP to be a substructure of TS_TYPED

Message ID 1299817406-16745-14-git-send-email-froydnj@codesourcery.com
State New
Headers show

Commit Message

Nathan Froyd March 11, 2011, 4:23 a.m. UTC
After all that, we can finally make tree_exp inherit from typed_tree.
Quite anticlimatic.

-Nathan

gcc/
	* tree.h (struct tree_exp): Inherit from struct typed_tree.
	* tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
	instead of TS_COMMON.

Comments

Nathan Froyd May 10, 2011, 8:18 p.m. UTC | #1
On 03/10/2011 11:23 PM, Nathan Froyd wrote:
> After all that, we can finally make tree_exp inherit from typed_tree.
> Quite anticlimatic.

Ping.  http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00559.html

-Nathan
Nathan Froyd May 17, 2011, 3:31 p.m. UTC | #2
On 05/10/2011 04:18 PM, Nathan Froyd wrote:
> On 03/10/2011 11:23 PM, Nathan Froyd wrote:
>> After all that, we can finally make tree_exp inherit from typed_tree.
>> Quite anticlimatic.
> 
> Ping.  http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00559.html

Ping^2.

-Nathan
Nathan Froyd May 23, 2011, 2:18 p.m. UTC | #3
On 05/17/2011 11:31 AM, Nathan Froyd wrote:
> On 05/10/2011 04:18 PM, Nathan Froyd wrote:
>> On 03/10/2011 11:23 PM, Nathan Froyd wrote:
>>> After all that, we can finally make tree_exp inherit from typed_tree.
>>> Quite anticlimatic.
>>
>> Ping.  http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00559.html
> 
> Ping^2.

Ping^3 to put it in Richi's INBOX. ;)

-Nathan
Richard Biener May 23, 2011, 2:58 p.m. UTC | #4
On Mon, May 23, 2011 at 4:18 PM, Nathan Froyd <froydnj@codesourcery.com> wrote:
> On 05/17/2011 11:31 AM, Nathan Froyd wrote:
>> On 05/10/2011 04:18 PM, Nathan Froyd wrote:
>>> On 03/10/2011 11:23 PM, Nathan Froyd wrote:
>>>> After all that, we can finally make tree_exp inherit from typed_tree.
>>>> Quite anticlimatic.
>>>
>>> Ping.  http://gcc.gnu.org/ml/gcc-patches/2011-03/msg00559.html
>>
>> Ping^2.
>
> Ping^3 to put it in Richi's INBOX. ;)

Ok ;)

Please check for sizeof () uses of the structs you touched sofar.
ISTR a bug about fold-checking.

Richard.

> -Nathan
>
diff mbox

Patch

diff --git a/gcc/tree.c b/gcc/tree.c
index d63e7d5..16100a6 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -378,6 +378,7 @@  initialize_tree_contains_struct (void)
 	case TS_COMPLEX:
 	case TS_SSA_NAME:
 	case TS_CONSTRUCTOR:
+	case TS_EXP:
 	  MARK_TS_TYPED (code);
 	  break;
 
@@ -386,7 +387,6 @@  initialize_tree_contains_struct (void)
 	case TS_TYPE:
 	case TS_LIST:
 	case TS_VEC:
-	case TS_EXP:
 	case TS_BLOCK:
 	case TS_BINFO:
 	case TS_STATEMENT_LIST:
diff --git a/gcc/tree.h b/gcc/tree.h
index c81186a..461674c 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1905,7 +1905,7 @@  enum omp_clause_default_kind
   (OMP_CLAUSE_SUBCODE_CHECK (NODE, OMP_CLAUSE_DEFAULT)->omp_clause.subcode.default_kind)
 
 struct GTY(()) tree_exp {
-  struct tree_common common;
+  struct typed_tree typed;
   location_t locus;
   tree block;
   tree GTY ((special ("tree_exp"),