re PR middle-end/24053 (ICE in build_int_cst_wide, at tree.c:795)

PR middle-end/24053
	* stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.

From-SVN: r104800
This commit is contained in:
Richard Kenner 2005-09-29 22:11:12 +00:00 committed by Eric Botcazou
parent 93b47b19c5
commit 4ecd8dc716
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
PR middle-end/24053
* stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
2005-09-29 Mark Mitchell <mark@codesourcery.com>
* optabs.c (expand_binop): Initialize first_pass_p.

View File

@ -1966,8 +1966,10 @@ set_sizetype (tree type)
TYPE_PRECISION (t) = precision;
TYPE_UID (t) = TYPE_UID (bitsizetype);
TYPE_IS_SIZETYPE (t) = 1;
/* Replace our original stub bitsizetype. */
memcpy (bitsizetype, t, tree_size (bitsizetype));
TYPE_MAIN_VARIANT (bitsizetype) = bitsizetype;
if (TYPE_UNSIGNED (type))
{