Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Biener via Gcc-patches
On Thu, May 14, 2020 at 11:53 PM Jason Merrill via Gcc-patches wrote: > > There seemed to be general agreement last November that we would move to > allowing C++11 features to be used in GCC 11; this patch implements that > direction. Are changes needed anywhere else? > > ChangeLog > 2020-05-14

Re: [PATCH] x86: Add -mavoid-libcall for -mgeneral-regs-only

2020-05-15 Thread Richard Biener via Gcc-patches
On Fri, May 15, 2020 at 8:27 AM Uros Bizjak via Gcc-patches wrote: > > On Fri, May 15, 2020 at 1:13 AM H.J. Lu wrote: > > > > The -mgeneral-regs-only option generates code that uses only the > > general-purpose registers. It prevents the compiler from using vector > > registers. But GCC may sti

[committed] i386: Add V2SFmode hadd/hsub instructions [PR95046]

2020-05-15 Thread Uros Bizjak via Gcc-patches
PFACC/PFNACC 3dNow! instructions got their corresponding SSE alternative in SSE3, so these can't be implemented with TARGET_MMX_WITH_SSE, which implies SSE2. These instructions are only generated via builtins, and since several 3dNow! insns have no corresponding SSE alternative, we can't avoid MMX

[PATCH] tree-optimization/95133 - avoid abnormal edges in path splitting

2020-05-15 Thread Richard Biener
When path splitting tries to detect a CFG diamond make sure it is composed of normal (non-EH, not abnormal) edges. Otherwise CFG manipulation later may fail. Bootstrap / regtest running on x86_64-unknown-linux-gnu. Richard. 2020-05-15 Richard Biener PR tree-optimization/95133

Re: [PATCH] x86: Default CET run-time support to auto

2020-05-15 Thread Richard Biener
On Thu, 14 May 2020, Jeff Law wrote: > On Fri, 2020-05-08 at 06:44 -0700, H.J. Lu wrote: > > CET has been added since GCC 8. This patch defaults CET run-time support > > to auto. It enables CET run-time support if asssembler supports CET > > instructions and multi-byte NOPs are enabled via SSE2.

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Sandiford
Richard Biener via Gcc-patches writes: > Note I think what's missing is some general blurb in our coding conventions > as to how much of C++11 we are supposed to use in non-infrastructure parts > of GCC (I expect things like hash-table.h to use more C++ features than, > say, tree-ssa-alias.c). I

[committed] libiberty: Handle @live attribute in D demangler.

2020-05-15 Thread Iain Buclaw via Gcc-patches
Hi, This patch adds support for demangling D functions annotated with the new ownership/borrowing system attribute. Following Jeff's advice from the last patch review, this has been regression tested and committed to mainline. Firstly, as it is assumed this falls under my D front-end maintainer

New mklog script

2020-05-15 Thread Martin Liška
Hi. Since we moved to git world and we're in the preparation for ChangeLog messages being in git commit messages, I think it's the right time to also simplify mklog script. I'm sending a new version (which should eventually replace contrib/mklog and contrib/mklog.pl). Changes made in the versio

[PATCH] tree-optimization/92260 - improve fix

