summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-10 08:38:40 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-10 08:38:40 +0000
commitf1444979c6fceb6f0efec92802014e9addce66ad (patch)
tree0778aa91e75881b172912b0658d57fa1cebed894 /gcc/stor-layout.c
parent41e53ed2f898d245253f89da6db05427cc3e8a4e (diff)
downloadgcc-f1444979c6fceb6f0efec92802014e9addce66ad.tar.gz
2011-06-10 Richard Guenther <rguenther@suse.de>
* stor-layout.c (initialize_sizetypes): Give names to all sizetype kinds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 9bfde847db7..06014407f6a 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -2215,8 +2215,7 @@ initialize_sizetypes (void)
/* Create stubs for sizetype and bitsizetype so we can create constants. */
sizetype = make_node (INTEGER_TYPE);
- /* ??? We can't set a name for sizetype because it appears in C diagnostics
- and pp_c_type_specifier doesn't deal with IDENTIFIER_NODE TYPE_NAMEs. */
+ TYPE_NAME (sizetype) = get_identifier ("sizetype");
TYPE_PRECISION (sizetype) = precision;
TYPE_UNSIGNED (sizetype) = 1;
TYPE_IS_SIZETYPE (sizetype) = 1;
@@ -2250,8 +2249,10 @@ initialize_sizetypes (void)
/* Create the signed variants of *sizetype. */
ssizetype = make_signed_type (TYPE_PRECISION (sizetype));
+ TYPE_NAME (ssizetype) = get_identifier ("ssizetype");
TYPE_IS_SIZETYPE (ssizetype) = 1;
sbitsizetype = make_signed_type (TYPE_PRECISION (bitsizetype));
+ TYPE_NAME (sbitsizetype) = get_identifier ("sbitsizetype");
TYPE_IS_SIZETYPE (sbitsizetype) = 1;
}