Commit Graph

132592 Commits

Author SHA1 Message Date
Oleg Endo
e3d59c5e73 re PR target/62312 ([SH] Invalid operands for opcode div0s)
gcc/
	PR target/62312
	* config/sh/sh.md (*cmp_div0s_0): Add missing constraints.

gcc/testsuite/
	PR target/62312
	* gcc.c-torture/compile/pr62312.c: New.

From-SVN: r214804
2014-09-01 22:25:09 +00:00
Andi Kleen
e04733ee53 Support slim LTO bootstrap
Change the bootstrap-lto config file to use slim (non fat) LTO..
Speeds up the LTO bootstrap by ~18% on a 4 core system.

This requires using gcc-ar/ranlib in post stage 1 builds, so these
are passed to all sub builds.

config/:

2014-09-01  Andi Kleen  <ak@linux.intel.com>

	* bootstrap-lto.mk: Implement slim bootstrap.

/:
2014-09-01  Andi Kleen  <ak@linux.intel.com>

	* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Add LTO_EXPORTS.
	POSTSTAGE1_FLAGS_TO_PASS):  Add LTO_FLAGS_TO_PASS.
	* Makefile.in: Regenerate.

From-SVN: r214801
2014-09-01 16:41:28 +00:00
Andi Kleen
b5617e5f69 Add -B support to gcc-ar/ranlib/nm
To use gcc-{ar,ranlib} for boot strap we need to add a -B option
to the tool. Since ar has weird and unusual argument conventions
implement the code by hand instead of using any libraries.

gcc/:

2014-09-01  Andi Kleen  <ak@linux.intel.com>

	* file-find.c (add_prefix_begin): Add.
	(do_add_prefix): Rename from add_prefix with first argument.
	(add_prefix): Add new wrapper.
	* file-find.h (add_prefix_begin): Add.
	* gcc-ar.c (main): Support -B option.

From-SVN: r214800
2014-09-01 16:41:17 +00:00
Maciej W. Rozycki
fc4f981d25 * gcc.dg/tree-ssa/loop-19.c: Exclude classic FPU Power targets.
From-SVN: r214798
2014-09-01 14:54:13 +00:00
Maciej W. Rozycki
3c88b88a81 target-supports.exp (check_effective_target_arm_cortex_m): Return right away if !arm*-*-*.
* lib/target-supports.exp (check_effective_target_arm_cortex_m):
	Return right away if !arm*-*-*.

From-SVN: r214797
2014-09-01 14:43:13 +00:00
Segher Boessenkool
eddcad13f9 genemit.c: Include dumpfile.h.
2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>

	* genemit.c: Include dumpfile.h.
	(gen_split): Print name of splitter function to dump file.

From-SVN: r214796
2014-09-01 16:30:00 +02:00
Richard Biener
a0791dccfd tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call): Use stack auto_vecs for constraint expressions.
2014-09-01  Richard Biener  <rguenther@suse.de>

	* tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
	Use stack auto_vecs for constraint expressions.
	(find_func_aliases_for_call): Likewise.
	(find_func_aliases): Likewise.
	(find_func_clobbers): Likewise.

From-SVN: r214795
2014-09-01 13:38:31 +00:00
Richard Biener
27d79c2181 tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the operands vector in most cases.
2014-09-01  Richard Biener  <rguenther@suse.de>

	* tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
	operands vector in most cases.  Remove redundant code.

