[pushed] c++: class array new checking [PR104084]

2022-01-21 Thread Jason Merrill via Gcc-patches
My patch for PR20040 made us stop exiting early from build_new_1 in cases of trivial initialization if there's a class operator delete; as a result, code later in the function needs to handle this case properly. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/104084 PR

[Bug sanitizer/104158] [12 Regression] gcc no longer accepts -fsanitize-coverage=trace-pc,trace-cmp since r12-1177

2022-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104158 --- Comment #7 from Jakub Jelinek --- Created attachment 52261 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52261=edit gcc12-pr104158-3.patch Untested patch for Fortran -fconvert= extensions using this patch.

[Bug sanitizer/104158] [12 Regression] gcc no longer accepts -fsanitize-coverage=trace-pc,trace-cmp since r12-1177

2022-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104158 --- Comment #6 from Jakub Jelinek --- Created attachment 52260 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52260=edit gcc12-pr104158-2.patch Untested patch for this PR proper. The only behavior change is that

[Bug sanitizer/104158] [12 Regression] gcc no longer accepts -fsanitize-coverage=trace-pc,trace-cmp since r12-1177

2022-01-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104158 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2022-01-21

[Bug middle-end/104140] [12 Regression] ICE verify_gimple failed: type mismatch in binary expression since r12-6434-g0752c75536e

2022-01-21 Thread belyshev at depni dot sinp.msu.ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104140 Serge Belyshev changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

