dwarfout.c (fundamental_type_code): Return FT_boolean for INTEGER_TYPE with precision...
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Fri, 13 Aug 1999 07:40:04 +0000 (07:40 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Aug 1999 07:40:04 +0000 (01:40 -0600)
        * dwarfout.c (fundamental_type_code): Return FT_boolean for
        INTEGER_TYPE with precision==1, it's __java_boolean.

From-SVN: r28696

gcc/ChangeLog
gcc/dwarfout.c

index bdf2b891d5cf59ad090ca4d1d67579c165c34702..f82d83342edfa85f522b7384296fc2360041a72c 100644 (file)
@@ -1,3 +1,8 @@
+Fri Aug 13 01:29:57 1999  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * dwarfout.c (fundamental_type_code): Return FT_boolean for
+       INTEGER_TYPE with precision==1, it's __java_boolean.  
+
 Thu Aug 12 23:51:04 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * global.c (prune_preferences): Move some invariants out of the
index 0a30a9775cfb1d48e86c2490a4f64374befa3728..8e0d018da495226f4d5aea146b580c318f9882fb 100644 (file)
@@ -1413,6 +1413,10 @@ fundamental_type_code (type)
        if (TYPE_PRECISION (type) == CHAR_TYPE_SIZE)
          return (TREE_UNSIGNED (type) ? FT_unsigned_char : FT_char);
 
+       /* In C++, __java_boolean is an INTEGER_TYPE with precision == 1 */
+       if (TYPE_PRECISION (type) == 1)
+         return FT_boolean;
+
        abort ();
 
       case REAL_TYPE: