[Bug tree-optimization/111294] [14 Regression] Missed Dead Code Elimination since r14-573-g69f1a8af45d

2023-09-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111294 --- Comment #9 from Richard Biener --- Created attachment 55898 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55898=edit alternative patch for simple_dce_from_worklist

[Bug tree-optimization/111294] [14 Regression] Missed Dead Code Elimination since r14-573-g69f1a8af45d

2023-09-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111294 --- Comment #8 from Richard Biener --- (In reply to Andrew Pinski from comment #7) > Created attachment 55892 [details] > version of using simple_dce_from_worklist in forwprop > > This is a version of using simple_dce_from_worklist in forwprop

[Bug tree-optimization/111294] [14 Regression] Missed Dead Code Elimination since r14-573-g69f1a8af45d

2023-09-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111294 --- Comment #10 from Richard Biener --- But this stmt isn't the issue, BB7 is [local count: 118111600]: # _31 = PHI _4 = (unsigned char) _31; _6 = (int) a.8_28; j_22 = (short int) _4; _33 = _31 & 255; if (_33 > 11) and that

[Bug target/110751] RISC-V: Suport undefined value that allows VSETVL PASS use TA/MA

2023-09-14 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110751 --- Comment #40 from JuzheZhong --- I try this following code to set ELSE_VALUE: static tree riscv_preferred_else_value (unsigned ifn, tree vectype, unsigned int nops, tree *ops) { if (riscv_v_ext_mode_p

[Bug target/111372] libgcc: RISCV C++ exception handling stack usage grew in 13.1

2023-09-14 Thread kito at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111372 --- Comment #5 from Kito Cheng --- > Ok, but it's better to have configure option or something else just > for toolchains that definitely do not use vector extension I can understand that there would be such a demand in the embedded world, but

[Bug middle-end/111401] Middle-end: Missed optimization of MASK_LEN_FOLD_LEFT_PLUS

2023-09-14 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111401 --- Comment #4 from rguenther at suse dot de --- On Wed, 13 Sep 2023, rdapp at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111401 > > Robin Dapp changed: > >What|Removed |Added >

[Bug middle-end/111395] RISC-V Vector Fortran: ICE in get_avl_or_vl_reg (vsetvl pass)

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111395 --- Comment #1 from CVS Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:53ad1bd520759580b9a5cc590a81a1a30b9e2e28 commit r14-3979-g53ad1bd520759580b9a5cc590a81a1a30b9e2e28 Author: Juzhe-Zhong Date: Thu Sep

[Bug target/111412] New: [release/gcc13 bug]RISC-V:ICE in phase 6 of vsetvl pass

2023-09-14 Thread xuli1 at eswincomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111412 Bug ID: 111412 Summary: [release/gcc13 bug]RISC-V:ICE in phase 6 of vsetvl pass Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/111401] Middle-end: Missed optimization of MASK_LEN_FOLD_LEFT_PLUS

2023-09-14 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111401 --- Comment #5 from rguenther at suse dot de --- On Wed, 13 Sep 2023, rdapp at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111401 > > --- Comment #3 from Robin Dapp --- > Several other things came up, so I'm just

[Bug debug/111409] Invalid .debug_macro.dwo macro information for split DWARF

2023-09-14 Thread osandov at osandov dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111409 --- Comment #1 from Omar Sandoval --- Patch sent: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630242.html

[Bug target/111411] [14 regression] ICE when building opus-1.4, unrecognizable insn with -fstack-protector-strong

2023-09-14 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411 --- Comment #6 from Richard Sandiford --- Thanks, I can reproduce it now. I had been trying with tip of trunk, but it seems to have gone latent after 9ea74d235c7e7816b996a17c61288f02ef767985.

[Bug tree-optimization/111414] [14 Regression] ICE in verify_gimple failed since r14-3719-gb34f3736356

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111414 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/111411] [14 regression] ICE when building opus-1.4, unrecognizable insn with -fstack-protector-strong

2023-09-14 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411 Richard Sandiford changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/111411] [14 regression] ICE when building opus-1.4, unrecognizable insn with -fstack-protector-strong

2023-09-14 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411 --- Comment #7 from Richard Sandiford --- It's proving difficult to generate a reliable reproducer from pure C code, due to the ways in which we handle out-of-range offsets. But FWIW, here's one that uses the RTL frontend, compiled with -O