Re: [PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread Richard Sandiford via Gcc-patches
soe...@soeren-tempel.net writes: > From: Sören Tempel > > The -fsplit-stack option requires the pthread_t TCB definition in the > libc to provide certain struct fields at specific hardcoded offsets. As > far as I know, only glibc provides these fields at the required offsets. > Most notably, musl

[PATCH v3] Disable -fsplit-stack support on non-glibc targets

2022-01-21 Thread soeren--- via Gcc-patches
From: Sören Tempel The -fsplit-stack option requires the pthread_t TCB definition in the libc to provide certain struct fields at specific hardcoded offsets. As far as I know, only glibc provides these fields at the required offsets. Most notably, musl libc does not have these fields. However,

Re: [PATCH] rs6000: Support vector float/double for vec_sldw

2022-01-21 Thread Bill Schmidt via Gcc-patches
Thanks!  Pushed as r12-6806 with the testcase adjusted. Bill On 1/21/22 11:47 AM, Segher Boessenkool wrote: > Hi! > > On Fri, Jan 21, 2022 at 11:31:34AM -0600, Bill Schmidt wrote: >> It was recently discovered that Clang supports a couple of variants of >> vec_sldw that >> GCC does not. After

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2022-01-21 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #31 from Martin Sebor --- I believe I understand what both of you are saying and (also) that the cache behaves correctly. It stores offsets based on the pointer definition statements. Here's a test that I think reproduces the

Re: [libc-coord] Add new ABIs '__strcmpeq', '__strncmpeq', '__wcscmpeq' and '__wcsncmpeq' to libc

2022-01-21 Thread Joerg Sonnenberger
On Thu, Jan 20, 2022 at 04:56:59PM -0600, Noah Goldstein wrote: > The goal is that the new interfaces will be usable as an optimization > by compilers if a program uses the return value of the non "eq" > variant as a boolean. So I'm curious, but can you demonstrate that it can be implemented

[Bug middle-end/104140] [12 Regression] ICE verify_gimple failed: type mismatch in binary expression since r12-6434-g0752c75536e

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104140 --- Comment #4 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:886e9779581102caf97cd05dea80d9be87c24784 commit r12-6804-g886e9779581102caf97cd05dea80d9be87c24784 Author: Roger Sayle Date: Fri

[pushed] [PR103676] LRA: Calculate and exclude some start hard registers for reload pseudos

2022-01-21 Thread Vladimir Makarov via Gcc-patches
The following patch solves https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103676 The patch was successfully bootstrapped and tested on x86_64, aarch64, and ppc64. commit 85419ac59724b7ce710ebb4acf03dbd747edeea3 Author: Vladimir N. Makarov Date: Fri Jan 21 13:34:32 2022 -0500 [PR103676]

[Bug target/103676] [10/11/12 Regression] internal compiler error: in extract_constrain_insn, at recog.c:2671

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103676 --- Comment #24 from CVS Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:85419ac59724b7ce710ebb4acf03dbd747edeea3 commit r12-6803-g85419ac59724b7ce710ebb4acf03dbd747edeea3 Author: Vladimir N. Makarov

[Bug rtl-optimization/104153] [12 Regression] ICE due to recent ifcvt changes

2022-01-21 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104153 --- Comment #2 from Jeffrey A. Law --- I'd bet the or1k expanders are changing the passed-in RTL.

[Bug c++/101715] [11 Regression] ICE with noexcept and canonical types differ for identical types

2022-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101715 Marek Polacek changed: What|Removed |Added Summary|[11/12 Regression] ICE with |[11 Regression] ICE with

[Bug c++/101715] [11/12 Regression] ICE with noexcept and canonical types differ for identical types

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101715 --- Comment #19 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:3abcbf243239f9576a60f4ce7f8ee4b3fa14784b commit r12-6802-g3abcbf243239f9576a60f4ce7f8ee4b3fa14784b Author: Marek Polacek Date:

Re: [PATCH v3] c++: ICE with noexcept and canonical types [PR101715]

2022-01-21 Thread Jason Merrill via Gcc-patches
On 1/21/22 12:42, Marek Polacek wrote: On Fri, Jan 21, 2022 at 09:27:17AM -0500, Jason Merrill wrote: On 1/20/22 20:03, Marek Polacek wrote: @@ -2815,12 +2816,23 @@ fixup_deferred_exception_variants (tree type, tree raises) cp_cv_quals var_quals = TYPE_QUALS (variant);

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2022-01-21 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #30 from Andrew Macleod --- (In reply to Martin Sebor from comment #29) > From memory: At use1 the cache is empty so go and find its definition and > record the offset at that point, with the pointer addition as the context. > And

[Bug c++/58646] [9/10/11/12 Regression] ICE on a multidimensional VLA with an empty initializer list

2022-01-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646 Andrew Pinski changed: What|Removed |Added CC||wz at email dot sdu.edu.cn --- Comment

[Bug c++/104168] Crashed when compile `void f(const int N){ int a[1][N] = {}; }`, internal compiler error: in make_decl_rtl, at varasm.c:1422

2022-01-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104168 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

Strengthen a few OpenACC test cases

2022-01-21 Thread Thomas Schwinge
Hi! Pushed to master branch commit 087e545747ca9ee977e84326877b0ce1bc4c383a "Strengthen a few OpenACC test cases", see attached. Grüße Thomas - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung;

Re: [PATCH] rs6000: Support vector float/double for vec_sldw

2022-01-21 Thread Segher Boessenkool
Hi! On Fri, Jan 21, 2022 at 11:31:34AM -0600, Bill Schmidt wrote: > It was recently discovered that Clang supports a couple of variants of > vec_sldw that > GCC does not. After some discussion, we decided that these variants are > reasonable, > and GCC will also support them. This patch adds

[Bug c++/104168] New: Crashed when compile `void f(const int N){ int a[1][N] = {}; }`, internal compiler error: in make_decl_rtl, at varasm.c:1422

2022-01-21 Thread wz at email dot sdu.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104168 Bug ID: 104168 Summary: Crashed when compile `void f(const int N){ int a[1][N] = {}; }`, internal compiler error: in make_decl_rtl, at varasm.c:1422 Product: gcc

Re: [PATCH] [gfortran] Add support for allocate clause (OpenMP 5.0).

2022-01-21 Thread Tobias Burnus
On 21.01.22 18:15, Thomas Schwinge wrote: source-gcc/libgomp/testsuite/libgomp.fortran/allocate-1.f90:11:47: 11 | integer(c_int) function is_64bit_aligned (a) bind(C) | 1 Warning: Variable ‘a’ at (1) is a dummy

[Bug c++/104084] [12 regression] Internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1 since r12-6375-g6cd51207f5732b52

2022-01-21 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104084 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[PATCH v3] c++: ICE with noexcept and canonical types [PR101715]

2022-01-21 Thread Marek Polacek via Gcc-patches
On Fri, Jan 21, 2022 at 09:27:17AM -0500, Jason Merrill wrote: > On 1/20/22 20:03, Marek Polacek wrote: > > @@ -2815,12 +2816,23 @@ fixup_deferred_exception_variants (tree type, tree > > raises) > > cp_cv_quals var_quals = TYPE_QUALS (variant); > > cp_ref_qualifier rqual =

[PATCH] rs6000: Support vector float/double for vec_sldw

2022-01-21 Thread Bill Schmidt via Gcc-patches
Hi, It was recently discovered that Clang supports a couple of variants of vec_sldw that GCC does not. After some discussion, we decided that these variants are reasonable, and GCC will also support them. This patch adds that support. I updated an existing test and discovered it wasn't

[Bug target/90128] 507.cactuBSSN_r is 9-11% slower at -Ofast and native march/tuning on Zen CPUs

2022-01-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90128 --- Comment #10 from Martin Jambor --- We still regress, according to LNT 8% on zen2: https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=335.437.0=309.437.0=346.437.0=276.437.0=398.437.0=417.437.0=295.437.0; and 12% on zen3:

[Bug tree-optimization/104165] [12 Regression] -Warray-bounds for unreachable code inlined from std::sort()

2022-01-21 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104165 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

Re: [PATCH] [gfortran] Add support for allocate clause (OpenMP 5.0).

2022-01-21 Thread Thomas Schwinge
Hi Abid! On 2022-01-11T22:31:54+, Hafiz Abid Qadeer wrote: > From d1fb55bff497a20e6feefa50bd03890e7a903c0e Mon Sep 17 00:00:00 2001 > From: Hafiz Abid Qadeer > Date: Fri, 24 Sep 2021 10:04:12 +0100 > Subject: [PATCH] [gfortran] Add support for allocate clause (OpenMP 5.0). > > This patch

[pushed] c++: [[no_unique_address]] and virtual base [PR104139]

2022-01-21 Thread Jason Merrill via Gcc-patches
Fixing a thinko in my patch for 103681: when computing the size of a virtual base, it would help to use its binfo instead of the one for the derived class. Tested x86_64-pc-linux-gnu, applying to trunk. PR c++/104139 PR c++/103681 gcc/cp/ChangeLog: * class.cc

[Bug c++/103681] [9/10/11 Regression] Unusual behavior for tail padding with different c++ standards and NSDMI

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681 --- Comment #5 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:23be9f83bbd2c6f03580757adbfe599de6bf702b commit r12-6800-g23be9f83bbd2c6f03580757adbfe599de6bf702b Author: Jason Merrill Date:

[Bug c++/104139] [12 Regression] g++.dg/abi/no_unique_address2.C at r12-6028 (a37e8ce3b663)

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104139 --- Comment #2 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:23be9f83bbd2c6f03580757adbfe599de6bf702b commit r12-6800-g23be9f83bbd2c6f03580757adbfe599de6bf702b Author: Jason Merrill Date:

[Bug tree-optimization/104165] [12 Regression] Incorrectly identifying array bounds with -O2 -Werror=array-bounds

2022-01-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104165 Andrew Pinski changed: What|Removed |Added Known to fail||12.0 Target Milestone|---

Re: [PATCH] libstdc++: detect mold linker.

2022-01-21 Thread Jonathan Wakely via Gcc-patches
On Fri, 21 Jan 2022 at 16:11, Martin Liška wrote: > > Hi. > > This adds linker detection for mold in libstdc++-v3. > > Ready to be installed? Yes, OK (but please CC the libstdc++ list, not just me). > Thanks, > Martin > > libstdc++-v3/ChangeLog: > > * acinclude.m4: Detect features for

[PATCH] PR101260 regcprop: Add mode change check for copy reg

2022-01-21 Thread Andreas Krebbel via Gcc-patches
When propagating a multi-word register into an access with a smaller mode the can_change_mode backend hook is already consulted for the original register. This however is also required for the intermediate copy in copy_regno which might use a different register class. Bootstrapped on x86_64 and

Re: [PATCH] libgccjit: Add support for sized integer types, including 128-bit integers [PR95325]

2022-01-21 Thread Antoni Boucher via Gcc-patches
David: this is the email I was talking about in my other email. Here's the updated patch. By the way, I find the usage of NUM_GCC_JIT_TYPES brittle. Would it be better to switch to a new enum value for that instead? See comments below. Le jeudi 20 mai 2021 à 15:25 -0400, David Malcolm a écrit :

Re: reordering of trapping operations and volatile

2022-01-21 Thread Martin Uecker via Gcc
Am Dienstag, den 18.01.2022, 09:31 +0100 schrieb Richard Biener: > On Mon, Jan 17, 2022 at 3:11 PM Michael Matz via Gcc wrote: > > Hello, > > > > On Sat, 15 Jan 2022, Martin Uecker wrote: > > > > > > Because it interferes with existing optimisations. An explicit > > > > checkpoint has a clear

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2022-01-21 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #29 from Martin Sebor --- >From memory: At use1 the cache is empty so go and find its definition and record the offset at that point, with the pointer addition as the context. And at use2 we look up the same offset. So use1 won't

[Bug libstdc++/104167] New: Implement C++20 std::chrono::utc_clock, std::chrono::tzdb etc.

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104167 Bug ID: 104167 Summary: Implement C++20 std::chrono::utc_clock, std::chrono::tzdb etc. Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/104166] New: Implement C++20 std::format

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104166 Bug ID: 104166 Summary: Implement C++20 std::format Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

