[Bug ipa/120044] [12/13/14/15/16 Regression] wrong code at -O1 and above with "-fno-early-inlining -fno-tree-fre -fno-tree-pre -fno-code-hoisting" on x86_64-linux-gnu

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

[Bug target/110273] [12/13/14/15/16 Regression] i686-w64-mingw32 with -mavx512f generates AVX instructions without stack alignment

2025-04-30 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273 LIU Hao changed: What|Removed |Added CC||lh_mouse at 126 dot com --- Comment #17 from

[Bug c++/120041] New: ICE: unexpected expression of kind template_parm_index

2025-04-30 Thread eczbek.void at gmail dot com via Gcc-bugs
specs. COLLECT_GCC=/opt/compiler-explorer/gcc-snapshot/bin/g++ Target: x86_64-linux-gnu Configured with: ../gcc-trunk-20250430/configure --prefix=/opt/compiler-explorer/gcc-build/staging --enable-libstdcxx-backtrace=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --d

[Bug analyzer/120045] analyzer: False positive with guarded NULL dereference

2025-04-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120045 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug rtl-optimization/120046] [15/16 Regression] wrong code at -O{s,2} with "-fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -fno-expensive-optimizations -fno-gcse" on x86_64-linux-gnu

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120046 Andrew Pinski changed: What|Removed |Added Version|unknown |15.0 Known to work|

[Bug rtl-optimization/120046] [15/16 Regression] wrong code at -O{s,2} with "-fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -fno-expensive-optimizations -fno-gcse" on x86_64-linux-gnu

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120046 Andrew Pinski changed: What|Removed |Added Keywords|needs-bisection | --- Comment #1 from Andrew Pinski ---

[Bug rtl-optimization/120046] [15/16 Regression] wrong code at -O{s,2} with "-fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -fno-expensive-optimizations -fno-gcse" on x86_64-linux-gnu

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

[Bug tree-optimization/120043] [15/16 Regression] wrong code at -O{s,2,3} with -fallow-store-data-races on x86_64-linux-gnu

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

[Bug tree-optimization/120043] [15/16 Regression] wrong code at -O{s,2,3} with -fallow-store-data-races on x86_64-linux-gnu

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

[Bug c++/120040] New: Module ICE when constexpr function calls new on class withe empty destructor.

2025-04-30 Thread kongmingd234 at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120040 Bug ID: 120040 Summary: Module ICE when constexpr function calls new on class withe empty destructor. Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity

[Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used

2025-04-30 Thread gabrielopcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=07 --- Comment #35 from Gabriel Ivăncescu --- (In reply to LIU Hao from comment #34) > > My experience is that _sometimes_ (how often?) GCC assumes the stack is > aligned. Yes, in theory it shouldn't, but in practice that's not the case. > Maybe w

[Bug tree-optimization/119712] [14/15/16 Regression] compiler hang at -O{1,2,3,s} since r14-5109

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119712 --- Comment #10 from GCC Commits --- The releases/gcc-15 branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:f685d317738524dc837dee94bb762f71ff30fb23 commit r15-9607-gf685d317738524dc837dee94bb762f71ff30fb23 Author: Andrew MacLeo

[Bug tree-optimization/120043] New: wrong code at -O{s,2,3} with -fallow-store-data-races on x86_64-linux-gnu

2025-04-30 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
--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 20250430 (experimental) (GCC) [519] % [519] % gcctk -O3 small.c; ./a.out [520] % [520

[Bug tree-optimization/120044] New: wrong code at -O1 and above with "-fno-early-inlining -fno-tree-fre -fno-tree-pre -fno-code-hoisting" on x86_64-linux-gnu

2025-04-30 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
th: ../gcc-trunk/configure --disable-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 20250430 (experime

[Bug analyzer/120045] New: analyzer: False positive with guarded NULL dereference

2025-04-30 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120045 Bug ID: 120045 Summary: analyzer: False positive with guarded NULL dereference Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug tree-optimization/120046] New: wrong code at -O{s,2} with "-fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -fno-expensive-optimizations -fno-gcse" on x86_64-linux-gnu

2025-04-30 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
: zlib gcc version 16.0.0 20250430 (experimental) (GCC) [554] % [554] % gcctk -O2 small.c; ./a.out 0 [555] % gcctk -O2 -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -fno-expensive-optimizations -fno-gcse small.c [556] % ./a.out 0 Aborted [557] % [557] % cat small.c int printf(const char *, ..

[Bug fortran/119986] Complex array part references are being passed incorrectly to a procedure

2025-04-30 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119986 --- Comment #6 from anlauf at gcc dot gnu.org --- Workaround: add contiguous :: u, v to force generation of a proper temporary. The dump-tree looks really fishy for the subroutine: { integer(kind=8) D.4689; struct array01_

[Bug fortran/119986] Complex array part references are being passed incorrectly to a procedure

2025-04-30 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119986 --- Comment #7 from anlauf at gcc dot gnu.org --- Forgot to add: the main has struct array01_complex(kind=4) parm.12; so there needs to be a conversion to a real array (with the right stride etc.)

[Bug c++/119859] [15/16 Regression][CWG2273] template member function overload with base class

2025-04-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119859 Jason Merrill changed: What|Removed |Added Last reconfirmed||2025-04-30 Status|UNCONFIRM

[Bug c/120009] RFE: idea: void (dummy) objects (really...)

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120009 --- Comment #5 from Richard Biener --- Interaction with optional bitfield parts is interesting though. struct X { unsigned a : 1; T b : 1; unsigned b : 1; }; if 'T' is optional, would 'void b : 1' still take up 1 bit? Dependent on what

[Bug c++/120021] New: Offloading vs. C++ 'std::valarray'

2025-04-30 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120021 Bug ID: 120021 Summary: Offloading vs. C++ 'std::valarray' Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: openacc, openmp Severity: normal Priority:

[Bug target/119989] [AVR] Incorrect code generation with __memx pointers when optimization is enabled (-O1 and above) on AVR (ATmega328P)

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119989 --- Comment #3 from GCC Commits --- The releases/gcc-15 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:e268cb27332a1c39a5fc8426ae368c9878f3f241 commit r15-9602-ge268cb27332a1c39a5fc8426ae368c9878f3f241 Author: Georg-Johann

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120022 Andrew Pinski changed: What|Removed |Added Summary|[Optimization opportunity] |[Optimization opportunity]

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

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

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120022 --- Comment #3 from Andrew Pinski --- And this is unrelated to PR 119917 .

[Bug c/120024] New: ICE (Segmentation fault) in expand_call when casting malloc to void (*)(void) and calling it

2025-04-30 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120024 Bug ID: 120024 Summary: ICE (Segmentation fault) in expand_call when casting malloc to void (*)(void) and calling it Product: gcc Version: 15.1.1 Status: UNCONFIRMED

[Bug c++/120025] New: rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 Bug ID: 120025 Summary: rfe: split assignable temporaries from -fpermissive Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 --- Comment #1 from Andrew Pinski --- I am not even sure what assignable temporaries is. Do you have an example?

[Bug middle-end/120024] [12/13/14/15/16 Regression] ICE (Segmentation fault) in expand_call when casting malloc to void (*)(void) and calling it

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

[Bug middle-end/120024] [12/13/14/15/16 Regression] ICE (Segmentation fault) in expand_call when casting malloc to void (*)(void) and calling it

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

[Bug c/120030] New: ICE in set_init_priority when applying multiple __attribute__((constructor)) declarations in C

2025-04-30 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120030 Bug ID: 120030 Summary: ICE in set_init_priority when applying multiple __attribute__((constructor)) declarations in C Product: gcc Version: 15.1.0 Status: UNCONFIRMED

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 --- Comment #6 from Andrew Pinski --- So the big problem with this extension is that it will not work with concepts (and SFINAE) in a decent form. This is why the extension was removed in the first place. An example is: ``` template T f(); tem

[Bug tree-optimization/120032] New: Fails to pattern match clz from DeBruijn

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120032 Bug ID: 120032 Summary: Fails to pattern match clz from DeBruijn Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-op

[Bug tree-optimization/120031] New: Fails to pattern match ctz from DeBruijn

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120031 Bug ID: 120031 Summary: Fails to pattern match ctz from DeBruijn Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-op

[Bug c/120033] New: ICE in c_parser_consume_token when using macro with malformed #pragma message

2025-04-30 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120033 Bug ID: 120033 Summary: ICE in c_parser_consume_token when using macro with malformed #pragma message Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 --- Comment #7 from Stas Sergeev --- (In reply to Andrew Pinski from comment #6) > So the big problem with this extension is that it will not work with > concepts (and SFINAE) in a decent form. This is why the extension was > removed in the firs

[Bug target/120034] Fails to recognize bzhi consistently

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120034 --- Comment #1 from Richard Biener --- This is related to having multiple uses of btMask I guess.

[Bug target/120034] New: Fails to recognize bzhi consistently

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120034 Bug ID: 120034 Summary: Fails to recognize bzhi consistently Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/120019] [16 regression] PR 111657 change broke Solaris/x86 bootstrap

2025-04-30 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120019 Rainer Orth changed: What|Removed |Added Target Milestone|--- |16.0 --- Comment #1 from Rainer Orth ---

[Bug target/119989] [AVR] Incorrect code generation with __memx pointers when optimization is enabled (-O1 and above) on AVR (ATmega328P)

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119989 --- Comment #1 from GCC Commits --- The releases/gcc-13 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:67d13d11edd070b57d9166e828dc0b734f4e524b commit r13-9625-g67d13d11edd070b57d9166e828dc0b734f4e524b Author: Georg-Johann

[Bug ada/112958] [12/13/14/15/16 regression] s-exnllf.ads etc. don't compile on 32-bit FreeBSD/x86

2025-04-30 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112958 --- Comment #14 from Eric Botcazou --- Created attachment 61250 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61250&action=edit Tentative fix Please give it a try on FreeBSD.

[Bug tree-optimization/120022] New: [Optimization opportunity] Related with Bug 119917 and 120020

2025-04-30 Thread a1343922569 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120022 Bug ID: 120022 Summary: [Optimization opportunity] Related with Bug 119917 and 120020 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/120022] [Optimization opportunity] Related with Bug 119917 and 120020

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120022 --- Comment #7 from Andrew Pinski --- (In reply to Jin Haobo from comment #4) > Thank you, but the "correct" code still generate suboptimal assembly code > for myDivMod1, while Clang is optimal. > GCC: https://gcc.godbolt.org/z/cvadddsz3 > Clan

[Bug c++/120023] New: When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored

2025-04-30 Thread kptas at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120023 Bug ID: 120023 Summary: When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored Product: gcc Version: 16.0

[Bug tree-optimization/120003] [12/13/14/15/16 Regression] missed optimization around a loop with a checker

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120003 --- Comment #6 from Richard Biener --- (In reply to Andrew Macleod from comment #4) > This seems to be the issue? > >[local count: 350791453]: > _1 = g (i_3); > if (_1 != 0) > goto ; [50.00%] > else > goto ; [50.00%] > >[

[Bug target/119832] RISC-V: Redundant floating point rounding mode store/restore

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119832 --- Comment #6 from GCC Commits --- The master branch has been updated by Kito Cheng : https://gcc.gnu.org/g:e5d1f538bb7d2c7a7a4acf4a4516fa8933dc2888 commit r16-300-ge5d1f538bb7d2c7a7a4acf4a4516fa8933dc2888 Author: Kito Cheng Date: Tue Apr

[Bug libstdc++/58931] condition_variable::wait_until overflowed by large time_point

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58931 --- Comment #8 from Jonathan Wakely --- You don't need to use the steady_clock, overflows are possible with any clock :-(

[Bug c/120028] New: SIGSEGV at runtime from large static array initialization accepted silently by GCC

2025-04-30 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120028 Bug ID: 120028 Summary: SIGSEGV at runtime from large static array initialization accepted silently by GCC Product: gcc Version: 13.3.0 Status: UNCONFIRMED Sev

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 --- Comment #5 from Stas Sergeev --- (In reply to Andrew Pinski from comment #4) > >I've got on clang forum > > I tried looking for that but I don't see it on discourse.llvm.org at all nor > on as an issue at https://github.com/llvm/llvm-proje

[Bug libstdc++/58931] condition_variable::wait_until overflowed by large time_point

2025-04-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58931 --- Comment #7 from Jonathan Wakely --- #include #include #include #include using namespace std::chrono; int main() { std::mutex mx; std::condition_variable cv; std::thread sleepy_abs([&] { time_point end_of_time(minutes::max());

[Bug target/102266] RFE: x86: print operand with optional (%rip) suffix

2025-04-30 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102266 --- Comment #6 from Uroš Bizjak --- (In reply to H. Peter Anvin from comment #5) > (I'm asking because of our is far enough back then we can convert the kernel > code immediately.) I think I already converted to %a in d689863c1a60b9. https://g

[Bug libstdc++/120029] New: Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread yhx12243 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 Bug ID: 120029 Summary: Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p Product: gcc Version: 16.0

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread yhx12243 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 Haoxiang Yu changed: What|Removed |Added Attachment #61253|0 |1 is obsolete|

[Bug c/120028] SIGSEGV at runtime from large static array initialization accepted silently by GCC

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120028 Richard Biener changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug tree-optimization/120003] [12/13/14/15/16 Regression] missed optimization around a loop with a checker

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120003 --- Comment #8 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:1a13684dfc7286139064f7d7341462c9995cbd1c commit r16-303-g1a13684dfc7286139064f7d7341462c9995cbd1c Author: Richard Biener Date:

[Bug tree-optimization/120003] [12/13/14/15 Regression] missed optimization around a loop with a checker

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120003 Richard Biener changed: What|Removed |Added Summary|[12/13/14/15/16 Regression] |[12/13/14/15 Regression]

[Bug libstdc++/120029] Dangling iterator usage in std::filesystem::path::operator+=(const std::filesystem::path &p) when this == p

2025-04-30 Thread yhx12243 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029 --- Comment #2 from Haoxiang Yu --- Created attachment 61255 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61255&action=edit The source code that causes the crash

[Bug tree-optimization/119960] [15/16 Regression] vectorizer seems not to do as much any more since r15-5863

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119960 --- Comment #8 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:51ba233fe2db562390a6e0a3618420889761bc77 commit r16-305-g51ba233fe2db562390a6e0a3618420889761bc77 Author: Richard Biener Date:

[Bug tree-optimization/119960] [15/16 Regression] vectorizer seems not to do as much any more since r15-5863

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119960 --- Comment #9 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:5f44fcdfe18e72f2900d2757375843e88d32c535 commit r16-308-g5f44fcdfe18e72f2900d2757375843e88d32c535 Author: Richard Biener Date:

[Bug c++/101670] Internal compiler error with concepts

2025-04-30 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101670 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #

[Bug tree-optimization/120003] [12/13/14/15/16 Regression] missed optimization around a loop with a checker