[Bug tree-optimization/111393] ICE: Segmentation fault src/gcc/toplev.cc:314

2023-09-14 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111393 --- Comment #9 from AK --- i think it is okay to close this bug as this doesn't seem to be related to gcc.

[Bug tree-optimization/111393] ICE: Segmentation fault src/gcc/toplev.cc:314

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111393 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/110751] RISC-V: Suport undefined value that allows VSETVL PASS use TA/MA

2023-09-14 Thread richard.sandiford at arm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110751 --- Comment #41 from richard.sandiford at arm dot com --- "juzhe.zhong at rivai dot ai" writes: > I try this following code to set ELSE_VALUE: > > static tree > riscv_preferred_else_value (unsigned ifn, tree vectype, unsigned int nops, >

[Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets

2023-09-14 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #7

[Bug other/111406] libiberty build produces errors with CC=clang, unsupported option '-print-multi-os-directory'

2023-09-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111406 --- Comment #3 from Richard Biener --- These are only used in the install targets which when bootstrapped will have used GCC from earlier stages. When building cross compilers we require GCC as host compiler. So I think this isn't an issue

[Bug tree-optimization/111414] New: ICE in verify_gimple failed since r14-3719-gb34f3736356

2023-09-14 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111414 Bug ID: 111414 Summary: ICE in verify_gimple failed since r14-3719-gb34f3736356 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c/111417] New: Incorrect optimization when linker-generated symbols are used

2023-09-14 Thread cz.finn.cz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111417 Bug ID: 111417 Summary: Incorrect optimization when linker-generated symbols are used Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/111357] [11/12/13/14 Regression] __integer_pack fails to work with values of dependent type convertible to integers in noexcept context

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111357 --- Comment #9 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:eba46f1137683b6f92ea6f95ed84e3e5cfc42377 commit r12-9877-geba46f1137683b6f92ea6f95ed84e3e5cfc42377 Author: Jonathan

[Bug libgomp/111413] New: libgomp >= 13 segfault on loading if environ is NULL

2023-09-14 Thread silvio at traversaro dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111413 Bug ID: 111413 Summary: libgomp >= 13 segfault on loading if environ is NULL Product: gcc Version: og13 (devel/omp/gcc-13) Status: UNCONFIRMED Severity: normal

[Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets

2023-09-14 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283 --- Comment #8 from Franz Sirl --- I see a similar profiledbootstrap failing with x86_64-linux-gnu: /home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/./prev-gcc/xg++

[Bug tree-optimization/111294] [14 Regression] Missed Dead Code Elimination since r14-573-g69f1a8af45d

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111294 --- Comment #11 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:9ea74d235c7e7816b996a17c61288f02ef767985 commit r14-3982-g9ea74d235c7e7816b996a17c61288f02ef767985 Author: Richard Biener Date:

[Bug c++/111357] [11/12/13/14 Regression] __integer_pack fails to work with values of dependent type convertible to integers in noexcept context

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111357 --- Comment #7 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:557a858f2ead4ae8b64b157d7fd33830a81646d5 commit r14-3992-g557a858f2ead4ae8b64b157d7fd33830a81646d5 Author: Jonathan Wakely

[Bug target/111418] New: ICE with the CVE-2023-4039 patches applied

2023-09-14 Thread ross at burtonini dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418 Bug ID: 111418 Summary: ICE with the CVE-2023-4039 patches applied Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #18 from Andrew Pinski --- I think the only thing left is supporting floating point.

[Bug tree-optimization/111414] [14 Regression] ICE in verify_gimple failed since r14-3719-gb34f3736356

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111414 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > I see what I did wrong. > Looks like I need to check to make sure the integer_onep is a non vector. That is: diff --git a/gcc/match.pd b/gcc/match.pd index

[Bug driver/86030] specs file processing does not create response files for input directories

2023-09-14 Thread john.soo+gcc-bugzilla at arista dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86030 --- Comment #15 from John Soo --- Just for some context on what limit is hit: under man sysconf you will find a description of ARG_MAX (https://www.man7.org/linux/man-pages/man3/sysconf.3.html) > ARG_MAX - _SC_ARG_MAX > The maximum length

[Bug c/111405] Problem with incorrect optimizion for "constexpr" function with possible overflow

2023-09-14 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111405 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #3

[Bug c++/111357] [11/12/13/14 Regression] __integer_pack fails to work with values of dependent type convertible to integers in noexcept context

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111357 --- Comment #8 from CVS Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:7b0abd4a8ee9d2057febe443de67009dcdfe7574 commit r13-7817-g7b0abd4a8ee9d2057febe443de67009dcdfe7574 Author: Jonathan

[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106164 --- Comment #17 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:5e4a248b03f01f422b0dbc9e1464eb6c2f2bafc6 commit r14-3995-g5e4a248b03f01f422b0dbc9e1464eb6c2f2bafc6 Author: Andrew Pinski Date:

[Bug tree-optimization/111414] [14 Regression] ICE in verify_gimple failed since r14-3719-gb34f3736356

2023-09-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111414 Richard Biener changed: What|Removed |Added CC||pinskia at gcc dot gnu.org

[Bug c++/111415] New: False positive array-bounds warning with -O3

2023-09-14 Thread daiw at gmx dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111415 Bug ID: 111415 Summary: False positive array-bounds warning with -O3 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/111357] [11/12/13/14 Regression] __integer_pack fails to work with values of dependent type convertible to integers in noexcept context

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111357 --- Comment #10 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:27fce25cc07f7efe11db05eb2fe74a465c41475f commit r11-11008-g27fce25cc07f7efe11db05eb2fe74a465c41475f Author: Jonathan

[Bug target/111366] error: inlining failed in call to 'always_inline' 'hwy::PreventElision(int&)void': target specific option mismatch

2023-09-14 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111366 --- Comment #15 from Mathieu Malaterre --- For some reason the no-htm flag does not seems to work in my case: % /usr/bin/c++ -O1 -mcpu=power8 -flto=auto -c skeleton_test.cc skeleton_test.cc: In member function 'TestFloorLog2::operator()

[Bug translation/111416] New: [Armv7/v8 Mixing Bug]: 64-bit Sequentially Consistent Load can be Reordered before Store of RMW when v7 and v7 Implementations are Mixed

2023-09-14 Thread luke.geeson at cs dot ucl.ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111416 Bug ID: 111416 Summary: [Armv7/v8 Mixing Bug]: 64-bit Sequentially Consistent Load can be Reordered before Store of RMW when v7 and v7 Implementations are Mixed Product:

[Bug target/111231] [13/14 Regression] armhf: Miscompilation at O2 level (O1 is working)

2023-09-14 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111231 --- Comment #6 from Mathieu Malaterre --- Code in #c4 and #c5 are bogus. They also fails with g++-12. Let me start my cvise machinery over again (may take some time).

[Bug c++/111272] [13/14 Regression] Truncated error messages with -std=c++23 and -std=c++26

2023-09-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111272 --- Comment #5 from Marek Polacek --- (In reply to Paul Keir from comment #4) > I believe P2448R2 would only allow the code, without the static_assert. > Explicitly calling `test()`, `Jam::Jam()` and then `Jam::ft()` here would > mean

[Bug tree-optimization/111414] [14 Regression] ICE in verify_gimple failed since r14-3719-gb34f3736356

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111414 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Keywords|

[Bug fortran/30802] out of bounds error array I/O not picked up with -fbounds-check

2023-09-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30802 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot

[Bug fortran/30802] out of bounds error array I/O not picked up with -fbounds-check

2023-09-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30802 --- Comment #11 from anlauf at gcc dot gnu.org --- Submitted: https://gcc.gnu.org/pipermail/fortran/2023-September/059756.html

[Bug c/111420] New: relocation truncated to fit: R_RISCV_JAL against `.L12287'

2023-09-14 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111420 Bug ID: 111420 Summary: relocation truncated to fit: R_RISCV_JAL against `.L12287' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug target/111420] relocation truncated to fit: R_RISCV_JAL against `.L12287'

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111420 --- Comment #3 from Andrew Pinski --- Or just this function is huge for -O0 in which case riscv does not have a good code model for that case

[Bug target/111420] relocation truncated to fit: R_RISCV_JAL against `.L12287'

2023-09-14 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111420 AK changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/110992] [14 Regression] Dead Code Elimination Regression at -O3 since r14-1654-g7ceed7e3e29

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110992 --- Comment #3 from Andrew Pinski --- So this was fixed by accident via r14-3721-ge6bcf83989478348428c732 .

[Bug c/111420] relocation truncated to fit: R_RISCV_JAL against `.L12287'

2023-09-14 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111420 --- Comment #1 from AK --- I got this error while building clang (ninja clang) on a riscv machine. root@lpi4a:~# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/riscv64-linux-gnu/13/lto-wrapper Target:

[Bug target/111420] relocation truncated to fit: R_RISCV_JAL against `.L12287'

2023-09-14 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111420 --- Comment #4 from AK --- good catch. By mistake i built at -O0, i wanted to build at -O3.

[Bug c++/111419] Eager instantiation of function return type in concept causes compilation error

2023-09-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111419 Patrick Palka changed: What|Removed |Added Last reconfirmed||2023-09-14

[Bug tree-optimization/110992] [14 Regression] Dead Code Elimination Regression at -O3 since r14-1654-g7ceed7e3e29

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110992 --- Comment #4 from Andrew Pinski --- What we had before in GCC 13: # RANGE [irange] unsigned short [0, 1] NONZERO 0x1 d.3_19 = (unsigned short) _3; _21 = -d.3_19; _22 = (short intD.17) _21; _6 = (short intD.17) b.0_1; _7 = _6 &

[Bug target/111420] relocation truncated to fit: R_RISCV_JAL against `.L12287'

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111420 --- Comment #2 from Andrew Pinski --- This might be a binutils bug ...

[Bug target/111362] [14 Regression] '-fcompare-debug' failure (length) with -O -fno-tree-ch --param=max-completely-peel-times=0 -march=rv64iv

2023-09-14 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111362 --- Comment #2 from Zdenek Sojka --- Thank you the fix; the testcase is still failing with a bit different flags though: Adding -fno-dce -fschedule-insns: $ riscv64-unknown-linux-gnu-gcc -O -fno-tree-ch --param=max-completely-peel-times=0

[Bug target/105928] [AArch64] 64-bit constants with same high/low halves can use ADD lsl 32 (-Os at least)

2023-09-14 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105928 --- Comment #3 from Wilco --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630358.html

[Bug c++/111419] New: Eager instantiation of function return type in concept causes compilation error

2023-09-14 Thread ldionne.2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111419 Bug ID: 111419 Summary: Eager instantiation of function return type in concept causes compilation error Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug target/111418] ICE with the CVE-2023-4039 patches applied