[PATCH] libstdc++: detect mold linker.

2022-01-21 Thread Martin Liška
Hi. This adds linker detection for mold in libstdc++-v3. Ready to be installed? Thanks, Martin libstdc++-v3/ChangeLog: * acinclude.m4: Detect features for ld.mold linker. * configure: Regenerate. --- libstdc++-v3/acinclude.m4 | 8 +- libstdc++-v3/configure| 52

[Bug libstdc++/87193] symbols in have inconsistent types

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87193 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug libstdc++/104019] Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019 --- Comment #5 from Jonathan Wakely --- The macros should all be OK now. The aliasing fix isn't pushed yet.

[committed] libstdc++: Fix typo in comment

2022-01-21 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. libstdc++-v3/ChangeLog: * testsuite/20_util/shared_ptr/cons/array.cc: Fix comment. --- libstdc++-v3/testsuite/20_util/shared_ptr/cons/array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[committed] libstdc++: Ensure all feature test macros have type long [PR87193]

2022-01-21 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. This defines all the __cpp_lib_xxx macros as type long, as required by the standard. We had an inconsistent mix of int and long, sometimes even for the same macro name. The __cpp_lib_experimental_xxx macros are left as type int, because that's what it

[Bug tree-optimization/104162] [12 Regression] Missed CSE after lowering of [ptr_1 + CST]

