Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-20 Thread Jakub Jelinek via Gcc-patches
On Mon, Dec 21, 2020 at 02:50:24AM +, Maciej W. Rozycki wrote: > On Sat, 12 Dec 2020, Jakub Jelinek via Gcc-patches wrote: > > > This patch adds the ~(X - Y) -> ~X + Y simplification requested > > in the PR (plus also ~(X + C) -> ~X + (-C) for constants C that can > > be safely negated. > >

Re: [PATCH] Correct -fdump-go-spec's handling of incomplete types

2020-12-20 Thread Ian Lance Taylor via Gcc-patches
On Thu, Dec 17, 2020 at 10:22 AM Nikhil Benesch wrote: > > On 12/17/20 1:05 PM, Ian Lance Taylor wrote: > > Thanks for looking into this. I've gotten confused now, though. > > Which patch fixes the problem on Solaris? Thanks. > > > > Ian > > The patch I submitted upstream is all that is needed t

Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-20 Thread Maciej W. Rozycki
On Sat, 12 Dec 2020, Jakub Jelinek via Gcc-patches wrote: > This patch adds the ~(X - Y) -> ~X + Y simplification requested > in the PR (plus also ~(X + C) -> ~X + (-C) for constants C that can > be safely negated. This regresses VAX code produced by the cmpelim-eq-notsi.c test case (and its si

Re: [gcc r11-5968] middle-end: Refactor and expose some vectorizer helper functions.

2020-12-20 Thread Maciej W. Rozycki
On Sun, 13 Dec 2020, Tamar Christina via Gcc-cvs wrote: > https://gcc.gnu.org/g:10bbba9145700e2c3b4709c1041c66d8ff85c7f1 > > commit r11-5968-g10bbba9145700e2c3b4709c1041c66d8ff85c7f1 > Author: Tamar Christina > Date: Sun Dec 13 13:53:48 2020 + > > middle-end: Refactor and expose some

Re: [PATCH] Hurd: Enable ifunc by default

2020-12-20 Thread Samuel Thibault via Gcc-patches
Almudena Garcia, le lun. 21 déc. 2020 01:05:29 +0100, a ecrit: > What do you need exactly? I need gcc people to apply it. > How can we test It? The answer would be lengthy. Basically recompile gcc with it, write or find a program that uses it, and check that it works. But I have already done th

Re: [PATCH] Hurd: Enable ifunc by default

2020-12-20 Thread Almudena Garcia via Gcc-patches
What do you need exactly? How can we test It? El lun, 21 dic 2020 a las 0:11, Samuel Thibault () escribió: > Ping? > > Samuel Thibault, le dim. 08 nov. 2020 23:52:51 +0100, a ecrit: > > The binutils bugs seem to have been fixed. > > > > 2020-11-08 Samuel Thibault > > > > gcc/ > > *

Re: C++ 20 modules

2020-12-20 Thread Gerald Pfeifer
On Thu, 17 Dec 2020, Nathan Sidwell wrote: > As yesterday, several issues fixed: Here is a new one, *-unknown-freebsd11.4; with my previous patch applied, libcody builds and we now fail in gcc/cp: c++ -std=c++11 -fno-PIE -c -DIN_GCC_FRONTEND -g -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-

[PATCH, fix bootstrap] libcody: Include as needed

2020-12-20 Thread Gerald Pfeifer
libcody as originally added to GCC fails to build on *-unknown-freebsd11.4 and presumably others: c++ -std=c++11 -g -include config.h -I ... -MMD -MP -MF netclient.d -c -o netclient.o .../libcody/netclient.cc:114:3: error: unknown type sockaddr_in6 addr;

Re: [PATCH] Hurd: Enable ifunc by default

2020-12-20 Thread Samuel Thibault via Gcc-patches
Ping? Samuel Thibault, le dim. 08 nov. 2020 23:52:51 +0100, a ecrit: > The binutils bugs seem to have been fixed. > > 2020-11-08 Samuel Thibault > > gcc/ > * config.gcc: Enable default_gnu_indirect_function in *-*-gnu* > target (but not *-*-kfreebsd*-gnu | *-*-kopensolaris*-

[PATCH] PR fortran/93685 - [9/10/11 Regression] ICE in gfc_constructor_append_expr, at fortran/constructor.c:135

2020-12-20 Thread Harald Anlauf via Gcc-patches
Dear all, the patch is almost self-explaining. We mishandled the case of initializing pointer components to derived types of type CHARACTER via DATA, which screwed up both legal and illegal uses. The attached patch fixes that, and checks that the legal cases work. Regtests cleanly on x86_64-pc-

[COMMITTED] gcc: xtensa: implement bswapsi2, bswapdi2 and helpers

2020-12-20 Thread Max Filippov via Gcc-patches
2020-12-20 Max Filippov gcc/ * config/xtensa/xtensa.md (bswapsi2, bswapdi2): New patterns. gcc/testsuite/ * gcc.target/xtensa/bswap.c: New test. libgcc/ * config/xtensa/lib1funcs.S (__bswapsi2, __bswapdi2): New functions. * config/xtensa/t-xtensa (LIB1AS

Re: [PATCH 3/4] libstdc++: Add floating-point std::to_chars implementation

2020-12-20 Thread Maciej W. Rozycki
On Thu, 17 Dec 2020, Patrick Palka via Gcc-patches wrote: > > >libstdc++-v3/ChangeLog: > > > > > > * config/abi/pre/gnu.ver: Add new exports. > > > * include/std/charconv (to_chars): Declare the floating-point > > > overloads for float, double and long double. > > > * src/c

Re: [PATCH v6] cacheflush.2: Document __builtin___clear_cache() as a more portable alternative

2020-12-20 Thread Michael Kerrisk (man-pages) via Gcc-patches
On 12/15/20 2:30 PM, Alejandro Colomar wrote: > Reported-by: Heinrich Schuchardt > Signed-off-by: Alejandro Colomar > Cc: Martin Sebor > Cc: Dave Martin > --- > > v6: > - GCC has always exposed 'void *', as Martin Sebor noted. > It's Clang (and maybe others) that (following GCC's docs) > e

[committed] libstdc++: Fix indentation in

2020-12-20 Thread Jonathan Wakely via Gcc-patches
libstdc++-v3/ChangeLog: * include/std/semaphore: Fix indentation. Tested x86_64-linux. Committed to trunk. commit 3621a7bb5795ad4e47b30e1a8a06f1abe2b3b036 Author: Jonathan Wakely Date: Sun Dec 20 18:49:13 2020 libstdc++: Fix indentation in libstdc++-v3/ChangeLog:

[committed] doc: Fix a typo [PR98400]

2020-12-20 Thread Jakub Jelinek via Gcc-patches
Hi! Fix a typo in an option name in documentation. Committed to trunk as obvious. 2020-12-20 Jakub Jelinek PR other/98400 * doc/invoke.texi (-mbackchain): Fix a typo - -mmo-backchain -> -mno-backchain. --- gcc/doc/invoke.texi +++ gcc/doc/invoke.texi @@ -28172,7 +2817

Re: [PATCH] store VLA bounds in attribute access as strings (PR 97172)

2020-12-20 Thread Martin Sebor via Gcc-patches
On 12/19/20 12:48 AM, Richard Biener via Gcc-patches wrote: On December 19, 2020 1:55:02 AM GMT+01:00, Martin Sebor via Gcc-patches wrote: To keep tree expressions stored by the front end in attribute access for nontrivial VLA bounds from getting corrupted during Gimplification and to avoid br

Ping: [PATCH v6] cacheflush.2: Document __builtin___clear_cache() as a more portable alternative

2020-12-20 Thread Alejandro Colomar (man-pages) via Gcc-patches
Ping On 12/15/20 2:30 PM, Alejandro Colomar wrote: > Reported-by: Heinrich Schuchardt > Signed-off-by: Alejandro Colomar > Cc: Martin Sebor > Cc: Dave Martin > --- > > v6: > - GCC has always exposed 'void *', as Martin Sebor noted. > It's Clang (and maybe others) that (following GCC's docs)

[patch, fortran, committed] Set DECL_ARTIFICIAL on auxiliary variables

2020-12-20 Thread Thomas König
Hello world, committed to trunk as obvious and simple. Best regards Thomas Set DECL_ARTIFICIAL on gfortran internal variables. It seems we sometimes use DECL_ARTIFICIAL as choosing between different code paths. In order not to make -fdebug-aux-vars do different things, set DECL_ARTIF

[patch, fortran, testsuite, committed] Fix some more coarray stuff

2020-12-20 Thread Thomas König
Hi, I have just committed the attached patch to a test case that was failing on the shared coarray branch. Again, the person who wrote the test case depended on only running on a single image :-) Best regards Thomas Correct coarray indices for test case. gcc/testsuite/ChangeLog: