aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2005-09-29 22:11:12 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2005-09-29 22:11:12 +0000
commit4ecd8dc7169bc0624f92d34738eb8ba774ec7b4c (patch)
treeff07c76169109d388a8e5cbd43663c240ad4c68e /gcc
parent93b47b19c5caa8951cb7acb46774c0027508bc26 (diff)
downloadgcc-4ecd8dc7169bc0624f92d34738eb8ba774ec7b4c.zip
gcc-4ecd8dc7169bc0624f92d34738eb8ba774ec7b4c.tar.gz
gcc-4ecd8dc7169bc0624f92d34738eb8ba774ec7b4c.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/stor-layout.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 477dc88..636014b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 31d8bec..f7bf20b 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -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))
{