diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-03 00:17:11 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-03 00:17:11 +0000 |
commit | 124d58a1566656489e1a34297499ddec51df6eb3 (patch) | |
tree | 736903c43f30ba905e45449a7537cee8badf4917 /gcc/dwarf2out.c | |
parent | 99d5607ad258cc29ea67324e0b77038fc75bd4e5 (diff) | |
download | gcc-124d58a1566656489e1a34297499ddec51df6eb3.tar.gz |
* dce.c: Remove all uses of assert.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* ssa.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35438 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 31c66a74d1c..ed78012127a 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -58,15 +58,6 @@ Boston, MA 02111-1307, USA. */ #include "ggc.h" #include "tm_p.h" -/* We cannot use <assert.h> in GCC source, since that would include - GCC's assert.h, which may not be compatible with the host compiler. */ -#undef assert -#ifdef NDEBUG -# define assert(e) -#else -# define assert(e) do { if (! (e)) abort (); } while (0) -#endif - /* Decide whether we want to emit frame unwind information for the current translation unit. */ @@ -1123,7 +1114,8 @@ dwarf2out_stack_adjust (insn) insn = XVECEXP (insn, 0, 0); if (GET_CODE (insn) == SET) insn = SET_SRC (insn); - assert (GET_CODE (insn) == CALL); + if (GET_CODE (insn) != CALL) + abort (); dwarf2out_args_size ("", INTVAL (XEXP (insn, 1))); return; } |