[Bug c++/121329] New: There are some errors about std::nullopt

2025-07-30 Thread q1210081098 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121329 Bug ID: 121329 Summary: There are some errors about std::nullopt Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/121327] Not-matching concept fails to compile with error "depends on itself"

2025-07-30 Thread b.stanimirov at abv dot bg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121327 --- Comment #1 from Borislav Stanimirov --- So, the problem is that `std::equality_comparable_with` is bidirectional. It checks lhs==rhs and rhs==lhs. Using it with two id types will lead to an infinite recursion of checking `rhs==X`. The reaso

[Bug target/121312] [RISCV]Multilib does not support the `zhinx` and `zhinxmin` extensions.

2025-07-30 Thread mumuxi_ll at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121312 --- Comment #2 from liu xu --- (In reply to GCC Commits from comment #1) > The master branch has been updated by Kito Cheng : > > https://gcc.gnu.org/g:da88f9bd9e30eb743132734d71c62ebb9c42b11e > > commit r16-2656-gda88f9bd9e30eb743132734d71c62

[Bug c++/102775] Error recovery in the C++ parser should use fix-it hints

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102775 --- Comment #5 from Sam James --- No, I was mistaken and misread. (There is another bug for the namespace issue though.)

[Bug c++/102775] Error recovery in the C++ parser should use fix-it hints

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102775 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #4 fr

[Bug c++/102775] Error recovery in the C++ parser should use fix-it hints

2025-07-30 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102775 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #19 from Sam James --- (In reply to Sam James from comment #18) > Created attachment 62018 [details] > a-except.adb > > (In reply to Sam James from comment #17) > Well, I say that, but at least it should be reproducible in terms of

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #18 from Sam James --- Created attachment 62018 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62018&action=edit a-except.adb (In reply to Sam James from comment #17) Well, I say that, but at least it should be reproducible in

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #17 from Sam James --- Created attachment 62017 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62017&action=edit build-gnat.sh With the attached script, I can toggle the breakage by changing the cmdline for a-except.o. It ass

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #16 from Sam James --- (In reply to Sam James from comment #7) > (In reply to Richard Biener from comment #3) > > likewise whether -fno-tree-vectorize helps. > > This didn't make a difference. I'll do the rest soon. I must have mad

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #15 from Sam James --- (In reply to Sam James from comment #13) > Created attachment 62016 [details] > 120440.tar.xz The diff between the objects is really small. --- 120440/a-except.o-good +++ 120440/a.except.o-bad ... Disassembl

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #14 from Sam James --- (In reply to Sam James from comment #12) > Maybe obvious in hindsight but the miscompiled object is a-except.o. .. specifically ada.exceptions'Elab_Spec

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #13 from Sam James --- Created attachment 62016 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62016&action=edit 120440.tar.xz

[Bug ada/120440] [15/16 regression] gnat exception handling miscompiled (`gnat ls` crashes when bootstrapped with -march=znver3) since r15-8901-g7bec4570301c43

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120440 --- Comment #12 from Sam James --- Maybe obvious in hindsight but the miscompiled object is a-except.o.

[Bug c++/121328] New: ICE: Segmentation fault on local lambda constraints with pack expression

2025-07-30 Thread rextse.work at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121328 Bug ID: 121328 Summary: ICE: Segmentation fault on local lambda constraints with pack expression Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: nor

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2025-07-30 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 --- Comment #9 from Florian Weimer --- (In reply to Segher Boessenkool from comment #8) > Can we have a testcase please? The test case in glibc: https://sourceware.org/bugzilla/show_bug.cgi?id=26566 > It sounds like the glibc you used was misc

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2025-07-30 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 121190, which changed state. Bug 121190 Summary: [15 regression] Segmentation fault when executing vectorized loops with -O3 -march=znver2 since r15-6807-g68326d5d1a593d https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121190

[Bug tree-optimization/121190] [15 regression] Segmentation fault when executing vectorized loops with -O3 -march=znver2 since r15-6807-g68326d5d1a593d

