RE: [RFC] [Patch X86_64]: Pass to split FMA to MUL and ADD

2017-11-06 Thread Kumar, Venkataramanan
Hi Maarc, > -Original Message- > From: Marc Glisse [mailto:marc.gli...@inria.fr] > Sent: Tuesday, November 7, 2017 12:52 PM > To: Kumar, Venkataramanan > Cc: gcc-patches@gcc.gnu.org; Dharmakan, Rohit arul raj > ; Jan Hubicka

Re: [PATCH] Avoid (almost) ix86_binary_operator_ok in sse.md (PR target/82855)

2017-11-06 Thread Jakub Jelinek
On Mon, Nov 06, 2017 at 11:27:27PM +0100, Uros Bizjak wrote: > On Mon, Nov 6, 2017 at 10:18 PM, Jakub Jelinek wrote: > > Hi! > > > > As this patch shows, we have tons of ix86_binary_operator_ok calls > > in sse.md patterns, but I believe those are inappropriate in all these > >

Re: [RFC] [Patch X86_64]: Pass to split FMA to MUL and ADD

2017-11-06 Thread Marc Glisse
On Tue, 7 Nov 2017, Kumar, Venkataramanan wrote: The attached patch implements an RTL pass which splits generated FMA instruction into MUL/ADD sequence. That seems wrong if the user explicitly asked for FMA in his program, unless you have a way to recognize which FMA instructions come from

Re: [PATCH] RISC-V: Add Jim Wilson as a maintainer

2017-11-06 Thread Jakub Jelinek
On Mon, Nov 06, 2017 at 06:39:20PM -0800, Palmer Dabbelt wrote: > Jim has recently started working at SiFive, where he'll be contributing > to our GCC port. Andrew, Kito and I would like him to be a mainatiner. > My understand is that this is the right place to ask. It is the steering committee

Re: Drop frequencies from basic blocks

2017-11-06 Thread Markus Trippelsdorf
On 2017.11.07 at 00:12 +0100, Jan Hubicka wrote: > > On 2017.11.05 at 11:55 +0100, Jan Hubicka wrote: > > > > On 2017.11.03 at 16:48 +0100, Jan Hubicka wrote: > > > > > this is updated patch which I have comitted after > > > > > profiledbootstrapping x86-64 > > > > > > > > Unfortunately,

[RFC] [Patch X86_64]: Pass to split FMA to MUL and ADD

2017-11-06 Thread Kumar, Venkataramanan
Hi, The attached patch implements an RTL pass which splits generated FMA instruction into MUL/ADD sequence. The pass is enabled for Zen and done when we find it is profitable to split the FMA. On Zen, we found that for a tight loop with FMA (reduction) operation as show below, generating

Require ngettext in test of system gettext implementation

2017-11-06 Thread Alan Modra
I've been looking at fixing readelf and other parts of binutils that output incorrectly pluralized messages. For example, readelf will display information about a section that "contains 1 entries" or "There are 1 section headers". Fixing this properly requires us to use ngettext, and I see that

[AARCH64] implements neon vld1_*_x2 intrinsics

2017-11-06 Thread Kugan Vivekanandarajah
Hi, Attached patch implements the vld1_*_x2 intrinsics as defined by the neon document. Bootstrap for the latest patch is ongoing on aarch64-linux-gnu. Is this OK for trunk if no regressions? Thanks, Kugan gcc/ChangeLog: 2017-11-06 Kugan Vivekanandarajah *

[PATCH] rs6000: Don't clear TARGET_ISEL implicitly

2017-11-06 Thread Segher Boessenkool
We want to actually use isel, so we shouldn't disable it. It is already not set by default on CPUs that don't have it, or where we do not want to use it. Tested on powerpc64-linux {-m32,-m64}; committing to trunk. Segher 2017-11-06 Segher Boessenkool *

Re: [PATCH][GCC][ARM] Implement "arch" GCC pragma and "+" attributes [Patch (2/3)]

2017-11-06 Thread Sandra Loosemore
On 11/06/2017 09:50 AM, Tamar Christina wrote: Hi All, This patch adds support for the setting the architecture and extensions using the target GCC pragma. #pragma GCC target ("arch=armv8-a+crc") It also supports a short hand where an extension is just added to the current architecture

Re: [PATCH] enhance -Warray-bounds to handle strings and excessive indices

2017-11-06 Thread Martin Sebor
On 11/06/2017 11:41 AM, Jeff Law wrote: On 10/29/2017 10:15 AM, Martin Sebor wrote: Ping -- please see my reply below. On 10/20/2017 09:57 AM, Richard Biener wrote: get_addr_base_and_unit_offset will return NULL if there's any variable component in 'ref'. So as written it seems to be dead

Re: [PATCH] enhance -Warray-bounds to handle strings and excessive indices

2017-11-06 Thread Martin Sebor
On 10/30/2017 06:02 AM, Richard Biener wrote: On Sun, Oct 29, 2017 at 5:15 PM, Martin Sebor wrote: Ping -- please see my reply below. On 10/20/2017 09:57 AM, Richard Biener wrote: get_addr_base_and_unit_offset will return NULL if there's any variable component in

