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/conflict.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/conflict.c')
-rw-r--r-- | gcc/conflict.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/conflict.c b/gcc/conflict.c index 0aec927..9b63773 100644 --- a/gcc/conflict.c +++ b/gcc/conflict.c @@ -148,8 +148,7 @@ arc_eq (const void *arcp1, const void *arcp2) conflict_graph conflict_graph_new (int num_regs) { - conflict_graph graph - = (conflict_graph) xmalloc (sizeof (struct conflict_graph_def)); + conflict_graph graph = xmalloc (sizeof (struct conflict_graph_def)); graph->num_regs = num_regs; /* Set up the hash table. No delete action is specified; memory @@ -161,8 +160,7 @@ conflict_graph_new (int num_regs) obstack_init (&graph->arc_obstack); /* Create and zero the lookup table by register number. */ - graph->neighbor_heads - = (conflict_graph_arc *) xmalloc (num_regs * sizeof (conflict_graph_arc)); + graph->neighbor_heads = xmalloc (num_regs * sizeof (conflict_graph_arc)); memset (graph->neighbor_heads, 0, num_regs * sizeof (conflict_graph_arc)); return graph; @@ -206,8 +204,7 @@ conflict_graph_add (conflict_graph graph, int reg1, int reg2) /* Allocate an arc. */ arc - = (conflict_graph_arc) - obstack_alloc (&graph->arc_obstack, + = obstack_alloc (&graph->arc_obstack, sizeof (struct conflict_graph_arc_def)); /* Record the reg numbers. */ |