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/ssa.c | |
parent | e457ca6a318a8411b2634430cb8ecd209ecf883f (diff) | |
download | gcc-3db35af4a5e89aa783388b58240b7c5b2561a187.tar.gz |
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/ssa.c')
-rw-r--r-- | gcc/ssa.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gcc/ssa.c b/gcc/ssa.c index bb4bda71aab..ec9cc48f353 100644 --- a/gcc/ssa.c +++ b/gcc/ssa.c @@ -48,15 +48,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "output.h" #include "ssa.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 - /* TODO: Handle subregs better, maybe. For now, if a reg that's set in a @@ -1069,7 +1060,8 @@ rename_block (bb, idom) reg = SET_DEST (phi); if (REGNO (reg) >= ssa_max_reg_num) reg = ssa_rename_from_lookup (REGNO (reg)); - assert (reg != NULL_RTX); + if (reg == NULL_RTX) + abort (); reg = ssa_rename_to_lookup (reg); /* It is possible for the variable to be uninitialized on |