2025-07-30 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121190 Tamar Christina changed: What|Removed |Added Resolution|--- |FIXED Blocks|

[Bug tree-optimization/121190] [15 regression] Segmentation fault when executing vectorized loops with -O3 -march=znver2 since r15-6807-g68326d5d1a593d

2025-07-30 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121190 --- Comment #7 from Tamar Christina --- Backported to GCC 15 to make RC1.

[Bug tree-optimization/121190] [15 regression] Segmentation fault when executing vectorized loops with -O3 -march=znver2 since r15-6807-g68326d5d1a593d

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121190 --- Comment #6 from GCC Commits --- The releases/gcc-15 branch has been updated by Tamar Christina : https://gcc.gnu.org/g:1869281ba69da0d98481ecef72da69362101f1ac commit r15-10165-g1869281ba69da0d98481ecef72da69362101f1ac Author: Pengfei Li

[Bug target/120427] [13/14 Regression] "and $0,mem" is generated without -Oz since r12-6106-gef26c151c14a87

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120427 --- Comment #18 from GCC Commits --- The releases/gcc-13 branch has been updated by H.J. Lu : https://gcc.gnu.org/g:1afe5101b179339cf0021f26786bb77f272dc1a2 commit r13-9817-g1afe5101b179339cf0021f26786bb77f272dc1a2 Author: H.J. Lu Date: Tue

[Bug target/120427] [13/14 Regression] "and $0,mem" is generated without -Oz since r12-6106-gef26c151c14a87

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120427 --- Comment #17 from GCC Commits --- The releases/gcc-14 branch has been updated by H.J. Lu : https://gcc.gnu.org/g:8b959ca27ee95ba32e5a587e0490f6cb49ef9760 commit r14-11924-g8b959ca27ee95ba32e5a587e0490f6cb49ef9760 Author: H.J. Lu Date: Tu

[Bug c++/121327] New: Not-matching concept fails to compile with error "depends on itself"

2025-07-30 Thread b.stanimirov at abv dot bg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121327 Bug ID: 121327 Summary: Not-matching concept fails to compile with error "depends on itself" Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug target/121259] [15/16 regression] can't be included for bpf-unknown-none

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121259 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/121301] [14/15 Regression] maybe uninitialized in includes with -O3 -fkeep-inline-functions -Wmaybe-uninitialized

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121301 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.4 Known to work|

[Bug tree-optimization/121301] maybe uninitialized in includes with -O3 -fkeep-inline-functions -Wmaybe-uninitialized

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121301 --- Comment #5 from Andrew Pinski --- (In reply to Alessandro Vergani from comment #3) > (In reply to Andrew Pinski from comment #2) > > Works for me with the trunk. > > I tested with trunk on compiler explorer and it doesn't even finish the >

[Bug c++/121325] ICE on pack index in noexcept specifier of generic lambda in requires clause

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121325 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-07-31 Ever confirmed|0

[Bug target/121312] [RISCV]Multilib does not support the `zhinx` and `zhinxmin` extensions.

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121312 --- Comment #1 from GCC Commits --- The master branch has been updated by Kito Cheng : https://gcc.gnu.org/g:da88f9bd9e30eb743132734d71c62ebb9c42b11e commit r16-2656-gda88f9bd9e30eb743132734d71c62ebb9c42b11e Author: Kito Cheng Date: Thu Jul

