Re: [PATCH] match.pd: Fix up 1 / X for unsigned X optimization [PR104280]

2022-01-29 Thread Andrew Pinski via Gcc-patches
On Sat, Jan 29, 2022 at 6:30 PM Zhao Wei Liew via Gcc-patches wrote: > > Sincere apologies for the issues. I wasn't aware of the need for a cast but > after reading the PRs, I understand that now. On the other hand, the > incorrect test case was simply a major oversight on my part. > > I'll be

Re: [PATCH] match.pd: Fix up 1 / X for unsigned X optimization [PR104280]

2022-01-29 Thread Zhao Wei Liew via Gcc-patches
Sincere apologies for the issues. I wasn't aware of the need for a cast but after reading the PRs, I understand that now. On the other hand, the incorrect test case was simply a major oversight on my part. I'll be sure to be more careful next time. Thanks for the fixes!

[Bug rtl-optimization/102446] [9/10/11/12 Regression] wrong code at -O3 on x86_64-linux-gnu

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102446 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #10 from

[PATCH] libstdc++ testsuite: Increase lwg3464.cc timeout factors to 20

2022-01-29 Thread Hans-Peter Nilsson via Gcc-patches
These tests have always been failing for my cris-elf autotester running a simulator; they take about 20 minutes each, compared to the timeout of 720 seconds, doubled because they timed out in another simulator setup. They are the *only* libstdc++ tests that timeout for my setup so I thought

Re: Bisecting

2022-01-29 Thread Jonathan Wakely via Gcc
On Sat, 29 Jan 2022, 20:25 Søren Holm via Gcc, wrote: > Hi > > I believe I have found some kind of bug in GCC. The target is a > cortex-m7 CPU. I do not have an isolated test software so I'm thinking > of bisecting GCC between GCC 9.4 and 10.1. > > Are there any easy way do do a fast "change -

[Bug rtl-optimization/95123] [10/11/12 Regression] Wrong code w/ -O2 -fselective-scheduling2 -funroll-loops --param early-inlining-insns=5 --param loop-invariant-max-bbs-in-loop=3 --param max-jump-thr

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95123 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection

[Bug target/100623] [10/11/12 Regression] wrong code with -Os -fno-dce -fno-defer-pop -fno-forward-propagate -flive-range-shrinkage -fno-rerun-cse-after-loop -mno-push-args since r10-7515-g2c0fa3ecf70

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100623 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > There seems to be some IR difference on the gimple level which might be > making this latent. But that is not where the problem is located really as far as I

[Bug target/100623] [10/11/12 Regression] wrong code with -Os -fno-dce -fno-defer-pop -fno-forward-propagate -flive-range-shrinkage -fno-rerun-cse-after-loop -mno-push-args since r10-7515-g2c0fa3ecf70

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100623 --- Comment #3 from Andrew Pinski --- There seems to be some IR difference on the gimple level which might be making this latent. In GCC 11.2.0 we have (bn_add_words) : _2 = n_3 & -4; ... if (_2 != 0) While on the trunk we have: _14 =

[Bug target/100623] [10/11/12 Regression] wrong code with -Os -fno-dce -fno-defer-pop -fno-forward-propagate -flive-range-shrinkage -fno-rerun-cse-after-loop -mno-push-args since r10-7515-g2c0fa3ecf70

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100623 Andrew Pinski changed: What|Removed |Added Known to fail||11.2.0 Keywords|

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #6 from Andrew Pinski --- http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2403

[Bug fortran/104127] [9 Regression] ICE in get_array_charlen, at fortran/trans-array.c:7244

2022-01-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104127 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug fortran/104127] [9 Regression] ICE in get_array_charlen, at fortran/trans-array.c:7244

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104127 --- Comment #10 from CVS Commits --- The releases/gcc-9 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:bb05ddea976a7a8b3f02175050a5d53356ccab9d commit r9-9932-gbb05ddea976a7a8b3f02175050a5d53356ccab9d Author: Harald Anlauf

Re: [Bug regression/103997] [12 Regression] gcc.target/i386/pr88531-??.c scan-assembler-times FAILs

2022-01-29 Thread Andrew Pinski via Gcc-bugs
On Sat, Jan 29, 2022 at 2:40 PM write2mark1--- via Gcc-bugs wrote: > > Why does gcc use CVS and not git GCC has used git for ~2 years now and before that it was using svn for ~14 years; before that used cvs for ~8 years and then used rcs (though the overlap between rcs and cvs is real). GCC's