[PATCH] RISC-V: Add Jim Wilson as a maintainer

2017-11-06 Thread Palmer Dabbelt
Jim has recently started working at SiFive, where he'll be contributing to our GCC port. Andrew, Kito and I would like him to be a mainatiner. My understand is that this is the right place to ask. I've also changed my address to my SiFive one, where I also work -- it seems cleaner to have

[PATCH] RISC-V: Implement movmemsi

2017-11-06 Thread Palmer Dabbelt
From: Andrew Waterman Without this we aren't getting proper memcpy inlining on RISC-V systems, which is particularly disastrous for Dhrystone performance on RV32IM systems. gcc/ChangeLog 2017-11-06 Andrew Waterman * config/riscv/riscv-protos.h

[gcc] backport of gcc patch to #gcc-7-branch

2017-11-06 Thread Vineet Gupta
Hi, As part of porting glibc to ARC one of the pre-req is to get it to build with upstream toolchain components. The patch 927c0132251f ("[ARC] Configure script to allow non uclibc based triplets") seems to be present in gcc #master, but not in #gcc-7-branch. Can it be backported to gcc 7

Re: Drop frequencies from basic blocks

2017-11-06 Thread Jan Hubicka
> On 2017.11.05 at 11:55 +0100, Jan Hubicka wrote: > > > On 2017.11.03 at 16:48 +0100, Jan Hubicka wrote: > > > > this is updated patch which I have comitted after profiledbootstrapping > > > > x86-64 > > > > > > Unfortunately, compiling tramp3d-v4.cpp is 6-7% slower after this patch. > > > This

Re: [PATCH, rs6000] Add support to __builtin_cpu_supports() for new HWCAP2 bit

2017-11-06 Thread Segher Boessenkool
On Mon, Nov 06, 2017 at 05:07:23PM -0600, Peter Bergner wrote: > >> --- gcc/config/rs6000/rs6000.c (revision 254453) > >> +++ gcc/config/rs6000/rs6000.c (working copy) > >> @@ -387,6 +387,7 @@ static const struct > >>{ "ebb",PPC_FEATURE2_HAS_EBB, 1 }, > >>

Re: [PATCH, rs6000] Add support to __builtin_cpu_supports() for new HWCAP2 bit

2017-11-06 Thread Peter Bergner
On 11/6/17 4:52 PM, Segher Boessenkool wrote: > Hi! > > On Mon, Nov 06, 2017 at 11:41:39AM -0600, Peter Bergner wrote: >> There is a new HWCAP2 bit added to the AUXV here: >> >> http://patchwork.ozlabs.org/patch/824764/ >> >> This patch adds __builtin_cpu_supports() support for it. > >> ---

Re: [PATCH][RFC] Instrument function exit with __builtin_unreachable in C++.

2017-11-06 Thread Eric Botcazou
> Hasn't it enabled it also for any other FEs other than C family and Fortran? > Say jit, brig, go, lto?, ... Very likely, yes. > I think better would be to remove the initialization to -1 and revert the > fortran/options.c change, and instead use in the C family: > if

Re: [PATCH] i386: Use reference of struct ix86_frame to avoid copy

2017-11-06 Thread Uros Bizjak
On Mon, Nov 6, 2017 at 10:20 PM, H.J. Lu wrote: > When there is no need to make a copy of ix86_frame, we can use reference > of struct ix86_frame to avoid copy. > > Tested on x86-64. OK for trunk? > > > H.J. > -- > * config/i386/i386.c (ix86_can_use_return_insn_p):

Re: [PATCH, rs6000] Add support to __builtin_cpu_supports() for new HWCAP2 bit

2017-11-06 Thread Segher Boessenkool
Hi! On Mon, Nov 06, 2017 at 11:41:39AM -0600, Peter Bergner wrote: > There is a new HWCAP2 bit added to the AUXV here: > > http://patchwork.ozlabs.org/patch/824764/ > > This patch adds __builtin_cpu_supports() support for it. > --- gcc/config/rs6000/rs6000.c(revision 254453) > +++

Re: [PATCH] Optimize %k register comparison against zero (PR target/82855)

2017-11-06 Thread Uros Bizjak
On Mon, Nov 6, 2017 at 10:23 PM, Jakub Jelinek wrote: > Hi! > > Without the following patch we emit kmovb %k1, %eax; testb %al, %al > when if just testing the Zero bit we can as well do ktestb %k1, %k1. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > >

[committed] Minor fixes to stack-check-12 test

2017-11-06 Thread Jeff Law
So I thought I'd checked in the wrong version of that test, but I had in fact checked in the *right* version. So r254455 was completely bogus. This reverts that bogus checkin and also adds -fomit-frame-pointer to the test's options to make x86 Solaris happy. Committing to the trunk. Jeff

Re: [RFA][PATCH] Improve initial probe for noreturn functions for x86 target

2017-11-06 Thread Jeff Law
On 11/06/2017 06:39 AM, Rainer Orth wrote: > Uros Bizjak writes: > >>> * config/i386/i386.c (ix86_emit_restore_reg_using_pop): >> Prototype. >>> (ix86_adjust_stack_and_probe_stack_clash): Use a push/pop >> sequence >>> to probe at the start

