From: Jason Merrill Date: Sat, 4 Apr 2009 04:28:19 +0000 (-0400) Subject: * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. X-Git-Tag: releases/gcc-4.5.0~6914 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=462f32622d5f7ba2efef6d145e57c41053178c38;p=thirdparty%2Fgcc.git * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. From-SVN: r145531 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc1d68e9094b..817d483d38cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-04-03 Jason Merrill + + * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. + 2009-04-03 Steve Ellcey * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2, diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 581cb89d3c6c..e7036827a0cf 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)) {