summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-29 22:11:12 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-29 22:11:12 +0000
commitcc1c0ea370c8e33799777e7839ed11047c294095 (patch)
treeff07c76169109d388a8e5cbd43663c240ad4c68e /gcc/stor-layout.c
parent9b26aa666aa8e107cea05d499f030f7e99fb26da (diff)
downloadgcc-cc1c0ea370c8e33799777e7839ed11047c294095.tar.gz
PR middle-end/24053
* stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104800 138bc75d-0d04-0410-961f-82ee72b054a4
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 31d8becdac7..f7bf20b03ad 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))
{