[Bug target/119953] Compiling libstdc++ on MSP430 fails

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119953 --- Comment #2 from Jonathan Wakely --- Apparently nobody is testing this target often enough to catch regressions :-( I was able to build for msp430 before GCC 15, so I'll bisect to find when it broke.

[Bug libstdc++/120527] Native platform wait on darwin

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527 --- Comment #4 from Jonathan Wakely --- Also the fact that libc++ is using those APIs probably means they can't be removed now. Does the same version of libstdc++.dylib need to work for both cases? There's already a generic implementation in

[Bug c++/120529] New: __reference_{converts,constructs}_from_temporary ignore access control

2025-06-03 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120529 Bug ID: 120529 Summary: __reference_{converts,constructs}_from_temporary ignore access control Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: accepts

[Bug target/120375] arc: -mcpu=em x >> 31 clobber of CC isn't respected

2025-06-03 Thread aturjan at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120375 Alex Turjan changed: What|Removed |Added CC||aturjan at yahoo dot com --- Comment #3 f

[Bug other/120494] get_call_fndecl requires REG_CALL_DECL note

2025-06-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120494 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug debug/120525] [16 Regression] ICE in vartrack building glibc memusage.c for s390-linux-gnu

2025-06-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120525 --- Comment #4 from H.J. Lu --- var-tracking.cc has if (fndecl == NULL_TREE) fndecl = MEM_EXPR (XEXP (call, 0)); it doesn't look right.

[Bug other/120494] get_call_fndecl requires REG_CALL_DECL note

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120494 --- Comment #2 from GCC Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:e1390c2c45186e4843b927e77a102d39a599374a commit r16-1092-ge1390c2c45186e4843b927e77a102d39a599374a Author: H.J. Lu Date: Tue Jun 3 05:

[Bug middle-end/120516] [15/16 Regression] wrong code at O3 with "-fno-tree-slsr -fno-ipa-cp -fno-inline" from 15.1 and above on x86_64

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120516 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/120521] [14/15/16 Regregression] wrong code at -O3 with "-fno-tree-fre" on x86_64-linux-gnu (generated code hangs)

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

[Bug tree-optimization/120521] [14/15/16 Regregression] wrong code at -O3 with "-fno-tree-fre" on x86_64-linux-gnu (generated code hangs)

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120521 Andrew Pinski changed: What|Removed |Added Summary|wrong code at -O3 with |[14/15/16 Regregression]

[Bug target/120522] [16 Regression] RISC-V: Miscompile at -O3 since r16-449-gd884e9c5c74

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120522 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug debug/120525] [16 Regression] ICE in vartrack building glibc memusage.c for s390-linux-gnu

2025-06-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120525 H.J. Lu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail dot com

[Bug debug/120525] [16 Regression] ICE in vartrack building glibc memusage.c for s390-linux-gnu

2025-06-03 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120525 H.J. Lu changed: What|Removed |Added Last reconfirmed||2025-06-03 Ever confirmed|0

[Bug debug/120525] [16 Regression] ICE in vartrack building glibc memusage.c for s390-linux-gnu

2025-06-03 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120525 --- Comment #2 from Joseph S. Myers --- Depending on the configuration, you may need -mlong-double-128.

[Bug target/113857] fmov should be used to zero the upper bits of the vector register

2025-06-03 Thread pzheng at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113857 Bug 113857 depends on bug 100165, which changed state. Bug 100165 Summary: fmov could be used to zero out the upper bits instead of movi/zip or movi/ins with __builtin_shuffle and zero vector https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100165

[Bug target/100165] fmov could be used to zero out the upper bits instead of movi/zip or movi/ins with __builtin_shuffle and zero vector

2025-06-03 Thread pzheng at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100165 Pengxuan Zheng changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/120526] false positive warning at -O1 -Wall on fprintf %s due to strtoimax not being marked as nonnull for the first argument

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120526 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Another workaround is to do: > ``` > size = strtoimax (str, &end, 10); > if (!str) __builtin_unreachable(); > ``` This basically emulates what the nonnull a

