diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-07-30 23:54:56 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-07-30 23:54:56 +0000 |
commit | 01ddebf20842e3e6b9b9349a2e68cd702bfcc27b (patch) | |
tree | 87a4eb9f676e3356453c46961c4ca3f72f9bd2a7 /gcc/dwarf2out.c | |
parent | b8c71e40e0eecc003533b7f294fbe2d29e641326 (diff) | |
download | gcc-01ddebf20842e3e6b9b9349a2e68cd702bfcc27b.zip gcc-01ddebf20842e3e6b9b9349a2e68cd702bfcc27b.tar.gz gcc-01ddebf20842e3e6b9b9349a2e68cd702bfcc27b.tar.bz2 |
re PR ada/36554 (verify_flow_info ICE can not throw but has EH edges)
PR ada/36554
* dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
ada/
* back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
* gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
Set precision to 1 for subtype of BOOLEAN_TYPE.
(set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
(make_type_from_size): Deal with BOOLEAN_TYPE.
* gcc-interface/misc.c (gnat_print_type): Likewise.
* gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
Set boolean_type_node as its translation in the table, as well
as boolean_false_node for False and boolean_true_node for True.
* gcc-interface/utils.c (gnat_init_decl_processing): Create custom
8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
(create_param_decl): Deal with BOOLEAN_TYPE.
(build_vms_descriptor): Likewise.
(build_vms_descriptor64): Likewise.
(convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
From-SVN: r138348
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 72514a6..f553f2e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -8846,7 +8846,8 @@ is_subrange_type (const_tree type) return false; if (TREE_CODE (subtype) != INTEGER_TYPE - && TREE_CODE (subtype) != ENUMERAL_TYPE) + && TREE_CODE (subtype) != ENUMERAL_TYPE + && TREE_CODE (subtype) != BOOLEAN_TYPE) return false; if (TREE_CODE (type) == TREE_CODE (subtype) |