2022-01-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104162 --- Comment #3 from Andrew Pinski --- Right my original version of the lowering handled this. I guess we need to handle the case where we have a handled reference too. But that would regress PR 99673 again. I will take a look this weekend.

[committed] libstdc++: Fix condition for __cpp_lib_shared_ptr_arrays

2022-01-21 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. I changed the preprocessor condition from <= to < in r12-6574 which meant the macro was not defined by for C++17. libstdc++-v3/ChangeLog: * include/std/version (__cpp_lib_shared_ptr_arrays): Fix condition for C++17 definition. ---

[Bug libstdc++/104019] Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019 --- Comment #4 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:b8806796ec64585de39ca6ee3b7b30cc08f27d62 commit r12-6798-gb8806796ec64585de39ca6ee3b7b30cc08f27d62 Author: Jonathan Wakely

[Bug libstdc++/87193] symbols in have inconsistent types

2022-01-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87193 --- Comment #5 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:b8806796ec64585de39ca6ee3b7b30cc08f27d62 commit r12-6798-gb8806796ec64585de39ca6ee3b7b30cc08f27d62 Author: Jonathan Wakely Date:

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/104165] New: Incorrectly identifying array bounds with -O2 -Werror=array-bounds

2022-01-21 Thread kbrabml at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104165 Bug ID: 104165 Summary: Incorrectly identifying array bounds with -O2 -Werror=array-bounds Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/97968] [9/10/11/12 Regression] Unnecessary mov instruction with comparison and cmov

2022-01-21 Thread denis.campredon at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97968 --- Comment #3 from denis.campredon at gmail dot com --- This seems to be fixed for gcc12, unlike the code from pr-98303

[Bug analyzer/104159] ICE: in finalize, at vector-builder.h:513 with -O -fanalyzer

2022-01-21 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104159 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #3 from David

Re: [PATCH] PR middle-end/104140: bootstrap ICE on riscv.