2023-09-14 Thread Martin.Jansa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418 --- Comment #1 from Martin Jansa --- https://github.com/csmith-project/creduce reduced my test case to: typedef a; typedef struct { short b __attribute__((aligned(8))) } c; typedef struct { short d __attribute__((aligned(8))) } e; typedef

[Bug c/111417] Incorrect optimization when linker-generated symbols are used

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111417 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug tree-optimization/111415] False positive array-bounds warning with -O3

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111415 --- Comment #1 from Andrew Pinski --- I am pretty sure there is a dup of this bug already.

[Bug middle-end/111401] Middle-end: Missed optimization of MASK_LEN_FOLD_LEFT_PLUS

2023-09-14 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111401 --- Comment #6 from Robin Dapp --- Created attachment 55902 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55902=edit Tentative You're referring to the case where we have init = -0.0, the condition is false and we end up wrongly doing

[Bug target/111411] [14 regression] ICE when building opus-1.4, unrecognizable insn with -fstack-protector-strong

2023-09-14 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411 --- Comment #4 from rsandifo at gcc dot gnu.org --- I'm struggling to reproduce this. Do you know what your -mcpu=native expands to?

[Bug target/111366] error: inlining failed in call to 'always_inline' 'hwy::PreventElision(int&)void': target specific option mismatch

2023-09-14 Thread malat at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111366 --- Comment #16 from Mathieu Malaterre --- Interesting, the following works for me: % /usr/bin/c++ -O1 -mcpu=power8 -mno-htm -flto=auto -c skeleton_test.cc

