diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-07 15:42:44 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-07 15:42:44 +0000 |
commit | 1e944a0b51698cfea09da04479be167faec7885e (patch) | |
tree | c65d60d00c6229816d216301657c930f608d6cbd /gcc/config/mcore | |
parent | ff2cd6d16915a0b5d8ebda9a07d51764cf428683 (diff) | |
download | gcc-1e944a0b51698cfea09da04479be167faec7885e.tar.gz |
* config/mcore/mcore.c Don't include assert.h.
(layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
* config/spu/spu.c: Don't include assert.h.
(spu_sms_res_mii): Use gcc_assert.
cp:
* rtti.c: Don't include assert.h.
java:
* jcf-parse.c: Don't include assert.h.
(java_parse_file): Use gcc_assert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167552 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mcore')
-rw-r--r-- | gcc/config/mcore/mcore.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index a66eb3cd162..6227b174c39 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -25,7 +25,6 @@ #include "rtl.h" #include "tree.h" #include "tm_p.h" -#include "assert.h" #include "mcore.h" #include "regs.h" #include "hard-reg-set.h" @@ -1826,7 +1825,7 @@ layout_mcore_frame (struct mcore_frame * infp) infp->local_growth = growths; all -= step; - assert (all == 0); + gcc_assert (all == 0); /* Finish off if we need to do so. */ if (outbounds) @@ -1904,8 +1903,8 @@ layout_mcore_frame (struct mcore_frame * infp) /* Anything else that we've forgotten?, plus a few consistency checks. */ finish: - assert (infp->reg_offset >= 0); - assert (growths <= MAX_STACK_GROWS); + gcc_assert (infp->reg_offset >= 0); + gcc_assert (growths <= MAX_STACK_GROWS); for (i = 0; i < growths; i++) gcc_assert (!(infp->growth[i] % STACK_BYTES)); @@ -2772,7 +2771,7 @@ handle_structs_in_regs (enum machine_mode mode, const_tree type, int reg) } /* We assume here that NPARM_REGS == 6. The assert checks this. */ - assert (ARRAY_SIZE (arg_regs) == 6); + gcc_assert (ARRAY_SIZE (arg_regs) == 6); rtvec = gen_rtvec (nregs, arg_regs[0], arg_regs[1], arg_regs[2], arg_regs[3], arg_regs[4], arg_regs[5]); |