2025-04-30 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120003 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120020] [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 --- Comment #2 from Andrew Pinski --- >performance-critical applications using inline assembly for specialized >operations like cryptography, multimedia processing, There are intrinsics for those instead of inline-asm.

[Bug tree-optimization/120020] [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread a1343922569 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 --- Comment #3 from Jin Haobo --- The code in my reproduction is wrong. I will re-show the C++ code. Reproduction C++ code (64-bit variable): #include using U = uint64_t; struct A { U quo; U rem; }; U myDiv(U const& a, U const& b) {

[Bug tree-optimization/120020] [Optimization opportunity] Optimize repeated inline assembly operations when semantically equivalent

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Keywords|

[Bug target/119966] [16 regression] pru: Invalid register in RTL expression starting with r16-160-ge6f89d78c1a752

2025-04-30 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119966 --- Comment #6 from Richard Sandiford --- (In reply to Andrew Pinski from comment #4) > validate_subreg allows the paradoxical subreg even in the case of hard > register: > ``` > /* Paradoxical subregs must have offset zero. */ > if (maybe_

[Bug middle-end/120021] Offloading vs. C++ 'std::valarray'

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120021 Andrew Pinski changed: What|Removed |Added Component|c++ |middle-end --- Comment #1 from Andrew P

[Bug middle-end/120021] Offloading vs. C++ 'std::valarray'

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120021 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > I am 99% sure this decl comes from the gimplifier. > > gimplify.cc:6415 And it can also show up with some C code too in some cases.

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

2025-04-30 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025 --- Comment #2 from Stas Sergeev --- (In reply to Andrew Pinski from comment #1) > I am not even sure what assignable temporaries is. Do you have an example? ``` #include struct A { int a; ~A() { std::cout << "a=" << a << std::endl; }

[Bug middle-end/120024] [12/13/14/15/16 Regression] ICE (Segmentation fault) in expand_call when casting malloc to void (*)(void) and calling it

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120024 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug c/120026] New: ICE (Segmentation fault) with -O3 when using ternary operator to assign strdup to function pointer

2025-04-30 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120026 Bug ID: 120026 Summary: ICE (Segmentation fault) with -O3 when using ternary operator to assign strdup to function pointer Product: gcc Version: 13.3.0 Status: UNCONFIRM

[Bug target/119974] Missing combination of SVE RDFFRS

2025-04-30 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119974 ktkachov at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |INVALID Status

[Bug c/120026] ICE (Segmentation fault) with -O3 when using ternary operator to assign strdup to function pointer

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

[Bug target/120027] New: Missing simplifications of SVE uxtb intrinsics

2025-04-30 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120027 Bug ID: 120027 Summary: Missing simplifications of SVE uxtb intrinsics Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: aarch64-sve, missed-optimization Severity

[Bug middle-end/120024] [12/13/14/15/16 Regression] ICE (Segmentation fault) in expand_call when casting malloc to void (*)(void) and calling it

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

[Bug c++/120025] rfe: split assignable temporaries from -fpermissive

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

[Bug target/119989] [AVR] Incorrect code generation with __memx pointers when optimization is enabled (-O1 and above) on AVR (ATmega328P)

2025-04-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119989 --- Comment #6 from Georg-Johann Lay --- The issue was introduced by the cc0 -> CCmode conversion in r12-226 3ba781d3b5c8efadb60866c9743b657e8f0eb222

[Bug ipa/120006] [15/16 Regression] wrong code with -O2 -fipa-pta

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 --- Comment #14 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:a85b89e26b1f50997701eb428c2dd71668f216ff commit r16-304-ga85b89e26b1f50997701eb428c2dd71668f216ff Author: Richard Biener Date:

[Bug ipa/120006] [15 Regression] wrong code with -O2 -fipa-pta

2025-04-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120006 Richard Biener changed: What|Removed |Added Known to work||16.0 Known to fail|16.0

[Bug middle-end/108016] RISC-V:Bad codegen in scalar code comparing to LLVM

2025-04-30 Thread alexey.merzlyakov at samsung dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108016 --- Comment #11 from Alexey Merzlyakov --- > So I'd first look at why we created an explicit store through memory rather > than simple x.y assignment like we see for D.19566.first. For the examples from "Item1" and "Item2", GCC does not gener

[Bug c++/120023] When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120023 --- Comment #3 from GCC Commits --- The releases/gcc-15 branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:90484ea24e7886f01200619a55c2343728362fc6 commit r15-9612-g90484ea24e7886f01200619a55c2343728362fc6 Author: Nathaniel She

[Bug c++/103524] [meta-bug] modules issue

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 119996, which changed state. Bug 119996 Summary: [modules] Inline reference to a TU-local entity is nulled when used https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119996 What|Removed |

[Bug c++/119938] [15/16 Regression][modules] Class type NTTPs are not considered constant when imported

2025-04-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119938 --- Comment #2 from GCC Commits --- The releases/gcc-15 branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:aa49bb9deb7e040679f184009f38c5027f1a8dc4 commit r15-9611-gaa49bb9deb7e040679f184009f38c5027f1a8dc4 Author: Nathaniel She

[Bug c++/120040] Module ICE when constexpr function calls new on class withe empty destructor.

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120040 Nathaniel Shead changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Keywords|

[Bug c++/120023] When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120023 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |15.2 Status|ASSIGNED

[Bug c++/103524] [meta-bug] modules issue

2025-04-30 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 120023, which changed state. Bug 120023 Summary: When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120023

[Bug c/67435] Feature request: Implement align-loops attribute

2025-04-30 Thread maxim.yegorushkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67435 Maxim Egorushkin changed: What|Removed |Added CC||maxim.yegorushkin at gmail dot com -

[Bug c/67435] Feature request: Implement align-loops attribute

2025-04-30 Thread maxim.yegorushkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67435 --- Comment #12 from Maxim Egorushkin --- gcc-13 and gcc-14 no longer align the last byte of a loop to the last byte of a L1i-cache-line, when compiled with `-march=native -mtune=native` on Zen3 and Zen4 CPUs. I remember gcc-11 or gcc-12 aligni

[Bug target/120050] New: [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Bug ID: 120050 Summary: [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 Product: gcc Version: 16.0 Status: UNCON

[Bug target/120050] [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Xi Ruoyao changed: What|Removed |Added Target Milestone|--- |15.2 Keywords|

[Bug target/120050] [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 --- Comment #1 from Xi Ruoyao --- Hmm, the ICE with trunk is from gcc_checking_assert. Thus maybe the difference between 15 and 16 comes from the different --enable-checking setting.

[Bug middle-end/120030] [12/13/14/15/16 Regression] ICE in set_init_priority when applying multiple __attribute__((constructor)) declarations in C

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120030 Andrew Pinski changed: What|Removed |Added CC||hubicka at gcc dot gnu.org Target Mil

[Bug ada/119698] gen_il-main: raised PROGRAM_ERROR : finalize/adjust raised exception

2025-04-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119698 Matthias Klose changed: What|Removed |Added CC||doko at gcc dot gnu.org --- Comment #6

[Bug ada/119698] gen_il-main: raised PROGRAM_ERROR : finalize/adjust raised exception

2025-04-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119698 --- Comment #7 from Sam James --- I'd start with inspecting things like binutils version.

[Bug middle-end/108016] RISC-V:Bad codegen in scalar code comparing to LLVM

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108016 --- Comment #12 from Andrew Pinski --- (In reply to Alexey Merzlyakov from comment #11) > Stack usage for this code is being generated later on the "expand" stage > when we are addressing local D.2333 variable. It means, that probably there > mi

[Bug ada/119698] gen_il-main: raised PROGRAM_ERROR : finalize/adjust raised exception

2025-04-30 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119698 --- Comment #8 from Matthias Klose --- binutils is the same binary as for the last successful gcc-12 upload on 2025-03-17.

[Bug rust/120018] [15/16 regression] internal compiler error: in redirect_to_unreachable, at ipa-fnsummary.cc:258 for 32-bits

2025-04-30 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120018 Sam James changed: What|Removed |Added Target Milestone|--- |15.2 Summary|internal compiler e

[Bug target/120050] [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Xi Ruoyao changed: What|Removed |Added Keywords||ice-checking --- Comment #2 from Xi Ruoyao

[Bug c++/83161] Feature request: add a builtin for printing structs and classes

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

[Bug ipa/120048] [16 Regression] ICE on valid code at -O{s,2} with "-fno-tree-vrp -fno-tree-fre" on x86_64-linux-gnu: in type, at value-range.h:982

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120048 Andrew Pinski changed: What|Removed |Added Target Milestone|15.2|16.0 Version|15.0

[Bug ipa/120048] [15/16 Regression] ICE on valid code at -O{s,2} with "-fno-tree-vrp -fno-tree-fre" on x86_64-linux-gnu: in type, at value-range.h:982

2025-04-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120048 Andrew Pinski changed: What|Removed |Added Keywords||ice-checking --- Comment #1 from Andrew

<    1   2   3   >