[Bug tree-optimization/120526] false positive warning at -O1 -Wall on fprintf %s due to strtoimax not being marked as nonnull for the first argument

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120526 --- Comment #4 from Andrew Pinski --- Another workaround is to do: ``` size = strtoimax (str, &end, 10); if (!str) __builtin_unreachable(); ```

[Bug tree-optimization/120526] false positive warning at -O1 -Wall on fprintf %s

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120526 --- Comment #3 from Andrew Pinski --- Likewise using strtoll instead of strtoimax .

[Bug target/119953] Compiling libstdc++ on MSP430 fails

2025-06-03 Thread gabemarcano at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119953 --- Comment #1 from Gabriel Marcano --- I've also run into this bug, and I've done some debugging. The problem, as the log states, appears to be a constraint failure. Specifically, it looks like GCC is trying to use R13 and R14 for the addsi3 in

[Bug tree-optimization/120526] false positive warning at -O1 -Wall on fprintf %s

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120526 Andrew Pinski changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug tree-optimization/120526] false positive warning at -O1 -Wall on fprintf %s

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120526 --- Comment #1 from Andrew Pinski --- >But clearly tuples[i].str is not NULL. Not to the compiler since it looks like: ... ``` _1 = MEM[(const char * *)_24]; *_15 = 0; size_16 = strtoimax (_1, &end, 10); if (size_16 < 0) goto ; [0.7

[Bug target/120528] Optimize zero extend to TImode when value is in a VSX register on power10

2025-06-03 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120528 Michael Meissner changed: What|Removed |Added Host||powerpc64le-unknown-linux-g

[Bug target/120528] New: Optimize zero extend to TImode when value is in a VSX register on power10

2025-06-03 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120528 Bug ID: 120528 Summary: Optimize zero extend to TImode when value is in a VSX register on power10 Product: gcc Version: unknown Status: UNCONFIRMED Severity: n

[Bug libstdc++/120527] Native platform wait on darwin

2025-06-03 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527 --- Comment #3 from Iain Sandoe --- Since XNU is public, it seems reasonable to make use of these. Do you have anything in mind for a fallback for OS versions < 10.15 (we certainly have folks building back to 10.13 for $dayjob).

[Bug libstdc++/120527] Native platform wait on darwin

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > Darwin provides __ulock_wait and __ulock_wake which should be sufficient to > implement the internals needed for efficient std::atomic::wait and > std::atom

[Bug libstdc++/120527] Native platform wait on darwin

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527 --- Comment #1 from Jonathan Wakely --- And as noted at https://shift.click/blog/futex-like-apis/ ... OpenBSD has a futex syscall so might be able to reuse the linux code: https://man.openbsd.org/futex FreeBSD has _umtx_op with similar functio

[Bug libstdc++/120527] New: Native platform wait on darwin

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120527 Bug ID: 120527 Summary: Native platform wait on darwin Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

[Bug c/120526] New: false negative warning at -O1 -Wall on fprintf %s

2025-06-03 Thread eblake at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120526 Bug ID: 120526 Summary: false negative warning at -O1 -Wall on fprintf %s Product: gcc Version: 15.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug debug/120525] New: [16 Regression] ICE in vartrack building glibc memusage.c for s390-linux-gnu

2025-06-03 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120525 Bug ID: 120525 Summary: [16 Regression] ICE in vartrack building glibc memusage.c for s390-linux-gnu Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: i

[Bug tree-optimization/120524] New: `(__int128_var >> 127) & 1` is not optimized to ((unsigned __int128)__int128_var ) >> 127 in gimple level

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120524 Bug ID: 120524 Summary: `(__int128_var >> 127) & 1` is not optimized to ((unsigned __int128)__int128_var ) >> 127 in gimple level Product: gcc Version: 16.0

[Bug c/120510] composite_type produces result not compatible with arguments

2025-06-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120510 --- Comment #1 from uecker at gcc dot gnu.org --- A user visible bug is this, which is a regression since GCC 14. int f(int [_Atomic]); int f(int [_Atomic]); int f(int [_Atomic]); https://godbolt.org/z/fK8e5K6ax

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2025-06-03 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #21 from Thiago Macieira --- (In reply to Hongtao Liu from comment #19) > Looks like it's fixed by r16-170-ga670ebde399548. > > Now it generates decent code as Thank you!

