diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-13 07:32:07 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-13 07:32:07 +0000 |
commit | f522b07504b6a7f5aac15758ba38f1ca339e7da9 (patch) | |
tree | 0840f7c2d9b9351d4b5b91d6a51fd36c88216962 | |
parent | 958cc1999f9b98c80e68c4a34031df19da43264c (diff) |
* dwarfout.c (fundamental_type_code): Return FT_boolean for
INTEGER_TYPE with precision==1, it's __java_boolean.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-2_95-branch@28694 138bc75d-0d04-0410-961f-82ee72b054a4
-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 de9d9d735e1..71b7806c3f0 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. + 1999-08-11 Richard Earnshaw (rearnsha@arm.com) * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of 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: |