Re: [Bug regression/103997] [12 Regression] gcc.target/i386/pr88531-??.c scan-assembler-times FAILs

2022-01-29 Thread write2mark1--- via Gcc-bugs
Why does gcc use CVS and not git On Tue, Jan 25, 2022 at 5:27 PM admin at levyhsu dot com via Gcc-bugs < gcc-bugs@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103997 > > --- Comment #14 from Levy Hsu --- > Hi Avieira and Richard > > I checked the data for the last half

gcc-11-20220129 is now available

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

[Bug fortran/104127] [9 Regression] ICE in get_array_charlen, at fortran/trans-array.c:7244

2022-01-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104127 anlauf at gcc dot gnu.org changed: What|Removed |Added Summary|[9/10/11/12 Regression] ICE |[9 Regression] ICE in

[Bug fortran/83079] ICE in gfc_widechar_to_char, at fortran/scanner.c:198

2022-01-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83079 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target

[Bug tree-optimization/104215] bogus -Wuse-after-free=3 due to forwprop moving a pointer test after realloc

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104215 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug fortran/83079] ICE in gfc_widechar_to_char, at fortran/scanner.c:198

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83079 --- Comment #9 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:aa87c979d34bdea62586de79e8645fbddfa065b8 commit r10-10427-gaa87c979d34bdea62586de79e8645fbddfa065b8 Author: Harald Anlauf

[Bug fortran/104127] [9/10/11/12 Regression] ICE in get_array_charlen, at fortran/trans-array.c:7244

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104127 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:6da0c19bdcf992bd18c32335342fc3511683f314 commit r10-10426-g6da0c19bdcf992bd18c32335342fc3511683f314 Author: Harald Anlauf

[Bug tree-optimization/104286] gimple-match should cause an ICE for comparisons which are not of "boolean" types

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104286 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug middle-end/104286] New: gimple-match should cause an ICE for comparisons which are not of "boolean" types

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104286 Bug ID: 104286 Summary: gimple-match should cause an ICE for comparisons which are not of "boolean" types Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug fortran/101135] Load of null pointer when passing absent assumed-shape array argument for an optional dummy argument

2022-01-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101135 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot

[PATCH] PR/101135 - Load of null pointer when passing absent assumed-shape array argument for an optional dummy argument

2022-01-29 Thread Harald Anlauf via Gcc-patches
Dear Fortranners, compiling with -fsanitize=undefined shows that we did mishandle the case where a missing optional argument is passed to another procedure. Besides the example given in the PR, the existing testcase fortran.dg/missing_optional_dummy_6a.f90 fails with:

[Bug c++/104284] [9/10/11/12 Regression] ICE: unexpected expression '' of kind implicit_conv_expr

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104284 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/104284] [9/10/11/12 Regression] ICE: unexpected expression '' of kind implicit_conv_expr

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104284 Andrew Pinski changed: What|Removed |Added Keywords||ice-checking Target Milestone|---

[Bug c++/104285] New: openmp offload linker issue

2022-01-29 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104285 Bug ID: 104285 Summary: openmp offload linker issue Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/104284] New: [9/10/11/12 Regression] ICE: unexpected expression '' of kind implicit_conv_expr

2022-01-29 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104284 Bug ID: 104284 Summary: [9/10/11/12 Regression] ICE: unexpected expression '' of kind implicit_conv_expr Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug target/104283] New: nvptx-none needs more user friendly architecture handling

2022-01-29 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104283 Bug ID: 104283 Summary: nvptx-none needs more user friendly architecture handling Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

Bisecting

2022-01-29 Thread Søren Holm via Gcc
Hi I believe I have found some kind of bug in GCC. The target is a cortex-m7 CPU. I do not have an isolated test software so I'm thinking of bisecting GCC between GCC 9.4 and 10.1. Are there any easy way do do a fast "change - compile - test"- cycle - and how do I do that? All the guide on

Re: Buildbot failure in Wildebeest Builder on whole buildset

2022-01-29 Thread Mark Wielaard
Hi, On Sat, Jan 29, 2022 at 04:20:57PM +, build...@builder.wildebeest.org wrote: > The Buildbot has detected a new failure on builder gccrust-debian-arm64 while > building gccrust. > Full details are available at: > https://builder.wildebeest.org/buildbot/#builders/58/builds/1609 > >

Re: Buildbot failure in Wildebeest Builder on whole buildset