[Bug libstdc++/120514] Build failure, possibly with C++

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120514 --- Comment #6 from Jonathan Wakely --- That would make sense, you were using something like: $prefix/lib/gcc/x86_64-pc-linux-gnu/16.0.0/include-fixed/pthread.h from an older build of GCC trunk, which was installed in Fedora 41 and so used the o

[Bug fortran/99838] ICE in gfc_format_decoder, at fortran/error.c:970

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99838 --- Comment #3 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:0768ec0d32f570b1db13ca41b0a1506275c44053 commit r16-1090-g0768ec0d32f570b1db13ca41b0a1506275c44053 Author: Harald Anlauf Date: Tu

[Bug c/116892] forward declaration of enum followed by packed on the enum type causes an ICE in verify_type

2025-06-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892 uecker at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/99838] ICE in gfc_format_decoder, at fortran/error.c:970

2025-06-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99838 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug target/120515] darwin warning: ld: warning: -U option is redundant when using -undefined dynamic_lookup

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120515 Andrew Pinski changed: What|Removed |Added Keywords||documentation --- Comment #1 from Andre

[Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))

2025-06-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51579 uecker at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|-

[Bug c/120078] [12/13/14/15 Regression] -Wjump-misses-init should be enabled by -Wc++-compat

2025-06-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120078 uecker at gcc dot gnu.org changed: What|Removed |Added Summary|[12/13/14/15/16 Regression] |[12/13/14/15 Regression]

[Bug c/120078] [12/13/14/15/16 Regression] -Wjump-misses-init should be enabled by -Wc++-compat

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120078 --- Comment #5 from GCC Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:ba463f51469529ce4a9500a0c03fa1763a14817c commit r16-1089-gba463f51469529ce4a9500a0c03fa1763a14817c Author: Martin Uecker Date: M

[Bug fortran/114022] ICE with a complex part%ref and nested structure constructor of complex array.

2025-06-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114022 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |15.2 Status|ASSI

[Bug fortran/101735] Type parameter inquiries for substrings are rejected

2025-06-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101735 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|

[Bug middle-end/120078] [12/13/14/15/16 Regression] -Wjump-misses-init should be enabled by -Wc++-compat

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

[Bug fortran/102599] Wrong simplification of inquiry parameters for complex arrays

2025-06-03 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102599 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |15.2 Status|ASSI

[Bug fortran/119856] Missing commas in I/O formats not diagnosed by default at compile time.

2025-06-03 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119856 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

[Bug fortran/102599] Wrong simplification of inquiry parameters for complex arrays

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102599 --- Comment #4 from GCC Commits --- The releases/gcc-15 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:e8a36b051587dccfc7c161ed4fb42c493212c71f commit r15-9761-ge8a36b051587dccfc7c161ed4fb42c493212c71f Author: Harald Anlauf

[Bug fortran/101735] Type parameter inquiries for substrings are rejected

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101735 --- Comment #16 from GCC Commits --- The releases/gcc-15 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:819b6415b639710566e4cc535241d82ccd708f76 commit r15-9760-g819b6415b639710566e4cc535241d82ccd708f76 Author: Harald Anlauf

[Bug fortran/101735] Type parameter inquiries for substrings are rejected

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101735 --- Comment #15 from GCC Commits --- The releases/gcc-15 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:25e46423bdfdf6e14cc1bc753f05b3b4fb5e8cc8 commit r15-9759-g25e46423bdfdf6e14cc1bc753f05b3b4fb5e8cc8 Author: Harald Anlauf

[Bug fortran/114022] ICE with a complex part%ref and nested structure constructor of complex array.

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114022 --- Comment #3 from GCC Commits --- The releases/gcc-15 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:e8a36b051587dccfc7c161ed4fb42c493212c71f commit r15-9761-ge8a36b051587dccfc7c161ed4fb42c493212c71f Author: Harald Anlauf

