diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-08-03 00:17:11 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-08-03 00:17:11 +0000 |
commit | 3db35af4a5e89aa783388b58240b7c5b2561a187 (patch) | |
tree | 736903c43f30ba905e45449a7537cee8badf4917 /gcc/dwarf2out.c | |
parent | e457ca6a318a8411b2634430cb8ecd209ecf883f (diff) | |
download | gcc-3db35af4a5e89aa783388b58240b7c5b2561a187.zip gcc-3db35af4a5e89aa783388b58240b7c5b2561a187.tar.gz gcc-3db35af4a5e89aa783388b58240b7c5b2561a187.tar.bz2 |
dce.c: Remove all uses of assert.
* dce.c: Remove all uses of assert.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* ssa.c: Likewise.
From-SVN: r35438
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 31c66a7..ed78012 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; } |