2022-01-29 Thread Mark Wielaard
Hi, On Tue, Jan 25, 2022 at 11:42:41PM +0100, Mark Wielaard wrote: > I added a filesIsImportant filter to the buildbot gccrs scheduler: > > gccrs_files = ["gcc/rust/", "gcc/testsuite/rust/", "gcc/config/.*/*-rust.c"] > > def gccrsImportant(change): > for file in change.files: > for

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #5 from Jonathan Wakely --- Related to https://github.com/itanium-cxx-abi/cxx-abi/issues/107

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #4 from Jonathan Wakely --- I think there's any existing bug about this, and it's an open issue in the ABI

Doubts about the cp-demangler non recursive project.

2022-01-29 Thread Krishna Narayanan via Gcc
Respected Sir/Madam, This is Krishna Narayanan a beginner in the gcc community.I have been reading through a while about the cp-demangler non recursive project, getting familiar with the basic terminologies about demangler.I would like to work on it. Topics which I have covered till now include

Re: GSoC: Working on the static analyzer

2022-01-29 Thread David Malcolm via Gcc
On Sat, 2022-01-29 at 20:22 +0530, Mir Immad wrote: > Thank you for the detailed information. > > I've been looking into the integer posix  file descriptor APIs and I > decided to write proof-of-concept  checker for them. (not caring > about > errno). The checker tracks the fd returned by open(),

[Bug c++/104266] Temporaries with protected destructor are erroneously permitted

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266 --- Comment #4 from Fedor Chelnokov --- In your last example, I think Clang is right, because `Y` is not an aggregate in C++11 due to the presence of default member initializer. And it becomes an aggregate only in C++14.

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #3 from Fedor Chelnokov --- Both Clang and GCC do not change their output either with `-std=c++20` or with `-std=c++17` options. And both reject the program with -std=c++14`.

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #2 from Andrew Pinski --- That is c++17 requires Copy elision here while c++14 does not.

[Bug c++/104282] Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 --- Comment #1 from Andrew Pinski --- Gcc 12 defaults to c++17. I have not looked but I suspect that is the difference.

[Bug tree-optimization/104281] [12 Regression] wrong code at -O3

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

[Bug tree-optimization/104279] [12 Regregression] ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed

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

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/95424] Failure to optimize division with numerator of 1

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95424 --- Comment #9 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:3d41939c8799a51b1cd7f4610c06771bf6d52f15 commit r12-6932-g3d41939c8799a51b1cd7f4610c06771bf6d52f15 Author: Jakub Jelinek Date:

[Bug tree-optimization/104281] [12 Regression] wrong code at -O3

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104281 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a1544878966020d1f7a640b35d1f7a5f0e055624 commit r12-6931-ga1544878966020d1f7a640b35d1f7a5f0e055624 Author: Jakub Jelinek Date:

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 --- Comment #9 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a1544878966020d1f7a640b35d1f7a5f0e055624 commit r12-6931-ga1544878966020d1f7a640b35d1f7a5f0e055624 Author: Jakub Jelinek Date:

[Bug tree-optimization/104279] [12 Regregression] ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed

2022-01-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104279 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a1544878966020d1f7a640b35d1f7a5f0e055624 commit r12-6931-ga1544878966020d1f7a640b35d1f7a5f0e055624 Author: Jakub Jelinek Date:

Re: [PATCH] match.pd: Fix up 1 / X for unsigned X optimization [PR104280]

2022-01-29 Thread Jeff Law via Gcc-patches
On 1/29/2022 9:23 AM, Jakub Jelinek wrote: Hi! On Fri, Jan 28, 2022 at 11:38:23AM -0700, Jeff Law wrote: Thanks.  Given the original submission and most of the review work was done prior to stage3 closing, I went ahead and installed this on the trunk. Unfortunately this breaks quite a lot

[PATCH] testsuite: Fix up tree-ssa/pr103514.c testcase [PR103514]

2022-01-29 Thread Jakub Jelinek via Gcc-patches
On Fri, Jan 28, 2022 at 03:14:16PM -0700, Jeff Law via Gcc-patches wrote: > > This patch will add the missed pattern described in bug 103514 [1] to the > > match.pd. [1] includes proof of correctness for the patch too. > > > > PR tree-optimization/103514 > > * match.pd (a & b) ^ (a == b) ->

[Bug c++/88417] partial specialization of static template variable inside class template gives wrong result

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88417 Fedor Chelnokov changed: What|Removed |Added CC||fchelnokov at gmail dot com ---

[PATCH] testsuite: Fix up tree-ssa/divide-7.c testcase [PR95424]