[Bug tree-optimization/121323] UBSAN error in ao_ref_init_from_ptr_and_range (signed integer overflow: -9223372036854775808 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121323 --- Comment #3 from Sam James --- Created attachment 62014 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62014&action=edit cribbage.i.xz (In reply to Sam James from comment #0) > No testcase here as it needs LTO, I can spend time on that

[Bug middle-end/121321] UBSAN error in get_object_alignment_2 (signed integer overflow: 2305843009213694039 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121321 --- Comment #3 from Sam James --- (In reply to Andrew Pinski from comment #2) > This code seems undefined at this point though. Fixed in MySQL's commit 96ccd8dc9f9795ff4a671ef0cbf952732461b8a7 Author: Jakub Łopuszański AuthorDate: Thu Apr

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 121326, which changed state. Bug 121326 Summary: UBSAN error in use_related_value (signed integer overflow: 4707129865599665876 - -7070675565921424023 cannot be represented in type 'long int') https://gcc.gnu.org/bugzill

[Bug rtl-optimization/121326] UBSAN error in use_related_value (signed integer overflow: 4707129865599665876 - -7070675565921424023 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121326 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/85608] ubsan in cse.c:2194

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85608 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #7 fro

[Bug rtl-optimization/121326] UBSAN error in use_related_value (signed integer overflow: 4707129865599665876 - -7070675565921424023 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121326 --- Comment #1 from Sam James --- Created attachment 62013 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62013&action=edit spdy_utils.ii.xz

[Bug rtl-optimization/121326] New: UBSAN error in use_related_value (signed integer overflow: 4707129865599665876 - -7070675565921424023 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
ix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250730 (experimental) 7aa9565a62ea2ce04e2ddf61e1932bc123374988 (Gentoo 16.0. p, commit 8cda62318174b911a7cba57fcf70efd38f265f0e) ``` Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined

[Bug target/120427] [13/14/15 Regression] "and $0,mem" is generated without -Oz since r12-6106-gef26c151c14a87

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120427 --- Comment #16 from GCC Commits --- The releases/gcc-15 branch has been updated by H.J. Lu : https://gcc.gnu.org/g:94ca071cba4078aa783e6c134277515a4e46709e commit r15-10164-g94ca071cba4078aa783e6c134277515a4e46709e Author: H.J. Lu Date: Tu

[Bug target/121274] [14/15/16 Regression] xmm extraction from zmm vector emits unnecessary vpextrq/vpinsrq sequence

2025-07-30 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121274 Hongtao Liu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/121274] [14/15/16 Regression] xmm extraction from zmm vector emits unnecessary vpextrq/vpinsrq sequence

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121274 --- Comment #8 from GCC Commits --- The releases/gcc-15 branch has been updated by hongtao Liu : https://gcc.gnu.org/g:82cc62b51dcbc74298424c2e9540dd479ca5f26f commit r15-10163-g82cc62b51dcbc74298424c2e9540dd479ca5f26f Author: liuhongt Date:

[Bug target/121274] [14/15/16 Regression] xmm extraction from zmm vector emits unnecessary vpextrq/vpinsrq sequence

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121274 --- Comment #7 from GCC Commits --- The releases/gcc-14 branch has been updated by hongtao Liu : https://gcc.gnu.org/g:c8eb4fcd40c2faef5dadbaa83abfcc6e058ee9f6 commit r14-11923-gc8eb4fcd40c2faef5dadbaa83abfcc6e058ee9f6 Author: liuhongt Date:

[Bug c++/121325] New: ICE on pack index in noexcept specifier of generic lambda in requires clause

2025-07-30 Thread eczbek.void at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121325 Bug ID: 121325 Summary: ICE on pack index in noexcept specifier of generic lambda in requires clause Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: n

[Bug middle-end/39878] gcc 4.3.2 converts Decimal FP constants wrong

2025-07-30 Thread tydeman at tybor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39878 --- Comment #2 from Fred J. Tydeman --- With gcc 15.1.1, the same problem still exists. /* * Compiler converts some decimal FP constants wrong. CFLAGS="-H -std=gnu23 -O0 -march=native -mhard-float -mfpmath=387 -mieee-fp \ -enable-decimal-flo

[Bug target/121306] [16 Regression] testcase failures after r16-2614-g965564eafb721f on x86_64

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121306 --- Comment #9 from Andrew Pinski --- *** Bug 121324 has been marked as a duplicate of this bug. ***

[Bug target/121324] [16 Regression] FAIL: gcc.target/i386/pr82524.c caused by r16-2649-g0340177d54d08b

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

[Bug target/121324] New: [16 Regression] FAIL: gcc.target/i386/pr82524.c caused by r16-2649-g0340177d54d08b

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121324 Bug ID: 121324 Summary: [16 Regression] FAIL: gcc.target/i386/pr82524.c caused by r16-2649-g0340177d54d08b Product: gcc Version: 16.0 Status: UNCONFIRMED Sever

[Bug tree-optimization/121323] UBSAN error in ao_ref_init_from_ptr_and_range (signed integer overflow: -9223372036854775808 * 8 cannot be represented in type 'long int')

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121323 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/121323] UBSAN error in ao_ref_init_from_ptr_and_range (signed integer overflow: -9223372036854775808 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121323 --- Comment #1 from Sam James --- Created attachment 62012 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62012&action=edit build.log.xz

[Bug tree-optimization/121323] New: UBSAN error in ao_ref_init_from_ptr_and_range (signed integer overflow: -9223372036854775808 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
--disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-gxx-libcxx-include-dir=/usr/include/c++/v1 --with-build-config='bootstrap-ubsan bootstrap-cet' Thread mod

[Bug middle-end/121322] UBSAN error in find_bswap_or_nop (shift exponent 64 is too large for 64-bit type 'long unsigned int')

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121322 --- Comment #2 from Andrew Pinski --- tmp_n = tmp_n >> count | tmp_n << (range - count);

[Bug middle-end/121322] UBSAN error in find_bswap_or_nop (shift exponent 64 is too large for 64-bit type 'long unsigned int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121322 --- Comment #1 from Sam James --- Created attachment 62010 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62010&action=edit ELFObjectFile.cpp.ii.xz

[Bug middle-end/121322] New: UBSAN error in find_bswap_or_nop (shift exponent 64 is too large for 64-bit type 'long unsigned int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
de/c++/v1 --with-build-config='bootstrap-ubsan bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250730 (experimental) 7aa9565a62ea2ce04e2ddf61e1932bc123374988 (Gentoo 16.0. p, commit 8cda62318174b911a7cba57fcf70efd38f265f

[Bug middle-end/121321] UBSAN error in get_object_alignment_2 (signed integer overflow: 2305843009213694039 * 8 cannot be represented in type 'long int')

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121321 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |middle-end --- Comment #2 from Andrew P

[Bug tree-optimization/121321] UBSAN error in get_object_alignment_2 (signed integer overflow: 2305843009213694039 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121321 --- Comment #1 from Sam James --- Created attachment 62009 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62009&action=edit lock0lock.cc.ii.xz

[Bug tree-optimization/121321] New: UBSAN error in get_object_alignment_2 (signed integer overflow: 2305843009213694039 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
ude-dir=/usr/include/c++/v1 --with-build-config='bootstrap-ubsan bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250730 (experimental) 7aa9565a62ea2ce04e2ddf61e1932bc123374988 (Gentoo 16.0. p, commit 8cda62318174b911a7cba57fcf70efd38f265f0e) ``` Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined

[Bug tree-optimization/121320] UBSAN error in tree-ssa-sccvn (signed integer overflow: 2305843009213693952 * 8 cannot be represented in type 'long int')

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121320 --- Comment #3 from Andrew Pinski --- The fix in r14-9353-ge1bd0f293d8407d4e8149fbafd470612323dc938 was an improvement over the code after r14-8929-g938a419182f8c4 but it should have used it in poly_offset_int .

[Bug c++/120409] FAIL: g++.dg/coroutines/torture/pr119916.C

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120409 --- Comment #14 from H.J. Lu --- (In reply to Iain Sandoe from comment #13) > (In reply to H.J. Lu from comment #12) > > (In reply to Iain Sandoe from comment #5) > > > well .. the visible difference in gimple, but this is code outside of the >

[Bug middle-end/121159] musttail gives bogus volatile function error message

2025-07-30 Thread lukas.graetz--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121159 --- Comment #19 from Lukas Grätz --- (In reply to Jakub Jelinek from comment #18) > Guess we need then an effective target for whether target can do indirect > musttail calls and add dg-error there guarded on the new effective target. According

[Bug preprocessor/105608] [13/14/15/16 Regression] ICE: in linemap_add with a really long defined macro on the command line r11-338-g2a0225e47868fbfc

2025-07-30 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105608 Lewis Hyatt changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |https://gcc.gnu.org/piperma

[Bug tree-optimization/121320] UBSAN error in tree-ssa-sccvn (signed integer overflow: 2305843009213693952 * 8 cannot be represented in type 'long int')

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121320 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-07-30 Status|UNCONFIRM

[Bug c++/120409] FAIL: g++.dg/coroutines/torture/pr119916.C

2025-07-30 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120409 --- Comment #13 from Iain Sandoe --- (In reply to H.J. Lu from comment #12) > (In reply to Iain Sandoe from comment #5) > > well .. the visible difference in gimple, but this is code outside of the > > coroutines changes (i.e. just a bit of regu

[Bug tree-optimization/121320] UBSAN error in tree-ssa-sccvn (signed integer overflow: 2305843009213693952 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121320 --- Comment #1 from Sam James --- Created attachment 62008 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62008&action=edit DTest.cpp.ii

[Bug tree-optimization/121320] New: UBSAN error in tree-ssa-sccvn (signed integer overflow: 2305843009213693952 * 8 cannot be represented in type 'long int')

2025-07-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
clude/c++/v1 --with-build-config='bootstrap-ubsan bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250730 (experimental) 7aa9565a62ea2ce04e2ddf61e1932bc123374988 (Gentoo 16.0. p, commit 8cda62318174b911a7cba57fcf70efd38f265f0e) ``` Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined

[Bug c++/120409] FAIL: g++.dg/coroutines/torture/pr119916.C

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120409 H.J. Lu changed: What|Removed |Added Target Milestone|--- |16.0 --- Comment #12 from H.J. Lu --- (In re

[Bug target/121319] Why is global_options.x_flag_pcc_struct_return cleared?

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121319 --- Comment #2 from Andrew Pinski --- See https://gcc.gnu.org/pipermail/gcc-patches/2020-October/557652.html

[Bug target/121319] Why is global_options.x_flag_pcc_struct_return cleared?

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

[Bug target/121319] New: Why is global_options.x_flag_pcc_struct_return cleared?

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121319 Bug ID: 121319 Summary: Why is global_options.x_flag_pcc_struct_return cleared? Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c++/120409] FAIL: g++.dg/coroutines/torture/pr119916.C

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120409 --- Comment #11 from H.J. Lu --- typeck.cc has /* We can't initialize a register from a AGGR_INIT_EXPR. */ else if (! cfun->returns_struct && TREE_CODE (retval) == TARGET_EXPR && TREE_CODE (TARGET_EXPR_

[Bug c++/121291] [16 regression] ICE in diagnose_trait_expr after error since r16-2492-gf1872cc05b0dc5

2025-07-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121291 Nathaniel Shead changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/121291] [16 regression] ICE in diagnose_trait_expr after error since r16-2492-gf1872cc05b0dc5

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121291 --- Comment #2 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:bfb8615031a8c23df814d011567735093e3c1ac6 commit r16-2652-gbfb8615031a8c23df814d011567735093e3c1ac6 Author: Nathaniel Shead Date:

[Bug c/120353] Flex array struct referenced in the middle via type alias of forward declaration is not reported by -Wflex-array-member-not-at-end option

2025-07-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120353 --- Comment #7 from Jakub Jelinek --- (In reply to qinzhao from comment #6) > (In reply to Jakub Jelinek from comment #5) > > Why has this been backported to 15 branch? > > Generally accepts-invalid bugs aren't backported to release branches, or

[Bug c/120353] Flex array struct referenced in the middle via type alias of forward declaration is not reported by -Wflex-array-member-not-at-end option

2025-07-30 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120353 --- Comment #6 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #5) > Why has this been backported to 15 branch? > Generally accepts-invalid bugs aren't backported to release branches, or > similar changes which cause r

[Bug c/120354] Flexible array union in the middle is not reported by -Wflex-array-member-not-at-end option when flexible array member is not the last one

2025-07-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120354 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #6

[Bug c/120353] Flex array struct referenced in the middle via type alias of forward declaration is not reported by -Wflex-array-member-not-at-end option

2025-07-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120353 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2025-07-30 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 --- Comment #8 from Segher Boessenkool --- Can we have a testcase please? It sounds like the glibc you used was misconfigured. Of course VSX registers are not restored by the GCC unwinder stuff if you configured GCC to not support VSX register

[Bug middle-end/121318] handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 --- Comment #6 from Andrew Pinski --- (In reply to Alexander Monakov from comment #3) > When necessary to upgrade global-dynamic to initial-exec (in libraries) > without downgrading local-exec to initial-exec (in executables), the code > can att

[Bug middle-end/121318] handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 --- Comment #5 from H.J. Lu --- (In reply to Andrew Pinski from comment #2) > I am not so sure, the documentation of attribute say it should override the > default. Linker can override the TLS mode attribute. Why can't compiler perform TLS opt

[Bug middle-end/121318] handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 --- Comment #4 from H.J. Lu --- Created attachment 62007 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62007&action=edit A patch

[Bug middle-end/121318] handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Com

[Bug middle-end/121318] handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 --- Comment #2 from Andrew Pinski --- I am not so sure, the documentation of attribute say it should override the default.

[Bug middle-end/121318] handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 --- Comment #1 from Andrew Pinski --- https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Common-Variable-Attributes.html#index-tls_005fmodel-variable-attribute The tls_model attribute sets thread-local storage model (see Thread-Local Storage) of a p

[Bug c/121318] New: handle_tls_model_attribute failed to consider compiler options

2025-07-30 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121318 Bug ID: 121318 Summary: handle_tls_model_attribute failed to consider compiler options Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/121317] Incorrect info about variables possibly modified by longjmp/vfork

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121317 --- Comment #1 from Andrew Pinski --- See https://gcc.gnu.org/pipermail/gcc-patches/2019-October/530992.html also.

[Bug c/121317] New: Incorrect info about variables possibly modified by longjmp/vfork

2025-07-30 Thread taylor.hutt at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121317 Bug ID: 121317 Summary: Incorrect info about variables possibly modified by longjmp/vfork Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal

[Bug c/120354] Flexible array union in the middle is not reported by -Wflex-array-member-not-at-end option when flexible array member is not the last one

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120354 --- Comment #5 from GCC Commits --- The releases/gcc-15 branch has been updated by Qing Zhao : https://gcc.gnu.org/g:722aa418df94d85eecb7500ec9c38384c557338d commit r15-10159-g722aa418df94d85eecb7500ec9c38384c557338d Author: Qing Zhao Date:

[Bug c/120353] Flex array struct referenced in the middle via type alias of forward declaration is not reported by -Wflex-array-member-not-at-end option

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120353 --- Comment #4 from GCC Commits --- The releases/gcc-15 branch has been updated by Qing Zhao : https://gcc.gnu.org/g:12796e6938a6390512e714f635d2c4fdef7023ba commit r15-10158-g12796e6938a6390512e714f635d2c4fdef7023ba Author: Qing Zhao Date:

[Bug target/119100] RISC-V: missed opportunities for vector-scalar instructions

2025-07-30 Thread parras at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119100 --- Comment #15 from Paul-Antoine Arras --- https://godbolt.org/z/dczr15Eo4 Reduced from 538.imagick We get the following assembly: fld fa5,0(a4) vfmv.v.fv2,fa5 vfmacc.vv v1,v3,v2 But since r16-1659-g92e1893e0155b6 we should

[Bug libfortran/121234] Bogus diagnostic on READ of string with semicolon.

2025-07-30 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121234 --- Comment #2 from Jerry DeLisle --- The original test case is rather clever. With this slightly modified, placing quotes around the 'string' in the buffer. character(80) buffer,a buffer="'33;44'" print *, buffer read(b

[Bug preprocessor/120778] [C++26] P2843R3 - Preprocessing is never undefined

2025-07-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120778 --- Comment #4 from Jakub Jelinek --- Created attachment 62006 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62006&action=edit gcc16-pr120778-keyword-macro.patch WIP on -Wkeyword-macro warning (still need to do C, allow #define likely()

[Bug target/121315] Missed LDP/STP fusion opportunity

2025-07-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121315 --- Comment #2 from Richard Biener --- (In reply to Andrew Pinski from comment #1) > Confirmed. > > At .optimization GCC produces: > ``` > vect__5.13_42 = MEM [(int *)src_3(D) + ivtmp.34_19 * 1]; > _4 = src_3(D) + 16; > vect__5.14_44 = M

[Bug target/118480] Power9 target generates poor code for vector char splat immediate.

2025-07-30 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118480 Segher Boessenkool changed: What|Removed |Added Last reconfirmed||2025-07-30 Ever confirmed|0

[Bug target/121315] Missed LDP/STP fusion opportunity

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

[Bug target/121315] Missed LDP/STP fusion opportunity

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121315 --- Comment #1 from Andrew Pinski --- Confirmed. At .optimization GCC produces: ``` vect__5.13_42 = MEM [(int *)src_3(D) + ivtmp.34_19 * 1]; _4 = src_3(D) + 16; vect__5.14_44 = MEM [(int *)_4 + ivtmp.34_19 * 1]; ``` Which I think is a

[Bug ada/121316] New: Representation clauses silently cause iterator filters to be ignored

2025-07-30 Thread liam at liampwll dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121316 Bug ID: 121316 Summary: Representation clauses silently cause iterator filters to be ignored Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug target/121315] Missed LDP/STP fusion opportunity

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121315 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Se

[Bug tree-optimization/121295] [16 regression] ICE on valid code at -O{2,3} with "-fno-tree-copy-prop -fno-tree-pre -fno-code-hoisting": Segmentation fault

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121295 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/121295] [16 regression] ICE on valid code at -O{2,3} with "-fno-tree-copy-prop -fno-tree-pre -fno-code-hoisting": Segmentation fault

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121295 --- Comment #4 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:aebbc90d8c7c703c787ce402b9c55fdf2ecbbcd8 commit r16-2648-gaebbc90d8c7c703c787ce402b9c55fdf2ecbbcd8 Author: Andrew Pinski Date: Tu

