[Bug c++/98343] [11 Regression] ICE in in relocate_ptrs, at ggc-common.c:363 [PCH and C++20 std::source_location?]

2020-12-17 Thread pexu--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98343 --- Comment #4 from Pekka S --- And indeed the patch works on x86_64-w64-mingw32, too.

Go testsuite patch committed: Handle +builds line correctly in testsuite

2020-12-17 Thread Ian Lance Taylor via Gcc-patches
This patch to the Go testsuite driver changes it to handle +build lines correctly, which is to say, in the same way that they are handled by the upstream test driver. Update several tests from the upstream repo to use "gc" and "!gccgo" as appropriate so that tests continue to pass. This cleans

[Bug c++/98368] New: Seg fault on template method missing required return statement

2020-12-17 Thread kip at thevertigo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98368 Bug ID: 98368 Summary: Seg fault on template method missing required return statement Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

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

2020-12-17 Thread Patrick Palka via Gcc-patches
On Thu, Dec 17, 2020 at 9:32 AM Jonathan Wakely wrote: > > On 19/08/20 17:57 -0400, Patrick Palka via Libstdc++ wrote: > >On Wed, 22 Jul 2020, Patrick Palka wrote: > > > >> On Mon, 20 Jul 2020, Patrick Palka wrote: > >> > >> > On Mon, 20 Jul 2020, Jonathan Wakely wrote: > >> > > >> > > On

[Bug libfortran/98301] random_init() is broken

2020-12-17 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98301 --- Comment #3 from kargl at gcc dot gnu.org --- Created attachment 49791 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49791=edit new diff with improvements New diff with a better implementation.

[PATCH v6] Practical improvement to libgcc complex divide

2020-12-17 Thread Patrick McGehearty via Gcc-patches
Changes in this version from Version 5: Commit message change: Information for Changelogs put in proper format. Thanks go to Jakub Jelinek for enlightening me how to do that and providing an excellent example. c-cppbuiltin.c - Fixed various formatting issues

[Bug c++/98367] ICE with CTAD non-type template parameter

2020-12-17 Thread jbassett271 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98367 --- Comment #1 from Justin Bassett --- It also ICEs with a segfault even if the `myobject` doesn't do CTAD itself but has its type explicitly specified: https://godbolt.org/z/Mjfe6c . Inlining the non-CTAD version does not ICE, though:

[Bug c++/98367] New: ICE with CTAD non-type template parameter

2020-12-17 Thread jbassett271 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98367 Bug ID: 98367 Summary: ICE with CTAD non-type template parameter Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/96840] [11 Regression] Recursive substitution in constrained commutative operator

2020-12-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96840 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:79f57d5cb070bb02ea0a34b5f42658d6659b19a8 commit r11-6245-g79f57d5cb070bb02ea0a34b5f42658d6659b19a8 Author: Patrick Palka Date:

[Bug bootstrap/96378] ICE: Solaris/SPARCv9 bootstrap stage2 segfault compiling stdc++.h.gch/O2ggnu++0x.gch

2020-12-17 Thread nicholas.h.briggs at gmail dot com via Gcc-bugs
ted LTO compression algorithms: zlib gcc version 11.0.0 20201217 (experimental) (GCC)

[Bug middle-end/98366] [11 Regression] wrong-code with memcmp and -m32

2020-12-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98366 --- Comment #1 from Marek Polacek --- Seems like since that revision we completely elide the memcmp check.

[Bug middle-end/98366] [11 Regression] wrong-code with memcmp and -m32

2020-12-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98366 Marek Polacek changed: What|Removed |Added Target Milestone|--- |11.0 CC|

[Bug middle-end/98366] New: [11 Regression] wrong-code with memcmp and -m32

2020-12-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98366 Bug ID: 98366 Summary: [11 Regression] wrong-code with memcmp and -m32 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/98348] GCC 10.2 AVX512 Mask regression from GCC 9