[Bug tree-optimization/120523] gcc.dg/tree-ssa/cswtch-6.c fails on aarch64

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120523 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Status|

[Bug tree-optimization/120523] New: gcc.dg/tree-ssa/cswtch-6.c fails on aarch64

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120523 Bug ID: 120523 Summary: gcc.dg/tree-ssa/cswtch-6.c fails on aarch64 Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: testsuite-fail Severity: normal Pr

[Bug c++/120518] nvptx offloading: "OpenMP: Handle more cases in user/condition selector" regresses C++ 'c-c++-common/gomp/metadirective-target-device-2.c'

2025-06-03 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120518 --- Comment #2 from sandra at gcc dot gnu.org --- OK, found it. The problem is the newly-added code that wraps the condition/device_num expr in a cleanup_point. This screws up the code in omp_device_num_check (in omp-general.cc) that detects sp

[Bug target/120522] [16 Regression] RISC-V: Miscompile at -O3 since r16-449-gd884e9c5c74

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120522 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code Target Milestone|---

[Bug target/120522] [16 Regression] RISC-V: Miscompile at -O3 since r16-449-gd884e9c5c74

2025-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120522 --- Comment #1 from Andrew Pinski --- The first difference between the 2 revisions is: Before: _45 = &ac + _31; after: _110 = (unsigned long) ∾ ... _69 = _31 + _110; _45 = (unsigned char[23][23][23][23] *) _69; in lim2.

[Bug c/120511] Initializer warning on universal zero initializer for array element with double member

2025-06-03 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120511 --- Comment #8 from Joseph S. Myers --- Note that for *decimal* floating-point types, {0} should arguably not be considered a universal zero initializer (it produces a DFP zero with quantum exponent 0, whereas (positive) 0 with the least possibl

[Bug target/120522] New: [16 Regression] RISC-V: Miscompile at -O3 since r16-449-gd884e9c5c74

2025-06-03 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120522 Bug ID: 120522 Summary: [16 Regression] RISC-V: Miscompile at -O3 since r16-449-gd884e9c5c74 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug c/116892] forward declaration of enum followed by packed on the enum type causes an ICE in verify_type

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892 --- Comment #12 from GCC Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:bd773888eafe34fb990041462df6d3a3c8a4217d commit r16-1087-gbd773888eafe34fb990041462df6d3a3c8a4217d Author: Martin Uecker Date:

[Bug libstdc++/120514] Build failure, possibly with C++

2025-06-03 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120514 --- Comment #5 from Jerry DeLisle --- As a followup. Thanks for the hints about what is going on. I recently upgraded from Fedora 41 to 42. The build I was attempting was a clean build, I always start with an empty build directory. I was susp

[Bug tree-optimization/120521] New: wrong code at -O3 with "-fno-tree-fre" on x86_64-linux-gnu (generated code hangs)

2025-06-03 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
-bootstrap --enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 16.0.0 20250603 (experimental) (GCC) [543] % [543] % gcctk -

[Bug c/116892] forward declaration of enum followed by packed on the enum type causes an ICE in verify_type

2025-06-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892 --- Comment #11 from uecker at gcc dot gnu.org --- (In reply to Richard Earnshaw from comment #10) > (In reply to uecker from comment #9) > > (In reply to Richard Earnshaw from comment #8) > > > Forward declarations of enums in C requires c23, wh

[Bug c/116892] forward declaration of enum followed by packed on the enum type causes an ICE in verify_type

2025-06-03 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892 --- Comment #10 from Richard Earnshaw --- (In reply to uecker from comment #9) > (In reply to Richard Earnshaw from comment #8) > > Forward declarations of enums in C requires c23, when you can use the size > > type specifier. For earlier versi

[Bug c++/120518] nvptx offloading: "OpenMP: Handle more cases in user/condition selector" regresses C++ 'c-c++-common/gomp/metadirective-target-device-2.c'

2025-06-03 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120518 sandra at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |sandra at gcc dot gnu

[Bug c/120520] [C2y] Implement N3466, Clarifications on null pointers in the library

