[Bug c++/79702] New: AX_CXX_COMPILE_STDCXX([17]) does not work with GCC=7.0.1

2017-02-23 Thread kreckel at ginac dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79702 Bug ID: 79702 Summary: AX_CXX_COMPILE_STDCXX([17]) does not work with GCC=7.0.1 Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal

[Bug preprocessor/79701] New: #pragma ignored "-Wcomment" has no effect

2017-02-23 Thread damien at iwi dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79701 Bug ID: 79701 Summary: #pragma ignored "-Wcomment" has no effect Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/45397] [5/6/7 Regression] Issues with integer narrowing conversions

2017-02-23 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45397 --- Comment #28 from Jeffrey A. Law --- WRT c#26. Yes, I would agree that finding CSE's that way is rather gross, but significantly less so than what will be required to address this problem in phi-opt. Pattern matching this is going to be

GCC doc patch committed

2017-02-23 Thread Ian Lance Taylor
I committed this patch to wwwdocs/htdocs/gcc-7/changes.html to describe the status of Go in the GCC 7 release. Ian Index: changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v retrieving revision 1.65 diff -u -r1.65

Re: [PATCH] PR79584, lra ICE in base_to_reg

2017-02-23 Thread Alan Modra
I'm going to wait for Vlad's opinion. I've written a couple of replies and erased them, since I figure whatever I have to say doesn't carry much weight. -- Alan Modra Australia Development Lab, IBM

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at gcc

[Bug debug/31920] Bad location information for Java local variable

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31920 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug target/31705] inline assembler causes ICE: extract_constrain_insn_cached, at recog.c:2002

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31705 Martin Sebor changed: What|Removed |Added Keywords||ice-on-invalid-code

[Bug c/29970] mixing ({...}) with VLA leads to massive breakage

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29970 Martin Sebor changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug middle-end/29887] wrong-code for errno handling on overflow/underflow

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29887 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug bootstrap/29741] Fails to build bootstrap under solaris 10, i386

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29741 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug tree-optimization/79699] small memory leak in MPFR

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79699 --- Comment #3 from Martin Sebor --- Ah, thanks for the reference. It sounds like GCC should call mpfr_free_cache before exiting as is recommended in section 4.7 Memory Handling of the MPFR manual (as I just discovered by searching for the

[Bug tree-optimization/79699] small memory leak in MPFR

2017-02-23 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79699 --- Comment #2 from joseph at codesourcery dot com --- The only mpfr_free_cache call I see in GCC is in the Fortran front end. Without such a call on exit, leaks in MPFR need not be meaningful.

[Bug libstdc++/79700] std::fabsf and std::fabsl missing from

2017-02-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79700 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/79700] New: std::fabsf and std::fabsl missing from

2017-02-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79700 Bug ID: 79700 Summary: std::fabsf and std::fabsl missing from Product: gcc Version: 6.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/79699] small memory leak in MPFR

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79699 Martin Sebor changed: What|Removed |Added URL||https://gforge.inria.fr/tra

Re: ICE in gcc.dg/pr77834.c test for MIPS

2017-02-23 Thread Segher Boessenkool
On Thu, Feb 23, 2017 at 10:43:36PM +, Matthew Fortune wrote: > This is an ICE that will be reproducible on a primary target so is still > appropriate to pursue in stage4 as far as I understand. I'm hoping to > find time to work with Toma on this issue. Ah. Is there a PR for it yet? Please

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #3 from Andrew Pinski --- It makes sense to convert realloc(0, n) to just malloc and the rest just works.

[Bug tree-optimization/79699] New: small memory leak in MPFR

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79699 Bug ID: 79699 Summary: small memory leak in MPFR Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug c++/61596] -Wunused-local-typedefs warns incorrectly on a typedef that's referenced indirectly

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61596 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #3

[Bug c++/79698] spurious -Wunused-local-typedefs on a typedef used by a template

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79698 Martin Sebor changed: What|Removed |Added Keywords||diagnostic

[Bug c++/79698] New: spurious -Wunused-local-typedefs on a typedef used by a template

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79698 Bug ID: 79698 Summary: spurious -Wunused-local-typedefs on a typedef used by a template Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug c/79691] -Wformat-truncation suppressed by (and only by) -Og

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79691 --- Comment #2 from Martin Sebor --- Patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2017-02/msg01480.html

