Re: [PR bootstrap/56750] implement --disable-stage1-static-libs

2018-02-08 Thread Aldy Hernandez
On Thu, Feb 8, 2018 at 6:00 PM, Jeff Law wrote: > On 02/08/2018 04:42 AM, Aldy Hernandez wrote: > You are a brave soul. I would've preferred to close as WONTFIX from the gun, but no one commented, so I tried my hand at a patch :). > > Every time I look at 56750 I shake my

[PATCH v3] Disable reg offset in quad-word store for Falkor

2018-02-08 Thread Siddhesh Poyarekar
Hi, Here's v3 of the patch to disable register offset addressing mode for stores of 128-bit values on Falkor because they're very costly. Following Kyrill's suggestion, I compared the codegen for a53 and found that the codegen was quite different. Jim's original patch is the most minimal

[PATCH] Avoid BSWAP with floating point modes on rs6000 (PR target/84226)

2018-02-08 Thread Jakub Jelinek
Hi! BSWAP is documented as: @item (bswap:@var{m} @var{x}) Represents the value @var{x} with the order of bytes reversed, carried out in mode @var{m}, which must be a fixed-point machine mode. The mode of @var{x} must be @var{m} or @code{VOIDmode}. The fixed-point is something used widely in

Re: [PATCH] Fix driver -fsanitize= handling with -static (PR sanitizer/84285)

