diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-07-19 14:47:15 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-07-19 14:47:15 +0000 |
commit | 703ad42b4be14b9b1e84816dede360721361ed86 (patch) | |
tree | f3d03226f923b6c64639256ed34bd193427950a7 /gcc/combine.c | |
parent | 308ca868d327f306ac4b87741ed828a56e524fd0 (diff) | |
download | gcc-703ad42b4be14b9b1e84816dede360721361ed86.zip gcc-703ad42b4be14b9b1e84816dede360721361ed86.tar.gz gcc-703ad42b4be14b9b1e84816dede360721361ed86.tar.bz2 |
alias.c [...]: Remove unnecessary casts.
* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
genemit.c genextract.c genoutput.c genrecog.c gensupport.c
ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
postreload.c prefix.c print-tree.c protoize.c ra-build.c
ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
regmove.c regrename.c reload.c reload1.c reorg.c resource.c
sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
casts.
From-SVN: r69587
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 30dd97a..bf356e9 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -456,7 +456,7 @@ do_SUBST (rtx *into, rtx newval) if (undobuf.frees) buf = undobuf.frees, undobuf.frees = buf->next; else - buf = (struct undo *) xmalloc (sizeof (struct undo)); + buf = xmalloc (sizeof (struct undo)); buf->is_int = 0; buf->where.r = into; @@ -484,7 +484,7 @@ do_SUBST_INT (int *into, int newval) if (undobuf.frees) buf = undobuf.frees, undobuf.frees = buf->next; else - buf = (struct undo *) xmalloc (sizeof (struct undo)); + buf = xmalloc (sizeof (struct undo)); buf->is_int = 1; buf->where.i = into; @@ -520,23 +520,18 @@ combine_instructions (rtx f, unsigned int nregs) combine_max_regno = nregs; - reg_nonzero_bits = ((unsigned HOST_WIDE_INT *) - xcalloc (nregs, sizeof (unsigned HOST_WIDE_INT))); - reg_sign_bit_copies - = (unsigned char *) xcalloc (nregs, sizeof (unsigned char)); - - reg_last_death = (rtx *) xmalloc (nregs * sizeof (rtx)); - reg_last_set = (rtx *) xmalloc (nregs * sizeof (rtx)); - reg_last_set_value = (rtx *) xmalloc (nregs * sizeof (rtx)); - reg_last_set_table_tick = (int *) xmalloc (nregs * sizeof (int)); - reg_last_set_label = (int *) xmalloc (nregs * sizeof (int)); - reg_last_set_invalid = (char *) xmalloc (nregs * sizeof (char)); - reg_last_set_mode - = (enum machine_mode *) xmalloc (nregs * sizeof (enum machine_mode)); - reg_last_set_nonzero_bits - = (unsigned HOST_WIDE_INT *) xmalloc (nregs * sizeof (HOST_WIDE_INT)); - reg_last_set_sign_bit_copies - = (char *) xmalloc (nregs * sizeof (char)); + reg_nonzero_bits = xcalloc (nregs, sizeof (unsigned HOST_WIDE_INT)); + reg_sign_bit_copies = xcalloc (nregs, sizeof (unsigned char)); + + reg_last_death = xmalloc (nregs * sizeof (rtx)); + reg_last_set = xmalloc (nregs * sizeof (rtx)); + reg_last_set_value = xmalloc (nregs * sizeof (rtx)); + reg_last_set_table_tick = xmalloc (nregs * sizeof (int)); + reg_last_set_label = xmalloc (nregs * sizeof (int)); + reg_last_set_invalid = xmalloc (nregs * sizeof (char)); + reg_last_set_mode = xmalloc (nregs * sizeof (enum machine_mode)); + reg_last_set_nonzero_bits = xmalloc (nregs * sizeof (HOST_WIDE_INT)); + reg_last_set_sign_bit_copies = xmalloc (nregs * sizeof (char)); init_reg_last_arrays (); @@ -548,7 +543,7 @@ combine_instructions (rtx f, unsigned int nregs) if (INSN_UID (insn) > i) i = INSN_UID (insn); - uid_cuid = (int *) xmalloc ((i + 1) * sizeof (int)); + uid_cuid = xmalloc ((i + 1) * sizeof (int)); max_uid_cuid = i; nonzero_bits_mode = mode_for_size (HOST_BITS_PER_WIDE_INT, MODE_INT, 0); @@ -788,14 +783,14 @@ init_reg_last_arrays (void) { unsigned int nregs = combine_max_regno; - memset ((char *) reg_last_death, 0, nregs * sizeof (rtx)); - memset ((char *) reg_last_set, 0, nregs * sizeof (rtx)); - memset ((char *) reg_last_set_value, 0, nregs * sizeof (rtx)); - memset ((char *) reg_last_set_table_tick, 0, nregs * sizeof (int)); - memset ((char *) reg_last_set_label, 0, nregs * sizeof (int)); + memset (reg_last_death, 0, nregs * sizeof (rtx)); + memset (reg_last_set, 0, nregs * sizeof (rtx)); + memset (reg_last_set_value, 0, nregs * sizeof (rtx)); + memset (reg_last_set_table_tick, 0, nregs * sizeof (int)); + memset (reg_last_set_label, 0, nregs * sizeof (int)); memset (reg_last_set_invalid, 0, nregs * sizeof (char)); - memset ((char *) reg_last_set_mode, 0, nregs * sizeof (enum machine_mode)); - memset ((char *) reg_last_set_nonzero_bits, 0, nregs * sizeof (HOST_WIDE_INT)); + memset (reg_last_set_mode, 0, nregs * sizeof (enum machine_mode)); + memset (reg_last_set_nonzero_bits, 0, nregs * sizeof (HOST_WIDE_INT)); memset (reg_last_set_sign_bit_copies, 0, nregs * sizeof (char)); } |