2022-01-21 Thread Richard Biener via Gcc-patches
> Am 21.01.2022 um 15:59 schrieb Roger Sayle : > >  > > This patch resolves the P1 "ice-on-valid-code" regression boostrapping > > GCC on risv-unknown-linux-gnu caused by my recent MULT_HIGHPART_EXPR > > functionality. RISC-V differs from x86_64 and many targets by > > supporting a

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-21 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 --- Comment #6 from qingzhe huang --- How about this simple fix? (see the patch above.) Instead of return "error_mark_node" by condition of "!cp_parser_simulate_error", we now report error immediately. The rational of this fix is that

[PATCH] PR middle-end/104140: bootstrap ICE on riscv.

2022-01-21 Thread Roger Sayle
This patch resolves the P1 "ice-on-valid-code" regression boostrapping GCC on risv-unknown-linux-gnu caused by my recent MULT_HIGHPART_EXPR functionality. RISC-V differs from x86_64 and many targets by supporting a usmusidi3 instruction, basically a widening multiply where one operand is

[PATCH][pushed] Enable configure detection of ld.mold.

2022-01-21 Thread Martin Liška
Hello. The patch detects ld.mold linker and use it for comdat_group=yes and gcc_cv_ld_hidden=yes. Tested locally, I'm going to install it. Martin gcc/ChangeLog: * configure.ac: Detect ld_is_mold and use it for comdat_group=yes and gcc_cv_ld_hidden=yes. * configure:

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-21 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 --- Comment #5 from qingzhe huang --- Created attachment 52257 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52257=edit cp_parser_simulate_error logic diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index b262b765a9a..988631a4248

[Bug modula2/104065] [12 Regression] trunk 20220117 fails to build modula2

2022-01-21 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104065 --- Comment #6 from Gaius Mulley --- ok I've fixed the problem above and the bootstrap tool builds cleanly with a C++ compiler. I'm continuing the build before git pushing changes. I've changed most if not all $(CC) to $(CXX) inside the

[Bug libstdc++/104161] Potential Security Vulnerability: remove_all and symbolic link

2022-01-21 Thread adrien.devresse at metamorphe dot engineering via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104161 --- Comment #2 from Adev --- > I already have a patch. Thanks Jonathan. Simple curiosity: Was that already reported before ? If you do need any testing, do not hesitate. A.D

[Bug c++/104111] Concept evaluation depends on context where it was first checked

2022-01-21 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 Patrick Palka changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

Re: [PATCH v2] c++: ICE with noexcept and canonical types [PR101715]

2022-01-21 Thread Jason Merrill via Gcc-patches
On 1/20/22 20:03, Marek Polacek wrote: On Thu, Jan 20, 2022 at 03:23:24PM -0500, Jason Merrill wrote: On 1/18/22 11:05, Marek Polacek wrote: On Mon, Jan 17, 2022 at 01:48:48PM -0500, Jason Merrill wrote: On 1/14/22 19:22, Marek Polacek wrote: This is a "canonical types differ for identical

Difference between 32-bit SPARCv9 and SPARCv8+?

2022-01-21 Thread John Paul Adrian Glaubitz
Hello! I'm currently trying to solve a problem in LLVM which arises when building the compiler-rt library on 32-bit SPARC [1]. More specifically, I'm getting a linker error which indicates that the target does not 64-bit atomic operations natively and has to use libatomic: /usr/bin/ld:

Re: [committed] aarch64: Adjust spellcheck tests for recent quotation-mark changes

2022-01-21 Thread Martin Liška
On 1/21/22 12:39, Richard Earnshaw wrote: Martin's recent change to the way we handle quotation marks and punctuation in error messages caused some fallout in the testsuite. This patch updates the tests for the new output. Thank you for the patch. Martin

[Bug c++/103572] [11/12 Regression] ICE in build_function_type after undefined type as a template argument during class template argument deduction

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103572 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug c++/101731] [9/10/11 Regression] ICE in cp_parser_skip_to_pragma_eol, at cp/parser.c:4055

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101731 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug target/99723] [11/12 Regression] arm: ICE in build_function_type during selftests

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99723 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug c/96171] [10 Regression] ICE on invalid VLA argument declaration and attribute access

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96171 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug c++/39751] [9/10/11/12 Regression] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug tree-optimization/40635] [12 Regression] bogus name and location in 'may be used uninitialized' warning

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40635 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/53932] [9/10/11/12 Regression] C++ reference variable to member of anonymous union in global is error

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53932 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug analyzer/104159] ICE: in finalize, at vector-builder.h:513 with -O -fanalyzer