[Bug rtl-optimization/121308] [16 Regression] self tests fail with -m32 on x86_64 after r16-2614-g965564eafb721f

2025-07-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121308 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/121236] [16 Regression] Problems during GIMPLE pass: ifcvt

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121236 --- Comment #12 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:aebbc90d8c7c703c787ce402b9c55fdf2ecbbcd8 commit r16-2648-gaebbc90d8c7c703c787ce402b9c55fdf2ecbbcd8 Author: Andrew Pinski Date: T

[Bug rtl-optimization/121308] [16 Regression] self tests fail with -m32 on x86_64 after r16-2614-g965564eafb721f

2025-07-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121308 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:0340177d54d08b6375391ba164a878e6a596275e commit r16-2649-g0340177d54d08b6375391ba164a878e6a596275e Author: Andrew Pinski Date: Tu

[Bug tree-optimization/121225] Missed autovectorization of bswap8 in a loop

2025-07-30 Thread Dusan.Stojkovic--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121225 --- Comment #2 from Dusan Stojkovic --- Created attachment 62005 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62005&action=edit Defer POINTER_PLUS_EXPR bswap implementations > The bswap pass in this case should not insert another load

[Bug target/121315] New: Missed LDP/STP fusion opportunity

2025-07-30 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121315 Bug ID: 121315 Summary: Missed LDP/STP fusion opportunity Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priorit

  1   2   >