2020-12-17 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348 --- Comment #4 from Hongtao.liu --- (In reply to Jakub Jelinek from comment #3) > Started with r10-5250-g8b905e9b0c09530c0f660563540257f3d181c2ac > Perhaps peephole2s or something similar to catch that? A patch(with peephole2) is posted at

[Bug tree-optimization/98365] New: Miss vectoization

2020-12-17 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98365 Bug ID: 98365 Summary: Miss vectoization Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug c/94722] implement __attribute__((no_stack_protector)) function attribute

2020-12-17 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94722 --- Comment #10 from Nick Desaulniers --- (In reply to Jakub Jelinek from comment #9) > I've said in that thread that I don't really like disabling the inlining, if > we wanted to make sure everything is stack protected, we'd need to disable >

[Bug c++/97704] [11 Regression][concepts] Not working with explicit types in function signatures?

2020-12-17 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97704 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you, Marek Polacek for finding that revision. I checked out the master branch and reverted the commit f1612b8ae8a60f62cf5456b3357a341550534a7e and now everything compiles

[Bug c++/98364] New: C++20 module binary bloat

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98364 Bug ID: 98364 Summary: C++20 module binary bloat Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee:

[PATCH] libstdc++: Add support for C++20 barriers

2020-12-17 Thread Thomas Rodgers
From: Thomas Rodgers Cleans up a few things mentioned on IRC. Adds libstdc++/ChangeLog: * doc/doxygen/user.cfg.in: Add new header. * include/Makefile.am (std_headers): likewise. * include/Makefile.in: Regenerate. * include/precompiled/stdc++.h: Add new header.

[Bug tree-optimization/80588] GCC can't simplify static inline function with xor/xnor

2020-12-17 Thread sucicf1 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80588 Ivan Sučić changed: What|Removed |Added CC||sucicf1 at outlook dot com --- Comment #2

Re: [PATCH] Update default_estimated_poly_value prototype in targhooks.h

2020-12-17 Thread Kyrylo Tkachov via Gcc-patches
Thanks HJ. Sorry for missing this in my testing. Kyrill From: H.J. Lu Sent: 17 December 2020 19:06 To: Richard Sandiford ; Kyrylo Tkachov via Gcc-patches ; Kyrylo Tkachov Subject: [PATCH] Update default_estimated_poly_value prototype in targhooks.h On Thu, Dec

[Bug c++/98363] C++ 20 module ICE for fast_io library

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98363 cqwrteur changed: What|Removed |Added CC||unlvsur at live dot com --- Comment #1 from

[Bug c++/98363] New: C++ 20 module ICE for fast_io library

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98363 Bug ID: 98363 Summary: C++ 20 module ICE for fast_io library Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/98362] New: bad file data on Windows for C++ 20 module

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98362 Bug ID: 98362 Summary: bad file data on Windows for C++ 20 module Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

gcc-8-20201217 is now available

2020-12-17 Thread GCC Administrator via Gcc
Snapshot gcc-8-20201217 is now available on https://gcc.gnu.org/pub/gcc/snapshots/8-20201217/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 8 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[Bug target/98361] New: L1/L2 cache characteristics not recognized with -mtune=znver2

2020-12-17 Thread sdack at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98361 Bug ID: 98361 Summary: L1/L2 cache characteristics not recognized with -mtune=znver2 Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal

[Bug target/98321] [nvptx] 'atom.add.f32' for atomic add of 32-bit 'float'

2020-12-17 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98321 --- Comment #3 from Tom de Vries --- (In reply to Thomas Schwinge from comment #2) > However, my report was specifically for the nvptx target compiler. Just > compile with 'nvptx-gcc -fopenacc -S' the code I posed, and compare >

[PATCH] c++: fix string literal member initializer bug [PR90926]

2020-12-17 Thread Thomas Greenslade (thomgree) via Gcc-patches
build_aggr_conv did not correctly handle string literal member initializers. Extended can_convert_array to handle this case. The additional checks of compatibility of character types, and whether string literal will fit, would be quite complicated, so are deferred until the actual conversion takes