2018-02-08 Thread Richard Biener
On February 9, 2018 7:27:57 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >When linking with -static-lib{a,t,l,ub}san -fsanitize=whatever, we link >-l{a,t,l,ub}san statically into the binary and add the set of libraries >needed by the lib{a,t,l,ub}san.a afterwards (-lpthread, -ldl

Re: [PATCH] Tweak ssa-dom-cse-2.c testcase (PR tree-optimization/84232)

2018-02-08 Thread Richard Biener
On February 9, 2018 7:31:33 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >As mentioned in the PR, DOM/SLP can only handle the case when the >stores >of the vector are in the same chunks as the reads from it, so the >testcase >has lots of xfails for targets where this doesn't

[PATCH] Tweak ssa-dom-cse-2.c testcase (PR tree-optimization/84232)

2018-02-08 Thread Jakub Jelinek
Hi! As mentioned in the PR, DOM/SLP can only handle the case when the stores of the vector are in the same chunks as the reads from it, so the testcase has lots of xfails for targets where this doesn't happen. On x86 in the generic and many other tunings the vector is stored in the same chunks as

[PATCH] Fix driver -fsanitize= handling with -static (PR sanitizer/84285)

2018-02-08 Thread Jakub Jelinek
Hi! When linking with -static-lib{a,t,l,ub}san -fsanitize=whatever, we link -l{a,t,l,ub}san statically into the binary and add the set of libraries needed by the lib{a,t,l,ub}san.a afterwards (-lpthread, -ldl etc.). When doing -static -fsanitize=whatever link, we link the sanitizer library

[PATCH] Fix handling of variable length fields in structures (PR c/82210)

2018-02-08 Thread Jakub Jelinek
Hi! When placing a variable length field into a structure, we need to update rli->offset_align for the next field. We do: rli->offset_align = MIN (rli->offset_align, desired_align); which updates it according to the start of that VLA field, the problem is that if the field doesn't have a size

PR84300, ICE in dwarf2cfi on ppc64le

2018-02-08 Thread Alan Modra
This PR is one of those with a really obvious cause, and fix. There's nothing in the unspec rtl to say the insn needs lr! Bootstrapped and regression tested powerpc64le-linux. OK? PR target/84300 gcc/ * config/rs6000/rs6000.md (split_stack_return): Use LR. gcc/testsuite/

Re: [SFN+LVU+IEPM v4 9/9] [IEPM] Introduce inline entry point markers

2018-02-08 Thread Jeff Law
On 02/08/2018 08:53 PM, Alan Modra wrote: > On Fri, Feb 09, 2018 at 01:21:27AM -0200, Alexandre Oliva wrote: >> Here's what I checked in, right after the LVU patch. >> >> [IEPM] Introduce inline entry point markers > > One of these two patches breaks ppc64le bootstrap with the assembler >

Re: [SFN+LVU+IEPM v4 9/9] [IEPM] Introduce inline entry point markers

2018-02-08 Thread Alan Modra
On Fri, Feb 09, 2018 at 01:21:27AM -0200, Alexandre Oliva wrote: > Here's what I checked in, right after the LVU patch. > > [IEPM] Introduce inline entry point markers One of these two patches breaks ppc64le bootstrap with the assembler complaining "Error: view number mismatch" when compiling

Re: [SFN+LVU+IEPM v4 7/9] [LVU] Introduce location views

2018-02-08 Thread Alexandre Oliva
On Feb 8, 2018, Jason Merrill wrote: > On Thu, Feb 8, 2018 at 7:56 AM, Alexandre Oliva wrote: >> On Feb 7, 2018, Jason Merrill wrote: >> >>> OK, that makes sense. But I'm still uncomfortable with choosing an >>> existing opcode for

Re: [SFN+LVU+IEPM v4 9/9] [IEPM] Introduce inline entry point markers

2018-02-08 Thread Alexandre Oliva
On Jan 25, 2018, Alexandre Oliva wrote: > On Jan 24, 2018, Jakub Jelinek wrote: >> I think this asks for >> if (flag_checking) >> gcc_assert (block_within_block_p (block, >> DECL_INITIAL (current_function_decl), >> true)); > 'k, changed. >> Otherwise the

Re: [SFN+LVU+IEPM v4 7/9] [LVU] Introduce location views

2018-02-08 Thread Alexandre Oliva
On Feb 8, 2018, Jason Merrill wrote: > On 02/07/2018 02:36 AM, Alexandre Oliva wrote: >> +/* Output symbol LAB1 as an unsigned LEB128 quantity. */ > Let's mention here that the value of LAB1 must be an assemble-time > constant (such as a view counter), since we can't have

Re: [PATCH] correct -Wrestrict handling of arrays of arrays (PR 84095)

2018-02-08 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00076.html On 02/01/2018 04:45 PM, Martin Sebor wrote: The previous patch didn't resolve all the false positives in the Linux kernel. The attached is an update that fixes the remaining one having to do with multidimensional array members:

[C++] [PR84231] overload on cond_expr in template

2018-02-08 Thread Alexandre Oliva
A non-type-dependent COND_EXPR within a template is reconstructed with the original operands, after one with non-dependent proxies is built to determine its result type. This is problematic because the operands of a COND_EXPR determined to be an rvalue may have been converted to denote their

Re: Please accept this commit for the trunk

2018-02-08 Thread Mike Stump
On Feb 8, 2018, at 12:36 PM, Segher Boessenkool wrote: > > On Wed, Feb 07, 2018 at 03:52:27PM -0800, Mike Stump wrote: >> I dusted the pointed to patch off and check it in. Let us know how it goes. > > I wanted to test this on the primary and secondary powerpc

Re: [PATCH] PowerPC PR target/84154, fix floating point to small integer conversion regression

2018-02-08 Thread Michael Meissner
On Thu, Feb 08, 2018 at 06:10:31PM -0500, Hans-Peter Nilsson wrote: > On Wed, 7 Feb 2018, Segher Boessenkool wrote: > > Hi Mike, > > > > On Tue, Feb 06, 2018 at 04:34:08PM -0500, Michael Meissner wrote: > > > Here is the patch reworked. It bootstraps on both little/big endian > > > power8, > > >

Re: [PATCH, rs6000] PR84220 fix altivec_vec_sld and vec_sldw intrinsic definitions

2018-02-08 Thread Segher Boessenkool
Hi! On Wed, Feb 07, 2018 at 09:14:59AM -0600, Will Schmidt wrote: > Our VEC_SLD definitions were mistakenly allowing the third argument to be > of an invalid type, triggering an ICE (on invalid code) later in the build > process. This fixes those definitions. The nearby VEC_SLDW definitions

Re: [PATCH] Fix var-tracking ICE introduced in poly_int conversion (PR debug/84252)

2018-02-08 Thread Jeff Law
On 02/07/2018 03:43 PM, Jakub Jelinek wrote: > Hi! > > As mentioned in the PR, the vt_get_decl_and_offset function verifies > incoming PARALLEL is usable for tracking, but if it fails, we retry > vt_get_decl_and_offset on DECL_RTL and there we check only that a memory > isn't larger than 16 bytes

Re: [PATCH] Allow (again) const variables with zero (or no) initializers in .bss* named sections (PR middle-end/84237)

2018-02-08 Thread Jeff Law
On 02/06/2018 01:44 PM, Jakub Jelinek wrote: > Hi! > > The last year's bss_initializer_p change apparently broke xen. While it is > reasonable not to put const variables into .bss* sections by default, > refusing to put them when the user asks for it through using section > attribute seems

Re: [PATCH] PowerPC PR target/84154, fix floating point to small integer conversion regression

2018-02-08 Thread Hans-Peter Nilsson
On Wed, 7 Feb 2018, Segher Boessenkool wrote: > Hi Mike, > > On Tue, Feb 06, 2018 at 04:34:08PM -0500, Michael Meissner wrote: > > Here is the patch reworked. It bootstraps on both little/big endian power8, > > and all of the tests run. Can I install this into trunk now, and into GCC 7 > > after

Re: [PR bootstrap/56750] implement --disable-stage1-static-libs

2018-02-08 Thread Jeff Law
On 02/08/2018 04:42 AM, Aldy Hernandez wrote: > In this PR, the reporter is complaining that forcing -static-libstdc++ > and -static-libgcc during stage1 will also force it down to all > subdirectories (gdb for instance). > > There is some back and forth in the PR whether this is good or not. 

Re: [PATCH][i386][3/3] PR target/84164: Make *cmpqi_ext_ patterns accept more zero_extract modes

2018-02-08 Thread Uros Bizjak
On Thu, Feb 8, 2018 at 6:11 PM, Kyrill Tkachov wrote: > Hi all, > > This patch fixes some fallout in the i386 testsuite that occurs after the > simplification in patch [1/3] [1]. > The gcc.target/i386/extract-2.c FAILs because it expects to match: > (set (reg:CC 17

Re: [PATCH, i386] PR target/83008: Fix for SKX cost model

2018-02-08 Thread Uros Bizjak
On Thu, Feb 8, 2018 at 12:48 PM, Shalnov, Sergey wrote: > Hi, > This patch contain cost model change for SKX and closes PR target/83008 > (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83008) > > It provides following performance scores in geomean: > SPEC CPU2017 intrate

[PATCH/RFC] tree-if-conv.c: fix two ICEs seen with -fno-tree-forwprop (PR tree-optimization/84178)

2018-02-08 Thread David Malcolm
PR tree-optimization/84178 reports a couple of source files that ICE inside ifcvt when compiled with -03 -fno-tree-forwprop (trunk and gcc 7). Both cases involve problems with ifcvt's per-BB gimplified predicates. Testcase 1 fails this assertion within release_bb_predicate during cleanup: 283

Re: [RFC PATCH] avoid applying attributes to explicit specializations (PR 83871)

2018-02-08 Thread Martin Sebor
__attribute__ ((nothrow))? The patch includes a test case with wrong-code due to inheriting the attribute. With exception specifications having to match between the primary and its specializations it's the only way to make them different. I've left this unchanged but let me know if I'm missing

Re: [PR tree-optimization/84047] missing -Warray-bounds on an out-of-bounds index

2018-02-08 Thread Martin Sebor
On 02/08/2018 03:38 AM, Richard Biener wrote: On Thu, Feb 1, 2018 at 6:42 PM, Aldy Hernandez wrote: Since my patch isn't the easy one liner I wanted it to be, perhaps we should concentrate on Martin's patch, which is more robust, and has testcases to boot! His patch from

[PATCH, rs6000, committed] Fix PR81143

2018-02-08 Thread Peter Bergner
I have committed the following obvious testsuite patch to fix PR81143. The "bug" is that __ORDER_LITTLE_ENDIAN__ is always defined for both little and big endian compiles. I checked and this is the only use of this in the gcc.target/powerpc/ directory. Peter PR target/81143 *

Re: [C++ Patch] PR 83806 ("[6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr")

2018-02-08 Thread Jason Merrill
On Thu, Feb 8, 2018 at 1:21 PM, Paolo Carlini wrote: > Hi, > > On 08/02/2018 18:38, Jason Merrill wrote: >> >> On Thu, Feb 8, 2018 at 6:22 AM, Paolo Carlini >> wrote: >>> >>> Hi, >>> >>> this one should be rather straightforward. As noticed by

Re: Please accept this commit for the trunk

2018-02-08 Thread Segher Boessenkool
On Wed, Feb 07, 2018 at 03:52:27PM -0800, Mike Stump wrote: > I dusted the pointed to patch off and check it in. Let us know how it goes. I wanted to test this on the primary and secondary powerpc targets as well, but okay. > Does this resolve all of PR84113? If so, I can push the bug along.

Re: [PATCH][AArch64][1/3] PR target/84164: Simplify subreg + redundant AND-immediate

2018-02-08 Thread Richard Sandiford
Thanks for doing this. Kyrill Tkachov writes: > diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c > index > 2e7aa5c12952ab1a9b49b5adaf23710327e577d3..af06d7502cebac03cefc689b2646874b8397e767 > 100644 > --- a/gcc/simplify-rtx.c > +++ b/gcc/simplify-rtx.c > @@

Re: [PATCH] S/390: Disable prediction of indirect branches

2018-02-08 Thread H.J. Lu
On Thu, Feb 8, 2018 at 11:57 AM, H.J. Lu wrote: > On Thu, Feb 8, 2018 at 4:17 AM, Andreas Krebbel > wrote: >> On 02/08/2018 12:33 PM, Richard Biener wrote: >>> On Wed, Feb 7, 2018 at 1:01 PM, Andreas Krebbel >>> wrote:

Re: [SFN+LVU+IEPM v4 7/9] [LVU] Introduce location views

2018-02-08 Thread Jason Merrill
On 02/07/2018 02:36 AM, Alexandre Oliva wrote: +/* Output symbol LAB1 as an unsigned LEB128 quantity. */ Let's mention here that the value of LAB1 must be an assemble-time constant (such as a view counter), since we can't have LEB128 relocations. With that, the patch looks OK. Jason

Re: [PATCH] S/390: Disable prediction of indirect branches

2018-02-08 Thread H.J. Lu
On Thu, Feb 8, 2018 at 4:17 AM, Andreas Krebbel wrote: > On 02/08/2018 12:33 PM, Richard Biener wrote: >> On Wed, Feb 7, 2018 at 1:01 PM, Andreas Krebbel >> wrote: >>> This patch implements GCC support for mitigating vulnerability >>>

Re: [PING] [PATCH] [MSP430] PR79242: Implement Complex Partial Integers

2018-02-08 Thread DJ Delorie
The msp43-specific parts look OK to me, but obviously they're kinda useless without the core changes :-)

Re: [PATCH] -Wformat: fix nonsensical "wide character" message (PR c/84258)

2018-02-08 Thread David Malcolm
On Thu, 2018-02-08 at 17:18 +, Joseph Myers wrote: > On Wed, 7 Feb 2018, David Malcolm wrote: > > > gcc/c-family/ChangeLog: > > PR c/84258 > > * c-format.c (struct format_check_results): Add field > > "number_non_char". > > (check_format_info): Initialize it, and warn if

Merge from trunk to gccgo branch

2018-02-08 Thread Ian Lance Taylor
I merged trunk revision 257495 to the gccgo branch. Ian

Re: [PATCH, rs6000] Fix PR83926, ICE using __builtin_vsx_{div,udiv,mul}_2di builtins

2018-02-08 Thread Peter Bergner
On 2/8/18 10:38 AM, Peter Bergner wrote: > * gcc.target/powerpc/builtins-1-be.c: Filter out gimple folding disabled > message. Fix test for running in 32-bit mode. As we talked about offline, here's a bigger change to builtins-1-be.c that cleans up the test a little more, since we

Re: [C++ Patch] PR 83806 ("[6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr")

2018-02-08 Thread Paolo Carlini
Hi, On 08/02/2018 18:38, Jason Merrill wrote: On Thu, Feb 8, 2018 at 6:22 AM, Paolo Carlini wrote: Hi, this one should be rather straightforward. As noticed by Jakub, we started emitting the spurious warning with the fix for c++/69257, which, among other things,

Re: PATCH to fix bogus warning with -Wstringop-truncation -g (PR tree-optimization/84228)

2018-02-08 Thread Martin Sebor
On 02/08/2018 07:39 AM, Richard Biener wrote: On Thu, Feb 8, 2018 at 6:35 AM, Jeff Law wrote: On 02/06/2018 05:57 AM, Jakub Jelinek wrote: On Tue, Feb 06, 2018 at 01:46:21PM +0100, Marek Polacek wrote: --- gcc/testsuite/c-c++-common/Wstringop-truncation-3.c +++

PING: [PATCH] i386: Add __x86_indirect_thunk_nt_reg for -fcf-protection -mcet

2018-02-08 Thread H.J. Lu
On Fri, Feb 2, 2018 at 8:54 AM, H.J. Lu wrote: > nocf_check attribute can be used with -fcf-protection -mcet to disable > control-flow check by adding NOTRACK prefix before indirect branch. > When -mindirect-branch=thunk-extern -mindirect-branch-register is added, > indirect

PING: [PATCH] i386: Add TARGET_INDIRECT_BRANCH_REGISTER

2018-02-08 Thread H.J. Lu
On Sun, Jan 28, 2018 at 11:56 AM, H.J. Lu wrote: > On Sat, Jan 27, 2018 at 2:12 PM, H.J. Lu wrote: >> For >> >> --- >> struct C { >> virtual ~C(); >> virtual void f(); >> }; >> >> void >> f (C *p) >> { >> p->f(); >> p->f(); >> } >> --- >> >>

Fwd: Please accept this commit for the trunk

2018-02-08 Thread Douglas Mencken
> Does this resolve all of PR84113? If so, I can push the bug along Yep, as I wrote in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84113#c35 > What PR was the attachment url from? It took me about one minute to figure out and find the bug with patch mentioned by Segher in

Re: [C++ Patch] PR 83806 ("[6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr")

2018-02-08 Thread Jason Merrill
On Thu, Feb 8, 2018 at 6:22 AM, Paolo Carlini wrote: > Hi, > > this one should be rather straightforward. As noticed by Jakub, we started > emitting the spurious warning with the fix for c++/69257, which, among other > things, fixed decay_conversion wrt mark_rvalue_use

Re: [C++ Patch] Use INDIRECT_REF_P in a few more places

2018-02-08 Thread Jason Merrill
OK. On Thu, Feb 8, 2018 at 4:19 AM, Paolo Carlini wrote: > Hi, > > yesterday I noticed these and I regression tested the change together with > my fix for 83204. Can definitely wait, but seems very safe... > > Cheers, Paolo. > > /// >

Re: [PATCH/RFC] Fix ICE in find_taken_edge_computed_goto (PR 84136)

2018-02-08 Thread Joseph Myers
On Wed, 7 Feb 2018, Jeff Law wrote: > Ideally we'd tighten the extension's language so that we could issue an > error out of the front-end. It seems to me to be the sort of thing that's only undefined at execution time - it's perfectly valid to store the address of a label in a global, and

Re: [PATCH] -Wformat: fix nonsensical "wide character" message (PR c/84258)

2018-02-08 Thread Joseph Myers
On Wed, 7 Feb 2018, David Malcolm wrote: > gcc/c-family/ChangeLog: > PR c/84258 > * c-format.c (struct format_check_results): Add field > "number_non_char". > (check_format_info): Initialize it, and warn if encountered. > (check_format_arg): Distinguish between wide

[PATCH][i386][3/3] PR target/84164: Make *cmpqi_ext_ patterns accept more zero_extract modes

2018-02-08 Thread Kyrill Tkachov
Hi all, This patch fixes some fallout in the i386 testsuite that occurs after the simplification in patch [1/3] [1]. The gcc.target/i386/extract-2.c FAILs because it expects to match: (set (reg:CC 17 flags) (compare:CC (subreg:QI (zero_extract:SI (reg:HI 98) (const_int 8

[PATCH][AArch64][1/3] PR target/84164: Simplify subreg + redundant AND-immediate (was: PR target/84164: Relax predicate in *aarch64__reg_di3_mask2)

2018-02-08 Thread Kyrill Tkachov
On 06/02/18 11:32, Richard Earnshaw (lists) wrote: On 02/02/18 15:43, Kyrill Tkachov wrote: Hi Richard, On 02/02/18 15:25, Richard Earnshaw (lists) wrote: On 02/02/18 15:10, Kyrill Tkachov wrote: Hi all, In this [8 Regression] PR we ICE because we can't recognise the insn: (insn 59 58 43 7

[PATCH][AArch64][2/3] PR target/84164: Add ZERO_EXTRACT + LSHIFTRT pattern for BFXIL instruction

2018-02-08 Thread Kyrill Tkachov
Hi all, This is a followup to the other PR target/84164 patch [1] that fixes the testsuite regression gcc.target/aarch64/bfxil_1.c. The regression is that with the new subreg+masking simplification we no longer match the pattern for BFXIL that has the form: (set (zero_extract:DI (reg/v:DI 76 [

[Committed] S/390: Disable branch prediction for indirect branches

2018-02-08 Thread Andreas Krebbel
gcc/ChangeLog: 2018-02-08 Andreas Krebbel Backport from mainline 2018-02-08 Andreas Krebbel * config/s390/s390-opts.h (enum indirect_branch): Define. * config/s390/s390-protos.h

Re: RFA: Fix PR 68028: LTO error when compiling PowerPC binaries with single precision floating point

2018-02-08 Thread Segher Boessenkool
Hi Nick, On Thu, Feb 08, 2018 at 03:49:38PM +, Nick Clifton wrote: > I should note that Richard Guenther feels that there is a better way > to solve the problem - by only initializing the values once - but I > still like my solution, so I am offering it here. I thought you were going

[PING] [PATCH] [MSP430] PR79242: Implement Complex Partial Integers

2018-02-08 Thread Jozef Lawrynowicz
ping x1 Complex Partial Integers are unimplemented, resulting in an ICE when attempting to use them. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79242 This results in GCC7/8 for msp430-elf failing to build. typedef _Complex __int20 C; C foo (C x, C y) { return x + y; } (Thanks Jakub -

Re: [PATCH, rs6000] Fix PR83926, ICE using __builtin_vsx_{div,udiv,mul}_2di builtins

2018-02-08 Thread Peter Bergner
On 2/6/18 10:36 AM, Peter Bergner wrote: > On 2/6/18 10:20 AM, David Edelsohn wrote: >> Do the gen_XXXdi3 calls work if you use SDI iterator instead of GPR >> iterator, as Segher suggested? > > Well it works _if_ we use the first patch that changes the gen_* > patterns. If we go this route, I

Re: PATCH to fix ICE with -Wstringop-overflow and VLA (PR tree-optimization/84238)

2018-02-08 Thread Jakub Jelinek
On Tue, Feb 06, 2018 at 05:14:16PM +0100, Marek Polacek wrote: > Here we ICE because get_range_strlen's result might not be an array of > two integer constants -- for a VLA the array might contain a non-constant. > So beef up the check before converting to wide_int. > > Bootstrapped/regtested on

Re: C++ PATCH to fix ICE with vector expr folding (PR c++/83659)

2018-02-08 Thread Jakub Jelinek
On Wed, Feb 07, 2018 at 04:21:43PM -0500, Jason Merrill wrote: > On Wed, Feb 7, 2018 at 4:14 PM, Jakub Jelinek wrote: > > On Wed, Feb 07, 2018 at 03:52:39PM -0500, Jason Merrill wrote: > >> > E.g. the constexpr function uses > >> > same_type_ignoring_top_level_qualifiers_p > >>

Re: RFA: Sanitize deprecation messages (PR 84195)

2018-02-08 Thread Martin Sebor
On 02/08/2018 04:04 AM, Nick Clifton wrote: Hi David, + /* PR 84195: Replace control characters in the message with their +escaped equivalents. Allow newlines if -fmessage-length has +been set to a non-zero value. I'm not quite sure why we allow newlines in

[PR c++/84263] GC ICE with decltype

2018-02-08 Thread Nathan Sidwell
This patch fixes 84263, a GC breakage entirely unconnected with the patch of mine that exposed it. I guess I perturbed the memory layout sufficiently to tickle it -- on a 32bit host. The underlying problem is that decltype parsing has to squirrel away some data in the same manner to

[C++ PATCH] initializer_list diagnostic

2018-02-08 Thread Nathan Sidwell
when working on 84263 I noticed this initializer_list diagnostic wasn't correctly formatted. Fixing thusly. nathan -- Nathan Sidwell 2018-02-08 Nathan Sidwell * class.c (finish_struct): Fix std:initializer_list diagnostic formatting. * g++.dg/cpp0x/initlist93.C: Adjust

Re: [SFN+LVU+IEPM v4 7/9] [LVU] Introduce location views

2018-02-08 Thread Jason Merrill
On Thu, Feb 8, 2018 at 7:56 AM, Alexandre Oliva wrote: > On Feb 7, 2018, Jason Merrill wrote: > >> OK, that makes sense. But I'm still uncomfortable with choosing an >> existing opcode for that purpose, which previously would have been >> chosen just for

RFA: Fix PR 68028: LTO error when compiling PowerPC binaries with single precision floating point

2018-02-08 Thread Nick Clifton
Hi Segher, OK, here is an official submission of my patch to fix PR 68028. I should note that Richard Guenther feels that there is a better way to solve the problem - by only initializing the values once - but I still like my solution, so I am offering it here. OK to apply ? Cheers

libgo patch committed: Get missing function names from symbol table

2018-02-08 Thread Ian Lance Taylor
This libgo patch changes the traceback code to get missing function name from the symbol table. If we trace back through code that has no debug info, as when calling through C code compiled with -g0, we won't have a function name. Try to fetch the function name using the symbol table. Adding

gotools patch committed: Add options to permit tests to use C++

2018-02-08 Thread Ian Lance Taylor
I have committed this patch to gotools to add compiler options to allow the compilers under test to pick up the C++ library. This permits tests to use C++ (linked into Go programs) which I used for a test that I will commit shortly. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.

Re: [RFC][PATCH] Stabilize a few qsort comparison functions

2018-02-08 Thread Martin Jambor
On Wed, Feb 07 2018, Franz Sirl wrote: > Hi, > > this is the result of an attempt to minimize the differences between the > compile results of a Linux-based and a Cygwin64-based powerpc-eabi cross > toolchain. > The method used was: > >     - find the -fverbose-asm assembler files that differ >  

libgo patch committed: Update to 1.10rc2

2018-02-08 Thread Ian Lance Taylor
I committed a patch to update libgo to 1.10rc2. This includes a fix for a security problem in `go get` based on GCC and linker plugins. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE

Re: Another fix for single-element permutes (PR 84265)

2018-02-08 Thread Richard Biener
On Thu, Feb 8, 2018 at 2:29 PM, Richard Sandiford wrote: > PR83753 was about a case in which we ended up trying to "vectorise" > a group of loads ore stores using single-element vectors. The problem > was that we were classifying the load or store as

Re: Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-08 Thread Richard Biener
On Thu, Feb 8, 2018 at 1:09 PM, Richard Sandiford wrote: > Richard Biener writes: >> On Fri, Feb 2, 2018 at 3:12 PM, Richard Sandiford >> wrote: >>> Index: gcc/tree-data-ref.c >>>

Re: C++ PATCH to fix ICE with vector expr folding (PR c++/83659)

2018-02-08 Thread Jason Merrill
On Thu, Feb 8, 2018 at 6:55 AM, Jakub Jelinek wrote: > On Wed, Feb 07, 2018 at 04:21:43PM -0500, Jason Merrill wrote: >> On Wed, Feb 7, 2018 at 4:14 PM, Jakub Jelinek wrote: >> > On Wed, Feb 07, 2018 at 03:52:39PM -0500, Jason Merrill wrote: >> >> > E.g. the

Re: PATCH to fix bogus warning with -Wstringop-truncation -g (PR tree-optimization/84228)

2018-02-08 Thread Richard Biener
On Thu, Feb 8, 2018 at 6:35 AM, Jeff Law wrote: > On 02/06/2018 05:57 AM, Jakub Jelinek wrote: >> On Tue, Feb 06, 2018 at 01:46:21PM +0100, Marek Polacek wrote: >>> --- gcc/testsuite/c-c++-common/Wstringop-truncation-3.c >>> +++ gcc/testsuite/c-c++-common/Wstringop-truncation-3.c

Re: [PATCH/RFC] Fix ICE in find_taken_edge_computed_goto (PR 84136)

2018-02-08 Thread Richard Biener
On Thu, Feb 8, 2018 at 6:04 AM, Jeff Law wrote: > On 02/02/2018 02:35 PM, David Malcolm wrote: >> On Thu, 2018-02-01 at 12:05 +0100, Richard Biener wrote: >>> On Wed, Jan 31, 2018 at 4:39 PM, David Malcolm >>> wrote: PR 84136 reports an ICE within

Re: [PATCH] Fix PR81038

2018-02-08 Thread Bill Schmidt
> On Feb 8, 2018, at 4:52 AM, Richard Biener wrote: > > On Sat, Feb 3, 2018 at 12:30 AM, Bill Schmidt > wrote: >> Hi, >> >> The test g++.dg/vect/slp-pr56812.cc is somewhat fragile and is currently >> failing >> on several targets.

Re: [PATCH] add -Wstringop-overflow to LTO options (PR 84212)

2018-02-08 Thread Richard Biener
On Thu, Feb 8, 2018 at 4:08 AM, Martin Sebor wrote: > I went ahead and changed all the options on the list below > to include LTO and tested the attached patch by configuring > with --with-build-config=bootstrap-lto --disable-werror and > making profiledbootstrap. Attached,

[AArch64] Add SVE mul_highpart patterns

2018-02-08 Thread Richard Sandiford
One advantage of the new permute handling compared to the old way is that we can now easily take advantage of the vectoriser's divmod patterns for SVE. I realise we're in stage 4, but this is entirely SVE-specific. Tested on aarch64-linux-gnu and aarch64_be-elf. OK to install? Richard

Another fix for single-element permutes (PR 84265)

2018-02-08 Thread Richard Sandiford
PR83753 was about a case in which we ended up trying to "vectorise" a group of loads ore stores using single-element vectors. The problem was that we were classifying the load or store as VMAT_CONTIGUOUS_PERMUTE rather than VMAT_CONTIGUOUS, even though it doesn't make sense to permute a

Re: Do not lose track of resolution info due to tree merging

2018-02-08 Thread Jan Hubicka
Hi, this is patch I comitted yesterday (but failed to send email) which removes forgotten sanity check from original fix. The check tries to catch cases where we do merge definitions and declarations to see if resolution merging logic is live. It is. Honza * lto.c (register_resolution):

Re: Do not lose track of resolution info due to tree merging

2018-02-08 Thread Jan Hubicka
Hi, it turns out that I have hit bit of can of worms here, so I spent most of yesterday looking into minimal fix. There are multiple issues remaining - we forget to output symbols that have only DECL_EXTERNAL flag set; we behave funny to builtins (in some cases it makes sense in others it does

[hsa] Set program allocation for static local variables

2018-02-08 Thread Martin Jambor
Hi, it has been brought to my attention that libgomp.c/target-28.c testcase fails to finalize because the static variable s has illegal hsa allocation. Fixed by the patch below, which I am about to commit to trunk (and will commit to the gcc-7-branch after testing there). Thanks, Martin

[hsa] Fix PR82416 testcase

2018-02-08 Thread Martin Jambor
Hi, the PR82416 was not actually being compiled into HSAIL because the function with target region had noclone attribute, which was the outline function for the region inherited and then the ipa-hsa pass that clones hitherto shared functions (for both the host and an hsa accelerator) refused to

Re: [SFN+LVU+IEPM v4 7/9] [LVU] Introduce location views

2018-02-08 Thread Alexandre Oliva
On Feb 7, 2018, Jason Merrill wrote: > OK, that makes sense. But I'm still uncomfortable with choosing an > existing opcode for that purpose, which previously would have been > chosen just for reasons of encoding complexity and size. Well, there's a good reason we didn't

Re: [PATCH, v2] Recognize a missed usage of a sbfiz instruction

2018-02-08 Thread Luis Machado
Hi Kyrill, On 02/08/2018 09:48 AM, Kyrill Tkachov wrote: Hi Luis, On 06/02/18 15:04, Luis Machado wrote: Thanks for the feedback Kyrill. I've adjusted the v2 patch based on your suggestions and re-tested the changes. Everything is still sane. Thanks! This looks pretty good to me. Since

Re: C++ PATCH to fix ICE with vector expr folding (PR c++/83659)

2018-02-08 Thread Marek Polacek
On Thu, Feb 08, 2018 at 12:55:10PM +0100, Jakub Jelinek wrote: > On Wed, Feb 07, 2018 at 04:21:43PM -0500, Jason Merrill wrote: > > On Wed, Feb 7, 2018 at 4:14 PM, Jakub Jelinek wrote: > > > On Wed, Feb 07, 2018 at 03:52:39PM -0500, Jason Merrill wrote: > > >> > E.g. the

Re: [PATCH] S/390: Disable prediction of indirect branches

2018-02-08 Thread Andreas Krebbel
On 02/08/2018 12:33 PM, Richard Biener wrote: > On Wed, Feb 7, 2018 at 1:01 PM, Andreas Krebbel > wrote: >> This patch implements GCC support for mitigating vulnerability >> CVE-2017-5715 known as Spectre #2 on IBM Z. >> >> In order to disable prediction of indirect

Re: Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-08 Thread Richard Sandiford
Richard Biener writes: > On Fri, Feb 2, 2018 at 3:12 PM, Richard Sandiford > wrote: >> Index: gcc/tree-data-ref.c >> === >> --- gcc/tree-data-ref.c 2018-02-02

RE: [PATCH, i386] Fix ix86_multiplication_cost for SKX

2018-02-08 Thread Shalnov, Sergey
Uros, I provided a patch for cost model tuning here https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00405.html Current patch fixes a regression in a test that caused my cost model tuning patch. Sergey -Original Message- From: Uros Bizjak [mailto:ubiz...@gmail.com] Sent: Wednesday,

[AArch64] Add a tlsdesc call pattern for SVE

2018-02-08 Thread Richard Sandiford
tlsdesc calls are guaranteed to preserve all Advanced SIMD registers, but are not guaranteed to preserve the SVE extension of them. The calls also don't preserve the SVE predicate registers. The long-term plan for handling the SVE vector registers is CLOBBER_HIGH, which adds a clobber equivalent

Re: C++ PATCH to fix ICE with vector expr folding (PR c++/83659)

2018-02-08 Thread Marek Polacek
On Thu, Feb 08, 2018 at 10:15:45AM +, Richard Sandiford wrote: > Jakub Jelinek writes: > > On Wed, Feb 07, 2018 at 03:23:25PM -0500, Jason Merrill wrote: > >> On Wed, Feb 7, 2018 at 2:48 PM, Jakub Jelinek wrote: > >> > On Wed, Feb 07, 2018 at 08:36:31PM

Re: [PATCH, v2] Recognize a missed usage of a sbfiz instruction

2018-02-08 Thread Kyrill Tkachov
Hi Luis, On 06/02/18 15:04, Luis Machado wrote: Thanks for the feedback Kyrill. I've adjusted the v2 patch based on your suggestions and re-tested the changes. Everything is still sane. Thanks! This looks pretty good to me. Since this is ARM-specific and fairly specific, i wonder if it

[PATCH, i386] PR target/83008: Fix for SKX cost model

2018-02-08 Thread Shalnov, Sergey
Hi, This patch contain cost model change for SKX and closes PR target/83008 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83008) It provides following performance scores in geomean: SPEC CPU2017 intrate +0.6% SPEC CPU2017 fprate +1.5% SPEC 2006 [int|fp] no changes out of noise I found a

Re: Use nonzero bits to refine range in split_constant_offset (PR 81635)

2018-02-08 Thread Richard Biener
On Fri, Feb 2, 2018 at 3:12 PM, Richard Sandiford wrote: > This patch is part 2 of the fix for PR 81635. It means that > split_constant_offset can handle loops like: > > for (unsigned int i = 0; i < n; i += 4) > { > a[i] = ...; > a[i + 1] = ...; >

[PR bootstrap/56750] implement --disable-stage1-static-libs

2018-02-08 Thread Aldy Hernandez
In this PR, the reporter is complaining that forcing -static-libstdc++ and -static-libgcc during stage1 will also force it down to all subdirectories (gdb for instance). There is some back and forth in the PR whether this is good or not. I'm indifferent, but an alternative is to provide a

Re: [PATCH] S/390: Disable prediction of indirect branches

2018-02-08 Thread Richard Biener
On Wed, Feb 7, 2018 at 1:01 PM, Andreas Krebbel wrote: > This patch implements GCC support for mitigating vulnerability > CVE-2017-5715 known as Spectre #2 on IBM Z. > > In order to disable prediction of indirect branches the implementation > makes use of an IBM Z

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-08 Thread Richard Biener
On Mon, Feb 5, 2018 at 1:09 PM, Janne Blomqvist wrote: > On Sun, Feb 4, 2018 at 9:49 PM, Thomas Koenig wrote: >> Hello world, >> >> in the attached patch, I have used flexible array members for >> using the different descriptor types (following

Fwd: [C++ Patch] PR 83806 ("[6/7/8 Regression] Spurious -Wunused-but-set-parameter with nullptr")

2018-02-08 Thread Paolo Carlini
Hi, this one should be rather straightforward. As noticed by Jakub, we started emitting the spurious warning with the fix for c++/69257, which, among other things, fixed decay_conversion wrt mark_rvalue_use and mark_lvalue_use calls. In particular it removed the mark_rvalue_use call at the

Re: [PR tree-optimization/84224] do not ICE on malformed allocas

2018-02-08 Thread Aldy Hernandez
On 02/07/2018 11:38 PM, Jeff Law wrote: On 02/06/2018 02:38 AM, Aldy Hernandez wrote: The -Walloca pass can receive a malformed alloca, courtesy of someone providing a faulty prototype.  This was causing an ICE because we assumed alloca calls had at least one argument, which the testcase does

Re: RFA: Sanitize deprecation messages (PR 84195)

2018-02-08 Thread Nick Clifton
Hi David, >> + /* PR 84195: Replace control characters in the message with their >> + escaped equivalents. Allow newlines if -fmessage-length has >> + been set to a non-zero value. > > I'm not quite sure why we allow newlines in this case, sorry. Because the

Re: [PATCH] Fix PR81038

2018-02-08 Thread Richard Biener
On Sat, Feb 3, 2018 at 12:30 AM, Bill Schmidt wrote: > Hi, > > The test g++.dg/vect/slp-pr56812.cc is somewhat fragile and is currently > failing > on several targets. PR81038 notes that this began with r248678, which stopped > some inferior peeling solutions from

Re: [PR tree-optimization/84047] missing -Warray-bounds on an out-of-bounds index

2018-02-08 Thread Richard Biener
On Thu, Feb 1, 2018 at 6:42 PM, Aldy Hernandez wrote: > Since my patch isn't the easy one liner I wanted it to be, perhaps we > should concentrate on Martin's patch, which is more robust, and has > testcases to boot! His patch from last week also fixes a couple other > PRs. > >

Re: C++ PATCH to fix ICE with vector expr folding (PR c++/83659)

2018-02-08 Thread Richard Sandiford
Jakub Jelinek writes: > On Wed, Feb 07, 2018 at 03:23:25PM -0500, Jason Merrill wrote: >> On Wed, Feb 7, 2018 at 2:48 PM, Jakub Jelinek wrote: >> > On Wed, Feb 07, 2018 at 08:36:31PM +0100, Marek Polacek wrote: >> >> > > That was my first patch, but it was

[PATCH] Fix PR84278

2018-02-08 Thread Richard Biener
Noticed while (still...) working on PR84038. The vectorizer happily tries to construct a V4SFmode from two V2SFmode vectors because there's an optab handler for it. But it failed to check whether that mode is supported and RTL expansion later uses TYPE_MODE to get at the element mode which ends

  1   2   >