diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1999-08-13 07:40:04 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-08-13 01:40:04 -0600 |
commit | e139d29653248b3141b768b012f074c83318de68 (patch) | |
tree | c56ff6a675c98b5d63affa5997251e211c1442f6 /gcc | |
parent | 9ba8c7330e33500e5e181b7015bb62e2b977b2e3 (diff) | |
download | gcc-e139d29653248b3141b768b012f074c83318de68.zip gcc-e139d29653248b3141b768b012f074c83318de68.tar.gz gcc-e139d29653248b3141b768b012f074c83318de68.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarfout.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bdf2b89..f82d833 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 0a30a97..8e0d018 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: |