decl.c (init_decl_processing): Add `signed' type as a synonym for `int'.
authorNathan Sidwell <nathan@acm.org>
Thu, 25 Mar 1999 03:50:45 +0000 (03:50 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 25 Mar 1999 03:50:45 +0000 (22:50 -0500)
* decl.c (init_decl_processing): Add `signed' type as a synonym
for `int'.

From-SVN: r25970

gcc/cp/ChangeLog
gcc/cp/decl.c

index 1a5033f54587ed72bec5dad615605a02c910d077..6ed08ef205fc502c60b4cf5ac852d898a8c5e4fa 100644 (file)
@@ -1,3 +1,8 @@
+1999-03-25  Nathan Sidwell  <nathan@acm.org>
+
+       * decl.c (init_decl_processing): Add `signed' type as a synonym
+       for `int'.
+
 1999-03-25  Jason Merrill  <jason@yorick.cygnus.com>
 
        * typeck.c (common_type): Handle cv-qual unification for pointers
index f5e290205bbf5da05ed6a3027587a28c6497db82..86bf6d92a10dc4cfc7772a9da0cce6f89ea35974 100644 (file)
@@ -5963,6 +5963,9 @@ init_decl_processing ()
        : make_unsigned_type (CHAR_TYPE_SIZE));
   record_builtin_type (RID_CHAR, "char", char_type_node);
 
+  /* `signed' is the same as `int' */
+  record_builtin_type (RID_SIGNED, NULL_PTR, integer_type_node);
+  
   long_integer_type_node = make_signed_type (LONG_TYPE_SIZE);
   record_builtin_type (RID_LONG, "long int", long_integer_type_node);