enable -Wformat-truncation with -Og (PR 79691)

2017-02-23 Thread Martin Sebor
Bug 79691 - -Wformat-truncation suppressed by (and only by) -Og points out that the gimple-ssa-sprintf pass doesn't run when this optimization option is used. That's because I forgot to add it to the set of optimization passes that run with that option. The attached trivial patch tested on

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/79697] unused realloc(0, n) not eliminated

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 --- Comment #1 from Martin Sebor --- Ditto for __builtin_strdup and __builtin_strndup. Both of those calls can (and arguably should) be eliminated. If they're not eliminated (but even if they are) a warning on them can and arguably should be

[Bug tree-optimization/79697] New: unused realloc(0, n) not eliminated

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79697 Bug ID: 79697 Summary: unused realloc(0, n) not eliminated Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c/79696] missing -Wunused-result on calls to malloc() and calloc()

2017-02-23 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79696 --- Comment #1 from Andrew Pinski --- -Wunused-result warns on the attribute warn_unused_result usage. If these functions are not marked that way in glibc, it is maybe a glibc bug. I don't think we should mark these as warn_unused_result

[Bug c/79696] New: missing -Wunused-result on calls to malloc() and calloc()

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79696 Bug ID: 79696 Summary: missing -Wunused-result on calls to malloc() and calloc() Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] PR79584, lra ICE in base_to_reg

2017-02-23 Thread Richard Sandiford
Alan Modra writes: > On Thu, Feb 23, 2017 at 11:41:09AM +1030, Alan Modra wrote: >> lo_sum is indeed not valid for mem:SD. simplify_operand_subreg is >> where the subreg disappears. > > Richard, doesn't the following say that lra is expecting to reload > exactly the lo_sum

Re: [PATCH] restore -Wunused-variable on a typedef'd variable in a function template (PR 79548)

2017-02-23 Thread Jason Merrill
On Thu, Feb 23, 2017 at 12:56 PM, Martin Sebor wrote: > On 02/22/2017 05:43 PM, Jason Merrill wrote: >> On Wed, Feb 22, 2017 at 3:44 PM, Martin Sebor wrote: >>> On 02/22/2017 11:02 AM, Jason Merrill wrote: >>> The TREE_USED bit on the type (i.e., on >>>

[Bug c++/79361] [5/6 Regression] ICE redefining a template function as defaulted or deleted

2017-02-23 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79361 Paolo Carlini changed: What|Removed |Added Summary|[5/6/7 Regression] ICE |[5/6 Regression] ICE

[Bug c++/79361] [5/6/7 Regression] ICE redefining a template function as defaulted or deleted

2017-02-23 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79361 --- Comment #2 from paolo at gcc dot gnu.org --- Author: paolo Date: Thu Feb 23 23:20:58 2017 New Revision: 245692 URL: https://gcc.gnu.org/viewcvs?rev=245692=gcc=rev Log: /cp 2017-02-23 Paolo Carlini PR

[visium] Clean up C testsuite

2017-02-23 Thread Eric Botcazou
This eliminates all the regressions that recently crept in (except for the famous gcc.dg/tree-ssa/ssa-thread-14.c present on several other platforms). Tested on visium-elf, applied on the mainline. 2017-02-23 Eric Botcazou * config/visium/visium.md (type):

RE: ICE in gcc.dg/pr77834.c test for MIPS

2017-02-23 Thread Matthew Fortune
Segher Boessenkool writes: > On Thu, Feb 23, 2017 at 04:27:26PM +, Toma Tabacu wrote: > > > This happens when you have inserted code ending in a jump on an > edge. > > > This then will need updating of the CFG, and this code does not know > > > how to do that. > >

gcc-6-20170223 is now available

2017-02-23 Thread gccadmin
Snapshot gcc-6-20170223 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/6-20170223/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-6

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #18 from Marek Polacek --- An alternative, and hopefully still valid testcase: struct A { char c; }; int main() { static char A::* q; A a; return &(a.*q) - }

[PATCH,MIPS] Handle paired single test changes

2017-02-23 Thread Matthew Fortune
Hi Catherine, I missed a couple of testsuite changes that are needed to deal with the fallout of fixing the ABI issues for floating point vectors. I had them in my tree but forgot to post. The ABI change for V2SF i.e. paired single is a bug fix as the behaviour was unintended and violates the

Re: fwprop fix for PR79405

2017-02-23 Thread Jeff Law
On 02/23/2017 01:57 AM, Richard Biener wrote: On Wed, Feb 22, 2017 at 6:19 PM, Jeff Law wrote: On 02/16/2017 12:41 PM, Bernd Schmidt wrote: We have two registers being assigned to each other: (set (reg 213) (reg 209)) (set (reg 209) (reg 213)) These being the only

Re: [PATCH, doc]: Mention that -mfpmath=sse is the default on 32bit x86 w/ SSE2 and -ffast-math

2017-02-23 Thread Martin Sebor
On 02/23/2017 12:01 PM, Uros Bizjak wrote: On Thu, Feb 23, 2017 at 7:07 PM, Martin Sebor wrote: A minor grammatical nit: +This is the default choice for most of x86-32 targets. "for most x86-32 targets" is correct unless the targets are some specific subset, in which

Re: [PATCH] Move -Wrestrict warning later in the FEs and fix some issues in it (PR c++/79588)

2017-02-23 Thread Jeff Law
On 02/20/2017 01:35 PM, Jakub Jelinek wrote: Hi! As mentioned in the PR, -Wrestrict warning is done way too early, where e.g. default arguments aren't filled up yet (reason for ICE on first testcase) or where arguments in templates aren't instantiated yet (reason why we don't diagnose anything

[Bug tree-optimization/79389] [7 Regression] 30% performance regression in SciMark2 MonteCarlo

2017-02-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79389 --- Comment #18 from Jakub Jelinek --- Author: jakub Date: Thu Feb 23 22:05:19 2017 New Revision: 245690 URL: https://gcc.gnu.org/viewcvs?rev=245690=gcc=rev Log: PR tree-optimization/79389 * ifcvt.c (struct noce_if_info): Add

[Bug tree-optimization/79663] [7 Regression] r244815 causes 10% regression for spec1k/172.mgrid on AArch64

2017-02-23 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79663 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug tree-optimization/79663] [7 Regression] r244815 causes 10% regression for spec1k/172.mgrid on AArch64

2017-02-23 Thread law at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79663 --- Comment #5 from Jeffrey A. Law --- Author: law Date: Thu Feb 23 22:02:01 2017 New Revision: 245689 URL: https://gcc.gnu.org/viewcvs?rev=245689=gcc=rev Log: 2017-01-21 Bin Cheng PR tree-optimization/79663

Re: [PATCH PR79663]Only reversely combine refs for ZERO length chains in predcom

2017-02-23 Thread Jeff Law
On 02/23/2017 04:24 AM, Bin Cheng wrote: Hi, This patch resolves spec2k/mgrid regression as reported by PR79663. Root cause has been described thoroughly in comment #1/#2 of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79663 This patch handles ZERO/non-ZERO length chains differently and only

Re: [PATCH,testsuite] Use logical_op_short_circuit to skip targets in ssa-thread-14.c.

2017-02-23 Thread Jeff Law
On 02/23/2017 04:04 AM, Toma Tabacu wrote: Hi, The ssa-thread-14.c test has been failing for MIPS for a while. According to Patrick Palka, who modified this test's target selector in the fix for PR71314, this test fails on targets which don't use non-short-circuit logical ops and should be

[PATCH][PR tree-optimization/79578] Use OEP_ADDRESS_OF

2017-02-23 Thread Jeff Law
Per Richi's request use OEP_ADDRESS_OF in the call to operand_equal_p. Bootstrapped and regression tested on x86_64-linux-gnu. Installed on the trunk. jeff commit 9715bea8d2c2a8332acca572afdd6c0403e677a9 Author: law Date: Thu Feb 23 21:43:03 2017

[Bug tree-optimization/79578] Unnecessary instructions in generated code

2017-02-23 Thread law at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79578 --- Comment #8 from Jeffrey A. Law --- Author: law Date: Thu Feb 23 21:43:03 2017 New Revision: 245688 URL: https://gcc.gnu.org/viewcvs?rev=245688=gcc=rev Log: PR tree-optimization/79578 * tree-ssa-dse.c

Re: [PATCH] Improve ifcvt (PR tree-optimization/79389)

2017-02-23 Thread Bernd Schmidt
On 02/23/2017 10:27 PM, Jakub Jelinek wrote: Now successfully bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? LGTM. Bernd

[Bug tree-optimization/79389] [7 Regression] 30% performance regression in SciMark2 MonteCarlo

2017-02-23 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79389 --- Comment #17 from Jeffrey A. Law --- Note this was extracted from the main motivator for path splitting, so it's probably wise to make sure we get this right. The key is blob of code: for () { ... if (bufferstep)

Re: [PATCH] Improve ifcvt (PR tree-optimization/79389)

2017-02-23 Thread Jakub Jelinek
On Thu, Feb 23, 2017 at 03:07:14PM +0100, Jakub Jelinek wrote: > On Thu, Feb 23, 2017 at 02:47:11PM +0100, Bernd Schmidt wrote: > > On 02/23/2017 02:36 PM, Jakub Jelinek wrote: > > > and both UNLT and GE can be reversed. But if the arguments of the > > > condition > > > are canonicalized, we run

[Bug target/79636] [5/6/7 Regression] ICE in assign_by_spills, at lra-assigns.c:1457

2017-02-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79636 Jakub Jelinek changed: What|Removed |Added Priority|P2 |P4

Re: [PATCH][PR tree-optimization/79578] Use operand_equal_p rather than pointer equality for base test

2017-02-23 Thread Jeff Law
On 02/23/2017 02:02 AM, Richard Biener wrote: diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 84c0b11..a82e164 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -176,7 +176,7 @@ clear_bytes_written_by (sbitmap live_bytes, gimple *stmt, ao_ref *ref) /* Verify we have the

[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

Re: [PATCH] restore -Wunused-variable on a typedef'd variable in a function template (PR 79548)

2017-02-23 Thread Martin Sebor
On 02/22/2017 05:43 PM, Jason Merrill wrote: On Wed, Feb 22, 2017 at 3:44 PM, Martin Sebor wrote: On 02/22/2017 11:02 AM, Jason Merrill wrote: On Tue, Feb 21, 2017 at 4:27 PM, Martin Sebor wrote: Ah, I see, your patch changes attribute unused handling

[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695 Martin Sebor changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Martin

[Bug c++/79695] New: spurious -Wunused-variable on a static global of a type declared unused

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695 Bug ID: 79695 Summary: spurious -Wunused-variable on a static global of a type declared unused Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

Re: ICE in gcc.dg/pr77834.c test for MIPS

2017-02-23 Thread Segher Boessenkool
Hi Toma, On Thu, Feb 23, 2017 at 04:27:26PM +, Toma Tabacu wrote: > > This happens when you have inserted code ending in a jump on an edge. > > This then will need updating of the CFG, and this code does not know > > how to do that. > > Would the following be an appropriate solution ? [

[Bug target/79268] [6/7 Regression] Wrong code generation for vec_xl and vec_xst intrinsics

2017-02-23 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79268 --- Comment #4 from Bill Schmidt --- Author: wschmidt Date: Thu Feb 23 19:29:40 2017 New Revision: 245687 URL: https://gcc.gnu.org/viewcvs?rev=245687=gcc=rev Log: 2017-02-23 Bill Schmidt PR target/79268

Re: [PATCH, doc]: Mention that -mfpmath=sse is the default on 32bit x86 w/ SSE2 and -ffast-math

2017-02-23 Thread Uros Bizjak
On Thu, Feb 23, 2017 at 7:07 PM, Martin Sebor wrote: > A minor grammatical nit: > > +This is the default choice for most of x86-32 targets. > > "for most x86-32 targets" is correct unless the targets are some > specific subset, in which case "most of the [previously

[Bug c++/79689] ICE with trailing return type

2017-02-23 Thread mwarusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79689 --- Comment #3 from Maciej Waruszewski --- Full output that I'm getting: *** buffer overflow detected ***: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/cc1plus terminated === Backtrace: = /usr/lib/libc.so.6(+0x70c4b)[0x7f2742ab2c4b]

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #17 from Marek Polacek --- I see, thanks for pointing that out.

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #16 from Volker Reichelt --- According to [expr.mptr.oper] the code in comment 15 has undefined behavior, because the second operand of ->* is the null-pointer-to-member-value.

[PATCH] Ensure includes

2017-02-23 Thread Jonathan Wakely
Lars noticed that didn't include as it's supposed to. I checked the other TS headers and they're OK. * include/experimental/iterator: Include . * testsuite/experimental/iterator/requirements.cc: Check for contents of . Tested powerpc64le-linux, committed to trunk.

[Bug target/79636] [5/6/7 Regression] ICE in assign_by_spills, at lra-assigns.c:1457

2017-02-23 Thread vmakarov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79636 --- Comment #2 from Vladimir Makarov --- The bug is also present in GCC-4.7 which uses the old reload pass. But GCC-4.4 works ok on the test. The culprit is in udivmod. GCC-4.4 generates a shift instead of udivmod generated by GCC-4.7 and the

Re: [PATCH, doc]: Mention that -mfpmath=sse is the default on 32bit x86 w/ SSE2 and -ffast-math

2017-02-23 Thread Martin Sebor
On 02/23/2017 04:09 AM, Uros Bizjak wrote: Hello! This patch documents a little gcc secret... 2017-02-23 Uros Bizjak * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that -mfpmath=sse is the default also for x86-32 targets with SSE2 instruction set when

[Bug c/79692] -Wformat-overflow false positive?

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79692 Martin Sebor changed: What|Removed |Added Keywords||diagnostic

[Bug testsuite/79455] c-c++-common/tsan/race_on_mutex.c fails on powerpcle starting with r244854 (where it was activated)

2017-02-23 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79455 --- Comment #2 from Bill Schmidt --- I think the most relevant issue here is that we are usually generating a call to memset here, but apparently on rare occasions we do not. That kind of inconsistency is troubling, to say the least. As Segher

[Bug testsuite/79455] c-c++-common/tsan/race_on_mutex.c fails on powerpcle starting with r244854 (where it was activated)

2017-02-23 Thread kelvin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79455 kelvin at gcc dot gnu.org changed: What|Removed |Added CC||kelvin at gcc dot gnu.org

Re: [PATCH][ARM] Remove DImode expansions for 1-bit shifts

2017-02-23 Thread Wilco Dijkstra
  ping From: Wilco Dijkstra Sent: 17 January 2017 19:23 To: GCC Patches Cc: nd; Kyrill Tkachov; Richard Earnshaw Subject: [PATCH][ARM] Remove DImode expansions for 1-bit shifts     A left shift of 1 can always be done using an add, so slightly adjust rtx cost for DImode left shift by 1 so

Re: [PATCH][ARM] Remove Thumb-2 iordi_not patterns

2017-02-23 Thread Wilco Dijkstra
  ping From: Wilco Dijkstra Sent: 17 January 2017 18:00 To: GCC Patches Cc: nd; Kyrylo Tkachov; Richard Earnshaw Subject: [PATCH][ARM] Remove Thumb-2 iordi_not patterns     After Bernd's DImode patch [1] almost all DImode operations are expanded early (except for -mfpu=neon). This means the

Re: [PATCH v3][AArch64] Fix symbol offset limit

2017-02-23 Thread Wilco Dijkstra
  ping From: Wilco Dijkstra Sent: 17 January 2017 15:14 To: Richard Earnshaw; GCC Patches; James Greenhalgh Cc: nd Subject: Re: [PATCH v3][AArch64] Fix symbol offset limit     Here is v3 of the patch - tree_fits_uhwi_p was necessary to ensure the size of a declaration is an integer. So the

Re: [PATCH][ARM] Fix ldrd offsets

2017-02-23 Thread Wilco Dijkstra
    ping From: Wilco Dijkstra Sent: 03 November 2016 12:20 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Fix ldrd offsets     Fix ldrd offsets of Thumb-2 - for TARGET_LDRD the range is +-1020, without -255..4091.  This reduces the number of addressing instructions when using DI mode operations

Re: [PATCH][ARM] Improve max_insns_skipped logic

2017-02-23 Thread Wilco Dijkstra
    ping From: Wilco Dijkstra Sent: 10 November 2016 17:19 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Improve max_insns_skipped logic     Improve the logic when setting max_insns_skipped.  Limit the maximum size of IT to MAX_INSN_PER_IT_BLOCK as otherwise multiple IT instructions are

[Bug c/79693] New: Memory buffer handling - additional optimization proposal

2017-02-23 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79693 Bug ID: 79693 Summary: Memory buffer handling - additional optimization proposal Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH][ARM] Remove movdi_vfp_cortexa8

2017-02-23 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 29 November 2016 11:05 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Remove movdi_vfp_cortexa8     Merge the movdi_vfp_cortexa8 pattern into movdi_vfp and remove it to avoid unnecessary duplication and repeating bugs like PR78439 due to changes being applied

[Bug testsuite/79427] g++.dg/tls/thread_local-order2.C fails starting with r245249

2017-02-23 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79427 Bill Schmidt changed: What|Removed |Added Target|powerpc64-unknown-linux-gnu |powerpc64-unknown-linux-gnu

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member

2017-02-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687 --- Comment #15 from Marek Polacek --- Slightly reduced original testcase: struct A { char c; }; int main() { static char A::* const q = nullptr; A a; return &(a.*q) - }

[Bug middle-end/79396] [5/6/7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2 -march=haswell

2017-02-23 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79396 janus at gcc dot gnu.org changed: What|Removed |Added Summary|[5/6/7 Regression] ICE |[5/6/7 Regression] ICE

[Bug c++/79689] ICE with trailing return type

2017-02-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79689 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

Re: [C++ Patch] PR 79361

2017-02-23 Thread Jason Merrill
Ok. On Thu, Feb 23, 2017 at 6:02 AM, Paolo Carlini wrote: > Hi, > > in this error recovery regression, we ICE after (a lot after) a sensible > diagnostic, when lower_function_body encounters an error_mark_node. I worked > quite a bit on the issue, and, all in all, I

[Bug target/69880] Linking Windows resource + implicit 'default-manifest.o' creates bad .exe

2017-02-23 Thread nickc at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69880 Nick Clifton changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/79691] -Wformat-truncation suppressed by (and only by) -Og

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79691 Martin Sebor changed: What|Removed |Added Keywords||diagnostic, |

[Bug c/79692] New: -Wformat-overflow false positive?

2017-02-23 Thread sirl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79692 Bug ID: 79692 Summary: -Wformat-overflow false positive? Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

RE: ICE in gcc.dg/pr77834.c test for MIPS

2017-02-23 Thread Toma Tabacu
Hi Segher, Thank you for replying. > From: Segher Boessenkool > > This happens when you have inserted code ending in a jump on an edge. > This then will need updating of the CFG, and this code does not know > how to do that. > Would the following be an appropriate solution ? diff --git

Re: [PR 78140] Reuse same IPA bits and VR info

2017-02-23 Thread Martin Jambor
Hi, On Wed, Feb 22, 2017 at 11:11:14AM +0100, Martin Jambor wrote: > Hello, > > this is a fix for PR 78140 which is about LTO WPA of Firefox taking > 1GB memory more than gcc 6. > > It works by reusing the ipa_bits and value_range that we previously > had directly in jump functions and which

[gomp4] DEV-PHASE change

2017-02-23 Thread Tom de Vries
[ was: r241221 [1/2] - in /branches/gomp-4_0-branch: ] On 16/10/16 22:13, tschwi...@gcc.gnu.org wrote: Author: tschwinge Date: Sun Oct 16 20:13:18 2016 New Revision: 241221 URL: https://gcc.gnu.org/viewcvs?rev=241221=gcc=rev Log: svn merge -r 235033:240831

Re: New GCC 7 -Wformat-truncation suppressed by (and only by) -Og?

2017-02-23 Thread Stephan Bergmann
On 02/23/2017 05:02 PM, Martin Sebor wrote: On 02/23/2017 06:51 AM, Stephan Bergmann wrote: At least with a recent GCC 7 trunk build ("gcc (GCC) 7.0.1 20170221 (experimental)"), I noticed that -Wformat-truncation warnings happen to not be emitted if and only if -Og is given: That's

[Bug c/79691] New: -Wformat-truncation suppressed by (and only by) -Og

2017-02-23 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79691 Bug ID: 79691 Summary: -Wformat-truncation suppressed by (and only by) -Og Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3

Re: New GCC 7 -Wformat-truncation suppressed by (and only by) -Og?

2017-02-23 Thread Martin Sebor
On 02/23/2017 06:51 AM, Stephan Bergmann wrote: At least with a recent GCC 7 trunk build ("gcc (GCC) 7.0.1 20170221 (experimental)"), I noticed that -Wformat-truncation warnings happen to not be emitted if and only if -Og is given: That's unfortunately a bug. The warning runs at different

Re: [PATCH] PR 68749: S/390: Disable ifcvt-4.c for -m31.

2017-02-23 Thread Andreas Krebbel
On 02/15/2017 12:19 PM, Dominik Vogt wrote: > The attached patch disables the test ifcvt-4.c on s390 and on > s390x with -31, and adds -march=z196 for s390x. It should no > longer fail on s390 and s390x. > > Tested on s390x biarch. > > Ciao > > Dominik ^_^ ^_^ > Applied. Thanks! -Andreas-

[Bug tree-optimization/79690] IVOPTs drops gs: prefix

2017-02-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79690 --- Comment #4 from Richard Biener --- (In reply to Richard Biener from comment #3) > But an extra assert like the following triggers during bootstrap so we can't > really avoid the casting (in all cases). > > Index: gcc/tree-ssa-address.c >

[Bug middle-end/79665] gcc's signed (x*x)/200 is slower than clang's

2017-02-23 Thread tulipawn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79665 --- Comment #13 from PeteVine --- Still, the 5% regression must have happened very recently. The fast gcc was built on 20170220 and the slow one yesterday, using the original patch. Once again, switching away from Cortex-A53 codegen restores the

[PATCH] PR79389, path-splitting

2017-02-23 Thread Richard Biener
This PR shows another defect in path-splittings cost model which the following patch tries to improve further. Bootstrap and regtest running on x86_64-unknown-linux-gnu. Richard. 2017-02-23 Richard Biener PR tree-optimization/79389 *

[Bug rtl-optimization/68749] FAIL: gcc.dg/ifcvt-4.c scan-rtl-dump ce1 "2 true changes made"

2017-02-23 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68749 --- Comment #15 from Andreas Krebbel --- Author: krebbel Date: Thu Feb 23 15:18:16 2017 New Revision: 245684 URL: https://gcc.gnu.org/viewcvs?rev=245684=gcc=rev Log: PR 68749: S/390: Disable ifcvt-4.c for -m31. gcc/testsuite/ChangeLog:

[Bug fortran/67497] data.c sanitizer runtime error: null pointer passed as argument 2, which is declared to never be null

2017-02-23 Thread zeccav at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67497 --- Comment #7 from Vittorio Zecca --- Traveling now, back home end of March. Did you check the value of variable "len" maybe it's zero so it's not really a bug.

Re: PR79286, ira combine_and_move_insns in loops

2017-02-23 Thread Jeff Law
On 02/23/2017 02:52 AM, Alan Modra wrote: On Thu, Feb 23, 2017 at 12:46:17AM -0700, Jeff Law wrote: And thus we keep the equivalence. Ultimately may_trap_p considers a PIC memory reference as non-trapping. Which is obviously a bug, because this access is segfaulting.. Not that I want to poke

Re: [gomp4] add -finform-parallelism

2017-02-23 Thread Cesar Philippidis
On 02/22/2017 12:17 AM, Thomas Schwinge wrote: > On Mon, 20 Feb 2017 20:42:59 -0800, Cesar Philippidis > wrote: >> --- a/gcc/omp-low.c >> +++ b/gcc/omp-low.c > >> +/* Provide diagnostics on OpenACC loops LOOP, its siblings and its >> + children. */ >> + >> +static

Re: [PATCH PR79663]Only reversely combine refs for ZERO length chains in predcom

2017-02-23 Thread Richard Biener
On Thu, Feb 23, 2017 at 12:24 PM, Bin Cheng wrote: > Hi, > This patch resolves spec2k/mgrid regression as reported by PR79663. Root > cause has been > described thoroughly in comment #1/#2 of > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79663 > This patch handles

[gomp4] backport OPTGROUP_OPENMP

2017-02-23 Thread Cesar Philippidis
This patch backports OPTGROUP_OPENMP from trunk. The patch was originally posted by Martin Jambor here . Thomas, I know that you have a patch to rename this to OPTGROUP_OMP. But in order to keep things consistent with trunk, I kept it

  1   2   >