2022-01-29 Thread Jakub Jelinek via Gcc-patches
Hi! This test fails everywhere, because ? doesn't match literal ?. It should use \\? instead. I've also changed those .s in there. Tested on x86_64-linux (-m32/-m64) and powerpc64le-linux, ok for trunk? 2022-01-29 Jakub Jelinek PR tree-optimization/95424 *

[PATCH] match.pd: Fix up 1 / X for unsigned X optimization [PR104280]

2022-01-29 Thread Jakub Jelinek via Gcc-patches
Hi! On Fri, Jan 28, 2022 at 11:38:23AM -0700, Jeff Law wrote: > Thanks.  Given the original submission and most of the review work was done > prior to stage3 closing, I went ahead and installed this on the trunk. Unfortunately this breaks quite a lot of things. The main problem is that GIMPLE

Buildbot failure in Wildebeest Builder on whole buildset

2022-01-29 Thread buildbot
The Buildbot has detected a new failure on builder gccrust-debian-arm64 while building gccrust. Full details are available at: https://builder.wildebeest.org/buildbot/#builders/58/builds/1609 Buildbot URL: https://builder.wildebeest.org/buildbot/ Worker for this Build: debian-arm64 Build

Re: how to get started with contribution

2022-01-29 Thread David Edelsohn via Gcc
On Sat, Jan 29, 2022 at 10:37 AM VAISHNAVI DAYANAND via Gcc wrote: > > Respected sir/madam, > I am Vaishnavi Andhalkar, a junior undergrad at IIT Roorkee. I have > recently started contributing to open source, and I am new at it. But, I am > well aware of C++, programming and algorithms, and

how to get started with contribution

2022-01-29 Thread VAISHNAVI DAYANAND via Gcc
Respected sir/madam, I am Vaishnavi Andhalkar, a junior undergrad at IIT Roorkee. I have recently started contributing to open source, and I am new at it. But, I am well aware of C++, programming and algorithms, and javascript. I would like to contribute to your organization. Would you please tell

Re: [PING^3][PATCH,v2,1/1,AARCH64][PR102768] aarch64: Add compiler support for Shadow Call Stack

2022-01-29 Thread Dan Li via Gcc-patches
Hi, Richard, I have sent out my v3[1], and (probably) fixed the previous issues, please let me know if i got something wrong :) [1] https://gcc.gnu.org/pipermail/gcc-patches/2022-January/589471.html Thanks, Dan. On 1/25/22 02:19, Richard Sandiford wrote: Dan Li writes: + if

[PATCH] [PATCH, v3, 1/1, AARCH64][PR102768] aarch64: Add compiler support for Shadow Call Stack

2022-01-29 Thread Dan Li via Gcc-patches
Shadow Call Stack can be used to protect the return address of a function at runtime, and clang already supports this feature[1]. To enable SCS in user mode, in addition to compiler, other support is also required (as discussed in [2]). This patch only adds basic support for SCS from the compiler

Re: GSoC: Working on the static analyzer

2022-01-29 Thread Mir Immad via Gcc
Thank you for the detailed information. I've been looking into the integer posix file descriptor APIs and I decided to write proof-of-concept checker for them. (not caring about errno). The checker tracks the fd returned by open(), warns if dup() is called with closed fd otherwise tracks the fd

[PATCH] fortran: Unshare associate var charlen [PR104228]

2022-01-29 Thread Mikael Morin
Hello, the attached patch is a fix for PR104228. Even if simple, I wouldn’t call it obvious, as it’s involving character length and associate, so I don’t mind some extra review eyes. Tested on x86_64-pc-linux-gnu. Ok for master/11/10/9?From 0819226560387b2953622ee3d5d051a35606d504 Mon Sep 17

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #8

[Bug c++/104282] New: Copy elision when initializing a base-class subobject with aggregate initialization

2022-01-29 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104282 Bug ID: 104282 Summary: Copy elision when initializing a base-class subobject with aggregate initialization Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 --- Comment #6 from Jakub Jelinek --- Actually you're right, we in fact enforce this: /* The resulting type of a comparison may be an effective boolean type. */ if (INTEGRAL_TYPE_P (type) && (TREE_CODE (type) == BOOLEAN_TYPE

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 --- Comment #5 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #3) > (In reply to Jakub Jelinek from comment #2) > > To me this looks like a bug in gimple-fold.cc. > > The r12-6924-gc2b610e7c6c89fd4 simplifies > > _5 = 1 / c.0_4;

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 --- Comment #4 from Andrew Pinski --- (eq @1 { build_one_cst (type); }) Should be: (convert (eq:boolean_type_node @1 { build_one_cst (type); })) The other part of the match pattern needs a similar fix too.

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 --- Comment #3 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #2) > To me this looks like a bug in gimple-fold.cc. > The r12-6924-gc2b610e7c6c89fd4 simplifies > _5 = 1 / c.0_4; > into > _5 = c.0_4 == 1; No this is not valid

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

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