From-SVN: r214794
2014-09-01 13:37:53 +00:00
Bernd Schmidt
d3b3d993ee Move almost all unsorted c-torture tests to compile.
* gcc.c-torture/unsorted/386.c: Move to ...
	* gcc.c-torture/compile/386.c: ... here.
	* gcc.c-torture/unsorted/86.c: Move to ...
	* gcc.c-torture/compile/86.c: ... here.
	* gcc.c-torture/unsorted/a1.c: Move to ...
	* gcc.c-torture/compile/a1.c: ... here.
	* gcc.c-torture/unsorted/a3.c: Move to ...
	* gcc.c-torture/compile/a3.c: ... here.
	* gcc.c-torture/unsorted/aaa.c: Move to ...
	* gcc.c-torture/compile/aaa.c: ... here.
	* gcc.c-torture/unsorted/aa.c: Move to ...
	* gcc.c-torture/compile/aa.c: ... here.
	* gcc.c-torture/unsorted/abs.c: Move to ...
	* gcc.c-torture/compile/abs.c: ... here.
	* gcc.c-torture/unsorted/a.c: Move to ...
	* gcc.c-torture/compile/a.c: ... here.
	* gcc.c-torture/unsorted/ac.c: Move to ...
	* gcc.c-torture/compile/ac.c: ... here.
	* gcc.c-torture/unsorted/acc.c: Move to ...
	* gcc.c-torture/compile/acc.c: ... here.
	* gcc.c-torture/unsorted/add386.c: Move to ...
	* gcc.c-torture/compile/add386.c: ... here.
	* gcc.c-torture/unsorted/add.c: Move to ...
	* gcc.c-torture/compile/add.c: ... here.
	* gcc.c-torture/unsorted/addcc.c: Move to ...
	* gcc.c-torture/compile/addcc.c: ... here.
	* gcc.c-torture/unsorted/andm.c: Move to ...
	* gcc.c-torture/compile/andm.c: ... here.
	* gcc.c-torture/unsorted/andmem.c: Move to ...
	* gcc.c-torture/compile/andmem.c: ... here.
	* gcc.c-torture/unsorted/andn.c: Move to ...
	* gcc.c-torture/compile/andn.c: ... here.
	* gcc.c-torture/unsorted/andok.c: Move to ...
	* gcc.c-torture/compile/andok.c: ... here.
	* gcc.c-torture/unsorted/andsi.c: Move to ...
	* gcc.c-torture/compile/andsi.c: ... here.
	* gcc.c-torture/unsorted/andsparc.c: Move to ...
	* gcc.c-torture/compile/andsparc.c: ... here.
	* gcc.c-torture/unsorted/aos.c: Move to ...
	* gcc.c-torture/compile/aos.c: ... here.
	* gcc.c-torture/unsorted/arr.c: Move to ...
	* gcc.c-torture/compile/arr.c: ... here.
	* gcc.c-torture/unsorted/as.c: Move to ...
	* gcc.c-torture/compile/as.c: ... here.
	* gcc.c-torture/unsorted/ase.c: Move to ...
	* gcc.c-torture/compile/ase.c: ... here.
	* gcc.c-torture/unsorted/b1.c: Move to ...
	* gcc.c-torture/compile/b1.c: ... here.
	* gcc.c-torture/unsorted/b2.c: Move to ...
	* gcc.c-torture/compile/b2.c: ... here.
	* gcc.c-torture/unsorted/b3.c: Move to ...
	* gcc.c-torture/compile/b3.c: ... here.
	* gcc.c-torture/unsorted/b88.c: Move to ...
	* gcc.c-torture/compile/b88.c: ... here.
	* gcc.c-torture/unsorted/bad.c: Move to ...
	* gcc.c-torture/compile/bad.c: ... here.
	* gcc.c-torture/unsorted/band.c: Move to ...
	* gcc.c-torture/compile/band.c: ... here.
	* gcc.c-torture/unsorted/bb0.c: Move to ...
	* gcc.c-torture/compile/bb0.c: ... here.
	* gcc.c-torture/unsorted/bb1.c: Move to ...
	* gcc.c-torture/compile/bb1.c: ... here.
	* gcc.c-torture/unsorted/bbb.c: Move to ...
	* gcc.c-torture/compile/bbb.c: ... here.
	* gcc.c-torture/unsorted/b.c: Move to ...
	* gcc.c-torture/compile/b.c: ... here.
	* gcc.c-torture/unsorted/bc.c: Move to ...
	* gcc.c-torture/compile/bc.c: ... here.
	* gcc.c-torture/unsorted/bcopy.c: Move to ...
	* gcc.c-torture/compile/bcopy.c: ... here.
	* gcc.c-torture/unsorted/bf.c: Move to ...
	* gcc.c-torture/compile/bf.c: ... here.
	* gcc.c-torture/unsorted/bfins.c: Move to ...
	* gcc.c-torture/compile/bfins.c: ... here.
	* gcc.c-torture/unsorted/bfx.c: Move to ...
	* gcc.c-torture/compile/bfx.c: ... here.
	* gcc.c-torture/unsorted/bge.c: Move to ...
	* gcc.c-torture/compile/bge.c: ... here.
	* gcc.c-torture/unsorted/bit.c: Move to ...
	* gcc.c-torture/compile/bit.c: ... here.
	* gcc.c-torture/unsorted/bitf.c: Move to ...
	* gcc.c-torture/compile/bitf.c: ... here.
	* gcc.c-torture/unsorted/bitw.c: Move to ...
	* gcc.c-torture/compile/bitw.c: ... here.
	* gcc.c-torture/unsorted/blk.c: Move to ...
	* gcc.c-torture/compile/blk.c: ... here.
	* gcc.c-torture/unsorted/bt386.c: Move to ...
	* gcc.c-torture/compile/bt386.c: ... here.
	* gcc.c-torture/unsorted/bt.c: Move to ...
	* gcc.c-torture/compile/bt.c: ... here.
	* gcc.c-torture/unsorted/BUG11.c: Move to ...
	* gcc.c-torture/compile/BUG11.c: ... here.
	* gcc.c-torture/unsorted/BUG12.c: Move to ...
	* gcc.c-torture/compile/BUG12.c: ... here.
	* gcc.c-torture/unsorted/BUG13.c: Move to ...
	* gcc.c-torture/compile/BUG13.c: ... here.
	* gcc.c-torture/unsorted/BUG16.c: Move to ...
	* gcc.c-torture/compile/BUG16.c: ... here.
	* gcc.c-torture/unsorted/BUG17.c: Move to ...
	* gcc.c-torture/compile/BUG17.c: ... here.
	* gcc.c-torture/unsorted/BUG18.c: Move to ...
	* gcc.c-torture/compile/BUG18.c: ... here.
	* gcc.c-torture/unsorted/BUG1.c: Move to ...
	* gcc.c-torture/compile/BUG1.c: ... here.
	* gcc.c-torture/unsorted/BUG21.c: Move to ...
	* gcc.c-torture/compile/BUG21.c: ... here.
	* gcc.c-torture/unsorted/BUG22.c: Move to ...
	* gcc.c-torture/compile/BUG22.c: ... here.
	* gcc.c-torture/unsorted/BUG23.c: Move to ...
	* gcc.c-torture/compile/BUG23.c: ... here.
	* gcc.c-torture/unsorted/BUG24.c: Move to ...
	* gcc.c-torture/compile/BUG24.c: ... here.
	* gcc.c-torture/unsorted/BUG25.c: Move to ...
	* gcc.c-torture/compile/BUG25.c: ... here.
	* gcc.c-torture/unsorted/BUG2.c: Move to ...
	* gcc.c-torture/compile/BUG2.c: ... here.
	* gcc.c-torture/unsorted/BUG3.c: Move to ...
	* gcc.c-torture/compile/BUG3.c: ... here.
	* gcc.c-torture/unsorted/BUG4.c: Move to ...
	* gcc.c-torture/compile/BUG4.c: ... here.
	* gcc.c-torture/unsorted/BUG5.c: Move to ...
	* gcc.c-torture/compile/BUG5.c: ... here.
	* gcc.c-torture/unsorted/BUG6.c: Move to ...
	* gcc.c-torture/compile/BUG6.c: ... here.
	* gcc.c-torture/unsorted/bug.c: Move to ...
	* gcc.c-torture/compile/bug.c: ... here.
	* gcc.c-torture/unsorted/bugc.c: Move to ...
	* gcc.c-torture/compile/bugc.c: ... here.
	* gcc.c-torture/unsorted/buns.c: Move to ...
	* gcc.c-torture/compile/buns.c: ... here.
	* gcc.c-torture/unsorted/bx.c: Move to ...
	* gcc.c-torture/compile/bx.c: ... here.
	* gcc.c-torture/unsorted/c1.c: Move to ...
	* gcc.c-torture/compile/c1.c: ... here.
	* gcc.c-torture/unsorted/c2.c: Move to ...
	* gcc.c-torture/compile/c2.c: ... here.
	* gcc.c-torture/unsorted/call386.c: Move to ...
	* gcc.c-torture/compile/call386.c: ... here.
	* gcc.c-torture/unsorted/call.c: Move to ...
	* gcc.c-torture/compile/call.c: ... here.
	* gcc.c-torture/unsorted/callind.c: Move to ...
	* gcc.c-torture/compile/callind.c: ... here.
	* gcc.c-torture/unsorted/c.c: Move to ...
	* gcc.c-torture/compile/c.c: ... here.
	* gcc.c-torture/unsorted/cc.c: Move to ...
	* gcc.c-torture/compile/cc.c: ... here.
	* gcc.c-torture/unsorted/charmtst.c: Move to ...
	* gcc.c-torture/compile/charmtst.c: ... here.
	* gcc.c-torture/unsorted/cmb.c: Move to ...
	* gcc.c-torture/compile/cmb.c: ... here.
	* gcc.c-torture/unsorted/cmp.c: Move to ...
	* gcc.c-torture/compile/cmp.c: ... here.
	* gcc.c-torture/unsorted/cmphi.c: Move to ...
	* gcc.c-torture/compile/cmphi.c: ... here.
	* gcc.c-torture/unsorted/cmpsi386.c: Move to ...
	* gcc.c-torture/compile/cmpsi386.c: ... here.
	* gcc.c-torture/unsorted/cmul.c: Move to ...
	* gcc.c-torture/compile/cmul.c: ... here.
	* gcc.c-torture/unsorted/cn1.c: Move to ...
	* gcc.c-torture/compile/cn1.c: ... here.
	* gcc.c-torture/unsorted/comb.c: Move to ...
	* gcc.c-torture/compile/comb.c: ... here.
	* gcc.c-torture/unsorted/consec.c: Move to ...
	* gcc.c-torture/compile/consec.c: ... here.
	* gcc.c-torture/unsorted/const.c: Move to ...
	* gcc.c-torture/compile/const.c: ... here.
	* gcc.c-torture/unsorted/conv.c: Move to ...
	* gcc.c-torture/compile/conv.c: ... here.
	* gcc.c-torture/unsorted/conv_tst.c: Move to ...
	* gcc.c-torture/compile/conv_tst.c: ... here.
	* gcc.c-torture/unsorted/cp.c: Move to ...
	* gcc.c-torture/compile/cp.c: ... here.
	* gcc.c-torture/unsorted/csebug.c: Move to ...
	* gcc.c-torture/compile/csebug.c: ... here.
	* gcc.c-torture/unsorted/cvt.c: Move to ...
	* gcc.c-torture/compile/cvt.c: ... here.
	* gcc.c-torture/unsorted/dblbug.c: Move to ...
	* gcc.c-torture/compile/dblbug.c: ... here.
	* gcc.c-torture/unsorted/dbl_parm.c: Move to ...
	* gcc.c-torture/compile/dbl_parm.c: ... here.
	* gcc.c-torture/unsorted/d.c: Move to ...
	* gcc.c-torture/compile/d.c: ... here.
	* gcc.c-torture/unsorted/ddd.c: Move to ...
	* gcc.c-torture/compile/ddd.c: ... here.
	* gcc.c-torture/unsorted/dead.c: Move to ...
	* gcc.c-torture/compile/dead.c: ... here.
	* gcc.c-torture/unsorted/delay.c: Move to ...
	* gcc.c-torture/compile/delay.c: ... here.
	* gcc.c-torture/unsorted/DFcmp.c: Move to ...
	* gcc.c-torture/compile/DFcmp.c: ... here.  Require int32plus.
	* gcc.c-torture/unsorted/di.c: Move to ...
	* gcc.c-torture/compile/di.c: ... here.
	* gcc.c-torture/unsorted/dic.c: Move to ...
	* gcc.c-torture/compile/dic.c: ... here.
	* gcc.c-torture/unsorted/dilayout.c: Move to ...
	* gcc.c-torture/compile/dilayout.c: ... here.
	* gcc.c-torture/unsorted/dimove.c: Move to ...
	* gcc.c-torture/compile/dimove.c: ... here.
	* gcc.c-torture/unsorted/dimul.c: Move to ...
	* gcc.c-torture/compile/dimul.c: ... here.
	* gcc.c-torture/unsorted/div.c: Move to ...
	* gcc.c-torture/compile/div.c: ... here.
	* gcc.c-torture/unsorted/divdf.c: Move to ...
	* gcc.c-torture/compile/divdf.c: ... here.
	* gcc.c-torture/unsorted/dm.c: Move to ...
	* gcc.c-torture/compile/dm.c: ... here.
	* gcc.c-torture/unsorted/dshift.c: Move to ...
	* gcc.c-torture/compile/dshift.c: ... here.
	* gcc.c-torture/unsorted/e.c: Move to ...
	* gcc.c-torture/compile/e.c: ... here.
	* gcc.c-torture/unsorted/ex.c: Move to ...
	* gcc.c-torture/compile/ex.c: ... here.
	* gcc.c-torture/unsorted/ext.c: Move to ...
	* gcc.c-torture/compile/ext.c: ... here.
	* gcc.c-torture/unsorted/f1.c: Move to ...
	* gcc.c-torture/compile/f1.c: ... here.
	* gcc.c-torture/unsorted/f2.c: Move to ...
	* gcc.c-torture/compile/f2.c: ... here.
	* gcc.c-torture/unsorted/fdmul.c: Move to ...
	* gcc.c-torture/compile/fdmul.c: ... here.
	* gcc.c-torture/unsorted/float.c: Move to ...
	* gcc.c-torture/compile/float.c: ... here.
	* gcc.c-torture/unsorted/flo.c: Move to ...
	* gcc.c-torture/compile/flo.c: ... here.
	* gcc.c-torture/unsorted/flt_const.c: Move to ...
	* gcc.c-torture/compile/flt_const.c: ... here.
	* gcc.c-torture/unsorted/fnul.c: Move to ...
	* gcc.c-torture/compile/fnul.c: ... here.
	* gcc.c-torture/unsorted/foo.c: Move to ...
	* gcc.c-torture/compile/foo.c: ... here.
	* gcc.c-torture/unsorted/forgetcc.c: Move to ...
	* gcc.c-torture/compile/forgetcc.c: ... here.
	* gcc.c-torture/unsorted/fq.c: Move to ...
	* gcc.c-torture/compile/fq.c: ... here.
	* gcc.c-torture/unsorted/g.c: Move to ...
	* gcc.c-torture/compile/g.c: ... here.
	* gcc.c-torture/unsorted/gen_tst.c: Move to ...
	* gcc.c-torture/compile/gen_tst.c: ... here.
	* gcc.c-torture/unsorted/glob.c: Move to ...
	* gcc.c-torture/compile/glob.c: ... here.
	* gcc.c-torture/unsorted/gronk.c: Move to ...
	* gcc.c-torture/compile/gronk.c: ... here.
	* gcc.c-torture/unsorted/hibug.c: Move to ...
	* gcc.c-torture/compile/hibug.c: ... here.
	* gcc.c-torture/unsorted/hi.c: Move to ...
	* gcc.c-torture/compile/hi.c: ... here.
	* gcc.c-torture/unsorted/HIcmp.c: Move to ...
	* gcc.c-torture/compile/HIcmp.c: ... here.
	* gcc.c-torture/unsorted/HIset.c: Move to ...
	* gcc.c-torture/compile/HIset.c: ... here.
	* gcc.c-torture/unsorted/i.c: Move to ...
	* gcc.c-torture/compile/i.c: ... here.
	* gcc.c-torture/unsorted/i++.c: Move to ...
	* gcc.c-torture/compile/i++.c: ... here.
	* gcc.c-torture/unsorted/ic.c: Move to ...
	* gcc.c-torture/compile/ic.c: ... here.
	* gcc.c-torture/unsorted/icmp.c: Move to ...
	* gcc.c-torture/compile/icmp.c: ... here.
	* gcc.c-torture/unsorted/ifreg.c: Move to ...
	* gcc.c-torture/compile/ifreg.c: ... here.
	* gcc.c-torture/unsorted/imm.c: Move to ...
	* gcc.c-torture/compile/imm.c: ... here.
	* gcc.c-torture/unsorted/isinf.c: Move to ...
	* gcc.c-torture/compile/isinf.c: ... here.
	* gcc.c-torture/unsorted/jmp.c: Move to ...
	* gcc.c-torture/compile/jmp.c: ... here.
	* gcc.c-torture/unsorted/jumptab.c: Move to ...
	* gcc.c-torture/compile/jumptab.c: ... here.
	* gcc.c-torture/unsorted/layout.c: Move to ...
	* gcc.c-torture/compile/layout.c: ... here.
	* gcc.c-torture/unsorted/lbug.c: Move to ...
	* gcc.c-torture/compile/lbug.c: ... here.
	* gcc.c-torture/unsorted/l.c: Move to ...
	* gcc.c-torture/compile/l.c: ... here.
	* gcc.c-torture/unsorted/ll1.c: Move to ...
	* gcc.c-torture/compile/ll1.c: ... here.
	* gcc.c-torture/unsorted/llbug.c: Move to ...
	* gcc.c-torture/compile/llbug.c: ... here.
	* gcc.c-torture/unsorted/lll.c: Move to ...
	* gcc.c-torture/compile/lll.c: ... here.
	* gcc.c-torture/unsorted/load8.c: Move to ...
	* gcc.c-torture/compile/load8.c: ... here.
	* gcc.c-torture/unsorted/loadhicc.c: Move to ...
	* gcc.c-torture/compile/loadhicc.c: ... here.
	* gcc.c-torture/unsorted/log2.c: Move to ...
	* gcc.c-torture/compile/log2.c: ... here.
	* gcc.c-torture/unsorted/logic.c: Move to ...
	* gcc.c-torture/compile/logic.c: ... here.
	* gcc.c-torture/unsorted/loop-1.c: Move to ...
	* gcc.c-torture/compile/loop-1.c: ... here.
	* gcc.c-torture/unsorted/loop386.c: Move to ...
	* gcc.c-torture/compile/loop386.c: ... here.
	* gcc.c-torture/unsorted/lop.c: Move to ...
	* gcc.c-torture/compile/lop.c: ... here.
	* gcc.c-torture/unsorted/m1.c: Move to ...
	* gcc.c-torture/compile/m1.c: ... here.
	* gcc.c-torture/unsorted/m2.c: Move to ...
	* gcc.c-torture/compile/m2.c: ... here.
	* gcc.c-torture/unsorted/m5.c: Move to ...
	* gcc.c-torture/compile/m5.c: ... here.
	* gcc.c-torture/unsorted/m68.c: Move to ...
	* gcc.c-torture/compile/m68.c: ... here.
	* gcc.c-torture/unsorted/mbyte.c: Move to ...
	* gcc.c-torture/compile/mbyte.c: ... here.
	* gcc.c-torture/unsorted/mchar.c: Move to ...
	* gcc.c-torture/compile/mchar.c: ... here.
	* gcc.c-torture/unsorted/mcmp.c: Move to ...
	* gcc.c-torture/compile/mcmp.c: ... here.
	* gcc.c-torture/unsorted/mdouble.c: Move to ...
	* gcc.c-torture/compile/mdouble.c: ... here.
	* gcc.c-torture/unsorted/memtst.c: Move to ...
	* gcc.c-torture/compile/memtst.c: ... here.
	* gcc.c-torture/unsorted/miscomp.c: Move to ...
	* gcc.c-torture/compile/miscomp.c: ... here.
	* gcc.c-torture/unsorted/mm.c: Move to ...
	* gcc.c-torture/compile/mm.c: ... here.
	* gcc.c-torture/unsorted/mod.c: Move to ...
	* gcc.c-torture/compile/mod.c: ... here.
	* gcc.c-torture/unsorted/modcc.c: Move to ...
	* gcc.c-torture/compile/modcc.c: ... here.
	* gcc.c-torture/unsorted/move.c: Move to ...
	* gcc.c-torture/compile/move.c: ... here.
	* gcc.c-torture/unsorted/move_qhi.c: Move to ...
	* gcc.c-torture/compile/move_qhi.c: ... here.
	* gcc.c-torture/unsorted/mregtst.c: Move to ...
	* gcc.c-torture/compile/mregtst.c: ... here.
	* gcc.c-torture/unsorted/msp.c: Move to ...
	* gcc.c-torture/compile/msp.c: ... here.
	* gcc.c-torture/unsorted/mtst.c: Move to ...
	* gcc.c-torture/compile/mtst.c: ... here.
	* gcc.c-torture/unsorted/mu.c: Move to ...
	* gcc.c-torture/compile/mu.c: ... here.
	* gcc.c-torture/unsorted/mul.c: Move to ...
	* gcc.c-torture/compile/mul.c: ... here.
	* gcc.c-torture/unsorted/mword1.c: Move to ...
	* gcc.c-torture/compile/mword1.c: ... here.
	* gcc.c-torture/unsorted/mword.c: Move to ...
	* gcc.c-torture/compile/mword.c: ... here.
	* gcc.c-torture/unsorted/n1.c: Move to ...
	* gcc.c-torture/compile/n1.c: ... here.
	* gcc.c-torture/unsorted/nand.c: Move to ...
	* gcc.c-torture/compile/nand.c: ... here.
	* gcc.c-torture/unsorted/n.c: Move to ...
	* gcc.c-torture/compile/n.c: ... here.
	* gcc.c-torture/unsorted/neg.c: Move to ...
	* gcc.c-torture/compile/neg.c: ... here.
	* gcc.c-torture/unsorted/o.c: Move to ...
	* gcc.c-torture/compile/o.c: ... here.
	* gcc.c-torture/unsorted/omit.c: Move to ...
	* gcc.c-torture/compile/omit.c: ... here.
	* gcc.c-torture/unsorted/opout.c: Move to ...
	* gcc.c-torture/compile/opout.c: ... here.
	* gcc.c-torture/unsorted/opt.c: Move to ...
	* gcc.c-torture/compile/opt.c: ... here.
	* gcc.c-torture/unsorted/or386.c: Move to ...
	* gcc.c-torture/compile/or386.c: ... here.
	* gcc.c-torture/unsorted/or.c: Move to ...
	* gcc.c-torture/compile/or.c: ... here.
	* gcc.c-torture/unsorted/parms.c: Move to ...
	* gcc.c-torture/compile/parms.c: ... here.
	* gcc.c-torture/unsorted/pass.c: Move to ...
	* gcc.c-torture/compile/pass.c: ... here.
	* gcc.c-torture/unsorted/p.c: Move to ...
	* gcc.c-torture/compile/p.c: ... here.
	* gcc.c-torture/unsorted/pmt.c: Move to ...
	* gcc.c-torture/compile/pmt.c: ... here.
	* gcc.c-torture/unsorted/poor.c: Move to ...
	* gcc.c-torture/compile/poor.c: ... here.
	* gcc.c-torture/unsorted/pp.c: Move to ...
	* gcc.c-torture/compile/pp.c: ... here.
	* gcc.c-torture/unsorted/pret-arg.c: Move to ...
	* gcc.c-torture/compile/pret-arg.c: ... here.
	* gcc.c-torture/unsorted/pyr2.c: Move to ...
	* gcc.c-torture/compile/pyr2.c: ... here.
	* gcc.c-torture/unsorted/PYRBUG.c: Move to ...
	* gcc.c-torture/compile/PYRBUG.c: ... here.
	* gcc.c-torture/unsorted/pyr.c: Move to ...
	* gcc.c-torture/compile/pyr.c: ... here.
	* gcc.c-torture/unsorted/q.c: Move to ...
	* gcc.c-torture/compile/q.c: ... here.
	* gcc.c-torture/unsorted/QIcmp.c: Move to ...
	* gcc.c-torture/compile/QIcmp.c: ... here.
	* gcc.c-torture/unsorted/QIset.c: Move to ...
	* gcc.c-torture/compile/QIset.c: ... here.
	* gcc.c-torture/unsorted/r1.c: Move to ...
	* gcc.c-torture/compile/r1.c: ... here.
	* gcc.c-torture/unsorted/r.c: Move to ...
	* gcc.c-torture/compile/r.c: ... here.
	* gcc.c-torture/unsorted/rel.c: Move to ...
	* gcc.c-torture/compile/rel.c: ... here.
	* gcc.c-torture/unsorted/rmsc.c: Move to ...
	* gcc.c-torture/compile/rmsc.c: ... here.
	* gcc.c-torture/unsorted/round.c: Move to ...
	* gcc.c-torture/compile/round.c: ... here.
	* gcc.c-torture/unsorted/run.c: Move to ...
	* gcc.c-torture/compile/run.c: ... here.
	* gcc.c-torture/unsorted/sar.c: Move to ...
	* gcc.c-torture/compile/sar.c: ... here.
	* gcc.c-torture/unsorted/s.c: Move to ...
	* gcc.c-torture/compile/s.c: ... here.
	* gcc.c-torture/unsorted/scal.c: Move to ...
	* gcc.c-torture/compile/scal.c: ... here.
	* gcc.c-torture/unsorted/sc.c: Move to ...
	* gcc.c-torture/compile/sc.c: ... here.
	* gcc.c-torture/unsorted/scc.c: Move to ...
	* gcc.c-torture/compile/scc.c: ... here.
	* gcc.c-torture/unsorted/scond.c: Move to ...
	* gcc.c-torture/compile/scond.c: ... here.
	* gcc.c-torture/unsorted/selfrec.c: Move to ...
	* gcc.c-torture/compile/selfrec.c: ... here.
	* gcc.c-torture/unsorted/seq.c: Move to ...
	* gcc.c-torture/compile/seq.c: ... here.
	* gcc.c-torture/unsorted/set386.c: Move to ...
	* gcc.c-torture/compile/set386.c: ... here.
	* gcc.c-torture/unsorted/set88.c: Move to ...
	* gcc.c-torture/compile/set88.c: ... here.
	* gcc.c-torture/unsorted/SFset.c: Move to ...
	* gcc.c-torture/compile/SFset.c: ... here.  Require int32plus.
	* gcc.c-torture/unsorted/shand.c: Move to ...
	* gcc.c-torture/compile/shand.c: ... here.
	* gcc.c-torture/unsorted/sh.c: Move to ...
	* gcc.c-torture/compile/sh.c: ... here.
	* gcc.c-torture/unsorted/shft.c: Move to ...
	* gcc.c-torture/compile/shft.c: ... here.
	* gcc.c-torture/unsorted/shift.c: Move to ...
	* gcc.c-torture/compile/shift.c: ... here.
	* gcc.c-torture/unsorted/shloop.c: Move to ...
	* gcc.c-torture/compile/shloop.c: ... here.
	* gcc.c-torture/unsorted/shm.c: Move to ...
	* gcc.c-torture/compile/shm.c: ... here.
	* gcc.c-torture/unsorted/SIcmp.c: Move to ...
	* gcc.c-torture/compile/SIcmp.c: ... here.
	* gcc.c-torture/unsorted/signext2.c: Move to ...
	* gcc.c-torture/compile/signext2.c: ... here.
	* gcc.c-torture/unsorted/signext.c: Move to ...
	* gcc.c-torture/compile/signext.c: ... here.
	* gcc.c-torture/unsorted/sim.c: Move to ...
	* gcc.c-torture/compile/sim.c: ... here.
	* gcc.c-torture/unsorted/simple.c: Move to ...
	* gcc.c-torture/compile/simple.c: ... here.
	* gcc.c-torture/unsorted/SIset.c: Move to ...
	* gcc.c-torture/compile/SIset.c: ... here.
	* gcc.c-torture/unsorted/sne.c: Move to ...
	* gcc.c-torture/compile/sne.c: ... here.
	* gcc.c-torture/unsorted/sound.c: Move to ...
	* gcc.c-torture/compile/sound.c: ... here.
	* gcc.c-torture/unsorted/sparcbug.c: Move to ...
	* gcc.c-torture/compile/sparcbug.c: ... here.
	* gcc.c-torture/unsorted/speed.c: Move to ...
	* gcc.c-torture/compile/speed.c: ... here.
	* gcc.c-torture/unsorted/stor.c: Move to ...
	* gcc.c-torture/compile/stor.c: ... here.
	* gcc.c-torture/unsorted/store0.c: Move to ...
	* gcc.c-torture/compile/store0.c: ... here.
	* gcc.c-torture/unsorted/storecc.c: Move to ...
	* gcc.c-torture/compile/storecc.c: ... here.
	* gcc.c-torture/unsorted/str.c: Move to ...
	* gcc.c-torture/compile/str.c: ... here.
	* gcc.c-torture/unsorted/stru.c: Move to ...
	* gcc.c-torture/compile/stru.c: ... here.
	* gcc.c-torture/unsorted/structret.c: Move to ...
	* gcc.c-torture/compile/structret.c: ... here.
	* gcc.c-torture/unsorted/stuct.c: Move to ...
	* gcc.c-torture/compile/stuct.c: ... here.
	* gcc.c-torture/unsorted/sub32.c: Move to ...
	* gcc.c-torture/compile/sub32.c: ... here.
	* gcc.c-torture/unsorted/subcc.c: Move to ...
	* gcc.c-torture/compile/subcc.c: ... here.
	* gcc.c-torture/unsorted/subcse.c: Move to ...
	* gcc.c-torture/compile/subcse.c: ... here.
	* gcc.c-torture/unsorted/sym.c: Move to ...
	* gcc.c-torture/compile/sym.c: ... here.
	* gcc.c-torture/unsorted/symconst.c: Move to ...
	* gcc.c-torture/compile/symconst.c: ... here.
	* gcc.c-torture/unsorted/t.c: Move to ...
	* gcc.c-torture/compile/t.c: ... here.
	* gcc.c-torture/unsorted/test.c: Move to ...
	* gcc.c-torture/compile/test.c: ... here.
	* gcc.c-torture/unsorted/test-flow.c: Move to ...
	* gcc.c-torture/compile/test-flow.c: ... here.
	* gcc.c-torture/unsorted/test-loop.c: Move to ...
	* gcc.c-torture/compile/test-loop.c: ... here.
	* gcc.c-torture/unsorted/time.c: Move to ...
	* gcc.c-torture/compile/time.c: ... here.
	* gcc.c-torture/unsorted/tmp.c: Move to ...
	* gcc.c-torture/compile/tmp.c: ... here.
	* gcc.c-torture/unsorted/trivial.c: Move to ...
	* gcc.c-torture/compile/trivial.c: ... here.
	* gcc.c-torture/unsorted/trunc.c: Move to ...
	* gcc.c-torture/compile/trunc.c: ... here.
	* gcc.c-torture/unsorted/u.c: Move to ...
	* gcc.c-torture/compile/u.c: ... here.
	* gcc.c-torture/unsorted/udconvert.c: Move to ...
	* gcc.c-torture/compile/udconvert.c: ... here.
	* gcc.c-torture/unsorted/udivmod4.c: Move to ...
	* gcc.c-torture/compile/udivmod4.c: ... here.
	* gcc.c-torture/unsorted/UHIcmp.c: Move to ...
	* gcc.c-torture/compile/UHIcmp.c: ... here.
	* gcc.c-torture/unsorted/uns.c: Move to ...
	* gcc.c-torture/compile/uns.c: ... here.
	* gcc.c-torture/unsorted/uns_tst.c: Move to ...
	* gcc.c-torture/compile/uns_tst.c: ... here.
	* gcc.c-torture/unsorted/UQIcmp.c: Move to ...
	* gcc.c-torture/compile/UQIcmp.c: ... here.
	* gcc.c-torture/unsorted/USIcmp.c: Move to ...
	* gcc.c-torture/compile/USIcmp.c: ... here.
	* gcc.c-torture/unsorted/uuarg.c: Move to ...
	* gcc.c-torture/compile/uuarg.c: ... here.
	* gcc.c-torture/unsorted/v.c: Move to ...
	* gcc.c-torture/compile/v.c: ... here.
	* gcc.c-torture/unsorted/w.c: Move to ...
	* gcc.c-torture/compile/w.c: ... here.
	* gcc.c-torture/unsorted/ww.c: Move to ...
	* gcc.c-torture/compile/ww.c: ... here.
	* gcc.c-torture/unsorted/xb.c: Move to ...
	* gcc.c-torture/compile/xb.c: ... here.
	* gcc.c-torture/unsorted/xbg.c: Move to ...
	* gcc.c-torture/compile/xbg.c: ... here.
	* gcc.c-torture/unsorted/x.c: Move to ...
	* gcc.c-torture/compile/x.c: ... here.
	* gcc.c-torture/unsorted/xc.c: Move to ...
	* gcc.c-torture/compile/xc.c: ... here.
	* gcc.c-torture/unsorted/xcsebug.c: Move to ...
	* gcc.c-torture/compile/xcsebug.c: ... here.
	* gcc.c-torture/unsorted/xdi.c: Move to ...
	* gcc.c-torture/compile/xdi.c: ... here.
	* gcc.c-torture/unsorted/xfoo.c: Move to ...
	* gcc.c-torture/compile/xfoo.c: ... here.
	* gcc.c-torture/unsorted/xi.c: Move to ...
	* gcc.c-torture/compile/xi.c: ... here.
	* gcc.c-torture/unsorted/xlop.c: Move to ...
	* gcc.c-torture/compile/xlop.c: ... here.
	* gcc.c-torture/unsorted/xmtst.c: Move to ...
	* gcc.c-torture/compile/xmtst.c: ... here.
	* gcc.c-torture/unsorted/xneg.c: Move to ...
	* gcc.c-torture/compile/xneg.c: ... here.
	* gcc.c-torture/unsorted/xopt.c: Move to ...
	* gcc.c-torture/compile/xopt.c: ... here.
	* gcc.c-torture/unsorted/xor.c: Move to ...
	* gcc.c-torture/compile/xor.c: ... here.
	* gcc.c-torture/unsorted/xorn.c: Move to ...
	* gcc.c-torture/compile/xorn.c: ... here.
	* gcc.c-torture/unsorted/xp.c: Move to ...
	* gcc.c-torture/compile/xp.c: ... here.
	* gcc.c-torture/unsorted/xpp.c: Move to ...
	* gcc.c-torture/compile/xpp.c: ... here.
	* gcc.c-torture/unsorted/xs.c: Move to ...
	* gcc.c-torture/compile/xs.c: ... here.
	* gcc.c-torture/unsorted/xsh.c: Move to ...
	* gcc.c-torture/compile/xsh.c: ... here.
	* gcc.c-torture/unsorted/xz.c: Move to ...
	* gcc.c-torture/compile/xz.c: ... here.
	* gcc.c-torture/unsorted/xzz.c: Move to ...
	* gcc.c-torture/compile/xzz.c: ... here.

