diff options
author | Richard Guenther <rguenther@suse.de> | 2011-06-10 08:38:40 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-06-10 08:38:40 +0000 |
commit | f93fe5a0e6022edb30bd274d9243bdd02710450a (patch) | |
tree | 0778aa91e75881b172912b0658d57fa1cebed894 | |
parent | d7fc8c140e52db6816b9a60e9d653ec19bd26de6 (diff) | |
download | gcc-f93fe5a0e6022edb30bd274d9243bdd02710450a.zip gcc-f93fe5a0e6022edb30bd274d9243bdd02710450a.tar.gz gcc-f93fe5a0e6022edb30bd274d9243bdd02710450a.tar.bz2 |
stor-layout.c (initialize_sizetypes): Give names to all sizetype kinds.
2011-06-10 Richard Guenther <rguenther@suse.de>
* stor-layout.c (initialize_sizetypes): Give names to all
sizetype kinds.
From-SVN: r174893
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stor-layout.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6a320b..866571d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-10 Richard Guenther <rguenther@suse.de> + + * stor-layout.c (initialize_sizetypes): Give names to all + sizetype kinds. + 2011-06-10 Ira Rosen <ira.rosen@linaro.org> PR tree-optimization/49318 diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 9bfde84..0601440 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; } |