[PATCH] Handle casts in bound in try_transform_to_exit_first_loop_alt

2015-06-13 Thread Tom de Vries
Hi, this patch allows try_transform_to_exit_first_loop_alt to succeed when handling cases where the expression representing the number of iterations contains a cast. Currently, transform_to_exit_first_loop_alt testcase gfortran/parloops-exit-first-loop-alt.f95 will fail. The nit is _19,

[patch, fortran] Warn about constant integer divisions

2015-06-13 Thread Thomas Koenig
Hello world, the attached patch emits a warning for constant integer division. While correct according to the standard, I cannot really think of a legitimate reason why people would want to write 3/5 where they could have written 0 , so my preference would be to put this under -Wconversion (like

[committed] Add parloops-exit-first-loop-alt-4.c

2015-06-13 Thread Tom de Vries
Hi, this patch adds a new test-case. The existing three parloops-exit-first-loop-alt test-cases covered: - variable bound, vector addition - constant bound, vector addition - variable bound, reduction This patch adds the case 'constant bound, reduction'. Committed to trunk. Thanks, - Tom

[committed] Update parloops-exit-first-loop-alt{,-2,-3}.c

2015-06-13 Thread Tom de Vries
Hi, this patch contains trivial improvements for test-cases {libgomp.c,gcc.dg}/parloops-exit-first-loop-alt{,-2,-3}.c. Committed to trunk. Thanks, - Tom Update parloops-exit-first-loop-alt{,-2,-3}.c 2015-06-13 Tom de Vries t...@codesourcery.com *

[PATCH] Fix comment documenting make_vector_stat

2015-06-13 Thread Patrick Palka
It actually returns a VECTOR_CST not a TREE_VEC. Committed as obvious. gcc/ChangeLog: * tree.c (make_vector_stat): Fix comment to state that the function returns a VECTOR_CST. --- gcc/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree.c

[PATCH OBV] Remove stale commentary in cp/call.c

2015-06-13 Thread Patrick Palka
r76173 removed the function build_method_call() but did not remove the comment documenting the function. This patch removes the stale comment. Committed as obvious. gcc/cp/ChangeLog: * call.c: Remove comment documenting the long-deleted function build_method_call. ---

[committed] Move add_implicit_parallel to gensupport

2015-06-13 Thread Richard Sandiford
Several places in the generators want to convert a define_insn rtvec into a single rtx. This patch just puts the routine to do that in gensupport.c. The changes to process_one_cond_exec mean that we'll allocate rtvecs more often, but that's not going to make a noticeable difference and I think

Re: match.pd: Three new patterns

2015-06-13 Thread Marc Glisse
They look fine to me. +/* (x y) + (x ^ y) - x | y */ This also works if you replace + with | or ^. +/* (x | y) - (x ^ y) - x y */ For symmetry, you probably also want: (x | y) - (x y) - x ^ y (they both also work with ^ instead of -) +/* (x y) + (x | y) - x + y */ Again for

Re: [PATCH] Fix PR66509

2015-06-13 Thread Jack Howarth
On Sat, Jun 13, 2015 at 12:04 AM, Mike Stump mikest...@comcast.net wrote: On Jun 12, 2015, at 8:25 PM, Jack Howarth howarth.at@gmail.com wrote: The attached patch revises the tests for the filds and fists mnemonics to use the assembly... filds mem(%rip); fists mem(%rip) Okay for gcc

Re: RFA: Make classify_insn available to the generators

2015-06-13 Thread Eric Botcazou
gen_expand and gen_split have some fairly complex tests that really just repeat what's in classify_insn. This patch moves classify_insn to rtl.c, so that it's available to the generators. It also adds a generator-specific UNKNOWN return code for cases where we need to choose at (GCC)

Re: [Patch 0/4] PowerPC64 Linux split stack support

2015-06-13 Thread Andreas Schwab
/usr/bin/mkdir -p .; files=`echo ../../../../libgo/go/errors/errors.go | sed -e 's/[^ ]*\.gox//g'`; /bin/sh ./libtool --tag GO --mode=compile /daten/gcc/gcc-20150613/Build/./gcc/gccgo -B/daten/gcc/gcc-20150613/Build/./gcc/ -B/usr/powerpc64-linux/bin/ -B/usr/powerpc64-linux/lib/ -isystem /usr

Re: match.pd: Optimize (x y) ^ (x | y)

2015-06-13 Thread Marc Glisse
On Fri, 12 Jun 2015, Marek Polacek wrote: fold-const.c traditionally avoided the combinatorial explosion by using strip_nops. Yeah. We can probably special case conditional conversions in code generation instead of lowering it. And then go the full way and special case nop conversions so

RFA: Make classify_insn available to the generators

2015-06-13 Thread Richard Sandiford
gen_expand and gen_split have some fairly complex tests that really just repeat what's in classify_insn. This patch moves classify_insn to rtl.c, so that it's available to the generators. It also adds a generator-specific UNKNOWN return code for cases where we need to choose at (GCC) runtime.

Re: [v3 PATCH] Implement N4387 and LWG 2367

2015-06-13 Thread Ville Voutilainen
On 8 June 2015 at 19:01, Ville Voutilainen ville.voutilai...@gmail.com wrote: Yes, it should be uglified, thanks. Ahem, yes, actually removed since it's there only to be specialized. Another round! The new patch - makes sure not to change non-deduced parameters to deduced ones, and adds tests