From-SVN: r214793
2014-09-01 13:30:41 +00:00
Olivier Hainque
2dbf50660d vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on $WIND_BASE instead of designating a harcoded arbitrary home dir.
* config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
        $WIND_BASE instead of designating a harcoded arbitrary home dir.
        (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.

From-SVN: r214792
2014-09-01 13:00:56 +00:00
Rainer Orth
d0ea292288 Fix typo in gcc.c-torture/execute/20010129-1.c
* gcc.c-torture/execute/20010129-1.c: Fix typo in -mtune.
	(abort, exit): Declare.

From-SVN: r214791
2014-09-01 12:55:30 +00:00
Richard Biener
26f3a4e144 tree-ssa-sccvn.h (copy_reference_ops_from_ref, [...]): Remove.
2014-09-01  Richard Biener  <rguenther@suse.de>

	* tree-ssa-sccvn.h (copy_reference_ops_from_ref,
	copy_reference_ops_from_call, vn_nary_op_compute_hash,
	vn_reference_compute_hash, vn_reference_insert): Remove.
	(vn_reference_lookup_call): New function.
	* tree-ssa-sccvn.c (vn_reference_compute_hash,
	copy_reference_ops_from_ref, copy_reference_ops_from_call,
	vn_reference_insert, vn_nary_op_compute_hash): Make static.
	(create_reference_ops_from_call): Remove.
	(vn_reference_lookup_3): Properly update shared_lookup_references.
	(vn_reference_lookup_pieces): Assert that we updated
	shared_lookup_references properly.
	(vn_reference_lookup): Likewise.
	(vn_reference_lookup_call): New function.
	(visit_reference_op_call): Use it.  Avoid re-building the
	reference ops.
	(visit_reference_op_load): Remove redundant lookup.
	(visit_reference_op_store): Perform special tail-merging work
	only when possibly doing tail-merging.
	(visit_use): Likewise.
	* tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.

From-SVN: r214787
2014-09-01 11:35:10 +00:00
Jakub Jelinek
a0107bd001 re PR target/62025 (Miscompilation of openssl sha512.c)
PR target/62025
	* sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
	returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
	(find_inc): Revert 2014-08-13 change.

From-SVN: r214786
2014-09-01 13:15:41 +02:00
Marek Polacek
e507a43338 re PR middle-end/61903 (signed integer overflow in expmed.c store_fixed_bit_filed_1)
PR middle-end/61903
	* expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
	Change the type of V to unsigned HOST_WIDE_INT.

From-SVN: r214781
2014-09-01 09:18:43 +00:00
Thomas Preud'homme
e3ef4162ba tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about the size of byte markers.
2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
    the size of byte markers.
    (do_shift_rotate): Fix confusion between host, target and marker byte
    size.
    (verify_symbolic_number_p): Likewise.
    (find_bswap_or_nop_1): Likewise.
    (find_bswap_or_nop): Likewise.

From-SVN: r214780
2014-09-01 09:07:00 +00:00
Olivier Hainque
6a810ff44d Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA, INSTALL_SCRIPT and INSTALL_PROGRAM as well.
gcc/
        * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
        INSTALL_SCRIPT and INSTALL_PROGRAM as well.

From-SVN: r214779
2014-09-01 08:43:47 +00:00
Jakub Jelinek
d30c76701b gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
* config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
	* gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
	(SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.

From-SVN: r214778
2014-09-01 10:26:51 +02:00
Yury Gribov
a2f581e142 re PR sanitizer/61897 (sanitizer internal compiler error: in build2_stat, at tree.c:4160)
2014-09-01  Yury Gribov  <y.gribov@samsung.com>

	PR sanitizer/61897
	PR sanitizer/62140

gcc/
	* asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
	(build_check_stmt): Likewise.
	(instrument_strlen_call): Likewise.
	(asan_expand_check_ifn): Likewise and fix types.
	(maybe_cast_to_ptrmode): New function.

gcc/testsuite/
	* c-c++-common/asan/pr62140-1.c: New test.
	* c-c++-common/asan/pr62140-2.c: New test.

From-SVN: r214777
2014-09-01 07:47:37 +00:00
GCC Administrator
4d9a2d9559 Daily bump.
From-SVN: r214776
2014-09-01 00:16:50 +00:00
Jan-Benedict Glaw
e04160794f Commit missing patch part
From-SVN: r214773
2014-08-31 22:48:22 +00:00
Jan-Benedict Glaw
d96be87b66 Fix build error with Debian's 4.8.1-2 due to wrong declaration
This patch fixes a non-matching declaration, which lets G++ 4.8.1 (as of
Debian's g++ package) barf:

g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/home/vaxbuild/repos/gcc/gcc -I/home/vaxbuild/repos/gcc/gcc/. -I/home/vaxbuild/repos/gcc/gcc/../include -I/home/vaxbuild/repos/gcc/gcc/../libcpp/include  -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libbacktrace    -o mcore.o -MT mcore.o -MMD -MP -MF ./.deps/mcore.TPo /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c: In function ‘const char* output_inline_const(machine_mode, rtx_def**)’:
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1216:82: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tnot\t%s\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                  ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1216:82: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1219:87: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\taddi\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                       ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1219:87: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1222:87: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tsubi\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                       ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1222:87: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1226:88: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\trsubi\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                        ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1226:88: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1229:89: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tbseti\t%s,%%P2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                         ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1229:89: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1232:89: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tbclri\t%s,%%Q2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                         ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1232:89: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1235:88: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\trotli\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                        ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1235:88: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1238:87: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tlsli\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                       ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1238:87: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1241:94: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tixh\t%s,%s\t// %ld 0x%lx", load_op, dst_fmt, dst_fmt, value, value);
                                                                                              ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1241:94: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1244:94: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘long long int’ [-Wformat=]
       sprintf (buf, "%s\n\tixw\t%s,%s\t// %ld 0x%lx", load_op, dst_fmt, dst_fmt, value, value);
                                                                                              ^
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1244:94: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘long long int’ [-Wformat=]
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c: At global scope:
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c💯19: warning: ‘int try_constant_tricks(long int, long long int*, long long int*)’ used but never defined [enabled by default]
 static int        try_constant_tricks           (long, HOST_WIDE_INT *, HOST_WIDE_INT *);
                   ^
[...]
g++   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o default-c.o \
  cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
libbackend.a(mcore.o): In function `mcore_const_ok_for_inline':
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:751: undefined reference to `try_constant_tricks(long, long long*, long long*)'
libbackend.a(mcore.o): In function `mcore_const_ok_for_inline(long long)':
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:751: undefined reference to `try_constant_tricks(long, long long*, long long*)'
libbackend.a(mcore.o): In function `mcore_const_trick_uses_not(long long)':
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:761: undefined reference to `try_constant_tricks(long, long long*, long long*)'
libbackend.a(mcore.o): In function `mcore_const_ok_for_inline':
/home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:751: undefined reference to `try_constant_tricks(long, long long*, long long*)'
collect2: error: ld returned 1 exit status
make[1]: *** [cc1] Error 1
make[1]: Leaving directory `/home/vaxbuild/build/mcore-elf/build-gcc/gcc'
make: *** [all-gcc] Error 2

This patch fixes only the wrong declaration of try_constant_tricks().

2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

	* config/mcore/mcore.c (try_constant_tricks): Fix declaration.

From-SVN: r214772
2014-08-31 22:42:47 +00:00
Fritz Reese
03e46144fa re PR fortran/62309 (-fno-automatic with -finit-local prevents initialization of automatics in recursive functions)
2014-08-31  Fritz Reese  <Reese-Fritz@zai.com>

        PR fortran/62309
        * resolve.c (apply_default_init_local): Don't treat variables
        in RECURSIVE procedures as saved.

2014-08-31  Fritz Reese  <Reese-Fritz@zai.com>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/62309
        * gcc/testsuite/gfortran.dg/auto_save_2.f90: New.


Co-Authored-By: Tobias Burnus <burnus@net-b.de>

From-SVN: r214771
2014-09-01 00:28:30 +02:00
Jason Merrill
cbb4d6a4b9 re PR c++/62302 (Change in the comdat used for constructors)
PR c++/62302
	* optimize.c (cdtor_comdat_group): Just look at the
	DECL_ASSEMBLER_NAME of the 'tors.

From-SVN: r214770
2014-08-31 17:06:08 -04:00
Gerald Pfeifer
a3e3f1166f Fix typo.
From-SVN: r214769
2014-08-31 19:29:13 +00:00
Gerald Pfeifer
30fb31afb7 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
From-SVN: r214768
2014-08-31 19:28:04 +00:00
Tobias Burnus
93e2e0465e trans-decl.c (gfc_build_builtin_function_decls): Add may_require_tmp dummy argument.
2014-08-31  Tobias Burnus  <burnus@net-b.de>

gcc/fortran/
        * trans-decl.c (gfc_build_builtin_function_decls): Add
        may_require_tmp dummy argument.
        * trans-intrinsic.c (gfc_conv_intrinsic_caf_get,
        conv_caf_send): Handle may_require_tmp argument.
        (gfc_conv_intrinsic_function): Update call.
        * gfortran.texi (_gfortran_caf_send, _gfortran_caf_get,
        _gfortran_caf_sendget): Update interface description.

gcc/testsuite/
        * gfortran.dg/coarray_lib_comm_1.f90: New.

libgfortran/
        * caf/libcaf.h (_gfortran_caf_send, _gfortran_caf_get,
        _gfortran_caf_sendget): Update prototype.
        * caf/single.c (_gfortran_caf_send, _gfortran_caf_get,
        _gfortran_caf_sendget): Handle may_require_tmp.

From-SVN: r214764
2014-08-31 08:32:06 +02:00
GCC Administrator
5c535ce216 Daily bump.
From-SVN: r214763
2014-08-31 00:17:14 +00:00
Andrew Pinski
e4b8a41013 20140828-1.c: New testcase.
2014-08-30  Andrew Pinski  <apinski@cavium.com>

        * gcc.c-torture/execute/20140828-1.c: New testcase.

From-SVN: r214760
2014-08-30 15:35:43 -07:00
Tobias Burnus
695326ef6e Add missing ChangeLog items for Rev. 214758.
From-SVN: r214759
2014-08-30 20:48:42 +02:00
Tobias Burnus
2c69df3ba0 trans.h (gfc_caf_get_image_index, [...]): New prototypes.
2014-08-30  Tobias Burnus  <burnus@net-b.de>

        * trans.h (gfc_caf_get_image_index,
        gfc_get_caf_token_offset): New prototypes.
        * trans-expr.c (gfc_caf_get_image_index): Moved from
        trans-intrinsic.c and renamed.
        (gfc_get_caf_token_offset) Ditto; support offset = NULL
        with early return.
        * trans-intrinsic.c (get_caf_token_offset, caf_get_image_index):
        Moved to trans-expr.
        (gfc_conv_intrinsic_caf_get, conv_caf_send,
        conv_intrinsic_atomic_op, conv_intrinsic_atomic_ref,
        conv_intrinsic_atomic_cas): Update callers.

From-SVN: r214758
2014-08-30 20:47:40 +02:00
Tobias Burnus
e284dec53b re PR fortran/62278 (gfc_check_dependency should also check for TARGET attribute)
2014-08-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/62278
        PR fortran/44735
        PR fortran/60593
        * dependency.c (gfc_check_dependency): Allow for optimizations
        in the pointer-alias check.

From-SVN: r214757
2014-08-30 20:47:04 +02:00
John David Anglin
ef71990174 pa.c (pa_assemble_integer): Don't add PLABEL relocation prefix to function labels when...
* config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
	prefix to function labels when generating fast indirect calls.

From-SVN: r214754
2014-08-30 15:24:59 +00:00
John David Anglin
79c702321e baseline_symbols.txt: Update.
* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r214753
2014-08-30 15:10:20 +00:00
David Malcolm
c3f14d55e8 re PR bootstrap/62304 (ICE in follow_jumps, find_dead_or_set_registers)
PR bootstrap/62304

	* gcc/reorg.c (skip_consecutive_labels): Convert return type and
	param back from rtx_insn * to rtx.  Rename param from "label" to
	"label_or_return", reintroducing "label" as an rtx_insn * after
	we've ensured it's not a RETURN.
	(first_active_target_insn): Likewise for return type and param;
	add a checked cast to rtx_insn * once we've ensured "insn" is not
	a RETURN.
	(steal_delay_list_from_target): Convert param "pnew_thread" back
	from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
	with JUMP_LABEL.
	(own_thread_p): Convert param "thread" back from an rtx_insn * to
	an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
	cast once we've established we're not dealing with a RETURN,
	renaming subsequent uses of "thread" to "thread_insn".
	(fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
	to JUMP_LABEL.
	(follow_jumps): Convert return type and param "label" from
	rtx_insn * back to rtx.  Move initialization of "value" to after
	the handling for ANY_RETURN_P, adding a checked cast there to
	rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
	rename to "this_label_or_return", reintroducing "this_label" as
	an rtx_insn * once we've handled the case where it could be an
	ANY_RETURN_P.
	(fill_slots_from_thread): Rename param "thread" to
	"thread_or_return", converting from an rtx_insn * back to an rtx.
	Reintroduce name "thread" as an rtx_insn * local with a checked
	cast once we've handled the case of it being an ANY_RETURN_P.
	Convert local "new_thread" from an rtx_insn * back to an rtx.
	Add a checked cast when assigning to "trial" from "new_thread".
	Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
	checked cast to rtx_insn * from "new_thread" when invoking
	get_label_before.
	(fill_eager_delay_slots): Convert locals "target_label",
	"insn_at_target" from rtx_insn * back to rtx.
	Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
	(relax_delay_slots): Convert locals "trial", "target_label" from
	rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
	to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
	invoking update_block.
	(dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
	JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.

	* resource.h (mark_target_live_regs): Undo erroneous conversion
	of second param of r214693, converting it back from rtx_insn * to
	rtx, since it could be a RETURN.

	* resource.c (find_dead_or_set_registers): Similarly, convert
	param "jump_target" back from an rtx_insn ** to an rtx *, as we
	could be writing back a RETURN.  Rename local rtx_insn * "next" to
	"next_insn", and introduce "lab_or_return" as a local rtx,
	handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
	(mark_target_live_regs): Undo erroneous conversion
	of second param of r214693, converting it back from rtx_insn * to
	rtx, since it could be a RETURN.  Rename it from "target" to
	"target_maybe_return", reintroducing the name "target" as a local
	rtx_insn * with a checked cast, after we've handled the case of
	ANY_RETURN_P.

From-SVN: r214752
2014-08-30 14:34:02 +00:00
GCC Administrator
124aeea179 Daily bump.
From-SVN: r214751
2014-08-30 00:16:50 +00:00
DJ Delorie
50b6ee8b71 cppbuiltin.c (define_builtin_macros_for_type_sizes): Round pointer size up to a power of two.
* cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
pointer size up to a power of two.
* defaults.h (DWARF2_ADDR_SIZE): Round up.
(POINTER_SIZE_UNITS): New, rounded up value.
* dwarf2asm.c (size_of_encoded_value): Use it.
(dw2_output_indirect_constant_1): Likewise.
* expmed.c (init_expmed_one_conv): We now know the sizes of
partial int modes.
* loop-iv.c (iv_number_of_iterations): Use precision, not size.
* optabs.c (expand_float): Use precision, not size.
(expand_fix): Likewise.
* simplify-rtx (simplify_unary_operation_1): Likewise.
* tree-dfa.c (get_ref_base_and_extent): Likewise.
* varasm.c (assemble_addr_to_section): Round up pointer sizes.
(default_assemble_integer) Likewise.
(dump_tm_clone_pairs): Likewise.
* dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
* var-tracking.c (adjust_mems): Allow partial-int modes also.
(prepare_call_arguments): Likewise.
* stor-layout.c (finalize_type_size): Preserve precision.
(layout_type): Use precision, not size.

From-SVN: r214748
2014-08-29 19:35:12 -04:00
DJ Delorie
aea3d681ec expr.c (convert_move): If the target has an explicit converter, use it.
* expr.c (convert_move): If the target has an explicit converter,
use it.

From-SVN: r214747
2014-08-29 19:19:42 -04:00
DJ Delorie
4c90724737 target-supports.exp (check_effective_target_size32plus): Increase size to avoid false positives on 24-bit address spaces.
* lib/target-supports.exp (check_effective_target_size32plus):
Increase size to avoid false positives on 24-bit address spaces.
* gcc.c-torture/compile/limits-stringlit.c: Skip if msp430.
* gcc.dg/lto/pr54709_1.c: Fix memcpy prototype.
* gcc.dg/torture/pta-ptrarith-3.c: Use __SIZE_TYPE__ instead of "int".
* gcc.dg/torture/pr36373-10.c: Use __SIZE_TYPE__ if present.
* gcc.dg/torture/pr57864.c: Use __SIZE_TYPE__.
* gcc.dg/torture/pr26763-2.c: Use __SIZE_TYPE__ instead of "int".
* gcc.dg/tree-ssa/isolate-3.c: Use __SIZE_TYPE__ instead of "long unsigned int".
* gcc.dg/pr52549.c: Use __SIZE_TYPE__ if present.

From-SVN: r214746
2014-08-29 19:16:29 -04:00
Janne Blomqvist
fdf96aa323 Use ISO C remove() instead of POSIX unlink()
2014-08-30  Janne Blomqvist  <jb@gcc.gnu.org>

	* module.c (gfc_dump_module): Use ISO C remove() instead of POSIX
	unlink().

From-SVN: r214744
2014-08-30 00:17:34 +03:00
Jeffrey Armstrong
70103202db PR 62215 Reinstate unlinking old module file before renaming.
2014-08-29  Jeffrey Armstrong  <jeffrey.armstrong@approximatrix.com>

	PR fortran/62215
	* module.c (gfc_dump_module): Unlink old module file before
	renaming new one.

From-SVN: r214742
2014-08-29 23:46:15 +03:00
David Malcolm
08216dfb85 gdbinit.in: Skip various inline functions in rtl.h when stepping
gcc/
2014-08-29  David Malcolm  <dmalcolm@redhat.com>

	* gdbinit.in: Skip various inline functions in rtl.h when
	stepping.

From-SVN: r214741
2014-08-29 20:20:17 +00:00
Andrew Burgess
606f9e78c6 cp-demangle.c (d_dump): Only access field from s_fixed part of the union for DEMANGLE_COMPONENT_FIXED_TYPE.
* cp-demangle.c (d_dump): Only access field from s_fixed part of
	the union for DEMANGLE_COMPONENT_FIXED_TYPE.
	(d_count_templates_scopes): Likewise.

From-SVN: r214740
2014-08-29 15:30:10 -04:00
Jonathan Wakely
fa794dc63e complex (complex): Define copy constructor and assignment operator as defaulted.
* include/std/complex (complex): Define copy constructor and
	assignment operator as defaulted. Improve Doxygen comments.

From-SVN: r214736
2014-08-29 17:28:19 +01:00
Manuel López-Ibáñez
81b5d104e9 directives.c (check_eol_1): New.
libcpp/ChangeLog:

2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* directives.c (check_eol_1): New.
	(check_eol_endif_labels): New.
	(check_eol): Call check_eol_1.
	(do_else,do_endif): Call check_eol_endif_labels.

gcc/c-family/ChangeLog:

2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
	Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
	Wundef): Use CPP, Var and Init.
	* c-opts.c (c_common_handle_option): Do not handle the above flags here.

From-SVN: r214735
2014-08-29 16:06:19 +00:00
Paolo Carlini
f71f9d3fb6 re PR c++/54002 ([C++0x] Initializing constexpr static member using constexpr static method fails)
2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54002
	* g++.dg/cpp0x/constexpr-54002.C: New.

From-SVN: r214734
2014-08-29 15:58:26 +00:00
Richard Sandiford
21cfc3a51d re PR bootstrap/62301 (PowerPC bootstrap broken since r214654)
gcc/
	PR bootstrap/62301
	* rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.

From-SVN: r214733
2014-08-29 15:51:13 +00:00
Manuel López-Ibáñez
b753b37bd6 macro.c (warn_of_redefinition): Suppress warnings for builtins that lack the NODE_WARN flag...
libcpp/ChangeLog:

2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* macro.c (warn_of_redefinition): Suppress warnings for builtins
	that lack the NODE_WARN flag, unless Wbuiltin-macro-redefined.
	(_cpp_create_definition): Use Wbuiltin-macro-redefined for
	builtins that lack the NODE_WARN flag.
	* directives.c (do_undef): Likewise.
	* init.c (cpp_init_special_builtins): Do not change flags
	depending on Wbuiltin-macro-redefined.


gcc/c-family/ChangeLog:

2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
	* c-opts.c (c_common_handle_option): Do not handle here.

From-SVN: r214730
2014-08-29 15:28:45 +00:00
Paolo Carlini
ef0981b8ae re PR c++/56991 (constexpr std::initializer_list rejects too complex initialization)
2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56991
	* g++.dg/cpp0x/constexpr-56991.C: New.

From-SVN: r214729
2014-08-29 13:12:02 +00:00
Paolo Carlini
6a06deb4d6 re PR c++/57764 (class static constexpr variables cannot be references)
2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57764
	* g++.dg/cpp0x/constexpr-57764.C: New.

From-SVN: r214728
2014-08-29 12:47:19 +00:00
Richard Biener
dee29e84ed re PR tree-optimization/62291 (PRE uses too much memory and compile-time)
2014-08-29  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/62291
	* tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
	exactly the vector size needed and use quick_push.
	(phi_translate_1): Adjust comment.
	(valid_in_sets): Remove block argument and remove pointless
	checking of NAMEs.
	(dependent_clean): Adjust for removal of block argument.
	(clean): Likewise.
	(compute_antic_aux): Likewise.
	(compute_partial_antic_aux): Likewise.

From-SVN: r214727
2014-08-29 12:39:50 +00:00