Commit 3a88cbd1 by Jeffrey A Law Committed by Jeff Law

except.c: Do not include "assert.h".

        * except.c: Do not include "assert.h".
        (save_eh_status): Turn asserts into conditional aborts.
        (restore_eh_status, scan_region): Likewise.
        * dwarfout.c: Do not include "assert.h".
        (bit_offset_attribute): Turn asserts into conditional aborts.
        (bit_size_attribute, output_inlined_enumeration_type_die): Likewise.
        (output_inlined_structure_type_die): Likewise.
        (output_inlined_union_type_die): Likewise
        (output_tagged_type_instantiation): Likewise.
        (dwarfout_file_scope_decl): Likewise.
        * dwarf2out.c: Do not include "assert.h"
        (expand_builtin_dwarf_reg_size): Turn asserts into conditional aborts.
        (reg_save, initial_return_save, dwarf2out_frame_debug): Likewise.
        (add_child_die, modified_type_die, add_bit_offset_attribute): Likewise.
        (add_bit_size_attribute, scope_die_for): Likewise.
        (output_pending_types_for_scope): Likewise.
        (get_inlined_enumeration_type_die): Likewise.
        (get_inlined_structure_type_die): Likewise.
        (get_inlined_union_type_die, gen_subprogram_die): Likewise.
        (gen_tagged_type_instantiation_die): Likewise.

From-SVN: r16442
parent 2ec1535d
Wed Nov 12 09:37:01 1997 Jeffrey A Law (law@cygnus.com)
* except.c: Do not include "assert.h".
(save_eh_status): Turn asserts into conditional aborts.
(restore_eh_status, scan_region): Likewise.
* dwarfout.c: Do not include "assert.h".
(bit_offset_attribute): Turn asserts into conditional aborts.
(bit_size_attribute, output_inlined_enumeration_type_die): Likewise.
(output_inlined_structure_type_die): Likewise.
(output_inlined_union_type_die): Likewise
(output_tagged_type_instantiation): Likewise.
(dwarfout_file_scope_decl): Likewise.
* dwarf2out.c: Do not include "assert.h"
(expand_builtin_dwarf_reg_size): Turn asserts into conditional aborts.
(reg_save, initial_return_save, dwarf2out_frame_debug): Likewise.
(add_child_die, modified_type_die, add_bit_offset_attribute): Likewise.
(add_bit_size_attribute, scope_die_for): Likewise.
(output_pending_types_for_scope): Likewise.
(get_inlined_enumeration_type_die): Likewise.
(get_inlined_structure_type_die): Likewise.
(get_inlined_union_type_die, gen_subprogram_die): Likewise.
(gen_tagged_type_instantiation_die): Likewise.
* flow.c (find_basic_blocks): Refine further to get a more correct
cfg, especially in the presense of exception handling, computed
gotos, and other non-trivial cases. Call abort if an inaccuracy
......
......@@ -33,9 +33,6 @@ Boston, MA 02111-1307, USA. */
#include "output.h"
#include "defaults.h"
/* #define NDEBUG 1 */
#include "assert.h"
#if defined(DWARF_TIMESTAMPS)
#if defined(POSIX)
#include <time.h>
......@@ -2698,8 +2695,10 @@ bit_offset_attribute (decl)
register unsigned highest_order_field_bit_offset;
register unsigned bit_offset;
assert (TREE_CODE (decl) == FIELD_DECL); /* Must be a field. */
assert (type); /* Must be a bit field. */
/* Must be a bit field. */
if (!type
|| TREE_CODE (decl) != FIELD_DECL)
abort ();
/* We can't yet handle bit-fields whose offsets are variable, so if we
encounter such things, just return without generating any attribute
......@@ -2742,8 +2741,10 @@ static inline void
bit_size_attribute (decl)
register tree decl;
{
assert (TREE_CODE (decl) == FIELD_DECL); /* Must be a field. */
assert (DECL_BIT_FIELD_TYPE (decl)); /* Must be a bit field. */
/* Must be a field and a bit field. */
if (TREE_CODE (decl) != FIELD_DECL
|| ! DECL_BIT_FIELD_TYPE (decl))
abort ();
ASM_OUTPUT_DWARF_ATTRIBUTE (asm_out_file, AT_bit_size);
ASM_OUTPUT_DWARF_DATA4 (asm_out_file,
......@@ -3272,7 +3273,8 @@ output_inlined_enumeration_type_die (arg)
ASM_OUTPUT_DWARF_TAG (asm_out_file, TAG_enumeration_type);
sibling_attribute ();
assert (TREE_ASM_WRITTEN (type));
if (!TREE_ASM_WRITTEN (type))
abort ();
abstract_origin_attribute (type);
}
......@@ -3286,7 +3288,8 @@ output_inlined_structure_type_die (arg)
ASM_OUTPUT_DWARF_TAG (asm_out_file, TAG_structure_type);
sibling_attribute ();
assert (TREE_ASM_WRITTEN (type));
if (!TREE_ASM_WRITTEN (type))
abort ();
abstract_origin_attribute (type);
}
......@@ -3300,7 +3303,8 @@ output_inlined_union_type_die (arg)
ASM_OUTPUT_DWARF_TAG (asm_out_file, TAG_union_type);
sibling_attribute ();
assert (TREE_ASM_WRITTEN (type));
if (!TREE_ASM_WRITTEN (type))
abort ();
abstract_origin_attribute (type);
}
......@@ -4436,9 +4440,11 @@ output_tagged_type_instantiation (type)
sure that we have the main variant (i.e. the unqualified version) of
this type now. */
assert (type == type_main_variant (type));
if (type != type_main_variant (type))
abort ();
assert (TREE_ASM_WRITTEN (type));
if (!TREE_ASM_WRITTEN (type))
abort ();
switch (TREE_CODE (type))
{
......@@ -5179,7 +5185,8 @@ dwarfout_file_scope_decl (decl, set_finalizing)
/* The above call should have totally emptied the pending_types_list. */
assert (pending_types == 0);
if (pending_types != 0)
abort ();
ASM_OUTPUT_POP_SECTION (asm_out_file);
......
......@@ -404,7 +404,6 @@ Boston, MA 02111-1307, USA. */
#include "insn-config.h"
#include "recog.h"
#include "output.h"
#include "assert.h"
/* One to use setjmp/longjmp method of generating code for exception
handling. */
......@@ -1959,7 +1958,8 @@ void
save_eh_status (p)
struct function *p;
{
assert (p != NULL);
if (p == NULL)
abort ();
p->ehstack = ehstack;
p->ehqueue = ehqueue;
......@@ -1981,7 +1981,8 @@ void
restore_eh_status (p)
struct function *p;
{
assert (p != NULL);
if (p == NULL)
abort ();
protect_list = p->protect_list;
caught_return_label_stack = p->caught_return_label_stack;
......@@ -2046,11 +2047,12 @@ scan_region (insn, n, delete_outer)
/* Assume we can delete the region. */
int delete = 1;
assert (insn != NULL_RTX
&& GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_EH_REGION_BEG
&& NOTE_BLOCK_NUMBER (insn) == n
&& delete_outer != NULL);
if (insn == NULL_RTX
|| GET_CODE (insn) != NOTE
|| NOTE_LINE_NUMBER (insn) != NOTE_INSN_EH_REGION_BEG
|| NOTE_BLOCK_NUMBER (insn) != n
|| delete_outer == NULL)
abort ();
insn = NEXT_INSN (insn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment