[PATCH] Fix PR69907

2016-02-24 Thread Richard Biener
The following fixes PR69907, BB vectorization not properly avoiding loading excess elements beyond the last scalar access. As seen by the testsuite adjustments this pessimizes the cases where we'd know the underlying object is larger, but that's a general issue also for loop vectorization with ga

Re: [PATCH] Bump max-ssa-name-query-depth default (PR c/69918)

2016-02-24 Thread Richard Biener
On Tue, 23 Feb 2016, Jakub Jelinek wrote: > Hi! > > As mentioned in the PR, the builtin-integral-1.c testcase fails on > i?86 Solaris. The problem is that on Solaris the dg-add-options c99_runtime > adds -std=c99, which turns -fexcess-precision=standard, and that on some > arches changes > _3

Re: [PATCH] Fix normal_inner_ref expansion (PR middle-end/69909)

2016-02-24 Thread Richard Biener
On Tue, 23 Feb 2016, Jakub Jelinek wrote: > Hi! > > When the base of a handled component (BIT_FIELD_REF in the testcase) > is SSA_NAME which happens to be expanded as some MEM (on the testcase > it is SSA_NAME set to VIEW_CONVERT_EXPR of an SSA_NAME that has MEM as > DECL_RTL), expand_expr_real_1

Re: [PATCH] Fix PR68963

2016-02-24 Thread Richard Biener
On Mon, 22 Feb 2016, Richard Biener wrote: > > The following patch fixes invalid upper bounds recorded for conditonal > array accesses - it doesn't depend on whether their IV wrap or not > (and we were unsetting 'reliable' only anyway). In fact conditional > accesses should be good enough for an

