aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
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/stor-layout.c
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/stor-layout.c')
-rw-r--r--gcc/stor-layout.c2
1 files changed, 2 insertions, 0 deletions
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))
{