[Bug target/111418] ICE with the CVE-2023-4039 patches applied

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug target/111411] [14 regression] ICE when building opus-1.4, unrecognizable insn with -fstack-protector-strong

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411 Andrew Pinski changed: What|Removed |Added CC||ross at burtonini dot com --- Comment

[Bug target/111418] ICE with the CVE-2023-4039 patches applied

2023-09-14 Thread Martin.Jansa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418 --- Comment #3 from Martin Jansa --- Reproduced with: 13.2.1 20230914 (revision 9cddebd822aeff9b7c0e9951909d5ec96c959e4f) and 14.0.0 20230914 (experimental) (revision 8517317ce8e9fbea0b4c7a8f87a86d07d95dc8c7) as well.

[Bug target/111411] [14 regression] ICE when building opus-1.4, unrecognizable insn with -fstack-protector-strong

2023-09-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411 --- Comment #5 from Sam James --- (In reply to Richard Sandiford from comment #4) > I'm struggling to reproduce this. Do you know what your -mcpu=native expands > to? # arch=native; for t in param target; do cmd="gcc -Q -O2 -mcpu=$arch

[Bug target/111416] [Armv7/v8 Mixing Bug]: 64-bit Sequentially Consistent Load can be Reordered before Store of RMW when v7 and v8 Implementations are Mixed

2023-09-14 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111416 Wilco changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug target/111404] [AArch64] 128-bit __sync_val_compare_and_swap is not atomic

2023-09-14 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111404 Wilco changed: What|Removed |Added Last reconfirmed||2023-09-14 Ever confirmed|0

[Bug target/111418] ICE with the CVE-2023-4039 patches applied

2023-09-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #4

[Bug target/111366] error: inlining failed in call to 'always_inline' 'hwy::PreventElision(int&)void': target specific option mismatch

2023-09-14 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111366 --- Comment #17 from Kewen Lin --- (In reply to Mathieu Malaterre from comment #16) > Interesting, the following works for me: > > % /usr/bin/c++ -O1 -mcpu=power8 -mno-htm -flto=auto -c skeleton_test.cc Yeah, the suggestion on an extra

[Bug target/110665] RISC-V do not preserve vector registers in interrupt handler

2023-09-14 Thread lehua.ding at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110665 --- Comment #3 from Lehua Ding --- Fixed by the commit https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=fdd59c0f73e9e681cd5f4d0eee2dd58d60d8dbe1 with compiler option --param=riscv-vector-abi. Confirmed after support riscv-vector-abi in default.

[Bug tree-optimization/110992] [13/14 Regression] missed VRP optimization due to transformation of `a & -zero_one_valued_p` into `a * zero_one_valued_p`

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110992 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/110992] [13/14 Regression] missed VRP optimization due to transformation of `a & -zero_one_valued_p` into `a * zero_one_valued_p`

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110992 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Actually we should transform it into > ((convert)zero_one_valued_p) & (a != 0) > > Or ^1 for the == 0 case ... > > This should allow for better code I think.

[Bug c/111421] New: constexpr not working with array subscript

2023-09-14 Thread malekwryyy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111421 Bug ID: 111421 Summary: constexpr not working with array subscript Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug target/111381] RISC-V: missed autovec MULH for signed * unsigned

2023-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111381 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Lehua Ding : https://gcc.gnu.org/g:68cb873fd360dbb64f2a6dfb28e79399ff99d07d commit r14-4008-g68cb873fd360dbb64f2a6dfb28e79399ff99d07d Author: Lehua Ding Date: Thu Sep

[Bug sanitizer/80998] Implement -fsanitize=pointer-overflow

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80998 --- Comment #11 from Andrew Pinski --- https://reviews.llvm.org/D33305

[Bug tree-optimization/110992] [13/14 Regression] missed VRP optimization due to transformation of `a & -zero_one_valued_p` into `a * zero_one_valued_p`

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110992 --- Comment #7 from Andrew Pinski --- Actually we should transform it into ((convert)zero_one_valued_p) & (a != 0) Or ^1 for the == 0 case ... This should allow for better code I think.

[Bug tree-optimization/110992] [13/14 Regression] missed VRP optimization due to transformation of `a & -zero_one_valued_p` into `a * zero_one_valued_p`

2023-09-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110992 Andrew Pinski changed: What|Removed |Added Target Milestone|14.0|13.3 Summary|[14