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

From-SVN: r28694

gcc/ChangeLog
gcc/dwarfout.c

index de9d9d735e1fb98f70580c0e6f52bd8c0736abbc..71b7806c3f057082a4e2d7ea0bdb9e447bb7b5e7 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.
+
 1999-08-11  Richard Earnshaw (rearnsha@arm.com)
 
         * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
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: