Re: [PATCH v3] Do not abort compilation when dump file is /dev/*

2021-11-20 Thread Alexandre Oliva via Gcc-patches
Hello, Giuliano, thanks for turning my suggestion into a patch! On Nov 19, 2021, Richard Biener wrote: >> +/* { dg-options "-fdump-ipa-clones -o /dev/null" } */ May I suggest actually checking that the ipa-clones dump file is created with the same name and the location it would without -o /dev/

Re: [PATCH] gfortran: Improve translation of POPPAR intrinsic

2021-11-20 Thread Bernhard Reutner-Fischer via Gcc-patches
Roger pinged this on gcc-patches some time ago fwiw. [The commit-hooks will likely fix or ignore s/bext/next/ in his mail-addr] On Sun, 14 Jun 2020 23:39:32 +0100 "Roger Sayle" wrote: > > > The following patch to gfortran's trans-instrinsic.c tweaks the generic that > is produced > > for po

Small tweak to modref pure/const discoverys

2021-11-20 Thread Jan Hubicka via Gcc-patches
Hi, while looking into the PR I also improved debug output in ipa-modref and fixed ignore_nondeterminism predicate: looping pures and cont are still deterministic. Bootstrapped/regtested x86_64-linux, comitted. gcc/ChangeLog: 2021-11-21 Jan Hubicka PR ipa/103052 * ipa-modref.

Fix looping flag discovery in ipa-pure-const

2021-11-20 Thread Jan Hubicka via Gcc-patches
Hi, The testcase shows situation where there is non-trivial cycle in the callgraph involving a noreturn call. This cycle is important for const function discovery but not important for pure. IPA pure const uses same strongly connected components for both propagations which makes it to get subopti

Re: [PATCH] libgccjit: Add support for TLS variable [PR95415]

2021-11-20 Thread Antoni Boucher via Gcc-patches
Hi. Here's the updated patch. See comments below. Thanks for your reviews! Le jeudi 20 mai 2021 à 16:11 -0400, David Malcolm a écrit : > On Tue, 2021-05-18 at 20:43 -0400, Antoni Boucher via Gcc-patches > wrote: > > Hello. > > This patch adds support for TLS variables. > > One thing to fix before

*PING* [PATCH] PR fortran/99061 - [10/11/12 Regression] ICE in gfc_conv_intrinsic_atan2d, at fortran/trans-intrinsic.c:4728

2021-11-20 Thread Harald Anlauf via Gcc-patches
Early ping. Am 15.11.21 um 22:38 schrieb Harald Anlauf via Fortran: Dear Fortranners, the attached patch fixes the handling of the DEC trigonometric intrinsics for different argument kinds. It is based on the original patch by Steve, which fixes the lookup for the needed intrinsics. Regtested

Re: [PATCH] libgccjit: Add support for types used by atomic builtins [PR96066] [PR96067]

2021-11-20 Thread David Malcolm via Gcc-patches
On Sat, 2021-11-20 at 11:27 -0500, Antoni Boucher wrote: > Hi. > Here's the updated patch. > Thanks for the review! Thanks for the updated patch... > > Le jeudi 20 mai 2021 à 16:24 -0400, David Malcolm a écrit : > > On Mon, 2021-05-17 at 21:02 -0400, Antoni Boucher via Jit wrote: > > > Hello. >

Re: [PATCH] libgccjit: Add support for setting the link section of global variables [PR100688]

2021-11-20 Thread David Malcolm via Gcc-patches
On Sat, 2021-11-20 at 11:53 -0500, Antoni Boucher wrote: > Hi. > Here's the updated patch. > See comments below. > Thanks for the review! > > Le samedi 20 novembre 2021 à 11:20 -0500, David Malcolm a écrit : > > On Sat, 2021-11-20 at 00:58 -0500, Antoni Boucher wrote: [...snip...] > > > > >

[wwwdocs] Document some new C++ features in GCC 12

2021-11-20 Thread Marek Polacek via Gcc-patches
Pushed. --- htdocs/gcc-12/changes.html | 7 +++ 1 file changed, 7 insertions(+) diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index 5f0214bd..43fc5bc0 100644 --- a/htdocs/gcc-12/changes.html +++ b/htdocs/gcc-12/changes.html @@ -166,6 +166,11 @@ a work-in-progress. Se

Re: [PATCH] libgccjit: Add support for setting the link section of global variables [PR100688]

2021-11-20 Thread Antoni Boucher via Gcc-patches
Hi. Here's the updated patch. See comments below. Thanks for the review! Le samedi 20 novembre 2021 à 11:20 -0500, David Malcolm a écrit : > On Sat, 2021-11-20 at 00:58 -0500, Antoni Boucher wrote: > > Thanks for your reviews! > > > > Here's the updated patch, ready for another review. > > See co

Re: [PATCH] Tweak tree-ssa-math-opts.c to solve PR target/102117

2021-11-20 Thread Jeff Law via Gcc-patches
On 11/20/2021 6:14 AM, Roger Sayle wrote: This patch resolves PR target/102117 on s390. The problem is that some of the functionality of GCC's RTL expanders is no longer triggered following the transition to tree SSA form. On s390, unsigned widening multiplications are converted into WIDEN_M

[committed][PR tree-optimization103226] Clobber the condition code in the bfin doloop patterns

2021-11-20 Thread Jeff Law via Gcc-patches
Per Aldy's excellent, but tough to follow analysis in PR 103226, this patch fixes the bfin-elf regression. In simplest terms the doloop patterns on this port may clobber the condition code register, but they do not expose that until after register allocation.  That would be fine, except that o

Re: [PATCH] libgccjit: Add support for types used by atomic builtins [PR96066] [PR96067]

2021-11-20 Thread Antoni Boucher via Gcc-patches
Hi. Here's the updated patch. Thanks for the review! Le jeudi 20 mai 2021 à 16:24 -0400, David Malcolm a écrit : > On Mon, 2021-05-17 at 21:02 -0400, Antoni Boucher via Jit wrote: > > Hello. > > This patch fixes the issue with using atomic builtins in libgccjit. > > Thanks to review it. > > [...s

Re: [PATCH] libgccjit: Add support for setting the link section of global variables [PR100688]

2021-11-20 Thread David Malcolm via Gcc-patches
On Sat, 2021-11-20 at 00:58 -0500, Antoni Boucher wrote: > Thanks for your reviews! > > Here's the updated patch, ready for another review. > See comments/questions below. Thanks for the updated patch... > > I'll update the other patches over the weekend. > > Le jeudi 20 mai 2021 à 15:29 -0400

[PATCH] Tweak tree-ssa-math-opts.c to solve PR target/102117

2021-11-20 Thread Roger Sayle
This patch resolves PR target/102117 on s390. The problem is that some of the functionality of GCC's RTL expanders is no longer triggered following the transition to tree SSA form. On s390, unsigned widening multiplications are converted into WIDEN_MULT_EXPR (aka w* in tree dumps), but signed wi

[pushed] Darwin: Rework handling for unwinder code in libgcc_s and specs [PR80556].

2021-11-20 Thread Iain Sandoe via Gcc-patches
This addresses a long-standing problem where a work-around for an unwinder issue (also a regression) regresses other functionality. The patch replaces several work-arounds with a fix for PR80556 and a work-around for PR88590. * The fix for PR80556 requires a bump to the SO name for libgcc_s, sinc

Re: [RFC PATCH] gcc: Improve reproducability when building cc1/cc1plus

2021-11-20 Thread Jacob Kroon via Gcc-patches
On 11/20/21 09:32, Jakub Jelinek wrote: On Sat, Nov 20, 2021 at 12:24:21AM -0800, Andrew Pinski via Gcc-patches wrote: On Sat, Nov 20, 2021 at 12:18 AM Jacob Kroon via Gcc-patches wrote: cc1/cc1plus both include a checksum of the object files, archives and options used during linking. Unless

[PATCH] openacc: Fix up C++ #pragma acc routine handling [PR101731]

2021-11-20 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs because two function declarations are nested in each other and the acc routine handling code isn't prepared to put the pragma on both. The fix is similar to what #pragma omp declare {simd,variant} does, in particular set the fndecl_seen flag already in cp_parser_la

Re: [RFC PATCH] gcc: Improve reproducability when building cc1/cc1plus

2021-11-20 Thread Jakub Jelinek via Gcc-patches
On Sat, Nov 20, 2021 at 12:24:21AM -0800, Andrew Pinski via Gcc-patches wrote: > On Sat, Nov 20, 2021 at 12:18 AM Jacob Kroon via Gcc-patches > wrote: > > > > cc1/cc1plus both include a checksum of the object files, archives and > > options used during linking. Unless the host binutils has been bu

Re: [RFC PATCH] gcc: Improve reproducability when building cc1/cc1plus

2021-11-20 Thread Andrew Pinski via Gcc-patches
On Sat, Nov 20, 2021 at 12:18 AM Jacob Kroon via Gcc-patches wrote: > > cc1/cc1plus both include a checksum of the object files, archives and > options used during linking. Unless the host binutils has been built > with --enable-deterministic-archives, the archives will have different > checksums

[PATCH] i386: Fix up handling of target attribute [PR101180]

2021-11-20 Thread Jakub Jelinek via Gcc-patches
Hi! As shown in the testcase below, if a function has multiple target attributes (rather than a single one with one or more arguments) or if a function gets one target attribute on one declaration and another one on another declaration, on x86 their effect is not combined into DECL_FUNCTION_SPECIF

[RFC PATCH] gcc: Improve reproducability when building cc1/cc1plus

2021-11-20 Thread Jacob Kroon via Gcc-patches
cc1/cc1plus both include a checksum of the object files, archives and options used during linking. Unless the host binutils has been built with --enable-deterministic-archives, the archives will have different checksums each build due to changes in timestamps of the containing object files, and thu

Re: [PATCH] gcc: vxworks: fix providing stdint.h header

2021-11-20 Thread Olivier Hainque via Gcc-patches
> On 19 Nov 2021, at 21:47, Rasmus Villemoes wrote: >> >> Your error triggers on O2ggnu++0x.gch and we configure with >> --disable-libstdcxx-pch. >> > > ISTR I already tried that, but just for good measure I did it again, and > no luck: > > /bin/sh ../libtool --tag CXX --tag disable-shared