Re: [PATCH] Avoid (almost) ix86_binary_operator_ok in sse.md (PR target/82855)

2017-11-06 Thread Uros Bizjak
On Mon, Nov 6, 2017 at 10:18 PM, Jakub Jelinek wrote: > Hi! > > As this patch shows, we have tons of ix86_binary_operator_ok calls > in sse.md patterns, but I believe those are inappropriate in all these > spots, the function is for normal 2 operand binary instructions, where >

{PATCH, wwwdocs] update employer in steering committee list

2017-11-06 Thread Jim Wilson
A patch to add my new employer to the steering committee page. Verified as XHTML 1.0 transitional and checked in. Jim Index: steering.html === RCS file: /cvs/gcc/wwwdocs/htdocs/steering.html,v retrieving revision 1.41 diff -p -r1.41

[PATCH, wwwdocs] sdb removal release note patch

2017-11-06 Thread Jim Wilson
The sdb/coff debug info format removal should be mentioned in the release notes. Here is a patch to do that. Verified as XHTML 1.0 transitional. My new employer disclaimer is on file at the FSF as of today, and I have personal assignments, so I'm good to contribute again. OK? Jim Index:

More bitop simplifications in match.pd

2017-11-06 Thread Marc Glisse
Hello, those have been on my TODO-list for a long time (found in LLVM IIRC). We were not doing any of those transformations, even in GENERIC, so nothing to remove from fold-const.c. The idea is that any expression involving only 2 variables and operators &|^~ should simplify to at most 2 insn

[PATCH] Fix dwarf2out ICE with UNSPEC_GOTOFF (PR debug/82837)

2017-11-06 Thread Jakub Jelinek
Hi! My recent changes to const_ok_for_output_1 to allow UNSPEC if target hook says it is ok for debug regressed the following testcase, where creative simplify-rtx.c changes result in (const (neg (unspec ... UNSPEC_GOTOFF))) being emitted and the backend not being able to assemble that (assembler

[PATCH] Optimize %k register comparison against zero (PR target/82855)

2017-11-06 Thread Jakub Jelinek
Hi! Without the following patch we emit kmovb %k1, %eax; testb %al, %al when if just testing the Zero bit we can as well do ktestb %k1, %k1. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2017-11-06 Jakub Jelinek PR target/82855 *

[PATCH] Fix up predicates for commutative vector comparison (PR target/82855)

2017-11-06 Thread Jakub Jelinek
Hi! The issues fixed by the previous patch together with this one result in the testcase from the PR with -mtune=intel (for some reason with generic tuning we decide to perform the 256-bit load as 2 128-bit loads and don't merge that into 256-bit comparison operand, shall we change that?) to use

[PATCH] i386: Use reference of struct ix86_frame to avoid copy

2017-11-06 Thread H.J. Lu
When there is no need to make a copy of ix86_frame, we can use reference of struct ix86_frame to avoid copy. Tested on x86-64. OK for trunk? H.J. -- * config/i386/i386.c (ix86_can_use_return_insn_p): Use reference of struct ix86_frame. (ix86_initial_elimination_offset):

Re: Make istreambuf_iterator::_M_sbuf immutable and add debug checks

2017-11-06 Thread François Dumont
Hi     Any final decision regarding this patch ? François On 23/10/2017 21:08, François Dumont wrote: Hi I completed execution of all tests and found one test impacted by this patch. It is a good example of the impact of the patch. Users won't be able to build a

[PATCH] Avoid (almost) ix86_binary_operator_ok in sse.md (PR target/82855)

2017-11-06 Thread Jakub Jelinek
Hi! As this patch shows, we have tons of ix86_binary_operator_ok calls in sse.md patterns, but I believe those are inappropriate in all these spots, the function is for normal 2 operand binary instructions, where we require that if one operand is memory, the destination is as well and they match.

Fix unsupported prettyprinter test

2017-11-06 Thread François Dumont
Hi I just committed this as trivial to avoid test to be considered as unsupported. Looks like gcc made improvements in optimizations to have this test now unsuported. Tested under Linux x86_64. François diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py

[PATCH] Further -Wreturn-type testsuite fallout

2017-11-06 Thread Jakub Jelinek
On Mon, Nov 06, 2017 at 03:12:00PM +0100, Martin Liška wrote: > On 11/06/2017 02:58 PM, Paolo Carlini wrote: > > Hi, > > > > On 06/11/2017 14:37, Martin Liška wrote: > >> Thank you for the patch. > >> I'm going to install the remaining part that will fix x86_64 fallout. All > >> changes are > >>

Go patch committed: Disable escape analysis for the runtime package.

2017-11-06 Thread Ian Lance Taylor
This patch by Cherry Zhang disables escape analysis when compiling the runtime package. Currently the runtime is hard-coded to non-escape in various places anyhow, and the compiler's escape analysis breaks this. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.

libgo patch committed: Pass flags to recursive make

2017-11-06 Thread Ian Lance Taylor
This patch by Cherry Zhang explicitly passes AM_MAKEFLAGS to a couple of recursive makes in the libgo Makefile, to make sure they are available. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE

Non-INTEGER_CST CHREC_RIGHTs in analyze_*_subscript

2017-11-06 Thread Richard Sandiford
initialize_matrix_A requires the CHREC_RIGHT to be an INTEGER_CST: switch (TREE_CODE (chrec)) { case POLYNOMIAL_CHREC: A[index][0] = mult * int_cst_value (CHREC_RIGHT (chrec)); return initialize_matrix_A (A, CHREC_LEFT (chrec), index + 1, mult); and isn't able to back out

[AArch64] Use aarch64_reg_or_imm instead of nonmemory_operand

2017-11-06 Thread Richard Sandiford
Some of the shift expanders accepted nonmemory_operands but were only able to handle register_operands or CONST_INTs. This is probably academic without SVE, since we're not likely to see shifts by other types of constant (const_wide_ints, consts, etc). But for SVE, it's possible for a vectorised

Re: Fix folding of vector mask EQ/NE expressions

2017-11-06 Thread Marc Glisse
On Mon, 6 Nov 2017, Richard Sandiford wrote: fold_binary_loc assumed that if the type of the result wasn't a vector, the operands wouldn't be either. This isn't necessarily true for EQ_EXPR and NE_EXPR of vector masks, which can return a single scalar for the mask as a whole. Spell it

[PATCH] RISC-V: Define MUSL_DYNAMIC_LINKER for riscv

2017-11-06 Thread Palmer Dabbelt
From: Michael Clark Use no suffix at all in the musl dynamic linker name for hard float ABI. Use -sf and -sp suffixes in musl dynamic linker name for soft float and single precision ABIs. The following table outlines the musl interpreter names for the RISC-V ABI names.

[PATCH] Replace has_single_use guards in store-merging

2017-11-06 Thread Jakub Jelinek
Hi! As mentioned earlier, the !has_single_use checks disable store merging in many cases, it is enough to have a single multiple-use somewhere and all of sudden we break the group. The following patch replaces it by heuristics, it is GIMPLE statement count based, but I think it should work

Re: [PATCH v3 1/14] D: The front-end (DMD) language implementation and license.

2017-11-06 Thread Iain Buclaw
On 25 October 2017 at 03:06, Jeff Law wrote: > On 10/18/2017 01:33 AM, Iain Buclaw wrote: >> On 6 October 2017 at 14:51, Ian Lance Taylor wrote: >>> On Fri, Oct 6, 2017 at 1:34 AM, Iain Buclaw wrote: Out of curiosity, I did

Re: Hurd port for gcc-7 go PATCH 1-3(15)

2017-11-06 Thread Matthias Klose
On 06.11.2017 16:36, Svante Signell wrote: > Hi, > > Attached are patches to enable gccgo to build properly on Debian > GNU/Hurd on gcc-7 (7-7.2.0-12). Svante, please could you base your patches on upstream trunk, or the gcc-8 packages from experimental, which follow upstream trunk until gcc-8

Re: [PATCH] enhance -Warray-bounds to handle strings and excessive indices

2017-11-06 Thread Jeff Law
On 10/29/2017 10:15 AM, Martin Sebor wrote: > Ping -- please see my reply below. > > On 10/20/2017 09:57 AM, Richard Biener wrote: >> get_addr_base_and_unit_offset will return NULL if there's any >>> variable >> component in 'ref'.  So as written it seems to be dead code (you >> want

Re: [PATCH][RFC] Instrument function exit with __builtin_unreachable in C++.

2017-11-06 Thread Martin Sebor
Sorry for being late with my comment. I just spotted this minor formatting issue. Even though GCC isn't (yet) consistent about it the keyword "constexpr" should be quoted in the error message below (and, eventually, in all diagnostic messages). Since the patch has been committed by now this is

Re: [PATCH], PR 82748, Fix __builtin_fabsq on PowerPC

2017-11-06 Thread Michael Meissner
On Mon, Nov 06, 2017 at 05:56:59AM -0600, Segher Boessenkool wrote: > Hi! > > On Fri, Nov 03, 2017 at 06:07:38PM -0400, Michael Meissner wrote: > > This patch fixes PR 82748, which is a compiler abort if you use the old > > __builtin_fabsq function when you are changing the long double default

[PATCH, rs6000] Add support to __builtin_cpu_supports() for new HWCAP2 bit

2017-11-06 Thread Peter Bergner
There is a new HWCAP2 bit added to the AUXV here: http://patchwork.ozlabs.org/patch/824764/ This patch adds __builtin_cpu_supports() support for it. This passed bootstrap and regtesting with no regressions? Ok for trunk? Ok to back port to the open releases too once testing to complete there?

Re: [PATCH][RFC] Instrument function exit with __builtin_unreachable in C++.

2017-11-06 Thread Jakub Jelinek
On Mon, Nov 06, 2017 at 06:23:11PM +0100, Eric Botcazou wrote: > > Thank you for review, done that. > > This has enabled -Wreturn-type for Ada, what we don't want since the warning > is outsmarted by the language, so I have applied this. > > > 2017-11-06 Eric Botcazou

Re: [PATCH,RFC] collect2 LTO for AIX

2017-11-06 Thread David Edelsohn
On Mon, Nov 6, 2017 at 11:01 AM, Jim Wilson wrote: > On 10/31/2017 12:11 PM, David Edelsohn wrote: >> >> With your recent removal of SDB and -gcoff support, I would appreciate >> your advice about my patch to incrementally add some preliminary LTO >> support for AIX to

Re: [PATCH][RFC] Instrument function exit with __builtin_unreachable in C++.

2017-11-06 Thread Eric Botcazou
> Thank you for review, done that. This has enabled -Wreturn-type for Ada, what we don't want since the warning is outsmarted by the language, so I have applied this. 2017-11-06 Eric Botcazou * gcc-interface/misc.c (gnat_post_options): Clear warn_return_type.

Staging in vrp cleanups

2017-11-06 Thread Jeff Law
So I spent a fair amount of time over the weekend trying to figure out how to stage in the vrp cleanups. I don't want to drop a massive unreviewable kit on everyone. It's hard on the reviewers and its hard on me too -- with stuff moving around it's hard to easily see that the implementation

[PATCH][GCC][ARM] Dot Product NEON intrinsics [Patch (3/8)]

2017-11-06 Thread Tamar Christina
Hi All, This patch adds the NEON intrinsics for Dot product. Dot product is available from ARMv8.2-a and onwards. Regtested on arm-none-eabi, armeb-none-eabi, aarch64-none-elf and aarch64_be-none-elf with no issues found. Ok for trunk? gcc/ 2017-11-06 Tamar Christina

[PATCH][GCC][ARM] Generate .arch and .arch_extensions for each function if required. [Patch (3/3)]

2017-11-06 Thread Tamar Christina
Hi All, This patch adds the needed machinery to generate the appropriate .arch and .arch_extension directives per function. Borrowing from AArch64 this is only done when it's required (i.e. when the directives to be set differ from the currently set one). As part if this the .fpu directive has

[PATCH][GCC][ARM] Implement "arch" GCC pragma and "+" attributes [Patch (2/3)]

2017-11-06 Thread Tamar Christina
Hi All, This patch adds support for the setting the architecture and extensions using the target GCC pragma. #pragma GCC target ("arch=armv8-a+crc") It also supports a short hand where an extension is just added to the current architecture without changing it #pragma GCC target ("+crc")

[PATCH][GCC][ARM] Refactor arm_option_override to extract global field setters [Patch (1/3)]

2017-11-06 Thread Tamar Christina
Hi All, This patch does a small refactoring to arm_option_override to extract the part that sets the global state variables so they can be changed without changing other global field that we do not want to change after the initial configuration has finished. Regtested on arm-none-eabi and no

Patch ping

2017-11-06 Thread Jakub Jelinek
Hi! I'd like to ping the: http://gcc.gnu.org/ml/gcc-patches/2017-10/msg01895.html PR debug/82718 Fix DWARF5 .debug_loclist handling with hot/cold partitioning patch. Thanks Jakub

[PR c++/82836] weak pragma checking

2017-11-06 Thread Nathan Sidwell
This patch addesses 82836, an ICE where c++'s mangling alias hash table has a DECL_ASSEMBLER_NAME change underneath its feet (to NULL). Because of historical changes in the mangling algorithm, the mangler creates a table, hashed by DECL_ASSEMBLER_NAME recording manglings that could have

Re: [PATCH,RFC] collect2 LTO for AIX

2017-11-06 Thread Jim Wilson
On 10/31/2017 12:11 PM, David Edelsohn wrote: With your recent removal of SDB and -gcoff support, I would appreciate your advice about my patch to incrementally add some preliminary LTO support for AIX to collect2.c: https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00893.html There don't seem to

Re: [C++ Patch] PR 65579 ("gcc requires definition of a static constexpr member...")

2017-11-06 Thread Jason Merrill
OK, thanks. On Fri, Nov 3, 2017 at 3:55 PM, Paolo Carlini wrote: > Hi, > > On 03/11/2017 18:56, Jason Merrill wrote: >> >> Looking at the code again, it seems that the problem is the difference >> between start_decl_1 and grokfield, in that the former has >> >>/* If

Hurd port for gcc-7 go PATCH 11-15(15)

2017-11-06 Thread Svante Signell
* add-gnu-to-libgo-headers.diff: Add gnu to libgo headers for build. * add-gnu-to-libgo-test-headers.diff: Add gnu to libgo headers for tests. * src_libgo_go_go_build_syslist.go.diff: Add gnu to the goosList. * src_libgo_go_syscall_syscall_gnu_test.go.diff: gnu-specific file for tests involving

Hurd port for gcc-7 go PATCH 4-10(15)

2017-11-06 Thread Svante Signell
* src_libgo_build.diff: configure.ac, Makefile.* and shell script patches. * src_libgo_go_crypto.diff: Certificate go files. * src_libgo_go_net.diff: OS-specific net go files. * src_libgo_go_os.diff: OS-specific os go files. * src_libgo_go_runtime.diff: OS-specific runtime go files. *

Re: Adjust empty class parameter passing ABI (PR c++/60336)

2017-11-06 Thread Jason Merrill
On Mon, Nov 6, 2017 at 10:37 AM, Marek Polacek wrote: > On Fri, Nov 03, 2017 at 12:19:05PM -0400, Jason Merrill wrote: >> On Fri, Nov 3, 2017 at 9:55 AM, Marek Polacek wrote: >> > + TYPE_EMPTY_P (t) = targetm.calls.empty_record_p (t); >> >> I think we

Re: Adjust empty class parameter passing ABI (PR c++/60336)

2017-11-06 Thread Marek Polacek
On Fri, Nov 03, 2017 at 12:19:05PM -0400, Jason Merrill wrote: > On Fri, Nov 3, 2017 at 9:55 AM, Marek Polacek wrote: > > + TYPE_EMPTY_P (t) = targetm.calls.empty_record_p (t); > > I think we want to set this in finalize_type_size; since the point of > all this is becoming

Hurd port for gcc-7 go PATCH 1-3(15)

2017-11-06 Thread Svante Signell
Hi, Attached are patches to enable gccgo to build properly on Debian GNU/Hurd on gcc-7 (7-7.2.0-12). The first two patches are Debian-specific: Enable build of gccgo for GNU/Hurd: * debian_rules.defs.diff Define patches for the generated series file: * debian_rules.patch.diff The third enables

Fix folding of vector mask EQ/NE expressions

2017-11-06 Thread Richard Sandiford
fold_binary_loc assumed that if the type of the result wasn't a vector, the operands wouldn't be either. This isn't necessarily true for EQ_EXPR and NE_EXPR of vector masks, which can return a single scalar for the mask as a whole. Tested on aarch64-linux-gnu, x86_64-linux-gnu and

Re: [06/nn] Add VEC_SERIES_{CST,EXPR} and associated optab

2017-11-06 Thread Richard Sandiford
Richard Biener writes: > On Thu, Oct 26, 2017 at 2:23 PM, Richard Biener > wrote: >> On Mon, Oct 23, 2017 at 1:20 PM, Richard Sandiford >> wrote: >>> Similarly to the VEC_DUPLICATE_{CST,EXPR}, this patch adds

Re: [05/nn] Add VEC_DUPLICATE_{CST,EXPR} and associated optab

2017-11-06 Thread Richard Sandiford
Richard Biener writes: > On Mon, Oct 23, 2017 at 1:20 PM, Richard Sandiford > wrote: >> SVE needs a way of broadcasting a scalar to a variable-length vector. >> This patch adds VEC_DUPLICATE_CST for when VECTOR_CST would be used for >>

Re: Fix x86_64 fdo+lto bootstrap

2017-11-06 Thread Jan Hubicka
> On Mon, Nov 06, 2017 at 02:47:52PM +0100, Jan Hubicka wrote: > > Hi, > > this patch fixes sanity checking ICE with FDO bootstrap. > > The problem is when ENTRY_BLOCK_PTR count is zero and function is being > > inlined we disabled scaling. This is no longer correct because scaling > > also

Re: Base subreg rules on REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD

2017-11-06 Thread Richard Sandiford
Jeff Law writes: > On 09/18/2017 05:26 AM, Richard Sandiford wrote: >> Originally subregs operated at the word level and subreg offsets >> were measured in words. The offset units were later changed from >> words to bytes (SUBREG_WORD became SUBREG_BYTE), but the fundamental >>

Re: [PATCH][AArch64] Improve aarch64_legitimate_constant_p

2017-11-06 Thread Richard Sandiford
Wilco Dijkstra writes: > Richard Sandiford wrote: >> >> Yeah, I'd hit this too.  I think it's a latent bug that just >> happened to be exposed by Wilco's patch: although the *movti_aarch64 >> predicate disallows const_wide_int, the constraints allow it via "n", >> which

Re: Be stricter about CONST_VECTOR operands

2017-11-06 Thread James Greenhalgh
On Mon, Nov 06, 2017 at 09:10:23AM +, Richard Sandiford wrote: > The recent gen_vec_duplicate patches used CONST_VECTOR for all > constants, but the documentation says: > > @findex const_vector > @item (const_vector:@var{m} [@var{x0} @var{x1} @dots{}]) > Represents a vector constant.

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Martin Liška
On 11/06/2017 02:58 PM, Paolo Carlini wrote: > Hi, > > On 06/11/2017 14:37, Martin Liška wrote: >> Thank you for the patch. >> I'm going to install the remaining part that will fix x86_64 fallout. All >> changes are >> quite obvious, so hope it's fine to install it. > I think so. Thanks. > >

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Paolo Carlini
Hi, On 06/11/2017 14:37, Martin Liška wrote: Thank you for the patch. I'm going to install the remaining part that will fix x86_64 fallout. All changes are quite obvious, so hope it's fine to install it. I think so. Thanks. Note that the 3 additional libstdc++-v3 changes aren't really

Re: Fix x86_64 fdo+lto bootstrap

2017-11-06 Thread Marek Polacek
On Mon, Nov 06, 2017 at 02:47:52PM +0100, Jan Hubicka wrote: > Hi, > this patch fixes sanity checking ICE with FDO bootstrap. > The problem is when ENTRY_BLOCK_PTR count is zero and function is being > inlined we disabled scaling. This is no longer correct because scaling > also involves

Re: [PATCH][AArch64] Improve aarch64_legitimate_constant_p

2017-11-06 Thread Wilco Dijkstra
Richard Sandiford wrote: > > Yeah, I'd hit this too.  I think it's a latent bug that just > happened to be exposed by Wilco's patch: although the *movti_aarch64 > predicate disallows const_wide_int, the constraints allow it via "n", > which means that the RA can rematerialise a const_wide_int that

Re: [PATCH, rs6000] Add support for usadv16qi and usadv8hi standard patterns

2017-11-06 Thread Bill Schmidt
On Nov 6, 2017, at 4:17 AM, Segher Boessenkool wrote: > > Hi Bill, > > No quotes around the {} block please (twice). Whoops. I know better; copied from a bad example and missed it. > > Other than that, looks fine to me, please commit. Thanks, > Thanks for the

Fix x86_64 fdo+lto bootstrap

2017-11-06 Thread Jan Hubicka
Hi, this patch fixes sanity checking ICE with FDO bootstrap. The problem is when ENTRY_BLOCK_PTR count is zero and function is being inlined we disabled scaling. This is no longer correct because scaling also involves conversion between local and global profiles. Bootstrapped/regtested

Re: [RFA][PATCH] Improve initial probe for noreturn functions for x86 target

2017-11-06 Thread Rainer Orth
Uros Bizjak writes: >> * config/i386/i386.c (ix86_emit_restore_reg_using_pop): > Prototype. >> (ix86_adjust_stack_and_probe_stack_clash): Use a push/pop > sequence >> to probe at the start of a noreturn function. >> >> *

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Martin Liška
On 11/06/2017 01:19 PM, Paolo Carlini wrote: > Hi again, > > On 06/11/2017 12:40, Paolo Carlini wrote: >> Hi, >> >> On 06/11/2017 11:41, Martin Liška wrote: >>> Sorry for that. It's related to x86 target specific test-cases. I'll >>> prepare patch as soon as possible. >> Ok, thanks. >> >> Note,

Re: [PATCH][AArch64] Set default sched pressure algorithm

2017-11-06 Thread Wilco Dijkstra
Maxim Kuvyrkov wrote: > > On Nov 2, 2017, at 9:41 PM, Wilco Dijkstra wrote: > > > > The Arm backend sets the default sched-pressure algorithm to > > SCHED_PRESSURE_MODEL.  Benchmarking on AArch64 shows this > > speeds up floating point performance on SPEC - eg.

[PATCH] Improve aliasing handling in store-merging, handle BIT_NOT_EXPR (PR tree-optimization/78821)

2017-11-06 Thread Jakub Jelinek
Hi! The following patch contains 2 changes: 1) BIT_NOT_EXPR on a load from memory is handled, including when one or both BIT_{AND,IOR,XOR}_EXPR operands is BIT_NOT_EXPR of a memory load 2) it changes the aliasing handling, because the old ao_ref_init_from_ptr_and_size caused way too many

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Paolo Carlini
Hi again, On 06/11/2017 12:40, Paolo Carlini wrote: Hi, On 06/11/2017 11:41, Martin Liška wrote: Sorry for that. It's related to x86 target specific test-cases. I'll prepare patch as soon as possible. Ok, thanks. Note, I'm seeing a few - expected, give the enabled warning - fails in the

Re: [PATCH], PR 82748, Fix __builtin_fabsq on PowerPC

2017-11-06 Thread Segher Boessenkool
Hi! On Fri, Nov 03, 2017 at 06:07:38PM -0400, Michael Meissner wrote: > This patch fixes PR 82748, which is a compiler abort if you use the old > __builtin_fabsq function when you are changing the long double default from > IBM > double-double format to IEEE. > > The problem is __builtin_fabsq

Re: [PATCH] ipa-fnsummary.c: fix use-after-free crash (PR jit/82826)

2017-11-06 Thread Richard Biener
On Fri, Nov 3, 2017 at 6:00 PM, David Malcolm wrote: > PR jit/82826 reports a crash when running jit.dg/test-benchmark.c, > introduced by r254140 > (aka "Extend ipa-pure-const pass to propagate malloc attribute.") > > I see the crash on the 28th of 400 in-process iterations

Re: PR82816: Widening multiplies of bitfields

2017-11-06 Thread Richard Biener
On Fri, Nov 3, 2017 at 4:40 PM, Richard Sandiford wrote: > In this PR we tried to create a widening multiply of two 3-bit numbers, > but that isn't a widening multiply at the optab/rtl level, since both > the input and output still have the same mode. > > We could

Re: Update comment in tree-vrp.h

2017-11-06 Thread Richard Biener
On Sun, Nov 5, 2017 at 7:15 PM, Marc Glisse wrote: > Hello, > > looking at the history, it seems that this comment should be updated as in > the following patch (the definition of struct value_range is right below and > explains VR_RANGE and VR_ANTI_RANGE). I am not

Re: [patch] Do not report non-executed blocks in Ada coverage

2017-11-06 Thread Eric Botcazou
> Yes, I've got patch candidate that's going to change gcov format. Thanks. As discussed privately, here's a test harness for automatic coverage testing in Ada, to be invoked like this: make -C gcc -k check-gnat RUNTESTFLAGS="gcov.exp" from the toplevel build directory. The single test fails

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Paolo Carlini
Hi, On 06/11/2017 11:41, Martin Liška wrote: Sorry for that. It's related to x86 target specific test-cases. I'll prepare patch as soon as possible. Ok, thanks. Note, I'm seeing a few - expected, give the enabled warning - fails in the libstdc++-v3 testsuite too. Eg: FAIL:

Re: [PATCH][AArch64] Improve aarch64_legitimate_constant_p

2017-11-06 Thread Richard Sandiford
Andreas Schwab writes: > FAIL: gfortran.dg/class_array_1.f03 -O3 -fomit-frame-pointer -funroll-loops > -fpeel-loops -ftracer -finline-functions (test for excess errors) > Excess errors: > /opt/gcc/gcc-20171104/gcc/testsuite/gfortran.dg/class_array_1.f03:31:0: > Error:

Re: [PATCH][Arm] Cleanup IT attributes

2017-11-06 Thread Kyrill Tkachov
Hi Wilco, On 03/11/17 14:38, Wilco Dijkstra wrote: A recent change to remove the movdi_vfp_cortexa8 meant that ldrd was used in ITs block even when arm_restrict_it was enabled. Rather than just fixing this latent issue, change the default of predicable_short_it to "no" so that only 16-bit

Re: Improve ivopts handling of forced scales

2017-11-06 Thread Bin.Cheng
On Fri, Nov 3, 2017 at 4:28 PM, Richard Sandiford wrote: > This patch improves the ivopts address cost calculcation for modes > in which an index must be scaled rather than unscaled. Previously > we would only try the scaled form if the unscaled form was valid. > >

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Martin Liška
On 11/06/2017 11:08 AM, Paolo Carlini wrote: > Hi, > > On 06/11/2017 11:03, Martin Liška wrote: >> On 11/06/2017 10:57 AM, Paolo Carlini wrote: >>> are you still in the process of committing the testsuite changes? I had a  >>> quick look (eg, pr45788.C) and some of the fails seem certainly 

Re: 0004-Part-4.-Update-x86-backend-to-enable-Intel-CET

2017-11-06 Thread Uros Bizjak
On Mon, Sep 18, 2017 at 11:58 AM, Uros Bizjak wrote: >> gcc/ >> >> * common/config/i386/i386-common.c (OPTION_MASK_ISA_IBT_SET): New. >> (OPTION_MASK_ISA_SHSTK_SET): Likewise. >> (OPTION_MASK_ISA_IBT_UNSET): Likewise. >> (OPTION_MASK_ISA_SHSTK_UNSET): Likewise. >>

Re: [PATCH][AArch64] Set default sched pressure algorithm

2017-11-06 Thread Maxim Kuvyrkov
> > On Nov 2, 2017, at 9:41 PM, Wilco Dijkstra wrote: > > The Arm backend sets the default sched-pressure algorithm to > SCHED_PRESSURE_MODEL. Benchmarking on AArch64 shows this > speeds up floating point performance on SPEC - eg. CactusBSSN improves > by ~16%. The

Re: [C++ Patch] PR 80955 (Macros expanded in definition of user-defined literals)

2017-11-06 Thread Paolo Carlini
Hi, On 04/11/2017 23:37, Mukesh Kapoor wrote: I had included to get the definition of macro PRId64. I have now modified the test case to remove all includes. I have added the definition of the macro in the test case and also added declarations of functions sprintf() strcmp(). I have attached

Re: [PATCH, rs6000] Add support for usadv16qi and usadv8hi standard patterns

2017-11-06 Thread Segher Boessenkool
Hi Bill, On Sun, Nov 05, 2017 at 06:25:11PM -0600, Bill Schmidt wrote: > This patch adds support for vectorization of unsigned SAD expressions. SAD > vectorization uses the usad pattern to represent a widening accumulation > of SADs performed on a narrower type. The two cases in this patch

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Paolo Carlini
Hi, On 06/11/2017 11:03, Martin Liška wrote: On 11/06/2017 10:57 AM, Paolo Carlini wrote: are you still in the process of committing the testsuite changes? I had a quick  look (eg, pr45788.C) and some of the fails seem certainly expected. Thanks, Paolo. Hi. Revisions 254440 and r254438

Re: [PATCH] Fix test-suite fallout of default -Wreturn-type.

2017-11-06 Thread Martin Liška
On 11/06/2017 10:57 AM, Paolo Carlini wrote: > are you still in the process of committing the testsuite changes? I had a  > quick look (eg, pr45788.C) and some of the fails seem certainly expected. > > Thanks, > Paolo. Hi. Revisions 254440 and r254438 contain fixes for test-suite. Can you

  1   2   >