[Bug c++/54367] [meta-bug] lambda expressions

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 103929, which changed state. Bug 103929 Summary: False warning: no return statement in function returning non-void with lambda in template argument for non-class type as default template argument

[Bug c++/99902] Deduced return type of lambda in default template argument takes return type from variable template

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99902 Andrew Pinski changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Comment

[Bug c++/103929] False warning: no return statement in function returning non-void with lambda in template argument for non-class type as default template argument

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

[Bug c++/104278] ICE with class non-type template parameter with a value depdenent constexpr call

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104278 Andrew Pinski changed: What|Removed |Added Summary|ICE constexpr class |ICE with class non-type

[Bug tree-optimization/104279] [12 Regregression] ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104279 --- Comment #2 from Andrew Pinski --- I think this one and the other two are all caused by r12-6924.

[Bug tree-optimization/104281] [12 Regression] wrong code at -O3

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104281 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Version|unknown

[Bug tree-optimization/104279] [12 Regregression] ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104279 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Version|unknown

[Bug tree-optimization/104280] [12 Regression] wrong code at -O1 and above

2022-01-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 Andrew Pinski changed: What|Removed |Added Version|unknown |12.0 Target Milestone|---

[Bug lto/104237] [11 Regression] Emitted binary code changes when -g is enabled at -O1 -flto and optimize attribute since r11-3126-ga8f9b4c54cc35062

2022-01-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104237 --- Comment #10 from Jakub Jelinek --- Because -fcompare-debug tells the driver to compile the TU twice, once without and once with -gtoggle, and compare the result. So, if there is a difference in the generated IL e.g. for -flto

[Bug tree-optimization/104281] wrong code at -O3

2022-01-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104281 --- Comment #1 from Zhendong Su --- Compiler Explorer: https://godbolt.org/z/ovnrnEGj6

[Bug tree-optimization/104281] New: wrong code at -O3

2022-01-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
--with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220129 (experimental) [master r12-6930-gf6f2d6cfec1] (GCC) [538] % [538] % gcctk -O2 small.c; ./a.out [539] % [539] % gcctk -O3 small.c [540] % timeout -s 9 5 ./a.out Killed [541] % [541] % cat

[Bug tree-optimization/104280] wrong code at -O1 and above

2022-01-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104280 --- Comment #1 from Zhendong Su --- It might be related to PR 104279. Compiler Explorer: https://godbolt.org/z/szrGT9E7T

[Bug tree-optimization/104280] New: wrong code at -O1 and above

2022-01-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
algorithms: zlib gcc version 12.0.1 20220129 (experimental) [master r12-6930-gf6f2d6cfec1] (GCC) [549] % [549] % gcctk -O0 small.c; ./a.out [550] % [550] % gcctk -O1 small.c [551] % ./a.out Aborted [552] % [552] % cat small.c int a(unsigned b, int c) { return b / c; } int main() { if (a(1, 2) != 0

[Bug fortran/97024] Overriding finalization on polymorphic types triggers ICE error in generate_finalization_wrapper

2022-01-29 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97024 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org --- Comment #4

[Bug tree-optimization/104279] ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed

2022-01-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104279 --- Comment #1 from Zhendong Su --- >From Compiler Explorer: https://godbolt.org/z/465M9Kvx1

[Bug tree-optimization/104279] New: ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed

2022-01-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220129 (experimental) [master r12-6930-gf6f2d6cfec1] (GCC) [552] % [552] % gcctk -O0 small.c; ./a.out [553] % [553] % gcctk -O1 small.c small.c: In function ‘main’: small.c:6:1: error: bogus

[Bug c++/104278] ICE constexpr class non-type template parameter

2022-01-29 Thread pubby.8 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104278 --- Comment #1 from Pubby8 --- Oops I forgot to include the template instantiation: // --- int main(int argc, char const** argv) { qux::run(); } // ---

[Bug c++/104278] New: ICE constexpr class non-type template parameter

2022-01-29 Thread pubby.8 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104278 Bug ID: 104278 Summary: ICE constexpr class non-type template parameter Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3