2025-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120520 --- Comment #2 from Jakub Jelinek --- Created attachment 61564 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61564&action=edit gcc16-pr120520.patch Untested implementation.

[Bug testsuite/120519] g++.target/powerpc/mvc-symbols1.C fail starting with r16-965-g83eee43e998d0a

2025-06-03 Thread alfierichards at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120519 Alfie Richards changed: What|Removed |Added CC||alfierichards at gcc dot gnu.org ---

[Bug middle-end/120516] [15/16 Regression] wrong code at O3 with "-fno-tree-slsr -fno-ipa-cp -fno-inline" from 15.1 and above on x86_64

2025-06-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120516 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.2 Keywords|

[Bug target/120517] [16 Regression] "For datarefs with big gap, split them into different groups" vs. nvptx SLP vectorizer

2025-06-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120517 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/120517] [16 Regression] "For datarefs with big gap, split them into different groups" vs. nvptx SLP vectorizer

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120517 --- Comment #2 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:f605165ee4baf65a46a16692e3aaa13046cbd283 commit r16-1079-gf605165ee4baf65a46a16692e3aaa13046cbd283 Author: Richard Biener Date:

[Bug c/116892] forward declaration of enum followed by packed on the enum type causes an ICE in verify_type

2025-06-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892 --- Comment #9 from uecker at gcc dot gnu.org --- (In reply to Richard Earnshaw from comment #8) > Forward declarations of enums in C requires c23, when you can use the size > type specifier. For earlier versions this isn't valid code. Is is a

[Bug c/120520] [C2y] Implement N3466, Clarifications on null pointers in the library

2025-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120520 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug c/120520] New: [C2y] Implement N3466, Clarifications on null pointers in the library

2025-06-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120520 Bug ID: 120520 Summary: [C2y] Implement N3466, Clarifications on null pointers in the library Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug target/120479] missed opportunity to generate czero.nez

2025-06-03 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120479 --- Comment #3 from Jeffrey A. Law --- Oh, I didn't try the testcase, I was going off the fragments you posted. If the incoming value in a7 is known to only have values 0/1, then absolutely yes. In fact I added some support for these kinds of

[Bug c/116892] forward declaration of enum followed by packed on the enum type causes an ICE in verify_type

2025-06-03 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892 Richard Earnshaw changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code --- Comment #8 f

[Bug testsuite/120519] New: g++.target/powerpc/mvc-symbols1.C fail starting with r16-965-g83eee43e998d0a

2025-06-03 Thread kishan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120519 Bug ID: 120519 Summary: g++.target/powerpc/mvc-symbols1.C fail starting with r16-965-g83eee43e998d0a Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: n

[Bug target/120517] [16 Regression] "For datarefs with big gap, split them into different groups" vs. nvptx SLP vectorizer

2025-06-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120517 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug c++/120502] [15/16 Regression] ICE in verify_ctor_sanity with -std=c++20 -O1 and no_unique_address since r15-9189

2025-06-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120502 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org P

[Bug c++/119692] C++ 'typeinfo', 'vtable' vs. OpenACC, OpenMP 'target' offloading

2025-06-03 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org --- Comment #8 from

[Bug libstdc++/120514] Build failure, possibly with C++

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120514 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIR

[Bug c++/107600] New __is_destructible built-in

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107600 --- Comment #15 from Jonathan Wakely --- Thanks for the fixes, uses the new built-ins since r16-1077-gb32bf304793047

[Bug libstdc++/119089] FAIL: 23_containers/vector/debug/assign4_backtrace_neg.cc -std=gnu++17 (test for excess errors)

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119089 Jonathan Wakely changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org --- Comm

[Bug libstdc++/120514] Build failure, possibly with C++

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120514 --- Comment #3 from Jonathan Wakely --- This is just Bug 119089 again, which is not a gcc bug.

[Bug libstdc++/104928] std::counting_semaphore on Linux can sleep forever

2025-06-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104928 Jonathan Wakely changed: What|Removed |Added Keywords||patch --- Comment #18 from Jonathan W

