From 462f32622d5f7ba2efef6d145e57c41053178c38 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 4 Apr 2009 00:28:19 -0400 Subject: * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. From-SVN: r145531 --- gcc/stor-layout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 581cb89..e703682 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -2070,6 +2070,7 @@ set_sizetype (tree type) /* Replace our original stub sizetype. */ memcpy (sizetype, t, tree_size (sizetype)); TYPE_MAIN_VARIANT (sizetype) = sizetype; + TYPE_CANONICAL (sizetype) = sizetype; t = make_node (INTEGER_TYPE); TYPE_NAME (t) = get_identifier ("bit_size_type"); @@ -2084,6 +2085,7 @@ set_sizetype (tree type) /* Replace our original stub bitsizetype. */ memcpy (bitsizetype, t, tree_size (bitsizetype)); TYPE_MAIN_VARIANT (bitsizetype) = bitsizetype; + TYPE_CANONICAL (bitsizetype) = bitsizetype; if (TYPE_UNSIGNED (type)) { -- cgit v1.1