2022-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104159 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug libstdc++/104019] Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #2) > The aliasing violation is real, we should use memset instead. Patch: https://gcc.gnu.org/pipermail/gcc-patches/2022-January/589024.html

[Bug c/65891] [9/10/11/12 Regression] -Wlogical-op now warns about logical ‘and’ of equal expressions even when different types/sizeofs are involved

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65891 Richard Biener changed: What|Removed |Added Version|unknown |11.2.1 Priority|P3

[Bug tree-optimization/67194] [9/10/11/12 Regression] Missed jump thread and false positive from -Wuninitialized

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67194 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/67196] [9/10/11/12 Regression] loop-induced false positive from -Wmaybe-uninitialized

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67196 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug target/70682] [9/10/11/12 Regression] -fcompare-debug building LLVM with checking=release compiler on ppc64le

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70682 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/78825] [9/10/11/12 Regression] missing error for template partial specialization using template alias type

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78825 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/81958] [9/10/11/12 Regression] spurious -Wmaybe-uninitialized warning in gcc-8, or with -O1

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81958 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/82894] [9/10/11/12 Regression] Inherited member functions do not create ambiguity

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82894 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c/84900] [9/10/11/12 Regression] cast of compound literal does not cause the code to become a non-lvalue

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84900 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/85390] [9/10/11/12 Regression] possible missed optimisation / regression from 6.3 with conditional expression

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85390 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug middle-end/89292] [9/10/11/12 regression] test case gcc.target/powerpc/rs6000-fpint.c fails after r268705

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89292 Richard Biener changed: What|Removed |Added Keywords||missed-optimization, ra

[PATCH] libstdc++: Fix aliasing violation in std::shared_ptr

2022-01-21 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Does anybody see a problem with this change? The non-atomic store that sets both reference counts to zero uses a type-punned pointer, which has undefined behaviour. We could use memset to write 8 bytes, but we don't actually need it to be a single store anyway. No other

[Bug sanitizer/89764] [9/10/11/12 Regression] ubsan diagnostic on generic lambdas decayed to function pointers

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89764 Richard Biener changed: What|Removed |Added Status|NEW |WAITING --- Comment #7 from Richard

[Bug target/90524] [10/11/12 Regression] attribute name and argument mixed up in an error message

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90524 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/91112] [9/10/11/12 Regression] Bad error message for virtual function of a template class. Wrong "required from here" line number

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91112 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/92335] [10/11/12 Regression] sinking of loads happen too early which causes vectorization not to be done

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92335 Richard Biener changed: What|Removed |Added Blocks||53947 Priority|P3

[Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/93503] [9/10/11/12 Regression] Duplicated error on pure virtual template

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93503 Richard Biener changed: What|Removed |Added Version|unknown |11.2.1 Priority|P3

[Bug tree-optimization/94905] [10/11 Regression] Bogus warning -Werror=maybe-uninitialized

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94905 --- Comment #13 from Richard Biener --- Oh, and the reduced testcase is correct to warn on I think.

[Bug sanitizer/99673] [11 Regression] bogus -Wstringop-overread warning with address sanitizer due to member address substitution

2022-01-21 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99673 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | --- Comment #10 from Martin Liška ---

[Bug tree-optimization/94905] [10/11 Regression] Bogus warning -Werror=maybe-uninitialized

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94905 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/94905] [10/11 Regression] Bogus warning -Werror=maybe-uninitialized

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94905 Richard Biener changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known

[Bug c++/104163] Misleading diagnostic for incompletely initialized constinit variable

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104163 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-01-21

[Bug fortran/104164] New: Bogus warning issued by -Wsurprising

2022-01-21 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104164 Bug ID: 104164 Summary: Bogus warning issued by -Wsurprising Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug c++/104163] New: Misleading diagnostic for incompletely initialized constinit variable

2022-01-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104163 Bug ID: 104163 Summary: Misleading diagnostic for incompletely initialized constinit variable Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords:

[Bug middle-end/95126] [9/10/11/12 Regression] Missed opportunity to turn static variables into immediates

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95126 Richard Biener changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug ipa/95558] [9/10/11/12 Regression] Invalid IPA optimizations based on weak definition

2022-01-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95558 Richard Biener changed: What|Removed |Added Priority|P3 |P2

<    1   2   3   4   >