diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2002-01-20 23:46:30 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2002-01-20 18:46:30 -0500 |
commit | 9702143f274f9dbaa4eecb55540b6e952a6903ad (patch) | |
tree | bc0e94a3b168a48f8a7f630b35bd1acc7b956b83 /gcc | |
parent | 01dae62a3ade63acef6de8413a2fcfbb1309de78 (diff) | |
download | gcc-9702143f274f9dbaa4eecb55540b6e952a6903ad.zip gcc-9702143f274f9dbaa4eecb55540b6e952a6903ad.tar.gz gcc-9702143f274f9dbaa4eecb55540b6e952a6903ad.tar.bz2 |
dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
* dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
(gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
in incomplete case.
From-SVN: r49022
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a56b81..ce27000 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + + * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases. + (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL + in incomplete case. + 2002-01-20 Graham Stott <grahams@redhat.com> * cfgloop.c (flow_loop_preheader_scan): Fix typo. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index a507321..c0b9958 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -8066,14 +8066,19 @@ loc_descriptor_from_tree (loc, addressp) return 0; break; + case TRUTH_AND_EXPR: + case TRUTH_ANDIF_EXPR: case BIT_AND_EXPR: op = DW_OP_and; goto do_binop; + case TRUTH_XOR_EXPR: case BIT_XOR_EXPR: op = DW_OP_xor; goto do_binop; + case TRUTH_OR_EXPR: + case TRUTH_ORIF_EXPR: case BIT_IOR_EXPR: op = DW_OP_or; goto do_binop; @@ -8167,6 +8172,7 @@ loc_descriptor_from_tree (loc, addressp) add_loc_descr (&ret, new_loc_descr (op, 0, 0)); break; + case TRUTH_NOT_EXPR: case BIT_NOT_EXPR: op = DW_OP_not; goto do_unop; @@ -10829,7 +10835,8 @@ gen_struct_or_union_type_die (type, context_die) add_AT_flag (type_die, DW_AT_declaration, 1); /* We don't need to do this for function-local types. */ - if (! decl_function_context (TYPE_STUB_DECL (type))) + if (TYPE_STUB_DECL (type) + && ! decl_function_context (TYPE_STUB_DECL (type))) VARRAY_PUSH_TREE (incomplete_types, type); } } |