From e139d29653248b3141b768b012f074c83318de68 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 13 Aug 1999 07:40:04 +0000 Subject: [PATCH] dwarfout.c (fundamental_type_code): Return FT_boolean for INTEGER_TYPE with precision==1, it's __java_boolean. * dwarfout.c (fundamental_type_code): Return FT_boolean for INTEGER_TYPE with precision==1, it's __java_boolean. From-SVN: r28696 --- gcc/ChangeLog | 5 +++++ gcc/dwarfout.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bdf2b891d5c..f82d83342ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 13 01:29:57 1999 Alexandre Oliva + + * 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 * global.c (prune_preferences): Move some invariants out of the diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 0a30a9775cf..8e0d018da49 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -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: -- 2.30.2