[PATCH][gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clobbers_p

2016-02-24 Thread Kyrill Tkachov
Hi all, In this PR we get an ICE when the hoist pass ends up creating an (insn 88 0 0 (set (reg:OI 136) (const_int 0 [0])) -1 (nil)) instruction. AArch64 doesn't support such an OImode set. The only OImode set operations that aarch64 supports are load/store-multiple operations on v

[PATCH][wwwdocs][committed] Fix typo and tws in changes.html

2016-02-24 Thread Kyrill Tkachov
Hi all, I'm committing this patch as obvious to fix a typo and a TWS occurrence in changes.html. Thanks, Kyrill Index: htdocs/gcc-6/changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v retrieving revision 1.61 di

Re: [PATCH, PR middle-end/68134] Reject scalar modes in default get_mask_mode hook

2016-02-24 Thread Ilya Enkovich
2016-02-22 14:50 GMT+03:00 Alan Lawrence : > On 20/02/16 09:29, Ilya Enkovich wrote: >> >> 2016-02-19 20:36 GMT+03:00 Alan Lawrence : >>> >>> On 17/11/15 11:49, Ilya Enkovich wrote: Hi, Default hook for get_mask_mode is supposed to return integer vector modes. Thi

Re: [PATCH][ARM] PR target/69875 Fix atomic_loaddi expansion

2016-02-24 Thread Ramana Radhakrishnan
On 19/02/16 15:24, Kyrill Tkachov wrote: > Hi all, > > The atomic_loaddi expander on arm has some issues and can benefit from a > rewrite to properly > perform double-word atomic loads on various architecture levels. > > Consider the code: > -- > #include > > atomic_ullon

Re: [PATCH] 69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align, with small alignment

2016-02-24 Thread Dominique d'Humières
The test gcc.dg/builtins-68.c fails on x86_64-apple-darwin15: FAIL: gcc.dg/builtins-68.c (test for errors, line 79) FAIL: gcc.dg/builtins-68.c (test for excess errors) Excess errors: /opt/gcc/work/gcc/testsuite/gcc.dg/builtins-68.c:107:40: warning: large integer implicitly truncated to unsigned

[PATCH][ARM] Add initial support for the Cortex-A32

2016-02-24 Thread Kyrill Tkachov
Hi all, This patch adds initial support for the Cortex-A32 core. It is an ARMv8-A core and this patch enables the -mcpu=cortex-a32 and -mtune=cortex-a32 options. The initial tunings are set to the same parameters as for Cortex-A35. Bootstrapped and tested on arm-none-linux-gnueabihf together wi

Re: [PATCH][ARM] Add initial support for the Cortex-A32

2016-02-24 Thread Richard Earnshaw (lists)
On 24/02/16 10:49, Kyrill Tkachov wrote: > Hi all, > > This patch adds initial support for the Cortex-A32 core. > It is an ARMv8-A core and this patch enables the -mcpu=cortex-a32 and > -mtune=cortex-a32 options. > > The initial tunings are set to the same parameters as for Cortex-A35. > > Boots

[PATCH][ARM][5 Backport] PR target/69875 Fix atomic_loaddi expansion

2016-02-24 Thread Kyrill Tkachov
Hi all, This is the GCC 5 backport of https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01338.html. The differences are that TARGET_HAVE_LPAE has to be defined in arm.h in a different way because the ARM_FSET_HAS_CPU1 mechanism doesn't exist on this branch. Also, the scan-assembler tests that check

[PATCH][ARM][4.9 Backport] PR target/69875 Fix atomic_loaddi expansion

2016-02-24 Thread Kyrill Tkachov
Hi all, This is the GCC 4.9 backport of https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01338.html. The differences are that TARGET_HAVE_LPAE has to be defined in arm.h in a different way because the ARM_FSET_HAS_CPU1 mechanism doesn't exist on this branch. Also, due to the location of insn_flag

Re: [PATCH] Fix thinko in build_vector_from_ctor (PR middle-end/69915)

2016-02-24 Thread Richard Biener
On Tue, Feb 23, 2016 at 9:06 PM, Jakub Jelinek wrote: > Hi! > > This function has changed last year to support embedded VECTOR_CSTs in the > ctor elements. Before that change, there was no pos var and idx used to > match exactly the indices in the new vector, but if there is any VECTOR_CST, > it

Re: better debug info for C++ cdtors, aliases, thunks and other trampolines

2016-02-24 Thread Richard Biener
On Wed, Feb 24, 2016 at 5:07 AM, Alexandre Oliva wrote: > Hi, Richard, > > Thanks for the feedback. I'm afraid I can't quite figure out what > you're getting at. Please see below. > > On Feb 22, 2016, Richard Biener wrote: > >> I think this breaks early-debug assumptions in creating new decl DI

Re: [PATCH][gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clobbers_p

2016-02-24 Thread Richard Biener
On Wed, Feb 24, 2016 at 10:34 AM, Kyrill Tkachov wrote: > Hi all, > > In this PR we get an ICE when the hoist pass ends up creating an > (insn 88 0 0 (set (reg:OI 136) > (const_int 0 [0])) -1 > (nil)) > > instruction. AArch64 doesn't support such an OImode set. > The only OImode set o

Re: [PR69315] enable finish_function to recurse for constexpr functions

2016-02-24 Thread Alexandre Oliva
On Feb 10, 2016, Alexandre Oliva wrote: > On Jan 26, 2016, Alexandre Oliva wrote: >> We don't want finish_function to be called recursively from mark_used. >> However, it's desirable and necessary to call itself recursively when >> performing delayed folding, because that may have to instantiate

[PING][PATCH, PR69607] Mark offload symbols as global in lto

2016-02-24 Thread Tom de Vries
On 17/02/16 16:48, Tom de Vries wrote: On 17/02/16 13:30, Jakub Jelinek wrote: On Wed, Feb 17, 2016 at 01:02:17PM +0100, Tom de Vries wrote: Mark offload symbols as global in lto I'm really not familiar with that part of LTO, so I'm CCing Honza and Richard here. 2016-02-08 Tom de Vries

[gomp4][PR 69916] Fix ICE

2016-02-24 Thread Nathan Sidwell
bug 69916 is an instance of an openacc loop that is lowered during omp-low, but determined to be a nop and removed before oacc-device-lower. (j is dead after the loop). This confused the openacc loop transform code, which still detected it via its loop header, but encountered no IFN_GOACC_LOOP

Re: [PATCH][ARM][RFC] PR target/65578 Fix gcc.dg/torture/stackalign/builtin-apply-4.c for single-precision fpus

2016-02-24 Thread Kyrill Tkachov
Ping*2 Thanks, Kyrill On 17/02/16 10:12, Kyrill Tkachov wrote: Ping. https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00634.html As mentioned before, this is actually a fix for PR target/69538. I got confused when writing the cover letter and ChangeLog... Thanks, Kyrill On 09/02/16 17:24, Kyril

Re: [PATCH] Fix PR c++/69736

2016-02-24 Thread Jason Merrill
On 02/23/2016 11:24 AM, Patrick Palka wrote: 1. making tsubst_copy_and_build retain the REF_PARENTHESIZED_P flag when processing an INDIRECT_REF, or by This should happen in any case. 2. moving the call to maybe_undo_parenthesized_ref in finish_call_expr before the assignment of orig_fn so th

Re: [PATCH] 69912 - [6 regression] ICE in build_ctor_subob_ref initializing a flexible array member

2016-02-24 Thread Jason Merrill
OK. Jason

[WWWDocs] Deprecate support for non-thumb ARM devices

2016-02-24 Thread Richard Earnshaw (lists)
After discussion with the ARM port maintainers we have decided that now is probably the right time to deprecate support for versions of the ARM Architecture prior to ARMv4t. This will allow us to clean up some of the code base going forwards by being able to assume: - Presence of half-word data ac

[patch] libstdc++/69939 Qualify get and forward

2016-02-24 Thread Jonathan Wakely
A trivial fix to . Tested x86_64-linux, committed to trunk and gcc-5-branch. commit 124d28afe0c515a5d60ba2bbe788c2029329dbc5 Author: Jonathan Wakely Date: Wed Feb 24 13:15:53 2016 + libstdc++/69939 Qualify get and forward PR libstdc++/69939 * include/experimental/tuple

Re: [PATCH][ARM] Tests for arm_restrict_it patterns in thumb2.md

2016-02-24 Thread Kyrill Tkachov
Ping. https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00396.html Thanks, Kyrill On 05/02/16 10:00, Kyrill Tkachov wrote: Hi all, I've been auditing the patterns in the arm backend that were added/modified for -mrestrict-it and I've come up with a few runtime tests that end up generating those pa

Re: [PATCH 10/9] ENABLE_CHECKING refactoring: remove remaining occurrences

2016-02-24 Thread Martin Liška
On 02/23/2016 04:21 PM, Richard Biener wrote: > On Wed, Nov 4, 2015 at 4:03 PM, Mikhail Maltsev wrote: >> On 11/03/2015 02:35 AM, Jeff Law wrote: >>> This is good fore the trunk too. Please install. >>> >>> Thanks! >>> >>> jeff >> >> Committed as r229758. > >> grep ENABLE_CHECKING *.[ch] > dwarf

Re: [PATCH][ARM] Tests for arm_restrict_it patterns in thumb2.md

2016-02-24 Thread Ramana Radhakrishnan
On Fri, Feb 5, 2016 at 10:00 AM, Kyrill Tkachov wrote: > Hi all, > > I've been auditing the patterns in the arm backend that were added/modified > for -mrestrict-it > and I've come up with a few runtime tests that end up generating those > patterns. > This patch contains 4 tests for 4 patterns tha

Re: [PATCH 10/9] ENABLE_CHECKING refactoring: remove remaining occurrences

2016-02-24 Thread Michael Matz
Hi, On Wed, 24 Feb 2016, Martin Liška wrote: > >> grep ENABLE_CHECKING *.[ch] > > dwarf2out.c:#if ENABLE_CHECKING > > dwarf2out.c:#if ENABLE_CHECKING > > dwarf2out.c:#if ENABLE_CHECKING > > dwarf2out.h:#if ENABLE_CHECKING > > Hi Richi. > > Removal in dwarf2out.c is not possible due to assignmen

Re: [PATCH] 69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align, with small alignment

2016-02-24 Thread Kyrill Tkachov
On 24/02/16 10:12, Dominique d'Humières wrote: The test gcc.dg/builtins-68.c fails on x86_64-apple-darwin15: FAIL: gcc.dg/builtins-68.c (test for errors, line 79) FAIL: gcc.dg/builtins-68.c (test for excess errors) Excess errors: /opt/gcc/work/gcc/testsuite/gcc.dg/builtins-68.c:107:40: warning

Re: [PATCH] 69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align, with small alignment

2016-02-24 Thread Martin Sebor
On 02/24/2016 03:12 AM, Dominique d'Humières wrote: The test gcc.dg/builtins-68.c fails on x86_64-apple-darwin15: Thanks for the heads up. I see it also fails on i686-pc-linux-gnu and likely other 32-bit targets for similar reasons. Let me adjust it today. Martin FAIL: gcc.dg/builtins-68.

Re: [PATCH] 69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align, with small alignment

2016-02-24 Thread Jakub Jelinek
On Wed, Feb 24, 2016 at 07:37:56AM -0700, Martin Sebor wrote: > On 02/24/2016 03:12 AM, Dominique d'Humières wrote: > >The test gcc.dg/builtins-68.c fails on x86_64-apple-darwin15: > > Thanks for the heads up. I see it also fails on i686-pc-linux-gnu > and likely other 32-bit targets for similar

[testsuite] Adapt gcc.dg/debug/dwarf2/prod-options.c for Solaris assembler

2016-02-24 Thread Rainer Orth
gcc.dg/debug/dwarf2/prod-options.c currently FAILs on Solaris when the native assembler is used: FAIL: gcc.dg/debug/dwarf2/prod-options.c scan-assembler DW_AT_producer: "GNU C This happens because the DW_AT_producer line scanned for is formatted slightly differently: on Solaris/x86 with as, I see

[PATCH] Fix PR69760

2016-02-24 Thread Richard Biener
The following fixes bogus SCEV analysis for expressions that are only executed conditionally [note: conditionally here doesn't include after a taken exit]. Basically we have to make sure further analysis does not attempt to use undefined overflow for expressions we don't know whether they are com

Re: [PATCH] 69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align, with small alignment

2016-02-24 Thread Martin Sebor
On 02/24/2016 07:46 AM, Jakub Jelinek wrote: On Wed, Feb 24, 2016 at 07:37:56AM -0700, Martin Sebor wrote: On 02/24/2016 03:12 AM, Dominique d'Humières wrote: The test gcc.dg/builtins-68.c fails on x86_64-apple-darwin15: Thanks for the heads up. I see it also fails on i686-pc-linux-gnu and l

Re: [PATCH 10/9] ENABLE_CHECKING refactoring: remove remaining occurrences

2016-02-24 Thread Martin Liška
On 02/24/2016 03:27 PM, Michael Matz wrote: > But nothing can set ENABLE_CHECKING anymore (the macro is meanwhile called > CHECKING_P), so all that code is dead anyway. So either the new macro > should be used or that code should be removed. > > > Ciao, > Michael. Good point, well the change

libgo patch committed: Lock goroutine to thread during cgo call

2016-02-24 Thread Ian Lance Taylor
This patch from Xia Bin fixes libgo to lock a goroutine to a thread during a cgo call. That is how the master library works, and it avoids confusion if the C code calls back into the Go code. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofro

PATCH to add -flifetime-dse=1

2016-02-24 Thread Jason Merrill
Various projects have been having trouble with the new -flifetime-dse clobber at the beginning of the constructor, so this patch allows them to pass -flifetime-dse=1 to disable that clobber while still keeping the one at the end of the destructor. Tested x86_64-pc-linux-gnu, applying to trunk.

C++ PATCH to make constexpr respect -fno-inline

2016-02-24 Thread Jason Merrill
While talking about constexpr issues it occurred to me that we ought not fold away calls to constexpr functions in regular expressions when the user has specified -fno-inline, so that they can debug those calls normally. Tested x86_64-pc-linux-gnu, applying to trunk. commit bf89c79569525294101e

Re: PATCH to add -flifetime-dse=1

2016-02-24 Thread Jakub Jelinek
On Wed, Feb 24, 2016 at 10:15:35AM -0500, Jason Merrill wrote: > --- a/gcc/doc/invoke.texi > +++ b/gcc/doc/invoke.texi > @@ -6809,7 +6809,10 @@ value, and any changes during the lifetime of the > object are dead when > the object is destroyed. Normally dead store elimination will take > advanta

Re: [PATCH 10/9] ENABLE_CHECKING refactoring: remove remaining occurrences

2016-02-24 Thread Pierre-Marie de Rodat
On 02/24/2016 03:53 PM, Martin Liška wrote: On 02/24/2016 03:27 PM, Michael Matz wrote: But nothing can set ENABLE_CHECKING anymore (the macro is meanwhile called CHECKING_P), so all that code is dead anyway. So either the new macro should be used or that code should be removed. Good point, w

Re: [PATCH][RFC][Offloading] Fix PR68463

2016-02-24 Thread Thomas Schwinge
Hi! On Tue, 23 Feb 2016 08:37:07 +0100, Tom de Vries wrote: > On 22/02/16 19:07, Ilya Verbin wrote: > > 2016-02-22 18:13 GMT+03:00 Thomas Schwinge: > >> >On Sat, 20 Feb 2016 13:54:20 +0300, Ilya Verbin wrote: > >>> >>On Fri, Feb 19, 2016 at 15:53:08 +0100, Jakub Jelinek wrote: > >> >On Wed,

Re: [pr 69666] No SRA default_def replacements for unscalarizable

2016-02-24 Thread Martin Jambor
On Tue, Feb 23, 2016 at 06:45:08AM -0800, H.J. Lu wrote: > On Fri, Feb 19, 2016 at 8:21 AM, Martin Jambor wrote: > > Hi, > > > > in PR 69666, SRA attempts to turn a load from an aggregate that is > > uninitialized into a load from a default definition SSA name (which > > something it does to gener

Re: [PATCH][RFC][Offloading] Fix PR68463

2016-02-24 Thread Ilya Verbin
On Wed, Feb 24, 2016 at 17:13:35 +0100, Thomas Schwinge wrote: > On Tue, 23 Feb 2016 08:37:07 +0100, Tom de Vries > wrote: > > On 22/02/16 19:07, Ilya Verbin wrote: > > > 2016-02-22 18:13 GMT+03:00 Thomas Schwinge: > > >> >On Sat, 20 Feb 2016 13:54:20 +0300, Ilya Verbin > > >> >wrote: > > >>> >

[PATCH] Fix missing warning with bool (PR c/67854)

2016-02-24 Thread Marek Polacek
The following is another issue with macros from system headers. In this case bool is defined in a system header to expand to _Bool and the "is promoted to" warning didn't trigger because of that. The fix is to use the expanded location. Bootstrapped/regtested on x86_64-linux, ok for trunk? 201

C PATCH for c/69819 (error-recovery ICE)

2016-02-24 Thread Marek Polacek
This is a minor issue in the C FE, where it on an invalid code generated bogus FUNCTION_DECL with ARRAY_TYPE as a type -- and gimplifier can't digest that. I think the code in finish_decl, whereby we update the type of shadowed global variables should not overwrite a type of totally unrelated decl

Re: [PATCH] 69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align, with small alignment

2016-02-24 Thread Martin Sebor
On 02/24/2016 07:52 AM, Martin Sebor wrote: On 02/24/2016 07:46 AM, Jakub Jelinek wrote: On Wed, Feb 24, 2016 at 07:37:56AM -0700, Martin Sebor wrote: On 02/24/2016 03:12 AM, Dominique d'Humières wrote: The test gcc.dg/builtins-68.c fails on x86_64-apple-darwin15: Thanks for the heads up. I

Re: [WWWDocs] Deprecate support for non-thumb ARM devices

2016-02-24 Thread Joseph Myers
On Wed, 24 Feb 2016, Richard Earnshaw (lists) wrote: > After discussion with the ARM port maintainers we have decided that now > is probably the right time to deprecate support for versions of the ARM > Architecture prior to ARMv4t. This will allow us to clean up some of Should this include -mar

Re: C PATCH for c/69819 (error-recovery ICE)

2016-02-24 Thread Joseph Myers
On Wed, 24 Feb 2016, Marek Polacek wrote: > This is a minor issue in the C FE, where it on an invalid code generated bogus > FUNCTION_DECL with ARRAY_TYPE as a type -- and gimplifier can't digest that. > > I think the code in finish_decl, whereby we update the type of shadowed global > variables

[patch] libstdc++/69945 Add __gnu_cxx::__freeres hook

2016-02-24 Thread Jonathan Wakely
This adds a new function to libsupc++ which will free the memory still in use by the pool used for allocating exceptions when malloc fails. This is similar to glibc's __libc_freeres, which valgrind (and other tools?) use to tell glibc to deallocate everything before exiting. I initially called i

[Patch, MIPS] Patch for PR 68273 (user aligned variable arguments)

2016-02-24 Thread Steve Ellcey
Here is a new patch for PR 68273. The original problem with gsoap has been fixed by changing GCC to not create overly-aligned variables in the SRA pass but the MIPS specific problem of how user-aligned variables are passed to functions remains. Because MIPS GCC is internally inconsistent, it seem

[PATCH] Further -Wnonnull-compare fixes (PR c++/69922)

2016-02-24 Thread Jakub Jelinek
Hi! This patch adds TREE_NO_WARNING to two places that didn't have it before and avoids folding those conditions at those spots (partly to match C++ delayed folding intent, partly to avoid duplicating TREE_NO_WARNING propagation). The more controversial stuff is that we need to preserve TREE_NO_W

[PATCH] Workaround LTO debug info bugs in dwarf2out (PR debug/69705)

2016-02-24 Thread Jakub Jelinek
Hi! This is something that I hope early debug for LTO will eventually fix, but we aren't there yet and current trunk emits bogus debug info for inlines - DW_TAG_subprogram of the inline doesn't contain any parameters/variables/lexical blocks etc. in it, but in DW_TAG_inlined_subroutine we add all

Re: [PATCH][RFC][Offloading] Fix PR68463

2016-02-24 Thread Ilya Verbin
On Mon, Feb 22, 2016 at 16:13:07 +0100, Thomas Schwinge wrote: > (..., and similar for others.) The if-exists spec function only works > for absolute paths (I have not researched, why?), so it won't locate the > files for relative -Bbuild-gcc/[...] prefixes, and linking will fail: > > /tmp/cc

Re: [PATCH][RFC][Offloading] Fix PR68463

2016-02-24 Thread Jakub Jelinek
On Wed, Feb 24, 2016 at 10:29:47PM +0300, Ilya Verbin wrote: > Done. > Here is a follow up patch. OK for trunk? Bootstrapped and regtested. Ok with appropriate ChangeLog entry. Jakub

[PR fortran/60126] Internal compiler error with code using pointer reshaping (gfortran 4.8.2)

2016-02-24 Thread Harald Anlauf
Hello, the above bug appears to have been fixed over 2.5 years ago. It does not trigger with 4.9, 5 and 6 trunk, but does with 4.8.0 and before. I recommend to close the bug, while adding a testcase to the trunk's testsuite. See e.g. the attached example. Harald 2016-02-24 Harald Anlauf

Re: [PATCH] Fix PR c++/69736

2016-02-24 Thread Patrick Palka
On Wed, 24 Feb 2016, Jason Merrill wrote: On 02/23/2016 11:24 AM, Patrick Palka wrote: 1. making tsubst_copy_and_build retain the REF_PARENTHESIZED_P flag when processing an INDIRECT_REF, or by This should happen in any case. 2. moving the call to maybe_undo_parenthesized_ref in finish_call_

C++ PATCH for c++/69323 (ICE on template friend)

2016-02-24 Thread Jason Merrill
The testcase in the BZ is invalid, but there's a valid variant that also ICEd. I've fixed the compiler to do the right thing with three different variants. Tested x86_64-pc-linux-gnu, applying to trunk. Changes for the valid variant also applied to 5. commit e99dbeae7942d066e234b3e31ec73e24d

Re: [PATCH] Further -Wnonnull-compare fixes (PR c++/69922)

2016-02-24 Thread Jason Merrill
On 02/24/2016 02:05 PM, Jakub Jelinek wrote: + && integer_zerop (tree_strip_nop_conversions (TREE_OPERAND (org_x, + 1 Why check this? I think we want this handling for all TREE_NO_WARNING comparisons. Jason

Re: [PATCH] Further -Wnonnull-compare fixes (PR c++/69922)

2016-02-24 Thread Jakub Jelinek
On Wed, Feb 24, 2016 at 02:57:49PM -0500, Jason Merrill wrote: > On 02/24/2016 02:05 PM, Jakub Jelinek wrote: > >+ && integer_zerop (tree_strip_nop_conversions (TREE_OPERAND (org_x, > >+ 1 > > Why check this? I think we wan

[pr/69916] ICE with empty loops

2016-02-24 Thread Nathan Sidwell
Jakub, this patch fixes the ICE reported in pr69916 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69916) The loop is lowered at omp-lowering, but subsequently determined to be dead before we get to oacc-target-lower. The loop CF is removed along with the (pure) IFN_OACC_LOOP function calls

Re: [PR fortran/60126] Internal compiler error with code using pointer reshaping (gfortran 4.8.2)

2016-02-24 Thread Harald Anlauf
On 02/24/16 20:42, Harald Anlauf wrote: > Hello, > > the above bug appears to have been fixed over 2.5 years ago. > It does not trigger with 4.9, 5 and 6 trunk, but does with 4.8.0 and > before. > > I recommend to close the bug, while adding a testcase to the trunk's > testsuite. See e.g. the at

Re: [PATCH] Workaround LTO debug info bugs in dwarf2out (PR debug/69705)

2016-02-24 Thread Jason Merrill
OK. Jason

Re: [PATCH] Further -Wnonnull-compare fixes (PR c++/69922)

2016-02-24 Thread Jason Merrill
On 02/24/2016 03:05 PM, Jakub Jelinek wrote: On Wed, Feb 24, 2016 at 02:57:49PM -0500, Jason Merrill wrote: On 02/24/2016 02:05 PM, Jakub Jelinek wrote: + && integer_zerop (tree_strip_nop_conversions (TREE_OPERAND (org_x, +

Re: PATCH to add -flifetime-dse=1

2016-02-24 Thread Jason Merrill
On 02/24/2016 10:25 AM, Jakub Jelinek wrote: That should be @option{-flifetime-dse=1} I think. Shouldn't -flifetime-dse= be also in @opindex at the beginning of the paragraph, and documented what the values mean (0 equivalent of -fno-lifetime-dse (or document it vice versa) and 2 full lifetime d

Re: [PATCH] Fix PR c++/69736

2016-02-24 Thread Jason Merrill
OK. Jason

RE: [Patch, MIPS] Patch for PR 68273 (user aligned variable arguments)

2016-02-24 Thread Matthew Fortune
Steve Ellcey writes: > Here is a new patch for PR 68273. The original problem with gsoap has > been fixed by changing GCC to not create overly-aligned variables in > the SRA pass but the MIPS specific problem of how user-aligned variables > are passed to functions remains. > > Because MIPS GCC

[PATCH v2] gcov: Runtime configurable destination output

2016-02-24 Thread Aaron Conole
The previous gcov behavior was to always output errors on the stderr channel. This is fine for most uses, but some programs will require stderr to be untouched by libgcov for certain tests. This change allows configuring the gcov output via an environment variable which will be used to open the app

Re: [Patch, MIPS] Patch for PR 68273 (user aligned variable arguments)

2016-02-24 Thread Joseph Myers
On Wed, 24 Feb 2016, Steve Ellcey wrote: > I also added a way to turn that warning off in case the user doesn't > want to see it (-mno-warn-aligned-args). I did not add an option Any command-line options need documenting in invoke.texi. -- Joseph S. Myers jos...@codesourcery.com

Re: Fix/work around PR57676, LRA terminates prematurely

2016-02-24 Thread Jeff Law
On 02/23/2016 04:56 AM, Richard Biener wrote: On Mon, Feb 22, 2016 at 4:34 PM, Jeff Law wrote: On 02/22/2016 07:34 AM, Richard Biener wrote: Hum, but then you get to "inifinite" compiles again when LRA is buggy or the user presents it with an impossible to handle asm. Neither should be happ

Re: [PATCH] hurd: align -p and -pg behavior on Linux

2016-02-24 Thread Thomas Schwinge
Hi! Sorry for the late answer... On Sat, 19 Sep 2015 14:00:23 +0200, Samuel Thibault wrote: > On Linux, -p and -pg do not make gcc link against libc_p.a, only > -profile does (as documented in r11246), and thus people expect -p (Yo, 20 years ago...) > and -pg to work without libc_p.a installe

[PATCH] powerpc: Handle DImode rotatert implemented with rlwinm (PR69946)

2016-02-24 Thread Segher Boessenkool
Some DImode rotate-right-and-mask can be implemented best with a rlwinm instruction: those that could be a lshiftrt instead of a rotatert, while the mask is not right-aligned. Why the rotate in the testcase is not optimised to a plain shift is another question, but we need to handle it here anyway

[ARM] Add support for overflow add, sub, and neg operations

2016-02-24 Thread Michael Collison
This patch adds support for builtin overflow of add, subtract and negate. This patch is targeted for gcc 7 stage 1. It was tested with no regressions in arm and thumb modes on the following targets: arm-non-linux-gnueabi arm-non-linux-gnuabihf armeb-none-linux-gnuabihf arm-non-eabi 2016-02-24

RE: [Patch, MIPS] Patch for PR 68273 (user aligned variable arguments)

2016-02-24 Thread Steve Ellcey
On Wed, 2016-02-24 at 13:46 -0800, Matthew Fortune wrote: > Thanks for enumerating all the cases. I'd not looked at all of them. I > do agree that we need a fix given the existing inconsistencies. > > One question I have is where does an over aligned argument get pushed > to the stack with the pa

Re: [PATCH] hurd: align -p and -pg behavior on Linux

2016-02-24 Thread Samuel Thibault
Thomas Schwinge, on Wed 24 Feb 2016 23:46:36 +0100, wrote: > I guess getting -D_REENTRANT for -pthread won't do us any harm? It won't. > > --- gcc/config/i386/gnu.h.orig 2015-09-17 21:41:13.0 + > > +++ gcc/config/i386/gnu.h 2015-09-17 23:03:57.0 + > > @@ -27,11 +27,

[patch, fortran] PR69110 ICE with NEWUNIT

2016-02-24 Thread Jerry DeLisle
This patch from Steve on c.l.f Fixes the segfault from attempting a string compare where there is no string yet. Regression tested on x86-64. New test case. OK for trunk. Regards, Jerry 2016-02-24 Jerry DeLisle Steven G. Kargl PR fortran/69110 * io.c (gfc_m

[PATCH] [RFA] [PR tree-optmization/69740] Schedule loop fixups when needed

2016-02-24 Thread Jeff Law
PR69740 shows two instances where one or more transformations ultimately lead to the removal of a basic block. In both cases, removal of the basic block removes a path into an irreducible region and turns the irreducible region into a natural loop. When that occurs we need to be requesting

Re: [PATCH] Fix regcprop noop move handling (PR rtl-optimization/69896)

2016-02-24 Thread Jeff Law
On 02/22/2016 02:26 PM, Jakub Jelinek wrote: Hi! The following testcase is miscompiled, because prepare_shrink_wrap attempts to copyprop_hardreg_forward_1 the first bb. We see DImode rbx being copied to DImode r11, and then we have (dead since postreload) an assignment of SImode r11d to SImode

Re: [PATCH PR69052]Check if loop inv can be propagated into mem ref with additional addr expr canonicalization

2016-02-24 Thread Jeff Law
On 02/22/2016 02:22 AM, Bin.Cheng wrote: My only question is why didn't you use FOR_EACH_SUBRTX_VRA from rtl-iter.h to walk the RTX expressions in collect_address_parts and canonicalize_address_mult? Hi Jeff, Nothing special, just I haven't used this before, also canonicalize_address_mult is al

Re: [patch, fortran] PR69110 ICE with NEWUNIT

2016-02-24 Thread Thomas Koenig
Hi Jerry and Steve, OK for trunk. OK. Regards Thomas