Re: C++ 20 modules

2020-12-17 Thread Nathan Sidwell
As yesterday, several issues fixed: * 98315 Rainer confirmed fixed * 98300 Reported noted progress, first patch committed * An m68k 'nop' issue fixed * 98340 Another clang issue, fixed * 98324 One PIC issue fixed. * 98316 solaris libs, Rainer posted patch, which LGTM * 98324 bootstrap with

[Bug c++/98315] [11 regression] libcody breaks Solaris bootstrap

2020-12-17 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98315 Nathan Sidwell changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

Re: [PATCH] c++: Diagnose unstable satisfaction results

2020-12-17 Thread Jason Merrill via Gcc-patches
On 12/17/20 12:24 PM, Patrick Palka wrote: On Thu, 17 Dec 2020, Patrick Palka wrote: On Fri, Dec 11, 2020 at 4:55 PM Patrick Palka wrote: On Fri, 11 Dec 2020, Jason Merrill wrote: On 12/11/20 10:31 AM, Patrick Palka wrote: On Thu, 10 Dec 2020, Patrick Palka wrote: On Thu, 10 Dec 2020,

RE: [PATCH][GCC] arm: Add support for Cortex-A78C

2020-12-17 Thread Przemyslaw Wirkus via Gcc-patches
> > Subject: [PATCH][GCC] arm: Add support for Cortex-A78C > > > > This patch adds support for -mcpu=cortex-a78c command line option. > > For more information about this processor, see [0]: > > > > [0] https://developer.arm.com/ip-products/processors/cortex-a/cortex- > > a78c > > > > OK from

[PATCH] libstdc++: Skip atomic instructions in _Sp_counted_base::_M_release when both counts are 1