2020-05-15 Thread Richard Biener
This improves the fix for PR92260 changing the number of vector computation to the canonical one, not needing to look at the using stmt. Bootstrap / regtest running on x86_64-unknown-linux-gnu. 2020-05-15 Richard Biener PR tree-optimization/92260 * tree-vect-slp.c (vect_get_co

Re: [PATCH] x86: Allow vector register pushes

2020-05-15 Thread Uros Bizjak via Gcc-patches
On Wed, May 13, 2020 at 5:58 PM H.J. Lu wrote: > > > > The question is, why STV pass creates its funny sequence? The original > > > > sequence should be easily solved by storing DImode from XMM register > > > > and (with patched gcc) pushing DImode value from the same XMM > > > > register. > > >

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Biener via Gcc-patches
On Fri, May 15, 2020 at 10:30 AM Richard Sandiford wrote: > > Richard Biener via Gcc-patches writes: > > Note I think what's missing is some general blurb in our coding conventions > > as to how much of C++11 we are supposed to use in non-infrastructure parts > > of GCC (I expect things like hash

Re: ChangeLog files - server and client scripts

2020-05-15 Thread Martin Liška
On 5/14/20 6:47 PM, Joseph Myers wrote: On Thu, 14 May 2020, Martin Liška wrote: On 5/13/20 7:53 PM, Joseph Myers wrote: On Wed, 13 May 2020, Martin Liška wrote: I'm sending the gcc-changelog relates scripts which should be added to contrib folder. The patch contains: - git_check_commit.py -

Re: [PATCH 2/2] arm: Add support for interrupt routines to reg_needs_saving_p

2020-05-15 Thread Ramana Radhakrishnan via Gcc-patches
On Fri, May 15, 2020 at 7:36 AM Christophe Lyon wrote: > > On Thu, 14 May 2020 at 17:58, Ramana Radhakrishnan > wrote: > > > > > static bool reg_needs_saving_p (unsigned reg) > > > { > > >unsigned long func_type = arm_current_func_type (); > > > > Ah ok , you needed it here. > > Yes sorry.

Re: [stage1][PATCH] Make TOPN counter dynamically allocated.

2020-05-15 Thread Martin Liška
We're in stage1: PING^1 On 4/6/20 10:03 AM, Martin Liška wrote: Hi. We've started discussion the patch with Honza when we started working on reproducibility of -fprofile-generate/use. The patch replaces pre-allocated TOP N counters with a dynamical linked list allocation that happens during pro

Re: [stage1][PATCH] Change semantics of -frecord-gcc-switches and add -frecord-gcc-switches-format.

2020-05-15 Thread Martin Liška
We're in stage1: PING^1 On 4/3/20 8:15 PM, Egeyar Bagcioglu wrote: On 3/18/20 10:05 AM, Martin Liška wrote: On 3/17/20 7:43 PM, Egeyar Bagcioglu wrote: Hi Martin, I like the patch. It definitely serves our purposes at Oracle and provides another way to do what my previous patches did as we

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Sandiford
Richard Biener writes: > On Fri, May 15, 2020 at 10:30 AM Richard Sandiford > wrote: >> >> Richard Biener via Gcc-patches writes: >> > Note I think what's missing is some general blurb in our coding conventions >> > as to how much of C++11 we are supposed to use in non-infrastructure parts >> >

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Biener via Gcc-patches
On Fri, May 15, 2020 at 11:58 AM Richard Sandiford wrote: > > Richard Biener writes: > > On Fri, May 15, 2020 at 10:30 AM Richard Sandiford > > wrote: > >> > >> Richard Biener via Gcc-patches writes: > >> > Note I think what's missing is some general blurb in our coding > >> > conventions > >>

[OBVIOUS][PATCH] Fix clang [-Wmisleading-indentation] in hsa-gen.c.

2020-05-15 Thread Martin Liška
Hi. One fix of indentation that leads to -Wmisleading-indentation in Clang. I'm going to install the patch. Martin gcc/ChangeLog: 2020-05-15 Martin Liska * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation warning. --- gcc/hsa-gen.c | 14 +++--- 1 file ch

testsuite: clarify scan-dump file globbing behavior

2020-05-15 Thread Frederik Harwath
Hi, The test commands for scanning optimization dump files perform globbing on the argument that specifies the suffix of the dump files to be scanned. This behavior is currently undocumented. Furthermore, the current implementation of "scan-dump" and related procedures yields an error whenever the

[PATCH] [arm] Don't generate invalid LDRD insns

2020-05-15 Thread Alex Coplan
Hello, This patch fixes a bug in the arm backend where GCC generates invalid LDRD instructions. The LDRD instruction requires the first transfer register to be even, but GCC attempts to use odd registers here. For example, with the following C code: struct c { double a; } __attribut

[committed] amdgcn: use unsigned extend for lshiftrt

2020-05-15 Thread Andrew Stubbs
This patch fixes a bug in which 8 and 16-bit vector shifts used the wrong kind of extend, thus causing wrong results. It was simply a thinko in the insn code, so easily fixed. Andrew P.S. Apologies for the "work-in-progress" tag on the commit subject. Obviously that was meant to be removed,

[ARM][wwwdocs]: Document Armv8.1-M, Helium Intrinsics and Cortex-M55 changes.

2020-05-15 Thread Srinath Parvathaneni
M-profile related changes in GCC-10. ### Attachment also inlined for ease of reply### diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html index d1a7df0a9259292d097c1c3b9daeab56329ea435..57ca749da72ed64da37b3eb5404cf5cde8be44dd 100644 --- a/htdo

RE: [ARM][wwwdocs]: Document Armv8.1-M, Helium Intrinsics and Cortex-M55 changes.

2020-05-15 Thread Kyrylo Tkachov
> -Original Message- > From: Srinath Parvathaneni > Sent: 15 May 2020 11:36 > To: gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov ; Richard Earnshaw > > Subject: [ARM][wwwdocs]: Document Armv8.1-M, Helium Intrinsics and > Cortex-M55 changes. > > M-profile related changes in GCC-10. Ok.

[Patch][Fortran] OpenMP 5 – permit more sharing clauses for SIMD (PR94690)

2020-05-15 Thread Tobias Burnus
Another issue found when looking into PR94690 and its regression/additional issues. This patch lifts a restriction of 2.15.1.1. Data-sharing Attribute Rules for Variables Referenced in a Construct. OpenMP 4.5 had: * The loop iteration variable(s) in the associated do-loop(s) of a do, parallel

RE: [PATCH] [arm] Don't generate invalid LDRD insns

2020-05-15 Thread Kyrylo Tkachov
Hi Alex, > -Original Message- > From: Alex Coplan > Sent: 15 May 2020 11:36 > To: gcc-patches@gcc.gnu.org > Cc: nd ; ni...@redhat.com; Richard Earnshaw > ; Ramana Radhakrishnan > ; Kyrylo Tkachov > > Subject: [PATCH] [arm] Don't generate invalid LDRD insns > > Hello, > > This patch fix

Re: New mklog script

2020-05-15 Thread David Malcolm via Gcc-patches
On Fri, 2020-05-15 at 10:59 +0200, Martin Liška wrote: > Hi. > > Since we moved to git world and we're in the preparation for > ChangeLog messages > being in git commit messages, I think it's the right time to also > simplify mklog > script. > > I'm sending a new version (which should eventually

Re: [stage1][PATCH] Make TOPN counter dynamically allocated.

2020-05-15 Thread Jan Hubicka
> We're in stage1: PING^1 I wonder, did we somehow solved the issue with Firefox breaking due to malloc instrumentation? Honza > > On 4/6/20 10:03 AM, Martin Liška wrote: > > Hi. > > > > We've started discussion the patch with Honza when we started working on > > reproducibility of -fprofile-ge

Re: [PATCH 2/2] arm: Add support for interrupt routines to reg_needs_saving_p

2020-05-15 Thread Christophe Lyon via Gcc-patches
On Fri, 15 May 2020 at 11:38, Ramana Radhakrishnan wrote: > > On Fri, May 15, 2020 at 7:36 AM Christophe Lyon > wrote: > > > > On Thu, 14 May 2020 at 17:58, Ramana Radhakrishnan > > wrote: > > > > > > > static bool reg_needs_saving_p (unsigned reg) > > > > { > > > >unsigned long func_type

Re: [stage1][PATCH] Make TOPN counter dynamically allocated.

2020-05-15 Thread Martin Liška
On 5/15/20 1:03 PM, Jan Hubicka wrote: I wonder, did we somehow solved the issue with Firefox breaking due to malloc instrumentation? Yes, you proposed a patch: https://hg.mozilla.org/try/rev/e1358ef2d82c035b12f8995712580c77bd9f8d43 Which I believe was sent to Firefox? Martin

Re: New mklog script

2020-05-15 Thread Martin Liška
On 5/15/20 12:58 PM, David Malcolm wrote: On Fri, 2020-05-15 at 10:59 +0200, Martin Liška wrote: Hi. Since we moved to git world and we're in the preparation for ChangeLog messages being in git commit messages, I think it's the right time to also simplify mklog script. I'm sending a new versio

Re: [Patch][Fortran] OpenMP 5 – permit more sharing clauses for SIMD (PR94690)

2020-05-15 Thread Jakub Jelinek via Gcc-patches
On Fri, May 15, 2020 at 12:53:41PM +0200, Tobias Burnus wrote: > [Fortran] OpenMP 5 – permit more sharing clauses for SIMD (PR94690) > > gcc/fortran/ > PR fortran/94690 > * openmp.c (resolve_omp_do): I'd hope Martin's script would reject such a commit. You didn't say what you've chan

[ARM][wwwdocs]: Document Armv8.1-M Mainline Security Extensions changes.

2020-05-15 Thread Srinath Parvathaneni
Armv8.1-M Mainline Security Extensions related changes in GCC-10. ### Attachment also inlined for ease of reply### diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html index 57ca749da72ed64da37b3eb5404cf5cde8be44dd..10bf3b78c7769b73c808bd2c2fe60e

[PATCH] fixup BB vectorization constant generation place

2020-05-15 Thread Richard Biener
This adjusts the way we compute the stmt insert location for invariants in BB vectorization context to deal with eventually sharing invariant SLP nodes for multiple uses. We can no longer use a single use stmt location then but there's a simple way out. Bootstrap and regtest running on x86_64-unk

Re: New mklog script

2020-05-15 Thread Marek Polacek via Gcc-patches
On Fri, May 15, 2020 at 10:59:56AM +0200, Martin Liška wrote: > Hi. > > Since we moved to git world and we're in the preparation for ChangeLog > messages > being in git commit messages, I think it's the right time to also simplify > mklog > script. > > I'm sending a new version (which should ev

Re: New mklog script

2020-05-15 Thread David Malcolm via Gcc-patches
On Fri, 2020-05-15 at 13:20 +0200, Martin Liška wrote: > On 5/15/20 12:58 PM, David Malcolm wrote: > > On Fri, 2020-05-15 at 10:59 +0200, Martin Liška wrote: > > > Hi. > > > > > > Since we moved to git world and we're in the preparation for > > > ChangeLog messages > > > being in git commit messag

Re: New mklog script

2020-05-15 Thread Martin Liška
On 5/15/20 2:42 PM, Marek Polacek wrote: I actually use mklog -i all the time. But I can work around it if it disappears. Ah, I can see a consumer. There's an updated version that supports that. For the future, will you still use the option? Wouldn't be better to put the ChangeLog content dir

[PATCH] x86: Also check if -fcf-protection works

2020-05-15 Thread H.J. Lu via Gcc-patches
When defaulting CET run-time support to auto, check if -fcf-protection works. Even if the stage1 GCC doesn't support -fcf-protection, since the final GCC does, CET run-time support will be enabled by default if binutils support CET. config/ PR bootstrap/95147 * cet.m4 (GCC_CET_FL

Re: New mklog script

2020-05-15 Thread Marek Polacek via Gcc-patches
On Fri, May 15, 2020 at 03:12:27PM +0200, Martin Liška wrote: > On 5/15/20 2:42 PM, Marek Polacek wrote: > > I actually use mklog -i all the time. But I can work around it if it > > disappears. > > Ah, I can see a consumer. > There's an updated version that supports that. > > For the future, wil

Re: testsuite: clarify scan-dump file globbing behavior

2020-05-15 Thread Thomas Schwinge
Hi Frederik! (We had internally discussed this.) I can't formally approve testsuite patches, but did a review anyway: On 2020-05-15T12:31:54+0200, Frederik Harwath wrote: > The test commands for scanning optimization dump files > perform globbing on the argument that specifies the suffix > of t

Re: [C++] template arg comparison

2020-05-15 Thread Nathan Sidwell
On 5/14/20 3:17 PM, Arseny Solokha wrote: Hi, - if (TREE_CODE (nt) == TREE_VEC) + if (TREE_CODE (nt) == TREE_VEC || TREE_CODE (nt) == TREE_VEC) Shouldn't there be if (TREE_CODE (ot) == TREE_VEC || TREE_CODE (nt) == TREE_VEC) + else if (TYPE_P (nt) || TYPE_P (nt)) And here: el

Re: libgo patch committed: Build syscall test with -static

2020-05-15 Thread Rainer Orth
Hi Ian, > On Thu, May 14, 2020 at 12:43 PM Rainer Orth > wrote: >> >> > This libgo patch builds the syscall test with -static. This avoids >> > problems finding libgo.so when running the test as root, which invokes >> > the test as a child process in various limited environments. This >> > fixe

New Swedish PO file for 'cpplib' (version 10.1-b20200209)

2020-05-15 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the Swedish team of translators. The file is available at: https://translationproject.org/latest/cpplib/sv.po (This file, 'cpplib-10.1-b202002

Contents of PO file 'cpplib-10.1-b20200209.sv.po'

2020-05-15 Thread Translation Project Robot
cpplib-10.1-b20200209.sv.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

[no subject]

2020-05-15 Thread Richard Sandiford
>> > We've moved more and more to stronly-typed data structures >> > so I'd not like to see 'auto' everywhere - it should be still >> > obvious what kind of objects we're working with where they >> > matter. IMHO they do not matter for example for iterators. >> > I don't care about the iterator ty

[committed] i386: Allow SI, DI and TImode pushes from XMM registers

2020-05-15 Thread Uros Bizjak via Gcc-patches
Also change XMM register constraint from "x" to "v" in FP push insns. gcc/ChangeLog: 2020-05-15 Uroš Bizjak * config/i386/i386.md (SWI48DWI): New mode iterator. (*push2): Allow XMM registers. (*pushdi2_rex64): Ditto. (*pushsi2_rex64): Ditto. (*pushsi2): Ditto. (push XM

Re: New mklog script

2020-05-15 Thread Martin Sebor via Gcc-patches
On 5/15/20 2:59 AM, Martin Liška wrote: Hi. Since we moved to git world and we're in the preparation for ChangeLog messages being in git commit messages, I think it's the right time to also simplify mklog script. I'm sending a new version (which should eventually replace contrib/mklog and c

Re: [PATCH] x86: Also check if -fcf-protection works

2020-05-15 Thread Richard Biener
On May 15, 2020 3:16:38 PM GMT+02:00, "H.J. Lu" wrote: >When defaulting CET run-time support to auto, check if -fcf-protection >works. Even if the stage1 GCC doesn't support -fcf-protection, since >the final GCC does, CET run-time support will be enabled by default if >binutils support CET. OK.

Re: New mklog script

2020-05-15 Thread Martin Liška
On 5/15/20 3:22 PM, Marek Polacek wrote: On Fri, May 15, 2020 at 03:12:27PM +0200, Martin Liška wrote: On 5/15/20 2:42 PM, Marek Polacek wrote: I actually use mklog -i all the time. But I can work around it if it disappears. Ah, I can see a consumer. There's an updated version that supports

Re: [PATCH] Optimize store_expr from STRING_CST [PR95052]

2020-05-15 Thread Jeff Law via Gcc-patches
On Thu, 2020-05-14 at 18:51 +0200, Jakub Jelinek wrote: > On Thu, May 14, 2020 at 10:10:55AM -0600, Jeff Law wrote: > > On Tue, 2020-05-12 at 10:12 +0200, Jakub Jelinek wrote: > > > Hi! > > > > > > In the following testcase, store_expr of e.g. 97 bytes long string literal > > > into 1MB long array

Re: [PATCH] tree-optimization: Fix use of uninitialized variables warnings [PR94952]

2020-05-15 Thread Jeff Law via Gcc-patches
On Tue, 2020-05-05 at 20:16 +0200, Stefan Schulze Frielinghaus via Gcc-patches wrote: > While bootstrapping GCC on S/390 with --enable-checking=release several > warnings about use of uninitialized variables bitpos, bitregion_start, and > bitregion_end of function pass_store_merging::process_store

[PATCH] TESTSUITE: Fix tests for 16-bit targets

2020-05-15 Thread Jozef Lawrynowicz
The attached patch fixes many GCC and G++ tests for 16-bit targets. These targets can have the following properties: - "int", "size_t", "ptrdiff_t", "void *" are 16-bit types - sizeof(int) == sizeof(short) These properties cause problems for a number of tests in the testsuite, where int is often a

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Jason Merrill via Gcc-patches
On Fri, May 15, 2020 at 3:15 AM Richard Biener wrote: > > +# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure > that a > > +# C++11 compiler can still start the bootstrap. > > if test "$enable_bootstrap:$GXX" = "yes:yes"; then > > + CXX="$CXX -std=gnu++11" > > So I just spotte

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Jason Merrill via Gcc-patches
On Fri, May 15, 2020 at 5:58 AM Richard Sandiford wrote: > Richard Biener writes: > > On Fri, May 15, 2020 at 10:30 AM Richard Sandiford > > wrote: > >> > >> Richard Biener via Gcc-patches writes: > >> > Note I think what's missing is some general blurb in our coding > conventions > >> > as to

[pushed] PR c++/93286 - ICE with __is_constructible and variadic template.

2020-05-15 Thread Jason Merrill via Gcc-patches
My GCC 10 patch for 93286 fixed the missing piece in tsubst's handling of lists vs. that in tsubst_copy_and_build, but it would be better to share the code between them. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog 2020-05-15 Jason Merrill PR c++/93286 - ICE with __

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Biener via Gcc-patches
On May 15, 2020 7:30:38 PM GMT+02:00, Jason Merrill wrote: >On Fri, May 15, 2020 at 3:15 AM Richard Biener > >wrote: > >> > +# When bootstrapping with GCC, build stage 1 in C++11 mode to >ensure >> that a >> > +# C++11 compiler can still start the bootstrap. >> > if test "$enable_bootstrap:$GXX"

Re: [PATCH] reject scalar array initialization with nullptr [PR94510]

2020-05-15 Thread Patrick Palka via Gcc-patches
On Wed, 15 Apr 2020, Patrick Palka wrote: > On Wed, 15 Apr 2020, Martin Sebor via Gcc-patches wrote: > > On 4/13/20 8:43 PM, Jason Merrill wrote: > > > On 4/12/20 5:49 PM, Martin Sebor wrote: > > > > On 4/10/20 8:52 AM, Jason Merrill wrote: > > > > > On 4/9/20 4:23 PM, Martin Sebor wrote: > > > > >

Re: [PATCH] TESTSUITE: Fix tests for 16-bit targets

2020-05-15 Thread Jeff Law via Gcc-patches
On Fri, 2020-05-15 at 18:26 +0100, Jozef Lawrynowicz wrote: > The attached patch fixes many GCC and G++ tests for 16-bit targets. These > targets can have the following properties: > - "int", "size_t", "ptrdiff_t", "void *" are 16-bit types > - sizeof(int) == sizeof(short) > > These properties cau

[PATCH 4/5] rs6000/testsuite: Use the int128 selector where needed

2020-05-15 Thread Segher Boessenkool
Tests that use the __int128 type need to use the int128 selector. 2020-05-15 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/vec-gnb-0.c: Use int128 effective target. * gcc.target/powerpc/vec-gnb-1.c: Ditto. * gcc.target/powerpc/vec-gnb-2.c: Ditto. * gcc.

[PATCH 3/5] rs6000/testsuite: Use lp64 in cnttzdm-0.c

2020-05-15 Thread Segher Boessenkool
2020-05-15 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/cnttzdm-0.c: Use lp64. --- gcc/testsuite/gcc.target/powerpc/cnttzdm-0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.target/powerpc/cnttzdm-0.c b/gcc/testsuite/gcc.target/powerpc/cnttzdm-0.c ind

[PATCH 0/5] rs6000: Fixes for Future, mostly testsuite

2020-05-15 Thread Segher Boessenkool
Some fixes for -mcpu=future, mostly testsuite. This also cleans up some other testsuite problems. Tested on powerpc64-linux {-m32,-m64}; committing to trunk. This hopefully cleans up some of the AIX problems here as well. Segher Segher Boessenkool (5): rs6000/testsuite: Use -mdejagnu-cpu=

[PATCH 2/5] rs6000/testsuite: Don't use powerpc64 effective target

2020-05-15 Thread Segher Boessenkool
The powerpc64 effective target unfortunately does not mean the target has 64-bit instructions enabled (i.e., -mpowerpc64): instead, it means that the assembler supports it. Let's use the lp64 effective target instead for these tests. 2020-05-15 Segher Boessenkool gcc/testsuite/ * gcc.

[PATCH 1/5] rs6000/testsuite: Use -mdejagnu-cpu= instead of -mcpu=

2020-05-15 Thread Segher Boessenkool
A bunch of new cases snuck in. 2020-05-15 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/pdep-0.c: Change -mcpu= to -mdejagnu-cpu=. * gcc.target/powerpc/pdep-1.c: Ditto. * gcc.target/powerpc/pextd-0.c: Ditto. * gcc.target/powerpc/pextd-1.c: Ditto.

[PATCH 5/5] rs6000: BU_FUTURE_MISC_2 requires powerpc64

2020-05-15 Thread Segher Boessenkool
BU_FUTURE_MISC_2 is (currently) only used for instructions that require 64-bit registers. 2020-05-15 Segher Boessenkool * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require RS6000_BTM_POWERPC64. --- gcc/config/rs6000/rs6000-builtin.def | 3 ++- 1 file changed, 2

PR fortran/95053 - division by zero constants

2020-05-15 Thread Harald Anlauf
Here's a new attempt to finally fix this PR and any known fallout. In order to handle division by zero in declarations, but still accept the code snippet adapted from 521.wrf_r (from spec2017), I removed the hunk that was added to fix PR94399, and deferred the handling to a later stage. One case

Re: libstdc++ PR 57272 Fancy pointer support in Hashtable

2020-05-15 Thread François Dumont via Gcc-patches
I think I completed this evolution. I eventually used ref to node pointer as much as possible and even use move semantic on it. My prerequisite for this to work is that nullptr can be assign on the fancy pointer and that a fancy pointer to __node_type is assignable implicitely to a fancy poi

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Jason Merrill via Gcc-patches
On 5/15/20 2:21 PM, Richard Biener wrote: On May 15, 2020 7:30:38 PM GMT+02:00, Jason Merrill wrote: On Fri, May 15, 2020 at 3:15 AM Richard Biener wrote: +# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a +# C++11 compiler can still start the bootstrap. if tes

Re: [PATCH] c++: decltype of invalid non-dependent expr [PR57943]

2020-05-15 Thread Jason Merrill via Gcc-patches
On 5/14/20 4:19 PM, Patrick Palka wrote: We sometimes fail to reject a invalid non-dependent operand to decltype when inside a template, because finish_decltype_type resolves the decltype to the TREE_TYPE of the operand before we ever instantiate and fully process the operand. Fix this by adding

Re: [ARM][wwwdocs]: Document Armv8.1-M Mainline Security Extensions changes.

2020-05-15 Thread Ramana Radhakrishnan via Gcc-patches
On Fri, May 15, 2020 at 12:31 PM Srinath Parvathaneni wrote: > > Armv8.1-M Mainline Security Extensions related changes in GCC-10. > > > ### Attachment also inlined for ease of reply > ### > > > diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html >

Re: libgo patch committed: Build syscall test with -static

2020-05-15 Thread Ian Lance Taylor via Gcc-patches
On Fri, May 15, 2020 at 6:42 AM Rainer Orth wrote: > > > On Thu, May 14, 2020 at 12:43 PM Rainer Orth > > wrote: > >> > >> > This libgo patch builds the syscall test with -static. This avoids > >> > problems finding libgo.so when running the test as root, which invokes > >> > the test as a chil

Re: [PATCH] TESTSUITE: Fix tests for 16-bit targets

2020-05-15 Thread Joseph Myers
On Fri, 15 May 2020, Jozef Lawrynowicz wrote: > The attached patch fixes many GCC and G++ tests for 16-bit targets. These > targets can have the following properties: > - "int", "size_t", "ptrdiff_t", "void *" are 16-bit types > - sizeof(int) == sizeof(short) Some of the tests are disabled by the

[PATCH] warn on uninitialized accesses by function calls (PR 10138)

2020-05-15 Thread Martin Sebor via Gcc-patches
Besides better buffer overflow checking, the new GCC 10 attribute access also provides an opportunity to detect other kinds of bugs, including uninitialized accesses by user-defined functions. The attached patch implements this enhancement. In addition, the closely related PR 10138 requests that

[PATCH] libiberty: Handle function return type and variable declaration type in D demangler.

2020-05-15 Thread Witold Baryluk via Gcc-patches
Adds support for DMGL_RET_POSTFIX in D demangler, so it shows the type of the declared variable, or function return type. Postfix notation is used with space. libiberty/ChangeLog: * d-demangle.c: Add DMGL_RET_POSTFIX support. * testsuite/d-demangle-expected: Add new tests. Signed-off-by: Witold

Re:

2020-05-15 Thread Martin Sebor via Gcc-patches
On 5/15/20 8:08 AM, Richard Sandiford wrote: We've moved more and more to stronly-typed data structures so I'd not like to see 'auto' everywhere - it should be still obvious what kind of objects we're working with where they matter. IMHO they do not matter for example for iterators. I don't care

Re:

2020-05-15 Thread Jason Merrill via Gcc-patches
On Fri, May 15, 2020 at 9:47 PM Martin Sebor wrote: > On 5/15/20 8:08 AM, Richard Sandiford wrote: > We've moved more and more to stronly-typed data structures > so I'd not like to see 'auto' everywhere - it should be still > obvious what kind of objects we're working with where th

[committed] Simplify and improve some H8 peepholes

2020-05-15 Thread Jeff Law via Gcc-patches
A couple minor improvements to the H8 port I spotted while doing the cc0->CC_REG transition. First is consolidation of 3 peepholes into a single peephole using a mode iterator. This has zero impact on the code we generate, but means fewer patterns that I ultimately have to convert. Second is t

Re: [PATCH RFC] bootstrap: Update requirement to C++11.

2020-05-15 Thread Richard Biener via Gcc-patches
On May 15, 2020 11:53:42 PM GMT+02:00, Jason Merrill wrote: >On 5/15/20 2:21 PM, Richard Biener wrote: >> On May 15, 2020 7:30:38 PM GMT+02:00, Jason Merrill > wrote: >>> On Fri, May 15, 2020 at 3:15 AM Richard Biener >>> >>> wrote: >>> > +# When bootstrapping with GCC, build stage 1 in C++11