Re: [AArch64] Fall back to -fPIC if no support of -fpic relocation modifer in assembler

2015-06-30 Thread Andreas Schwab
Jiong Wang jiong.w...@arm.com writes: gcc/ * configure.ac: Add check for aarch64 assembler -fpic relocation modifier support. * configure: Regenerate. * config.in: Regenerate. * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back to -fPIC if not support of -fpic

Re: [PATCH 1/2] Allow REG_EQUAL for ZERO_EXTRACT

2015-06-30 Thread Maxim Kuvyrkov
On Jun 30, 2015, at 6:54 AM, Kugan kugan.vivekanandara...@linaro.org wrote: On 29/06/15 21:56, Maxim Kuvyrkov wrote: On Jun 28, 2015, at 2:28 PM, Kugan kugan.vivekanandara...@linaro.org wrote: This patch allows setting REG_EQUAL for ZERO_EXTRACT and handle that in cse (where the src

Re: [Patch, MIPS] Enable fp-contract on MIPS and update -mfused-madd

2015-06-30 Thread Richard Biener
On Mon, Jun 29, 2015 at 6:08 PM, Maciej W. Rozycki ma...@linux-mips.org wrote: Richard, please have a look at my question below in a reference to your previous statement. On Thu, 18 Jun 2015, Steve Ellcey wrote: OK, I checked in the prequel patch and here is a new copy of the original patch

Re: [RFA] Factor conversion out of COND_EXPR using match.pd pattern

2015-06-30 Thread Richard Biener
On Mon, Jun 29, 2015 at 7:51 PM, Jeff Law l...@redhat.com wrote: On 06/01/2015 04:55 AM, Richard Biener wrote: On Sat, May 30, 2015 at 11:11 AM, Marc Glisse marc.gli...@inria.fr wrote: (only commenting on the technique, not on the transformation itself) +(simplify + (cond @0 (convert @1)

[Bug tree-optimization/66652] try_transform_to_exit_first_loop_alt generates incorrect loop

2015-06-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66652 vries at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/66701] New: __cxxabiv1::__cxa_pure_virtual - can it take an argument of the pointer to the function that was called, please?

2015-06-30 Thread jmcguiness at liquidcapital dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66701 Bug ID: 66701 Summary: __cxxabiv1::__cxa_pure_virtual - can it take an argument of the pointer to the function that was called, please? Product: gcc Version:

Re: [PATCH, PR66652] Use max_loop_iterations in transform_to_exit_first_loop_alt

2015-06-30 Thread Tom de Vries
On 29/06/15 19:58, Jeff Law wrote: On 06/29/2015 08:24 AM, Tom de Vries wrote: Hi, this patch fixes PR66652. It uses max_loop_iterations in transform_to_exit_first_loop_alt to ensure that the new loop bound nit + 1 doesn't overflow. Bootstrapped and reg-tested on x86_64. OK for trunk?

Re: [patch] fix regrename pass to ensure renamings produce valid insns

2015-06-30 Thread Eric Botcazou
I notice the way gcc_assert() is defined in system.h now, the test won't disappear even when runtime checks are disabled, though you might still adjust it to avoid any programmer confusion. It will disappear at run time, see the definition: /* Include EXPR, so that unused variable warnings do

Re: [PATCH] Move X - (X / Y) * Y folding to match.pd

2015-06-30 Thread Richard Biener
On Tue, 30 Jun 2015, Marc Glisse wrote: On Mon, 29 Jun 2015, Marek Polacek wrote: On Mon, Jun 29, 2015 at 09:36:59AM +0200, Richard Biener wrote: Anything wrong with this? +/* X - (X / Y) * Y is the same as X % Y. */ +(simplify + (minus (convert? @0) (convert? (mult

Re: [PATCH] Discard Scops for which entry==exit

2015-06-30 Thread Richard Biener
On Tue, Jun 30, 2015 at 8:11 AM, Tobias Grosser tob...@grosser.es wrote: On 06/30/2015 02:09 AM, Sebastian Pop wrote: On Mon, Jun 29, 2015 at 3:04 PM, Aditya Kumar hiradi...@msn.com wrote: In this patch we discard the scops where entry and exit are the same BB. This is an effort to remove

Re: [AArch64] Fall back to -fPIC if no support of -fpic relocation modifer in assembler

2015-06-30 Thread Jiong Wang
Andreas Schwab writes: Jiong Wang jiong.w...@arm.com writes: gcc/ * configure.ac: Add check for aarch64 assembler -fpic relocation modifier support. * configure: Regenerate. * config.in: Regenerate. * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back to

Re: [PATCH] Graphite cannot handle return stmt

2015-06-30 Thread Richard Biener
On Tue, Jun 30, 2015 at 8:12 AM, Tobias Grosser tob...@grosser.es wrote: On 06/30/2015 02:12 AM, Sebastian Pop wrote: On Mon, Jun 29, 2015 at 3:58 PM, Aditya Kumar hiradi...@msn.com wrote: No regressions. 2015-06-29 Aditya Kumar aditya...@samsung.com Sebastian Pop

[Patch,tree-optimization]: Add new path Splitting pass on tree ssa representation

2015-06-30 Thread Ajit Kumar Agarwal
All: The below patch added a new path Splitting optimization pass on SSA representation. The Path Splitting optimization Pass moves the join block of if-then-else same as loop latch to its predecessors and get merged with the predecessors Preserving the SSA representation. The patch is tested

[Bug tree-optimization/66678] loop counter not accurately described by vrp

2015-06-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66678 --- Comment #2 from vries at gcc dot gnu.org --- Created attachment 35878 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35878action=edit tentative patch

Re: [AArch64][TLSLE][3/N] Add UNSPEC_TLSLE

2015-06-30 Thread Christophe Lyon
Hi Jiong, It seems to me that you committed patches 1/N, 2/N and 3/N as only 1 commit (rev 225121). Am I right? On 26 June 2015 at 16:39, Marcus Shawcroft marcus.shawcr...@gmail.com wrote: On 20 May 2015 at 12:21, Jiong Wang jiong.w...@arm.com wrote: Add new unspec name UNSPEC_TLSLE, use it

[PATCH] Improve VRP for sign-changed/widened compares

2015-06-30 Thread Richard Biener
This improves VRP for cases of x = (T) y; if (y !=/== CST) { ... use of X to insert asserts for X similar to how we handle x = y +- CST. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2015-06-30 Richard Biener rguent...@suse.de * tree-vrp.c

[Bug tree-optimization/66652] try_transform_to_exit_first_loop_alt generates incorrect loop

2015-06-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66652 --- Comment #5 from vries at gcc dot gnu.org --- Author: vries Date: Tue Jun 30 08:35:57 2015 New Revision: 225162 URL: https://gcc.gnu.org/viewcvs?rev=225162root=gccview=rev Log: Use max_loop_iterations in transform_to_exit_first_loop_alt

[Bug tree-optimization/66678] loop counter not accurately described by vrp

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66678 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to vries from comment #2) Created attachment 35878 [details] tentative patch That single-use case is awfully special ... just add an unrelated use to the function and

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Marc Glisse
On Tue, 30 Jun 2015, Marek Polacek wrote: This moves a simple optimization. Here it's plain to see how :c removes the need to duplicate code to handle commutativity. Note that the same transformation would work for plus and xor. I put some more converts into the pattern, but then it's

Re: [PATCH GCC][refacor]Manage allocation of struct iv in obstack.

2015-06-30 Thread Richard Biener
On Tue, Jun 30, 2015 at 4:31 AM, Bin.Cheng amker.ch...@gmail.com wrote: On Sat, Jun 27, 2015 at 5:13 AM, Jeff Law l...@redhat.com wrote: On 06/26/2015 03:02 AM, Bin Cheng wrote: Hi, GCC avoids multi-pointers/dangling-pointers of struct iv by allocating multiple copies of the structure. This

[PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Marek Polacek
This moves a simple optimization. Here it's plain to see how :c removes the need to duplicate code to handle commutativity. I put some more converts into the pattern, but then it's turned out that I also need the tree_nop_conversion_p (otherwise we'd regress binop-notor2.c that uses booleans).

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Richard Biener
On Tue, 30 Jun 2015, Marek Polacek wrote: This moves a simple optimization. Here it's plain to see how :c removes the need to duplicate code to handle commutativity. I put some more converts into the pattern, but then it's turned out that I also need the tree_nop_conversion_p (otherwise

[Bug target/64833] [SH]: Error: pcrel too far when compiling imagemagick and graphicsmagick on Debian sh4

2015-06-30 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64833 --- Comment #21 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Wed Jul 1 01:02:48 2015 New Revision: 225219 URL: https://gcc.gnu.org/viewcvs?rev=225219root=gccview=rev Log: PR target/64833 * [SH] Set length of

[patch committed SH] Fix PR target/64833

2015-06-30 Thread Kaz Kojima
The attached patch is to fix PR target/64833 which is a 4.9/5/6 regression. The target reorg may replace casesi_worker_1 insn with casesi_worker_2 with a temporary wrong length for PIC. It can result the wrong position of the constant pool. See PR target/64833 for details. The patch set the

Re: [PATCH] config/bfin/bfin.c (hwloop_optimize): Use return false instead of gcc_assert for checking jump_insn.

2015-06-30 Thread Chen Gang
On 06/30/2015 03:46 AM, Bernd Schmidt wrote: On 06/28/2015 04:15 PM, Chen Gang wrote: For bfin looping optimization, after lsetup optimization, it can have the correct lsetup related insns which causes gcc_assert for jump_insn. I've been debugging this for a bit, and at least the explanation

[Bug c++/66701] __cxxabiv1::__cxa_pure_virtual - can it take an argument of the pointer to the function that was called, please?

2015-06-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66701 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org --- But this isn't the place to propose changes to the ABI, because it's used by several different compilers and if G++ started emitting a call to a different version of

[Bug c/66618] Failure to diagnose non-constant initializer for static object with -O1

2015-06-30 Thread Keith.S.Thompson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 --- Comment #3 from Keith Thompson Keith.S.Thompson at gmail dot com --- It would be easier to argue that gcc accepts other forms of constant expressions if (a) those other forms were documented and (b) they were accepted at all optimization

[Bug c++/66686] Instantiation of dependent template template parameter with non-dependent template rejected

2015-06-30 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66686 --- Comment #7 from Patrick Palka ppalka at gcc dot gnu.org --- Author: ppalka Date: Wed Jul 1 01:07:35 2015 New Revision: 225220 URL: https://gcc.gnu.org/viewcvs?rev=225220root=gccview=rev Log: Fix PR c++/66686 (dependent template template

[Bug target/66563] [4.9 Regression] ICE (segmentation fault) on sh4-linux-gnu

2015-06-30 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66563 --- Comment #41 from John Paul Adrian Glaubitz glaubitz at physik dot fu-berlin.de --- (In reply to Kazumoto Kojima from comment #40) with my 4.9 native compiler built with 4.9 cross compiler for svn gcc-4_9-branch. I hope that miscompilation

[Bug target/66703] New: [4.9] gcc.target/i386/readeflags-1.c aborts on -march=i586

2015-06-30 Thread julia.koval at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66703 Bug ID: 66703 Summary: [4.9] gcc.target/i386/readeflags-1.c aborts on -march=i586 Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal

[Bug middle-end/66702] #pragma omp declare simd uniform and linear issues

2015-06-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66702 --- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Tue Jun 30 12:16:01 2015 New Revision: 225180 URL: https://gcc.gnu.org/viewcvs?rev=225180root=gccview=rev Log: PR middle-end/66702 * omp-low.c

RE: [Patch,tree-optimization]: Add new path Splitting pass on tree ssa representation

2015-06-30 Thread Ajit Kumar Agarwal
I forgot to attach the Link of the RFC comments from Jeff for reference. https://gcc.gnu.org/ml/gcc/2015-05/msg00302.html Thanks Regards Ajit -Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On Behalf Of Ajit Kumar Agarwal Sent: Tuesday,

[Bug tree-optimization/66704] [6 Regression] ICE in tree-vectorizer at tree-ssanames.c:457

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66704 --- Comment #4 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Tue Jun 30 12:52:55 2015 New Revision: 225182 URL: https://gcc.gnu.org/viewcvs?rev=225182root=gccview=rev Log: 2015-06-30 Richard Biener rguent...@suse.de

[Bug tree-optimization/66704] [6 Regression] ICE in tree-vectorizer at tree-ssanames.c:457

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66704 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Marek Polacek
On Tue, Jun 30, 2015 at 02:47:49PM +0200, Richard Biener wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote: Does my suggestion to build the all_ones constant in TREE_TYPE (@0) and convert that to type help for that? It

[Bug middle-end/66702] #pragma omp declare simd uniform and linear issues

2015-06-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66702 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Tue Jun 30 12:12:42 2015 New Revision: 225179 URL: https://gcc.gnu.org/viewcvs?rev=225179root=gccview=rev Log: PR middle-end/66702 * omp-low.c

Re: [Patch, fortran] PR52846 - [F2008] Support submodules

2015-06-30 Thread Paul Richard Thomas
Dear All, Please find attached the latest version of the submodule patch. You might note that the number of the patch has been incremented by two. The intermediate version went to Reinhold Bader and co for testing. The main improvements in this version are: (i) As reported by Reinhold, the

Re: [PATCH 2/2] Add leon3r0 and leon3r0v7 CPU targets

2015-06-30 Thread Daniel Cederman
On 2015-06-30 11:24, Eric Botcazou wrote: The UT699 is a leon3r0 system which does not support CASA. However, to enable the errata fixes for UT699 with -mfix-ut699 requires the CPU target to be leon3. -mfix-ut699 itself is independent of the processor and doesn't require leon3. The

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Marek Polacek
On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote: Does my suggestion to build the all_ones constant in TREE_TYPE (@0) and convert that to type help for that? It appears to work, but it seems weird to me to create a integer constant in one type and then immediately cast it to another

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Richard Biener
On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote: Does my suggestion to build the all_ones constant in TREE_TYPE (@0) and convert that to type help for that? It appears to work, but it seems weird to me to create a integer constant in

[Bug tree-optimization/66704] [6 Regression] ICE in tree-vectorizer at tree-ssanames.c:457

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66704 --- Comment #2 from Richard Biener rguenth at gcc dot gnu.org --- Index: gcc/tree-vect-data-refs.c === --- gcc/tree-vect-data-refs.c (revision 225163) +++ gcc/tree-vect-data-refs.c

Re: [PATCH] top-level for libvtv: use normal (not raw_cxx) target exports

2015-06-30 Thread Jonathan Wakely
On 29/06/15 18:57 +0200, Michael Haubenwallner wrote: Actually, an unexpected libstdc++-v3/configure change is introduced by some inconsistency in https://gcc.gnu.org/viewcvs/gcc?view=revisionrevision=223196 where acinclude.m4 contains different code than the recreated configure:

Re: [gomp4.1] Support #pragma omp target {enter,exit} data

2015-06-30 Thread Jakub Jelinek
On Tue, Jun 30, 2015 at 03:19:30PM +0300, Ilya Verbin wrote: --- a/libgomp/target.c +++ b/libgomp/target.c @@ -580,10 +581,16 @@ gomp_unmap_vars (struct target_mem_desc *tgt, bool do_copyfrom) bool do_unmap = false; if (k-refcount 1) k-refcount--; - else if

[PING][patch] Run testsuite/libgomp.c++/c++.exp at -O2 by default

2015-06-30 Thread Tom de Vries
On 15/06/15 18:36, Tom de Vries wrote: Hi, this patch: - sets DEFAULT_CFLAGS to -O2, if not set otherwise (similar to what is done in c.exp) - removes superfluous dg-options -O2 settings. - removes superfluous dg-options -fopenmp settings. - uses dg-additional-options for -std=standard

[PATCH] Cut down match-and-simplify TDF_DETAILS noise

2015-06-30 Thread Richard Biener
This short-cuts re-simplifying (convert ...)s which often are no-ops because a conditional convert didn't match. So instead of throwing the whole match-and-simplify machinery on such converts and yell out that match.pd:961 triggered (that really happens often...) the following simply does

RE: [Patch,tree-optimization]: Add new path Splitting pass on tree ssa representation

2015-06-30 Thread Ajit Kumar Agarwal
-Original Message- From: Richard Biener [mailto:richard.guent...@gmail.com] Sent: Tuesday, June 30, 2015 4:42 PM To: Ajit Kumar Agarwal Cc: l...@redhat.com; GCC Patches; Vinod Kathail; Shail Aditya Gupta; Vidhumouli Hunsigida; Nagaraju Mekala Subject: Re: [Patch,tree-optimization]: Add

Re: [patch] Run testsuite/libgomp.c++/c++.exp at -O2 by default

2015-06-30 Thread Jakub Jelinek
On Mon, Jun 15, 2015 at 06:36:17PM +0200, Tom de Vries wrote: Hi, this patch: - sets DEFAULT_CFLAGS to -O2, if not set otherwise (similar to what is done in c.exp) - removes superfluous dg-options -O2 settings. - removes superfluous dg-options -fopenmp settings. - uses

[Bug tree-optimization/66704] New: [6 Regression] ICE in tree-vectorizer at tree-ssanames.c:457

2015-06-30 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66704 Bug ID: 66704 Summary: [6 Regression] ICE in tree-vectorizer at tree-ssanames.c:457 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal

[gomp4.1] Support #pragma omp target {enter,exit} data

2015-06-30 Thread Ilya Verbin
Hi! This patch implements GOMP_target_enter_exit_data in libgomp, also it fixes a bug in gomp_map_vars_existing. make check-target-libgomp passed. However, I am afraid that there may be some hard-to-find issues (like memory leaks) in cases of mixed (structured+unstructured) data mappings... OK

[PATCH] Fix simdclone pass for addressable linear/uniform parameters (PR middle-end/66702)

2015-06-30 Thread Jakub Jelinek
Hi! As the first testcase shows, we were mishandling addressable uniform/linear parameters, in that case keeping them to use the (D) ssa name for uniform or doing the iteration for linear doesn't work, so we need to handle it slightly differently. Bootstrapped/regtested on x86_64-linux and

[Bug middle-end/66702] #pragma omp declare simd uniform and linear issues

2015-06-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66702 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug ipa/66705] New: [5/6 Regression] section is missing linker error with -flto -fipa-pta

2015-06-30 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705 Bug ID: 66705 Summary: [5/6 Regression] section is missing linker error with -flto -fipa-pta Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/66704] [6 Regression] ICE in tree-vectorizer at tree-ssanames.c:457

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66704 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[PATCH] Fix PR66704

2015-06-30 Thread Richard Biener
Committed as obvious. Richard. 2015-06-30 Richard Biener rguent...@suse.de PR tree-optimization/66704 * tree-vect-data-refs.c (vect_setup_realignment): Use make_ssa_name for non-SSA name source. Index: gcc/tree-vect-data-refs.c

[Bug target/66136] AArch64 geniterators.sh relies on GNU sed syntax, causing build failure on FreeBSD and probably Mac

2015-06-30 Thread nsz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66136 --- Comment #14 from nsz at gcc dot gnu.org --- Author: nsz Date: Tue Jun 30 10:07:03 2015 New Revision: 225170 URL: https://gcc.gnu.org/viewcvs?rev=225170root=gccview=rev Log: Backport of r224031 from mainline 2015-06-29 Szabolcs Nagy

[Bug middle-end/65686] [5/6 regression] inconsistent warning maybe-uninitialized: warn about 'unsigned', not warn about 'int'

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65686 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

[Bug debug/65779] [5/6 Regression] undefined local symbol on powerpc [regression]

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Marek Polacek
On Tue, Jun 30, 2015 at 11:08:35AM +0200, Marc Glisse wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: This moves a simple optimization. Here it's plain to see how :c removes the need to duplicate code to handle commutativity. Note that the same transformation would work for plus and xor.

[Bug debug/65821] [4.9/5/6 regression] incorrect debug line # info for main

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Bernhard Reutner-Fischer
On June 30, 2015 10:46:21 AM GMT+02:00, Marek Polacek pola...@redhat.com wrote: --- gcc/testsuite/gcc.dg/fold-ior-2.c +++ gcc/testsuite/gcc.dg/fold-ior-2.c @@ -0,0 +1,47 @@ +/* { dg-do compile } */ +/* { dg-options -O -fdump-tree-cddce1 } */ + +int +fn1 (int x) +{ + return ~x | x; +} + +int

Re: [Patch,tree-optimization]: Add new path Splitting pass on tree ssa representation

2015-06-30 Thread Bernhard Reutner-Fischer
On June 30, 2015 10:16:01 AM GMT+02:00, Ajit Kumar Agarwal ajit.kumar.agar...@xilinx.com wrote: All: The below patch added a new path Splitting optimization pass on SSA representation. The Path Splitting optimization Pass moves the join block of if-then-else same as loop latch to its

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Richard Biener
On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 11:08:35AM +0200, Marc Glisse wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: This moves a simple optimization. Here it's plain to see how :c removes the need to duplicate code to handle commutativity. Note that

[Bug ipa/65844] [5/6 Regression] ICE (verify_cgraph_node failed) on i686-linux-gnu

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65844 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Keywords||lto

[Bug target/65867] [5/6 Regression] bootstrap fails for mingw32 due to missing header in ssp.c

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65867 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2 ---

[Bug middle-end/65874] [5 Regression] bootstrap comparison failure (gcc/ira.o) on ia64-linux-gnu

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65874 --- Comment #4 from Richard Biener rguenth at gcc dot gnu.org --- Bootstrap also works for me on the GCC 5 branch.

[Bug target/65931] [5/6 regression] dsymutil assertion failure building libgnat-5.dylib

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65931 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING ---

[Bug target/65886] [5/6 Regression] Copy reloc in PIE incompatible with DSO created by -Wl,-Bsymbolic

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

RE: [Patch,tree-optimization]: Add new path Splitting pass on tree ssa representation

2015-06-30 Thread Ajit Kumar Agarwal
-Original Message- From: Bernhard Reutner-Fischer [mailto:rep.dot@gmail.com] Sent: Tuesday, June 30, 2015 3:57 PM To: Ajit Kumar Agarwal; l...@redhat.com; GCC Patches Cc: Vinod Kathail; Shail Aditya Gupta; Vidhumouli Hunsigida; Nagaraju Mekala Subject: Re: [Patch,tree-optimization]:

[Bug middle-end/66178] [4.9/5/6 Regression] Another label as values ICE in gen_reg_rtx, at emit-rtl.c:1059

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66178 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

Re: Four jit backports to gcc 5 branch

2015-06-30 Thread David Malcolm
On Tue, 2015-06-30 at 08:43 +0200, Basile Starynkevitch wrote: On Mon, Jun 29, 2015 at 11:44:31AM -0400, David Malcolm wrote: I've gone over the changes to the gcc/jit and gcc/testsuite/jit.dg directories in trunk since gcc 5 and backported the following 4 changes from trunk to the

[PATCH] Allow embedded timestamps by C/C++ macros to be set externally

2015-06-30 Thread Dhole
Hi! We are working in Debian —and I know other free software projects care— in providing our users with a way to reproduce bit-for-bit identical binary packages from the source and build environment. See https://wiki.debian.org/ReproducibleBuilds/About for some rationale and further explanations.

[PATCH][9/n] Remove GENERIC stmt combining from SCCVN

2015-06-30 Thread Richard Biener
This moves the rest of the patterns in match-bitwise.pd from the match-and-simplify branch (those that make sense - I'll merge the rest to the tail of match.pd on the branch). Bootstrap regtest running on x86_64-unknown-linux-gnu. Richard. 2015-06-30 Richard Biener rguent...@suse.de

[Bug c++/66666] ARM wrong copy constructor address on multiple inheritance

2015-06-30 Thread antonio.poggiali at datalogic dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 --- Comment #12 from Antonio Poggiali antonio.poggiali at datalogic dot com --- Created attachment 35879 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35879action=edit Temporary patch for gcc 4.9.3 A temporary patch masking the problem on

[Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org --- (gdb) p debug_tree (decl) var_decl 0x768d7900 a type integer_type 0x768d0690 int public SI size integer_cst 0x768ccdf8 constant 32 unit size

Re: [hsa] HSA: add support for function declaration emission and, fix RA.

2015-06-30 Thread Martin Liška
On 06/30/2015 03:28 PM, Michael Matz wrote: Hi, On Tue, 30 Jun 2015, Martin Liška wrote: Following patch implements emission of function declarations and removes hsa_call_block_insn. The insn is replaced with a new hsa_arg_block_insn, which will make insn iteration flat and much easier

Re: [PATCH] top-level for libvtv: use normal (not raw_cxx) target exports

2015-06-30 Thread Michael Haubenwallner
On 06/30/2015 02:54 PM, Jonathan Wakely wrote: On 29/06/15 18:57 +0200, Michael Haubenwallner wrote: Actually, an unexpected libstdc++-v3/configure change is introduced by some inconsistency in https://gcc.gnu.org/viewcvs/gcc?view=revisionrevision=223196 where acinclude.m4 contains

[Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta

2015-06-30 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705 --- Comment #1 from Markus Trippelsdorf trippels at gcc dot gnu.org --- trippels@gcc75 ~ % cat tramp3d-v4.ii class A { public: A(); }; int a = 0; void foo() { a = 0; A b; for (; a;) ; } trippels@gcc75 ~ % g++ -r -nostdlib -O2 -flto

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Richard Biener
On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 02:47:49PM +0200, Richard Biener wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote: Does my suggestion to build the all_ones constant in TREE_TYPE (@0) and

[hsa] HSA: add support for function declaration emission and, fix RA.

2015-06-30 Thread Martin Liška
Hello. Following patch implements emission of function declarations and removes hsa_call_block_insn. The insn is replaced with a new hsa_arg_block_insn, which will make insn iteration flat and much easier for register allocator. Thanks, Martin From abb5eb3cf4f8569d2e003aabc5f078fcd17348a6 Mon

[hsa] Remove assumption that each translation unit must have a, kernel.

2015-06-30 Thread Martin Liška
Hello. Attached patch is very simple and does $subject. Thanks, Martin From ad7053eb82a354dce6a5460a3b3c5f1dba939094 Mon Sep 17 00:00:00 2001 From: mliska mli...@suse.cz Date: Thu, 25 Jun 2015 13:58:51 +0200 Subject: [PATCH 2/2] Remove assumption that each translation unit must have a kernel.

[Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

Re: [v3 PATCH] Implement N4387 and LWG 2367

2015-06-30 Thread Jonathan Wakely
On 13/06/15 21:05 +0300, Ville Voutilainen wrote: Another round! The new patch - makes sure not to change non-deduced parameters to deduced ones, and adds tests for that. - removes the name of the bool non-type template parameter for the 'concepts'. - introduces shortcuts for making the use of

Re: [hsa] HSA: add support for function declaration emission and, fix RA.

2015-06-30 Thread Michael Matz
Hi, On Tue, 30 Jun 2015, Martin Liška wrote: Following patch implements emission of function declarations and removes hsa_call_block_insn. The insn is replaced with a new hsa_arg_block_insn, which will make insn iteration flat and much easier for register allocator. Given that BRIG

Re: [Patch SRA] Fix PR66119 by calling get_move_ratio in SRA

2015-06-30 Thread James Greenhalgh
On Fri, Jun 26, 2015 at 06:10:00PM +0100, Jakub Jelinek wrote: On Fri, Jun 26, 2015 at 06:03:34PM +0100, James Greenhalgh wrote: --- /dev/null +++ b/gcc/testsuite/g++.dg/pr66119.C I think generally testcases shouldn't be added into g++.dg/ directly, but subdirectories. So g++.dg/opt/ ?

[patch] Use templatetypename not templateclass in std::pair

2015-06-30 Thread Jonathan Wakely
An unimportant change to meet our usual convention. Tested powerpc64le-linux, committed to trunk. commit a4461920b9169f8d07c8827fa77f6500573ed5a2 Author: Jonathan Wakely jwak...@redhat.com Date: Tue Jun 30 14:27:43 2015 +0100 * include/bits/stl_pair.h: Replace class keyword with

Re: [AArch64][TLSLE][3/N] Add UNSPEC_TLSLE

2015-06-30 Thread Jiong Wang
Christophe Lyon writes: Hi Jiong, It seems to me that you committed patches 1/N, 2/N and 3/N as only 1 commit (rev 225121). Am I right? Yes, 1/2/3 are quite tiny, and seperated for easy review. While I committed them as one patch. On 26 June 2015 at 16:39, Marcus Shawcroft

Re: [PATCH] Make muser-mode the default for LEON3

2015-06-30 Thread Eric Botcazou
For all LEON3 (with CASA support) the CASA instruction works in supervisor-mode regardless of ASI used. In user-mode CASA only works with the user-mode ASI. So CASA with user-mode ASI works for both user-mode and supervisor-mode. By having user-mode ASI as default, one would not need to

[PATCH][8/n] Remove GENERIC stmt combining from SCCVN

2015-06-30 Thread Richard Biener
The following moves some bitwise patterns from the match-and-simplify branch, extending them with proper conditional converts and removing the corresponding patterns from fold-const.c Bootstrap regtest in progress on x86_64-unknown-linux-gnu. Richard. 2015-06-30 Richard Biener

[Bug c++/60364] [[noreturn]] specified for second declaration but not first doesn't result in a diagnostic

2015-06-30 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60364 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[Bug tree-optimization/66652] try_transform_to_exit_first_loop_alt generates incorrect loop

2015-06-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66652 --- Comment #7 from vries at gcc dot gnu.org --- Author: vries Date: Tue Jun 30 09:57:20 2015 New Revision: 225166 URL: https://gcc.gnu.org/viewcvs?rev=225166root=gccview=rev Log: Backport transform_to_exit_first_loop_alt-related patches

[Bug tree-optimization/66642] transform_to_exit_first_loop_alt doesn't use result of low iteration count loop

2015-06-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66642 --- Comment #5 from vries at gcc dot gnu.org --- Author: vries Date: Tue Jun 30 09:57:40 2015 New Revision: 225167 URL: https://gcc.gnu.org/viewcvs?rev=225167root=gccview=rev Log: Add empty loop exit block in transform_to_exit_first_loop_alt

Re: [PATCH, 2/2][PR66642] Add empty loop exit block in transform_to_exit_first_loop_alt

2015-06-30 Thread Tom de Vries
On 25/06/15 09:43, Tom de Vries wrote: Hi, I ran into a failure with parloops for reduction loop testcase libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c. When we exercise the low iteration count loop, the test-case fails. To understand the problem, let's first look at what

[Bug libgomp/65742] [5 Regression] Several libgomp.oacc-* failures after r221922.

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65742 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

[Bug ipa/65797] [5/6 regression] IPA ICF causes function to be emitted with no debug line info

2015-06-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65797 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

[gomp4, committed] Insert new exit block only when needed in transform_to_exit_first_loop_alt

2015-06-30 Thread Tom de Vries
Hi, while testing the (now committed) fix for PR66642 (Add empty loop exit block in transform_to_exit_first_loop_alt) on the gomp-4_0-branch I ran into an ICE for the kernels-reduction.c testcase. For oacc kernels, we don't generate a low iteration count loop, so the exit block of the loop

Re: [PATCH][AArch64][PR 66136] rewrite geniterators.sh in awk

2015-06-30 Thread Szabolcs Nagy
On 02/06/15 18:01, Szabolcs Nagy wrote: On 01/06/15 13:55, Marcus Shawcroft wrote: On 18 May 2015 at 15:57, Szabolcs Nagy szabolcs.n...@arm.com wrote: Rewrote the generator script in awk, to avoid dealing with sed portability issues. gcc/Changelog: 2015-05-18 Szabolcs Nagy

RE: [Patch,tree-optimization]: Add new path Splitting pass on tree ssa representation

2015-06-30 Thread Bernhard Reutner-Fischer
On June 30, 2015 12:38:13 PM GMT+02:00, Ajit Kumar Agarwal ajit.kumar.agar...@xilinx.com wrote: 6. Added 2 tests. a) compilation check tests. b) execution tests. The 2 tests seem to be identical, so why do you have both? Also, please remove cleanup-tree-dump, this is now done

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Marek Polacek
On Tue, Jun 30, 2015 at 03:13:14PM +0200, Richard Biener wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 02:47:49PM +0200, Richard Biener wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote: Does

Re: [Patch, fortran] PR52846 - [F2008] Support submodules

2015-06-30 Thread FX
Hi Paul, I don’t feel confident enough in many parts of the code (including the module part) to formally review it, but from what I’ve read it seemed rather logical and well-commented. If it regtests fine, I think your plan (especially at the current GCC stage) of committing this week is

Re: [PATCH] Move ~X | X - -1 folding

2015-06-30 Thread Richard Biener
On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 03:13:14PM +0200, Richard Biener wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015 at 02:47:49PM +0200, Richard Biener wrote: On Tue, 30 Jun 2015, Marek Polacek wrote: On Tue, Jun 30, 2015

  1   2   3   >