2020-12-17 Thread Maged Michael via Gcc-patches
Please find a proposed patch for _Sp_counted_base::_M_release to skip the two atomic instructions that decrement each of the use count and the weak count when both are 1. I proposed the general idea in an earlier thread ( https://gcc.gnu.org/pipermail/libstdc++/2020-December/051642.html) and got

[Bug target/98321] [nvptx] 'atom.add.f32' for atomic add of 32-bit 'float'

2020-12-17 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98321 --- Comment #2 from Thomas Schwinge --- Thanks for having a look. (In reply to Tom de Vries from comment #1) > Ok, let's first make a runnable test-case: > ... > $ cat src/libgomp/testsuite/libgomp.oacc-c/test.c > [...] > Indeed we see the

Re: x86_64 build error converting poly_value_estimate_kind

2020-12-17 Thread Martin Sebor via Gcc-patches
On 12/17/20 12:12 PM, H.J. Lu wrote: On Thu, Dec 17, 2020 at 11:07 AM Martin Sebor via Gcc-patches wrote: The top of trunk fails to build with the error below. I haven't spent any time debugging it except to look at git log where the description for r11-6238 mentions the function also

[Bug c++/98348] GCC 10.2 AVX512 Mask regression from GCC 9

2020-12-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux

2020-12-17 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98347 rsandifo at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[committed] rtl-ssa: Fix reg_raw_mode thinko [PR98347]

2020-12-17 Thread Richard Sandiford via Gcc-patches
I'd used reg_raw_mode[regno] for general registers, even though the array is only valid for hard registers. This patch uses regno_reg_rtx instead. Tested on i686-linux-gnu, committed as obvious. Richard gcc/ PR rtl-optimization/98347 * rtl-ssa/access-utils.h (full_register):

[Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux

2020-12-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98347 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:00bad763dcb903103d62e1ef77c542dacf31fc0a commit r11-6241-g00bad763dcb903103d62e1ef77c542dacf31fc0a Author: Richard Sandiford

Re: [PATCH] c++: Fix PCH ICE with __builtin_source_location [PR98343]

2020-12-17 Thread Jason Merrill via Gcc-patches
On 12/17/20 10:04 AM, Jakub Jelinek wrote: Hi! Seems the ggc_remove ppc_nx 3 operand member relies on the hash tables to contain pointers in the first element, which is not the case for source_location_table* hash table, which has location_t and unsigned as first two members and pointer

[Bug bootstrap/98359] bootstrapping failure on windows (same issue on linux too)

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98359 --- Comment #4 from cqwrteur --- (In reply to Jakub Jelinek from comment #2) > Maybe fixed by r11-6240-g4a7a3110c70da8bad6978a36d9da3836538a0cc3 Fixed confirm.

[Bug bootstrap/98359] bootstrapping failure on windows (same issue on linux too)

2020-12-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98359 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

Re: x86_64 build error converting poly_value_estimate_kind

2020-12-17 Thread H.J. Lu via Gcc-patches
On Thu, Dec 17, 2020 at 11:07 AM Martin Sebor via Gcc-patches wrote: > > The top of trunk fails to build with the error below. I haven't > spent any time debugging it except to look at git log where > the description for r11-6238 mentions the function also referenced > in the error message.

[PATCH] libstdc++: Add support for C++20 barriers

2020-12-17 Thread Thomas Rodgers
From: Thomas Rodgers Let's see if this one sticks... Adds libstdc++/ChangeLog: * doc/doxygen/user.cfg.in: Add new header. * include/Makefile.am (std_headers): likewise. * include/Makefile.in: Regenerate. * include/precompiled/stdc++.h: Add new header.

[Bug bootstrap/98359] bootstrapping failure on windows (same issue on linux too)

2020-12-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98359 --- Comment #2 from Jakub Jelinek --- Maybe fixed by r11-6240-g4a7a3110c70da8bad6978a36d9da3836538a0cc3

x86_64 build error converting poly_value_estimate_kind

2020-12-17 Thread Martin Sebor via Gcc-patches
The top of trunk fails to build with the error below. I haven't spent any time debugging it except to look at git log where the description for r11-6238 mentions the function also referenced in the error message. Could the patch be responsible for this?

[PATCH] Update default_estimated_poly_value prototype in targhooks.h

2020-12-17 Thread H.J. Lu via Gcc-patches
On Thu, Dec 17, 2020 at 6:16 AM Richard Sandiford via Gcc-patches wrote: > > Kyrylo Tkachov via Gcc-patches writes: > > Hi all, > > > > While experimenting with some backend costs for Advanced SIMD and SVE I hit > > many cases where GCC would pick SVE for VLA auto-vectorisation even when the > >

[Bug bootstrap/98359] bootstrapping failure on windows

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98359 --- Comment #1 from cqwrteur --- This patch breaks all platforms it looks like. Even linux has this bug now. Please fix it asap or it will break everything. -things like cost calculations or profiling frequencies. The default\n\ +things like

[Bug c++/98360] New: sizeof in template difference between g++/icc and clang++

2020-12-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98360 Bug ID: 98360 Summary: sizeof in template difference between g++/icc and clang++ Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug bootstrap/98359] New: bootstrapping failure on windows

2020-12-17 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98359 Bug ID: 98359 Summary: bootstrapping failure on windows Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap

[Bug middle-end/98357] Bounds check not eliminated

2020-12-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98357 --- Comment #1 from Jeff Muizelaar --- Clang compiles this to: foo(char*, unsigned long, unsigned long, unsigned long): # @foo(char*, unsigned long, unsigned long, unsigned long) xor eax, eax cmp

[Bug rtl-optimization/98144] REE needs 6GB DF memory when compiling insn-extract.c with RTL checking enabled

2020-12-17 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98144 --- Comment #7 from Andrew Macleod --- PR 98174 has that patch applied btw.

[r11-6232 Regression] FAIL: gcc.dg/pr97750.c (test for warnings, line 17) on Linux/x86_64

2020-12-17 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, c25b504636fec7bf8f181a84af83a52757ba7e89 is the first bad commit commit c25b504636fec7bf8f181a84af83a52757ba7e89 Author: Andrew MacLeod Date: Thu Dec 17 09:24:11 2020 -0500 Fix trap in pointer conversion in op1_range. caused FAIL: gcc.dg/pr97750.c (test for excess

[Bug c++/98358] new test case g++.dg/template/pr98297.C in r8-10683 fails

2020-12-17 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98358 Nathan Sidwell changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org ---

V2 [PATCH 1/3] GCC: Pass --plugin to AR and RANLIB

2020-12-17 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. * Makefile.tpl (AR): Add @AR_PLUGIN_OPTION@ (RANLIB): Add @RANLIB_PLUGIN_OPTION@. * configure.ac: Include config/gcc-plugin.m4. AC_SUBST AR_PLUGIN_OPTION and RANLIB_PLUGIN_OPTION.

V2 [PATCH 2/3] Binutils: Pass --plugin to AR and RANLIB

2020-12-17 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. bfd/ * configure: Regenerated. binutils/ * configure: Regenerated. gas/ * configure: Regenerated. gprof/ * configure: Regenerated. ld/ * configure: Regenerated. libctf/

V2 [PATCH 3/3] Support the PGO build for binutils+gdb

2020-12-17 Thread H.J. Lu via Gcc-patches
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data and pass -i to make to ignore errors when generating

V2 [PATCH 3/3] Support the PGO build for binutils+gdb

2020-12-17 Thread H.J. Lu via Gcc-patches
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data and pass -i to make to ignore errors when generating

doc: Standard library header units

2020-12-17 Thread Nathan Sidwell
It seems users are confused by the lack of standard library header units. gcc/ * doc/invoke.texi (C++ Modules): Document lack of std library header units. -- Nathan Sidwell diff --git i/gcc/doc/invoke.texi w/gcc/doc/invoke.texi index 054b8371593..8766bcdfc18 100644 ---

[Bug target/97417] RISC-V Unnecessary andi instruction when loading volatile bool

2020-12-17 Thread jiawei at iscas dot ac.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97417 --- Comment #53 from jiawei --- Hi Jim, Levy had asked me to help about the test. I was resigned on EEMBC and waiting acess for more benchmarks. Now I am testing on csibe and coremax-pro. I think will lineout the result in this

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

2020-12-17 Thread Nikhil Benesch via Gcc-patches
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 to fix the compilation failures on Solaris:

[Bug c++/98358] New: new test case g++.dg/template/pr98297.C in r8-10683 fails

2020-12-17 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98358 Bug ID: 98358 Summary: new test case g++.dg/template/pr98297.C in r8-10683 fails Product: gcc Version: 8.4.1 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/98347] [11 Regression] gcc.dg/long_branch.c ICEs on i686-linux

2020-12-17 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98347 --- Comment #3 from rsandifo at gcc dot gnu.org --- Bah, stupid thinko: using regno_raw_mode[regno] instead of GET_MODE (regno_reg_rtx[regno]) for general registers :-( Testing a fix.

Re: [PATCH 2/3] PowerPC: require IBM long double for pr70117.

2020-12-17 Thread Michael Meissner via Gcc-patches
On Mon, Dec 14, 2020 at 05:26:03PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Dec 03, 2020 at 10:57:56PM -0500, Michael Meissner wrote: > > --- a/gcc/testsuite/gcc.target/powerpc/pr70117.c > > +++ b/gcc/testsuite/gcc.target/powerpc/pr70117.c > > @@ -1,5 +1,6 @@ > > -/* { dg-do run {

[Bug target/97417] RISC-V Unnecessary andi instruction when loading volatile bool

2020-12-17 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97417 --- Comment #52 from Jim Wilson --- I did some simple testing of my patch alone. I modified the riscv-gnu-toolchain makefile to use -Os to build all libraries, built a rv32imac/ilp32 toolchain, and looked at library code size. I see a few

Re: [PATCH] PowerPC: Add float128/Decimal conversions

2020-12-17 Thread Michael Meissner via Gcc-patches
On Fri, Dec 11, 2020 at 01:51:44PM -0600, Segher Boessenkool wrote: > Hi! > > On Thu, Nov 19, 2020 at 07:05:24PM -0500, Michael Meissner wrote: > > If the glibc is not 2.32 or later, this code just compiles to using abort. > > That is the compile-time target glibc. That is often *not* the glibc

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

2020-12-17 Thread Ian Lance Taylor via Gcc-patches
On Thu, Dec 17, 2020 at 8:31 AM Nikhil Benesch via Gcc-patches wrote: > > On 12/17/20 7:28 AM, Rainer Orth wrote: > > I first tried with the new version included, but that broke badly: > > > > cc1 -fpreprocessed sysinfo.i -quiet -O -std=gnu99 > > -fdump-go-spec=tmp-gen-sysinfo.go -o sysinfo.s >

[Bug fortran/98342] Allocatable component in call to assumed-rank routine causes invalid pointer

2020-12-17 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98342 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org Ever

[Bug bootstrap/98340] gcc trunk build with clang failure, part 2

2020-12-17 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98340 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug bootstrap/98340] gcc trunk build with clang failure, part 2

2020-12-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98340 --- Comment #7 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:2d7a40fa60fb8b9870cfd053a37fc67404353ee2 commit r11-6237-g2d7a40fa60fb8b9870cfd053a37fc67404353ee2 Author: Nathan Sidwell Date:

c++: Fix clang problem [PR 98340]

2020-12-17 Thread Nathan Sidwell
Clang didn't like sizeot (uintset::value) in a templated context. Not sure where the problem lies -- ambiguous std, gcc erroneous accept or clang erroneous reject. Anyway, this avoids that construct. PR c++/98340 gcc/cp/ * module.c (uintset::hash::add): Use

[Bug bootstrap/98340] gcc trunk build with clang failure, part 2

2020-12-17 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98340 --- Comment #6 from Nathan Sidwell --- Now I look carefully, it appears to be trying to compile libiberty.a (the library) as a source file. Of course that'll barf. Configured using "CXX='clang -x c++ -std=c++11' CC=clang" (Of course I

[PATCH 3/3] arm: Auto-vectorization for MVE: vshr

2020-12-17 Thread Christophe Lyon via Gcc-patches
This patch enables MVE vshr instructions for auto-vectorization. New MVE patterns are introduced that take a vector of constants as second operand, all constants being equal. The existing mve_vshrq_n_ is kept, as it takes a single immediate as second operand, and is used by arm_mve.h. The

[PATCH 2/3] arm: Auto-vectorization for MVE: vshl

2020-12-17 Thread Christophe Lyon via Gcc-patches
This patch enables MVE vshlq instructions for auto-vectorization. The existing mve_vshlq_n_ is kept, as it takes a single immediate as second operand, and is used by arm_mve.h. We move the vashl3 insn from neon.md to an expander in vec-common.md, and the mve_vshlq_ insn from mve.md to

[PATCH 1/3] arm: Add movmisalign patterns for MVE (PR target/97875)

2020-12-17 Thread Christophe Lyon via Gcc-patches
This patch adds new movmisalign_mve_load and store patterns for MVE to help vectorization. They are very similar to their Neon counterparts, but use different iterators and instructions. Indeed MVE supports less vectors modes than Neon, so we use the MVE_VLD_ST iterator where Neon uses VQX.

[Bug libgcc/98251] libgcc on 32-bit soft-float ARM narrows -NaN incorrectly

2020-12-17 Thread nsz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98251 nsz at gcc dot gnu.org changed: What|Removed |Added CC||nsz at gcc dot gnu.org ---

[Bug bootstrap/98340] gcc trunk build with clang failure, part 2

2020-12-17 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98340 --- Comment #5 from David Binderman --- (In reply to Nathan Sidwell from comment #4) > Created attachment 49789 [details] > try this Thanks. That seemed to build ok. > I tried building with clang, but it barfed about invalid utf8 in libiberty.

[Bug c++/98355] [9/10/11 Regression] ICE in has_attribute, at c-family/c-attribs.c:5628

2020-12-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98355 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 See Also|

Re: [PATCH] c++: Diagnose unstable satisfaction results

2020-12-17 Thread Patrick Palka via Gcc-patches
On Thu, 17 Dec 2020, Patrick Palka wrote: > On Fri, Dec 11, 2020 at 4:55 PM Patrick Palka wrote: > > > > On Fri, 11 Dec 2020, Jason Merrill wrote: > > > > > On 12/11/20 10:31 AM, Patrick Palka wrote: > > > > On Thu, 10 Dec 2020, Patrick Palka wrote: > > > > > > > > > On Thu, 10 Dec 2020, Jason

[Bug tree-optimization/94021] -Wformat-truncation false positive due to excessive integer range

2020-12-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94021 --- Comment #8 from Martin Sebor --- *** Bug 98281 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/98281] - -Wformat-truncation false positive due to excessive integer range (gcc 10.2.0)

2020-12-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98281 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug middle-end/98357] New: Bounds check not eliminated

2020-12-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98357 Bug ID: 98357 Summary: Bounds check not eliminated Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end

Re: [PATCH 3/3] Support the PGO build for binutils+gdb

2020-12-17 Thread Matthias Klose
On 10/29/20 8:11 PM, H.J. Lu via Binutils wrote: > diff --git a/configure.ac b/configure.ac > index 7c4bdff0fa..eea9a21099 100644 > --- a/configure.ac > +++ b/configure.ac > + if test "$enable_pgo_build" = "lto"; then > +AC_MSG_CHECKING([whether the compiler supports -flto=jobserver]) > +

[Bug c++/98356] New: [9/10/11 Regression] ICE in cp_parser_dot_deref_incomplete, at cp/parser.c:7899

2020-12-17 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98356 Bug ID: 98356 Summary: [9/10/11 Regression] ICE in cp_parser_dot_deref_incomplete, at cp/parser.c:7899 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity:

Re: [PATCH] c++: Diagnose unstable satisfaction results

2020-12-17 Thread Patrick Palka via Gcc-patches
On Fri, Dec 11, 2020 at 4:55 PM Patrick Palka wrote: > > On Fri, 11 Dec 2020, Jason Merrill wrote: > > > On 12/11/20 10:31 AM, Patrick Palka wrote: > > > On Thu, 10 Dec 2020, Patrick Palka wrote: > > > > > > > On Thu, 10 Dec 2020, Jason Merrill wrote: > > > > > > > > > On 12/10/20 11:21 AM,

[Bug c++/98355] New: [9/10/11 Regression] ICE in has_attribute, at c-family/c-attribs.c:5628

2020-12-17 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98355 Bug ID: 98355 Summary: [9/10/11 Regression] ICE in has_attribute, at c-family/c-attribs.c:5628 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[OG10] Fortran: delinearize multi-dimensional array accesses

2020-12-17 Thread Sandra Loosemore
The attached patch implements delinearization of array accesses in the Fortran front end, something that has been discussed for a long time. I've been asked to try to get this patch committed on the OG10 branch since it is blocking some further optimization work with Graphite for OpenACC

[Bug c++/98354] New: OOM: cc1plus: out of memory with operator auto

2020-12-17 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98354 Bug ID: 98354 Summary: OOM: cc1plus: out of memory with operator auto Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/98353] New: [9/10/11 Regression] ICE in propagate_necessity, at tree-ssa-dce.c:1053

2020-12-17 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98353 Bug ID: 98353 Summary: [9/10/11 Regression] ICE in propagate_necessity, at tree-ssa-dce.c:1053 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[PING^2][PATCH][omp, simt] Handle alternative IV

2020-12-17 Thread Tom de Vries
On 10/15/20 5:05 PM, Tom de Vries wrote: > On 10/2/20 3:21 PM, Tom de Vries wrote: >> Hi, >> >> Consider the test-case libgomp.c/pr81778.c added in this commit, with >> this core loop (note: CANARY_SIZE set to 0 for simplicity): >> ... >> int s = 1; >> #pragma omp target simd >> for (int i =

[Bug c++/98352] New: [9/10/11 Regression] ICE in implicitly_declare_fn, at cp/method.c:2914

2020-12-17 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98352 Bug ID: 98352 Summary: [9/10/11 Regression] ICE in implicitly_declare_fn, at cp/method.c:2914 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/94779] Bad optimization of simple switch

2020-12-17 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94779 --- Comment #18 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #17) > (In reply to Martin Liška from comment #16) > > > > EVRP knows the proper range: > > 2->4 (F) x_6(D) : unsigned int [0, 1][4, 4] > > EVRP ATM invokes

Re: [PATCH] arm: Fix bootstrap

2020-12-17 Thread Prathamesh Kulkarni via Gcc-patches
On Thu, 17 Dec 2020 at 21:04, Andrea Corallo wrote: > > Kyrylo Tkachov writes: > > >> -Original Message- > >> From: Andrea Corallo > >> Sent: 17 December 2020 14:56 > >> To: gcc-patches@gcc.gnu.org > >> Cc: Kyrylo Tkachov ; Richard Earnshaw > >> ; nd ; Prathamesh Kulkarni > >> > >>

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

2020-12-17 Thread Nikhil Benesch via Gcc-patches
On 12/17/20 7:28 AM, Rainer Orth wrote: I first tried with the new version included, but that broke badly: cc1 -fpreprocessed sysinfo.i -quiet -O -std=gnu99 -fdump-go-spec=tmp-gen-sysinfo.go -o sysinfo.s now SEGVs with either infinite or very deep recursion: Thread 2 received signal SIGSEGV,

[Bug target/98321] [nvptx] 'atom.add.f32' for atomic add of 32-bit 'float'

2020-12-17 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98321 --- Comment #1 from Tom de Vries --- Ok, let's first make a runnable test-case: ... $ cat src/libgomp/testsuite/libgomp.oacc-c/test.c #include #define TYPE float TYPE a = 1; TYPE b = 2; int main (void) { printf ("A: %f\n", a); #pragma

[Bug c++/98348] GCC 10.2 AVX512 Mask regression from GCC 9

2020-12-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348 H.J. Lu changed: What|Removed |Added CC||crazylht at gmail dot com,

[Bug bootstrap/98340] gcc trunk build with clang failure, part 2

2020-12-17 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98340 --- Comment #4 from Nathan Sidwell --- Created attachment 49789 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49789=edit try this I tried building with clang, but it barfed about invalid utf8 in libiberty.

Re: [committed] libstdc++: Test errno macros directly, not via autoconf [PR 93151]

2020-12-17 Thread Jonathan Wakely via Gcc-patches
On 17/12/20 14:05 +, Jonathan Wakely wrote: On 16/12/20 13:38 +, Jonathan Wakely wrote: This fixes a bug caused by a mismatch between the macros defined by when GCC is built and the macros defined by when users include . If the user code is compiled with _XOPEN_SOURCE defined to 500

[committed] libstdc++: Fix condition for gthreads-timed effective-target

2020-12-17 Thread Jonathan Wakely via Gcc-patches
The refactoring in r11-5500 altered the condition for the gthreads-timed test from #if to #ifdef. For some reason that macro is always defined, rather than being defined to 1 or undefined like most of our autoconf macros. That means the test always passes now, even for targets where the macro is

[Bug rtl-optimization/98335] [9/10/11 Regression] Poor code generation for partial struct initialization

2020-12-17 Thread mcolavita at fb dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98335 --- Comment #1 from Michael Colavita --- A similar problem appears to occur for the following example: struct Data { long a; union { long u; struct { char b; char pad[3]; }; }; }; Data

  1   2   3   >