[Bug testsuite/119862] [16 Regression] gcc.dg/pr119160.c FAILs

2025-06-03 Thread ptomsich at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119862 --- Comment #4 from ptomsich at gcc dot gnu.org --- The runtime calls to __cyg_profile_func_exit and __cyg_profile_func_enter are inserted for -finstrument-functions-once. @Konstantinos: Why do we need as "{ dg-do run }" instead of "{ dg-do comp

[Bug c++/120518] New: nvptx offloading: "OpenMP: Handle more cases in user/condition selector" regresses C++ 'c-c++-common/gomp/metadirective-target-device-2.c'

2025-06-03 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120518 Bug ID: 120518 Summary: nvptx offloading: "OpenMP: Handle more cases in user/condition selector" regresses C++ 'c-c++-common/gomp/metadirective-target-device-2.c' Product:

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

2025-06-03 Thread parras at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119100 Paul-Antoine Arras changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug testsuite/119862] [16 Regression] gcc.dg/pr119160.c FAILs

2025-06-03 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119862 --- Comment #3 from Rainer Orth --- Now that -mgeneral-regs-only is only passed on targets that support it, the failure mode on Solaris/SPARC is the same as on Solaris/x86: Excess errors: Undefined first referenced symbol

[Bug target/120517] New: [16 Regression] "For datarefs with big gap, split them into different groups" vs. nvptx SLP vectorizer

2025-06-03 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120517 Bug ID: 120517 Summary: [16 Regression] "For datarefs with big gap, split them into different groups" vs. nvptx SLP vectorizer Product: gcc Version: 16.0 Status: UNCONFI

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

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119100 --- Comment #5 from GCC Commits --- The master branch has been updated by Paul-Antoine Arras : https://gcc.gnu.org/g:b437418bc9547073ec2704398c85c52e060e1fab commit r16-1071-gb437418bc9547073ec2704398c85c52e060e1fab Author: Paul-Antoine Arras

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2025-06-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #20 from GCC Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:4ab36e8e56280d774d4b5ef07b0838020ba20a6a commit r16-1070-g4ab36e8e56280d774d4b5ef07b0838020ba20a6a Author: H.J. Lu Date: Tue Jun 3 17

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2025-06-03 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 Hongtao Liu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/120516] [15/16 Regression] wrong code at O3 with "-fno-tree-slsr -fno-ipa-cp -fno-inline" from 15.1 and above on x86_64

2025-06-03 Thread congli at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120516 --- Comment #1 from congli --- Missing information: -fno-ivopts works for both issues.

[Bug c/120516] New: [15/16 Regression] wrong code at O3 with "-fno-tree-slsr -fno-ipa-cp -fno-inline" from 15.1 and above on x86_64

2025-06-03 Thread congli at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120516 Bug ID: 120516 Summary: [15/16 Regression] wrong code at O3 with "-fno-tree-slsr -fno-ipa-cp -fno-inline" from 15.1 and above on x86_64 Product: gcc Version: 15.

[Bug c++/120504] [16 Regression] gcc-16 fails to build llvm-20 and gdb-16.3 unique_ptr.h:91:23: error: invalid application of 'sizeof' to incomplete type ... since r16-944-g0629924777ea20

2025-06-03 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120504 --- Comment #9 from Sergei Trofimovich --- I confirm gdb and llvm build successfully now. Thank you!

[Bug driver/120515] New: darwin warning: ld: warning: -U option is redundant when using -undefined dynamic_lookup

2025-06-03 Thread peter at eisentraut dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120515 Bug ID: 120515 Summary: darwin warning: ld: warning: -U option is redundant when using -undefined dynamic_lookup Product: gcc Version: 15.1.0 Status: UNCONFIRMED

[Bug target/120479] missed opportunity to generate czero.nez

2025-06-03 Thread bonzini at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120479 --- Comment #2 from Paolo Bonzini --- a7 is from line (1) which is a sltu instruction, so it has itself only bit 0 set. I think it should be possible to generate (if_then_else (eq/ne X (const_int 0)) Y (const_int 0)) from (and (eq/ne X (const_i