]> gcc.gnu.org Git - gcc.git/commitdiff
stor-layout.c (set_sizetype): Set TYPE_NAME on bitsizetype.
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 15 May 1998 12:50:30 +0000 (12:50 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 15 May 1998 12:50:30 +0000 (12:50 +0000)
`
Fri May 15 12:44:57 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
* stor-layout.c (set_sizetype): Set TYPE_NAME on bitsizetype.
fixes g++/15561

From-SVN: r19777

gcc/stor-layout.c

index 606ebb1ab17592c7a1cd6a313df9e1887d64301b..0c1710b530a971a458a23fb0cd77511ae946bb83 100644 (file)
@@ -1123,6 +1123,8 @@ set_sizetype (type)
      individually in each front end.  */
   if (! bitsizetype)
     bitsizetype = make_node (INTEGER_TYPE);
+  if (TYPE_NAME (sizetype) && ! TYPE_NAME (bitsizetype))
+    TYPE_NAME (bitsizetype) = TYPE_NAME (sizetype);
 
   precision = oprecision + BITS_PER_UNIT_LOG + 1;
   /* However, when cross-compiling from a 32 bit to a 64 bit host,
This page took 0.067151 seconds and 5 git commands to generate.