[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc

2021-04-23 Thread taraba.peter at mail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #4 from Peter Taraba --- Actually this works: nvcc -o dt ./DeeperThought/*.cu -save-temps But files it creates even if zipped are above 1MB (which is not allowed to be attached).

[Bug c++/99683] Deduction failure when using CTAD of CNTTP inside a deduction guide

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99683 --- Comment #3 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:bcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 commit r12-100-gbcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 Author: Patrick Palka Date:

[Bug c++/99200] __PRETTY_FUNCTION__ used as template parameter causes internal compiler error (segmentation fault)

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99200 --- Comment #7 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:bcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 commit r12-100-gbcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 Author: Patrick Palka Date:

[Bug c++/93383] ICE on accessing field of a structure which is non-type template parameter, -std=c++2a

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93383 --- Comment #13 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:bcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 commit r12-100-gbcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 Author: Patrick Palka Date:

[Bug c++/95291] ICE in resolve_args at gcc/cp/call.c:4482

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95291 --- Comment #8 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:bcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 commit r12-100-gbcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 Author: Patrick Palka Date:

[Bug c++/89565] [C++2a] ICE on template instantiating user defined non-type template from template value member

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89565 --- Comment #5 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:bcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 commit r12-100-gbcd77b7b9f35bd5b559ed593c3b3e346c1e6f364 Author: Patrick Palka Date:

[Bug c++/87709] c++17 class template argument deduction not working in a very specific case

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87709 --- Comment #10 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:5f1a2cb9c2dc09eed53da5d5787d14bec700b10b commit r12-99-g5f1a2cb9c2dc09eed53da5d5787d14bec700b10b Author: Patrick Palka Date:

Re: [PATCH, libstdc++ testsuite] Correct path to libatomic

2021-04-23 Thread Jeff Law via Gcc-patches
On 4/23/2021 6:54 PM, David Edelsohn via Gcc-patches wrote: Some ports require libatomic for atomic operations, at least for some data types and widths. The libstdc++ testsuite previously was updated to link against libatomic, but the search path was hard-coded to something that is not always

Re: [PATCH] Add dg-final option-based target selectors

2021-04-23 Thread Jeff Law via Gcc-patches
On 4/19/2021 1:28 PM, Richard Sandiford via Gcc-patches wrote: This patch adds target selectors of the form: { any-opts "opt1" ... "optn" } { no-opts "opt1" ... "optn" } for skipping or xfailing tests based on compiler options. It only works for dg-final selectors. The patch then

Re: Second GCC 11.1 Release Candidate available from gcc.gnu.org

2021-04-23 Thread William Seurer via Gcc
On 4/23/21 8:31 AM, Jakub Jelinek via Gcc wrote: Some blocker bugs were reported against the first release candidate of GCC 11.1, so there is a second release candidate for GCC 11.1 available from https://gcc.gnu.org/pub/gcc/snapshots/11.1.0-RC-20210423/ ftp://gcc.gnu.org/pub/gcc/snapshots

Re: [RFC] Run pass_sink_code once more after ivopts/fre

2021-04-23 Thread Jeff Law via Gcc-patches
On 4/14/2021 12:41 AM, Richard Biener wrote: On Wed, 14 Apr 2021, Xionghu Luo wrote: Hi, On 2021/3/26 15:35, Xionghu Luo via Gcc-patches wrote: Also we already have a sinking pass on RTL which even computes a proper PRE on the reverse graph - -fgcse-sm aka store-motion.c. I'm not sure

[Bug c++/93413] Destructor definition not found during constant evaluation

2021-04-23 Thread ldalessandro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93413 Luke Dalessandro changed: What|Removed |Added CC||ldalessandro at gmail dot com ---

[Bug c++/99495] constexpr virtual destructor is used before its definition

2021-04-23 Thread pdimov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99495 Peter Dimov changed: What|Removed |Added CC||pdimov at gmail dot com --- Comment #1

[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc

2021-04-23 Thread taraba.peter at mail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 --- Comment #3 from Peter Taraba --- unfortunately this is using nvcc, which calls probably gcc internally, so adding option "-save-temps to the complete compilation command" is not going to provide what you want. also, I have no clue what

[Bug libstdc++/100243] New: [10 Regression] invalid use of incomplete type 'std::__detail::__iter_traits >' {aka 'struct std::indirectly_readable_traits'}

2021-04-23 Thread nok.raven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100243 Bug ID: 100243 Summary: [10 Regression] invalid use of incomplete type 'std::__detail::__iter_traits >' {aka 'struct std::indirectly_readable_traits'} Product: gcc

[PATCH, libstdc++ testsuite] Correct path to libatomic

2021-04-23 Thread David Edelsohn via Gcc-patches
Some ports require libatomic for atomic operations, at least for some data types and widths. The libstdc++ testsuite previously was updated to link against libatomic, but the search path was hard-coded to something that is not always correct, and the shared library search path was not set. The

[Bug fortran/97571] long parsing phase for simple array constructor

2021-04-23 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org ---

Re: "musttail" statement attribute for GCC?

2021-04-23 Thread Josh Haberman via Gcc
On Fri, Apr 23, 2021 at 4:34 PM Andrew Pinski wrote: > > On Fri, Apr 23, 2021 at 2:45 PM Josh Haberman via Gcc wrote: > > > > I wrote more about some motivation for guaranteed tail calls here: > > https://blog.reverberate.org/2021/04/21/musttail-efficient-interpreters.html > > So I was looking

[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-04-23 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242 --- Comment #2 from Antoni --- Created attachment 50666 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50666=edit Third part of the reproducer

[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-04-23 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242 --- Comment #1 from Antoni --- Created attachment 50665 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50665=edit Second part of the reproducer

[Bug jit/100242] New: libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-04-23 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242 Bug ID: 100242 Summary: libgccjit.so: error: in expmed_mode_index, at expmed.h:249 Product: gcc Version: 10.3.1 Status: UNCONFIRMED Severity: normal

Re: [PATCH] Fix logic error in 32-bit trampolines, PR target/98952

2021-04-23 Thread Segher Boessenkool
On Fri, Apr 23, 2021 at 06:24:07PM -0400, Michael Meissner wrote: > On Thu, Apr 22, 2021 at 05:56:32PM -0500, Segher Boessenkool wrote: > > As Will says, it looks like the ELFv2 version has the same bug. Please > > fix that the same way. > > Yes it has the same bug. However in practice it would

[Bug libgcc/98952] powerpc*: __trampoline_setup inverted test for trampoline size

2021-04-23 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98952 --- Comment #4 from Segher Boessenkool --- Fixed on trunk. Needs backports to 11 and whatever else is still an open branch when the backports are done :-)

[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc

2021-04-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Andrew Pinski changed: What|Removed |Added URL|https://www.frisky.world/20 |

Re: "musttail" statement attribute for GCC?

2021-04-23 Thread Andrew Pinski via Gcc
On Fri, Apr 23, 2021 at 2:45 PM Josh Haberman via Gcc wrote: > > Would it be feasible to implement a "musttail" statement attribute in > GCC to get a guarantee that tail call optimization will be performed? > > Such an attribute has just landed in the trunk of Clang >

Re: [RFC] bpf.2: Use standard types and attributes

2021-04-23 Thread Alexei Starovoitov via Gcc-patches
On Fri, Apr 23, 2021 at 4:15 PM Alejandro Colomar wrote: > > Some manual pages are already using C99 syntax for integral > types 'uint32_t', but some aren't. There are some using kernel > syntax '__u32'. Fix those. > > Some pages also document attributes, using GNU syntax >

[RFC] bpf.2: Use standard types and attributes

2021-04-23 Thread Alejandro Colomar via Gcc-patches
Some manual pages are already using C99 syntax for integral types 'uint32_t', but some aren't. There are some using kernel syntax '__u32'. Fix those. Some pages also document attributes, using GNU syntax '__attribute__((xxx))'. Update those to use the shorter and more portable C2x syntax,

gcc-9-20210423 is now available

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

[Bug target/100241] internal compiler error: in curr_insn_transform, at lra-constraints.c:4133

2021-04-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100241 --- Comment #2 from Marek Polacek --- This is on aarch64: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-redhat-linux/11/lto-wrapper Target: aarch64-redhat-linux Configured with: ../configure

[Bug fortran/97571] long parsing phase for simple array constructor

2021-04-23 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug target/100241] internal compiler error: in curr_insn_transform, at lra-constraints.c:4133

2021-04-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100241 Marek Polacek changed: What|Removed |Added Keywords||needs-bisection --- Comment #1 from

[Bug target/100241] New: internal compiler error: in curr_insn_transform, at lra-constraints.c:4133

2021-04-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100241 Bug ID: 100241 Summary: internal compiler error: in curr_insn_transform, at lra-constraints.c:4133 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity:

Re: [PATCH] Fix logic error in 32-bit trampolines, PR target/98952

2021-04-23 Thread Michael Meissner via Gcc-patches
On Thu, Apr 22, 2021 at 05:56:32PM -0500, Segher Boessenkool wrote: > On Fri, Apr 09, 2021 at 05:09:07PM -0400, Michael Meissner wrote: > > Fix logic error in 32-bit trampolines, PR target/98952. > > > > The test in the PowerPC 32-bit trampoline support is backwards. It aborts > > if the

[Bug libgcc/98952] powerpc*: __trampoline_setup inverted test for trampoline size

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98952 --- Comment #3 from CVS Commits --- The master branch has been updated by Michael Meissner : https://gcc.gnu.org/g:9a30a3f06b908e4e781324c2e813cd1db87119df commit r12-97-g9a30a3f06b908e4e781324c2e813cd1db87119df Author: Michael Meissner Date:

[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc

2021-04-23 Thread taraba.peter at mail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Peter Taraba changed: What|Removed |Added CC||taraba.peter at mail dot com ---

[Bug c++/100240] New: Compiler crashes with segmentation fault on a chrono library using nvcc

2021-04-23 Thread taraba.peter at mail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Bug ID: 100240 Summary: Compiler crashes with segmentation fault on a chrono library using nvcc Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity:

[Bug libstdc++/100017] error: 'fenv_t' has not been declared in '::' x86_64-w64-mingw32 host cross toolchain fails to build

2021-04-23 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 --- Comment #11 from cqwrteur --- (In reply to Jonathan Wakely from comment #8) > I can only fix the case where the target (in the build tree) is > found first and then its #include_next finds the host (installed on > the host). > > But that

[Bug rtl-optimization/100239] [10/11/12 Regression] ICE: in expand_expr_real_2, at expr.c:9865 with __builtin_shuffle()

2021-04-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100239 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Last

Re: GCC 8.5 Status Report (2021-04-23)

2021-04-23 Thread Jason Merrill via Gcc
On Fri, Apr 23, 2021 at 7:55 AM Jakub Jelinek wrote: > > Status > == > > GCC 8.5 release and closing of the 8 branch is several months overdue, > we don't have enough time to maintain trunk and 4 supported release branches. > Therefore, I'd like to do 8.5-rc1 on 7th of May and release 8.5 and

[Bug libstdc++/100017] error: 'fenv_t' has not been declared in '::' x86_64-w64-mingw32 host cross toolchain fails to build

2021-04-23 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 --- Comment #10 from cqwrteur --- (In reply to Jonathan Wakely from comment #8) > I can only fix the case where the target (in the build tree) is > found first and then its #include_next finds the host (installed on > the host). > > But that

[Bug rtl-optimization/100239] New: [10/11/12 Regression] ICE: in expand_expr_real_2, at expr.c:9865 with __builtin_shuffle()

2021-04-23 Thread zsojka at seznam dot cz via Gcc-bugs
-r12-96-20210423095621-g886b6c1e8af-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20210423 (experimental) (GCC)

Re: "musttail" statement attribute for GCC?

2021-04-23 Thread Josh Haberman via Gcc
David Malcolm via Gcc wrote: > FWIW I implemented something like this in GCC's middle-end here: > https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9a385c2d3d74ffed78f2ed9ad47b844d2f294105 > exposing it in API form for libgccjit: >

[Bug libstdc++/100017] error: 'fenv_t' has not been declared in '::' x86_64-w64-mingw32 host cross toolchain fails to build

2021-04-23 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 --- Comment #9 from cqwrteur --- (In reply to Jonathan Wakely from comment #8) > I can only fix the case where the target (in the build tree) is > found first and then its #include_next finds the host (installed on > the host). > > But that

[Bug libstdc++/100238] New: [11/12] Link failure in debug libstdc++ on MinGW due to atomicitiy.cc

2021-04-23 Thread markus.boeck02 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100238 Bug ID: 100238 Summary: [11/12] Link failure in debug libstdc++ on MinGW due to atomicitiy.cc Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/100227] [8/9/10/11/12 Regression] write with implicit loop

2021-04-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100227 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators

2021-04-23 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug fortran/97571] long parsing phase for simple array constructor

2021-04-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571 --- Comment #6 from anlauf at gcc dot gnu.org --- (In reply to Mark J Olah from comment #5) > Whatever is happening inside the AST evaluation in this case is not only > extraordinarily inefficient, but also apparently exponential with the size >

Re: [PATCH] c++: do_class_deduction and dependent init [PR93383]

2021-04-23 Thread Jason Merrill via Gcc-patches
On 4/22/21 9:46 AM, Patrick Palka wrote: On Wed, 21 Apr 2021, Patrick Palka wrote: On Wed, 21 Apr 2021, Jason Merrill wrote: On 4/12/21 1:20 PM, Patrick Palka wrote: Here we're crashing during deduction for a template placeholder from a dependent initializer because one of the initializer's

Re: "musttail" statement attribute for GCC?

2021-04-23 Thread Iain Sandoe via Gcc
David Malcolm via Gcc wrote: On Fri, 2021-04-23 at 12:44 -0700, Josh Haberman via Gcc wrote: Would it be feasible to implement a "musttail" statement attribute in GCC to get a guarantee that tail call optimization will be performed? Such an attribute has just landed in the trunk of Clang

Re: "musttail" statement attribute for GCC?

2021-04-23 Thread David Malcolm via Gcc
On Fri, 2021-04-23 at 12:44 -0700, Josh Haberman via Gcc wrote: > Would it be feasible to implement a "musttail" statement attribute in > GCC to get a guarantee that tail call optimization will be performed? > > Such an attribute has just landed in the trunk of Clang >

Re: State of AutoFDO in GCC

2021-04-23 Thread Xinliang David Li via Gcc
On Fri, Apr 23, 2021 at 12:28 PM Jan Hubicka wrote: > > On Fri, Apr 23, 2021 at 10:27 AM Xinliang David Li > > wrote: > > > > > > > > > > > On Fri, Apr 23, 2021 at 10:16 AM Jan Hubicka wrote: > > > > > >> > > > >> > It uses create_llvm_prof tool which is in the same git repo. The > data > > >>

Re: origin/trunk branch - who added it?

2021-04-23 Thread Jason Merrill via Gcc
On Fri, Apr 23, 2021 at 5:13 AM Martin Liška wrote: > > Few weeks ago, I noticed we have a new remote branch that follows > origin/master: > https://gcc.gnu.org/git/?p=gcc.git;a=shortlog;h=refs/heads/trunk > > Do we know who added it? And what was the motivation? I did; I've always preferred

"musttail" statement attribute for GCC?

2021-04-23 Thread Josh Haberman via Gcc
Would it be feasible to implement a "musttail" statement attribute in GCC to get a guarantee that tail call optimization will be performed? Such an attribute has just landed in the trunk of Clang (https://reviews.llvm.org/D99517). It makes it possible to write algorithms that use arbitrarily long

Re: [patch for gcc12 stage1][version 2] add -ftrivial-auto-var-init and variable attribute "uninitialized" to gcc

2021-04-23 Thread Kees Cook via Gcc-patches
On Fri, Apr 23, 2021 at 08:05:29PM +0100, Richard Sandiford wrote: > Finally getting to this now that the GCC 11 rush is over. Sorry for > the slow response. > > I've tried to review most of the code below, but skipped the testsuite > parts in the interests of time. I'll probably have more

Re: State of AutoFDO in GCC

2021-04-23 Thread Jan Hubicka
> On Fri, Apr 23, 2021 at 10:27 AM Xinliang David Li > wrote: > > > > > > > On Fri, Apr 23, 2021 at 10:16 AM Jan Hubicka wrote: > > > >> > > >> > It uses create_llvm_prof tool which is in the same git repo. The data > >> > parsing part is shared with create_gcov, but the writer is obviously >

[Bug fortran/97571] long parsing phase for simple array constructor

2021-04-23 Thread molah at ucar dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571 --- Comment #5 from Mark J Olah --- I reported this in bug #100235, where it was suggested this would be treated as WONTFIX. It seems this bug is reporting on the same issue arising from rttov:

Re: [PATCH] Fix PR88085

2021-04-23 Thread Jeff Law via Gcc-patches
On 4/20/2021 8:06 AM, Andreas Krebbel via Gcc-patches wrote: With the current handling of decl alignments it is impossible to reduce the alignment requirement as part of a variable declaration. This change has been proposed by Richard in the PR. It fixes the align-1.c testcase on IBM Z.

[Bug libstdc++/100237] Unnecessary std::move in ranges::min, ranges::max and ranges::minmax

2021-04-23 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100237 Patrick Palka changed: What|Removed |Added Last reconfirmed||2021-04-23

Re: [patch for gcc12 stage1][version 2] add -ftrivial-auto-var-init and variable attribute "uninitialized" to gcc

2021-04-23 Thread Richard Sandiford via Gcc-patches
Finally getting to this now that the GCC 11 rush is over. Sorry for the slow response. I've tried to review most of the code below, but skipped the testsuite parts in the interests of time. I'll probably have more comments in future rounds, just wanted to get the ball rolling. This is realy

Re: [PATCH] lra: Avoid cycling on certain subreg reloads [PR96796]

2021-04-23 Thread Vladimir Makarov via Gcc-patches
On 2021-04-23 12:13 p.m., Richard Sandiford wrote: This is a backport of the PR96796 fix to GCC 10 and GCC 9. The original trunk patch was: https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552878.html reviewed here:

[Bug fortran/97571] long parsing phase for simple array constructor

2021-04-23 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571 Dominique d'Humieres changed: What|Removed |Added CC||molah at ucar dot edu ---

[Bug fortran/100235] 10.3.0 Performance regressions for compile-time math intrinsics computation on arrays

2021-04-23 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100235 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/100235] 10.3.0 Performance regressions for compile-time math intrinsics computation on arrays

2021-04-23 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100235 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org

Re: [PATCH 2/2] bpf: allow BSS symbols to be global symbols

2021-04-23 Thread YiFei Zhu via Gcc-patches
On Fri, Apr 23, 2021 at 12:25 PM David Faust wrote: > I've just checked in both patches to master and GCC 10 on your behalf. On 4/22/21 11:54 PM, Jose E. Marchesi via Gcc-patches wrote: > Thanks for the patch. > This is OK for both master and GCC 10. Thanks to both of you :) YiFei Zhu

[Bug libstdc++/100237] New: Unnecessary std::move in ranges::min, ranges::max and ranges::minmax

2021-04-23 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100237 Bug ID: 100237 Summary: Unnecessary std::move in ranges::min, ranges::max and ranges::minmax Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

Re: State of AutoFDO in GCC

2021-04-23 Thread Xinliang David Li via Gcc
On Fri, Apr 23, 2021 at 10:27 AM Xinliang David Li wrote: > > > On Fri, Apr 23, 2021 at 10:16 AM Jan Hubicka wrote: > >> > >> > It uses create_llvm_prof tool which is in the same git repo. The data >> > parsing part is shared with create_gcov, but the writer is obviously >> > different for the

Re: State of AutoFDO in GCC

2021-04-23 Thread Xinliang David Li via Gcc
On Fri, Apr 23, 2021 at 10:16 AM Jan Hubicka wrote: > > > > It uses create_llvm_prof tool which is in the same git repo. The data > > parsing part is shared with create_gcov, but the writer is obviously > > different for the two tools. > > OK and what are the main differences between llvmand gcc

Re: [PATCH 2/2] bpf: allow BSS symbols to be global symbols

2021-04-23 Thread David Faust via Gcc-patches
Hi YiFei, I've just checked in both patches to master and GCC 10 on your behalf. Thanks! On 4/22/21 11:54 PM, Jose E. Marchesi via Gcc-patches wrote: > > Hi YiFei. > >> Prior to this, a BSS declaration such as: >> >> int foo; >> static int bar; >> >> Generates: >> >> .global foo >>

[Bug target/100236] arm: UB in arm_compute_save_core_reg_mask (shift exponent 4294967295 is too large for 32-bit type 'int')

2021-04-23 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100236 --- Comment #1 from Alex Coplan --- GCC compiled with UBSan here. I should have mentioned it needs -march=armv8.1-m.main.

Re: State of AutoFDO in GCC

2021-04-23 Thread Jan Hubicka
> Hi. > > The current situation is that AutoFDO doesn't work with pretty simple > test-cases > we have in testsuite: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71672 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81379 > > These are ~5 years old and nothing has happened. > > I'm pretty

Re: State of AutoFDO in GCC

2021-04-23 Thread Jan Hubicka
> > It uses create_llvm_prof tool which is in the same git repo. The data > parsing part is shared with create_gcov, but the writer is obviously > different for the two tools. OK and what are the main differences between llvmand gcc format? Honza > > David > > > > Honza > > > > > > David > >

[Bug target/100236] New: arm: UB in arm_compute_save_core_reg_mask (shift exponent 4294967295 is too large for 32-bit type 'int')

2021-04-23 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100236 Bug ID: 100236 Summary: arm: UB in arm_compute_save_core_reg_mask (shift exponent 4294967295 is too large for 32-bit type 'int') Product: gcc Version: 11.0

Re: State of AutoFDO in GCC

2021-04-23 Thread Xinliang David Li via Gcc
On Fri, Apr 23, 2021 at 9:54 AM Jan Hubicka wrote: > > On Fri, Apr 23, 2021 at 12:18 AM Martin Liška wrote: > > > > > On 4/23/21 9:00 AM, Richard Biener via Gcc wrote: > > > > On Fri, Apr 23, 2021 at 7:28 AM Xinliang David Li via Gcc > > > > wrote: > > > >> > > > >> Hi, the create_gcov tool

Re: State of AutoFDO in GCC

2021-04-23 Thread Jan Hubicka
> On Fri, Apr 23, 2021 at 12:18 AM Martin Liška wrote: > > > On 4/23/21 9:00 AM, Richard Biener via Gcc wrote: > > > On Fri, Apr 23, 2021 at 7:28 AM Xinliang David Li via Gcc > > > wrote: > > >> > > >> Hi, the create_gcov tool was probably removed with the assumption that > > it > > >> was only

Re: [PATCH][libgomp, nvptx] Fix hang in gomp_team_barrier_wait_end

2021-04-23 Thread Tom de Vries
On 4/23/21 5:45 PM, Alexander Monakov wrote: > On Thu, 22 Apr 2021, Tom de Vries wrote: > >> Ah, I see, agreed, that makes sense. I was afraid there was some >> fundamental problem that I overlooked. >> >> Here's an updated version. I've tried to make it clear that the >> futex_wait/wake are

i386: Reject -m96bit-long-double for 64bit targets [PR100041]

2021-04-23 Thread Uros Bizjak via Gcc-patches
64bit targets default to 128bit long double, so -m96bit-long-double should not be used. Together with -m128bit-long-double, this option was intended to be an optimization for 32bit targets only. Error out when -m96bit-long-double is used with 64bit targets. 2021-04-23 Uroš Bizjak gcc/

[Bug target/100041] ICE in curr_insn_transform, at lra-constraints.c:4022

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100041 --- Comment #22 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:716bb02b40ecef5564abb5ba45a594323123a104 commit r12-94-g716bb02b40ecef5564abb5ba45a594323123a104 Author: Uros Bizjak Date: Fri

Re: State of AutoFDO in GCC

2021-04-23 Thread Xinliang David Li via Gcc
On Fri, Apr 23, 2021 at 12:18 AM Martin Liška wrote: > On 4/23/21 9:00 AM, Richard Biener via Gcc wrote: > > On Fri, Apr 23, 2021 at 7:28 AM Xinliang David Li via Gcc > > wrote: > >> > >> Hi, the create_gcov tool was probably removed with the assumption that > it > >> was only used with Google

[Bug fortran/100235] New: 10.3.0 Performance regressions for compile-time math intrinsics computation on arrays

2021-04-23 Thread molah at ucar dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100235 Bug ID: 100235 Summary: 10.3.0 Performance regressions for compile-time math intrinsics computation on arrays Product: gcc Version: 10.3.0 Status: UNCONFIRMED

Re: State of AutoFDO in GCC

2021-04-23 Thread Xinliang David Li via Gcc
On Fri, Apr 23, 2021 at 12:00 AM Richard Biener wrote: > On Fri, Apr 23, 2021 at 7:28 AM Xinliang David Li via Gcc > wrote: > > > > Hi, the create_gcov tool was probably removed with the assumption that it > > was only used with Google GCC branch, but it is actually used with GCC > > trunk as

[Bug target/99540] ICE: Segmentation fault in aarch64_add_offset

2021-04-23 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99540 rsandifo at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[Bug target/99249] SVE: ICE in aarch64_expand_sve_const_vector (during RTL pass: early_remat)

2021-04-23 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99249 rsandifo at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[committed] MAINTAINERS: Add myself for write after approval

2021-04-23 Thread David Faust via Gcc-patches
ChangeLog: 2021-04-23 David Faust * MAINTAINERS (Write After Approval): Add myself. --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index db25583b37b..c589c0b30ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -387,6 +387,7 @@ Doug Evans

[Bug target/98119] [10 Regression] SVE: Wrong code with -O1 -ftree-vectorize -msve-vector-bits=512 -mtune=thunderx

2021-04-23 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98119 rsandifo at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[Bug target/99929] [8/9/10 Backport] SVE: Wrong code at -O2 -ftree-vectorize

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99929 --- Comment #5 from CVS Commits --- The releases/gcc-10 branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:2c3a699b91dac954271c9fd96416128fc39cb3f9 commit r10-9760-g2c3a699b91dac954271c9fd96416128fc39cb3f9 Author: Richard

[Bug target/98119] [10 Regression] SVE: Wrong code with -O1 -ftree-vectorize -msve-vector-bits=512 -mtune=thunderx

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98119 --- Comment #7 from CVS Commits --- The releases/gcc-10 branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:367aa5ee879c6bbfc4bf7ae94c680f0614581661 commit r10-9759-g367aa5ee879c6bbfc4bf7ae94c680f0614581661 Author: Richard

[PATCH] lra: Avoid cycling on certain subreg reloads [PR96796]

2021-04-23 Thread Richard Sandiford via Gcc-patches
This is a backport of the PR96796 fix to GCC 10 and GCC 9. The original trunk patch was: https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552878.html reviewed here: https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553308.html I'm not aware of any fallout since then.

[Bug c++/98056] ICE tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862 since r11-2183-g0f66b8486cea8668

2021-04-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98056 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #8

[Bug c++/100234] [11/12 Regression] Coroutines ICE

2021-04-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100234 Jakub Jelinek changed: What|Removed |Added Resolution|--- |DUPLICATE

Re: [PATCH][libgomp, nvptx] Fix hang in gomp_team_barrier_wait_end

2021-04-23 Thread Alexander Monakov via Gcc-patches
On Thu, 22 Apr 2021, Tom de Vries wrote: > Ah, I see, agreed, that makes sense. I was afraid there was some > fundamental problem that I overlooked. > > Here's an updated version. I've tried to make it clear that the > futex_wait/wake are locally used versions, not generic functionality.

[Bug target/99932] OpenACC/nvptx offloading execution regressions starting with CUDA 11.2-era Nvidia Driver 460.27.04

2021-04-23 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99932 --- Comment #4 from Tom de Vries --- Created attachment 50662 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50662=edit Updated cuda reproducer Slimmed down further, eliminated gang/worker reduction parts.

[Bug c++/100234] [11/12 Regression] Coroutines ICE

2021-04-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100234 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |11.2 CC|

[Bug c++/100234] New: [11/12 Regression] Coroutines ICE

2021-04-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100234 Bug ID: 100234 Summary: [11/12 Regression] Coroutines ICE Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/100182] [8/9/10/11/12 Regression] Miscompilation of atomic_float/1.cc and atomic_float/wait_notify.cc on i686

2021-04-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100182 --- Comment #22 from CVS Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:d2324a5ab3ff097864ae6828cb1db4dd013c70d1 commit r12-91-gd2324a5ab3ff097864ae6828cb1db4dd013c70d1 Author: Uros Bizjak Date: Fri

i386: Fix atomic FP peepholes [PR100182]

2021-04-23 Thread Uros Bizjak via Gcc-patches
64bit loads to/stores from x87 and SSE registers are atomic also on 32-bit targets, so there is no need for additional atomic moves to a temporary register. Introduced load peephole2 patterns assume that there won't be any additional loads from the load location outside the peepholed sequence and

[Bug target/100232] [OpenMP][nvptx] Reduction fails with optimization and 'loop'/'for simd' but not with 'for'

2021-04-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100232 --- Comment #2 from Tobias Burnus --- (In reply to Tom de Vries from comment #1) > Can you try the patch for PR81778 ? > It's possible you're looking at a duplicate. Unfortunately, it does not seem to make a difference - it still fails

[Bug target/100232] [OpenMP][nvptx] Reduction fails with optimization and 'loop'/'for simd' but not with 'for'

2021-04-23 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100232 --- Comment #1 from Tom de Vries --- Can you try the patch for PR81778 ? It's possible you're looking at a duplicate.

[Bug libstdc++/100233] New: [10/11/12] std::views::elements only accepts types that are defined on std::get

2021-04-23 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
lements_view, 0>; | ^ :56:93: note: constraints not satisfied In file included from :44: /opt/compiler-explorer/gcc-trunk-20210423/include/c++/12.0.0/ranges: In substitution of 'template requir

[Bug sanitizer/95693] [8/9 Regression] Incorrect error from undefined behavior sanitizer

2021-04-23 Thread gcc-90 at tbilles dot hu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95693 --- Comment #13 from Tibor Billes --- Thank you all for fixing it!

Re: [PATCH] ix86: Support V{2, 4}DImode arithmetic right shifts for SSE2+ [PR98856]

2021-04-23 Thread Jakub Jelinek via Gcc-patches
On Tue, Feb 09, 2021 at 12:12:24PM +0100, Jakub Jelinek via Gcc-patches wrote: > As mentioned in the PR, we don't support arithmetic right V2DImode or > V4DImode on x86 without -mavx512vl or -mxop. The ISAs indeed don't have > {,v}psraq instructions until AVX512VL, but we actually can emulate it

  1   2   3   >