[Bug target/120941] [16 Regression] 10-40% slowdown of 519.lbm_r on Zen{2,3} since r16-1644-gaba3b9d3a48a07

2025-07-04 Thread haochen.jiang at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120941 --- Comment #5 from Haochen Jiang --- I have tried on Zen3 Client machine with -Ofast -flto -march=native/znver2 and see no regression on both options before and after the commit.

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #26 from Sam James --- I'm going to try clean it up with my poor C++, as I can't follow it at all right now.

[Bug target/120943] [16 Regression] 5% slowdown of 527.cam4_r on Zen{4,5} since r16-1643-gd073bb6cfc219d

2025-07-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120943 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2025-07-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 120943, which changed state. Bug 120943 Summary: [16 Regression] 5% slowdown of 527.cam4_r on Zen{4,5} since r16-1643-gd073bb6cfc219d https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120943 What|Removed

[Bug target/120683] vector_loop/unrolled_loop generates poor codes on memset/memcpy

2025-07-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120683 H.J. Lu changed: What|Removed |Added CC||pheeck at gcc dot gnu.org --- Comment #4 from

[Bug ipa/104457] ipa-cp with autofdo: internal compiler error in update_specialized_profile, at ipa-cp.c:4422

2025-07-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104457 Jan Hubicka changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/120867] [metabug] AutoFDO issues

2025-07-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120867 Bug 120867 depends on bug 104457, which changed state. Bug 104457 Summary: ipa-cp with autofdo: internal compiler error in update_specialized_profile, at ipa-cp.c:4422 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104457 What|Remo

[Bug sanitizer/120950] New: Incorrect codegen for ASan when -mpreferred-stack-boundary < 3

2025-07-04 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120950 Bug ID: 120950 Summary: Incorrect codegen for ASan when -mpreferred-stack-boundary < 3 Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/120878] [12/13/14/15/16 Regression] ICE: in adjust_temp_type, at cp/constexpr.cc:1791

2025-07-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120878 Richard Biener changed: What|Removed |Added Priority|P3 |P4 Target Milestone|---

[Bug libstdc++/120949] New: [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
ind-now --enable-default-ssp --disable-fixincludes --with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-linker-build-id --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250704 (experimental) d6ed12ed5

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 Sam James changed: What|Removed |Added CC||redi at gcc dot gnu.org Target Milestone|

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 --- Comment #2 from Sam James --- Created attachment 61798 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61798&action=edit readable.ii.xz

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 --- Comment #3 from Sam James --- Not sure if missing something but I see a bunch of the changes in that commit do it right (?) (as mentioned in the commit message), just some don't follow that pattern.

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

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

[Bug testsuite/120859] FAIL: gcc.dg/tree-prof/afdo-crossmodule-1b.c compilation

2025-07-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120859 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #4

[Bug target/120900] C++ passes user aligned struct differently from C

2025-07-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120900 --- Comment #11 from H.J. Lu --- (In reply to H.J. Lu from comment #10) > This makes C similar to C++: > > diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc > index 8bbd6ebc66a..0da6c65fc6a 100644 > --- a/gcc/c/c-decl.cc > +++ b/gcc/c/c-decl.cc >

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #25 from Sam James --- (In reply to Sam James from comment #24) > @@ -1882,7 +1881,6 @@ IPA function summary for void ar::bc::operator++() > [with aq = QStringView]/7 >calls: Adding __attribute__((noipa)) on that template works.

[Bug tree-optimization/120948] Cannot detect potential division-by-zero when numerator is 1 and denominator is variable

2025-07-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120948 Richard Biener changed: What|Removed |Added Component|c |tree-optimization Keywords|

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #24 from Sam James --- (In reply to Sam James from comment #11) > Created attachment 61749 [details] > small.cxx OK, on this, with a small adjustment to change the two ""s as args to char* str1, str2: --- a/small.cxx.057t.local-fns

[Bug target/120941] [16 Regression] 10-40% slowdown of 519.lbm_r on Zen{2,3} since r16-1644-gaba3b9d3a48a07

2025-07-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120941 H.J. Lu changed: What|Removed |Added CC||haochen.jiang at intel dot com --- Comment #4

[Bug tree-optimization/120952] New: GCC fails to optimize division to shift when divisor is non-constant power of two

2025-07-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120952 Bug ID: 120952 Summary: GCC fails to optimize division to shift when divisor is non-constant power of two Product: gcc Version: 16.0 Status: UNCONFIRMED Keywor

[Bug libstdc++/118681] [C++17] unsynchronized_pool_resource may fail to respect alignment

2025-07-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118681 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/120952] GCC fails to optimize division to shift when divisor is non-constant power of two

2025-07-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120952 --- Comment #1 from Jonathan Wakely --- As noted in Bug 118681 comment 8, when we know it's a power of two we can do: return (bytes + alignment - 1) & ~(alignment - 1); to get even better codegen.

[Bug jit/120960] jit: The static initialization of builtin_data uses flag_openacc and flag_openmp (which have not been set yet)

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120960 --- Comment #2 from Andrew Pinski --- Actually both_p being false or true is both ok here. #undef DEF_GOACC_BUILTIN_COMPILER #define DEF_GOACC_BUILTIN_COMPILER(ENUM, NAME, TYPE, ATTRS) \ DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL,

[Bug c++/120961] ICE on C++20 module when compiling Eigen.

2025-07-04 Thread shyeyian at petalmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120961 --- Comment #1 from shyeyian --- The attachment with size 8.7MB (zipped into 1.1MB) exceeds the size limit of gcc-bugzilla requirements. **attachment** has been uploaded to [attachment-online](https://raw.githubusercontent.com/AnonymousPC/gcc-bu

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-04 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 --- Comment #5 from kargls at comcast dot net --- (In reply to Martin Jambor from comment #1) > And indeed the following hack in Fortran FE "fixes" the benchmark (of > course, this is not meant as a proposed fix, just as a demonstration > where t

[Bug demangler/67268] demangler does not elide empty argument pack in operator()

2025-07-04 Thread hmeyer.eu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67268 Henning Meyer changed: What|Removed |Added CC||hmeyer.eu at gmail dot com --- Comment #

[Bug jit/120960] jit: The static initialization of builtin_data uses flag_openacc and flag_openmp (which have not been set yet)

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

[Bug c++/120962] " XXX references internal linkage entity YYY" when compiling a module interface

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120962 Andrew Pinski changed: What|Removed |Added Blocks||103524 --- Comment #1 from Andrew Pinsk

[Bug target/120941] [16 Regression] 24-40% slowdown of 519.lbm_r on Zen2 and 470.lbm on Zen5 since r16-1644-gaba3b9d3a48a07

2025-07-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120941 --- Comment #9 from H.J. Lu --- Created attachment 61803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61803&action=edit A patch Please try this.

[Bug c++/120962] " XXX references internal linkage entity YYY" when compiling a module interface

2025-07-04 Thread markus.parker at arcor dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120962 --- Comment #2 from Markus --- I would have tried a newer version if I had had easy access to it. The Alpine distro does not provide newer packages, yet. What I could try was clang, which compiled the file without any errors.

[Bug c++/37590] g++ should emit different debug info for variable's type

2025-07-04 Thread hmeyer.eu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37590 Henning Meyer changed: What|Removed |Added CC||hmeyer.eu at gmail dot com --- Comment #

[Bug tree-optimization/120952] GCC fails to optimize division to shift when divisor is non-constant power of two

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120952 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Severity|normal

[Bug target/120782] RISC-V: vector-strict-align not working for spec17 521 ref size

2025-07-04 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120782 --- Comment #5 from Robin Dapp --- I tried reproducing this with a recent trunk (r16-1965-gc512c9090f52e7) but didn't see the exact code sequence. wrf also ran to completion on the Banana Pi. Did you use a stock GCC 15.1 or a specific commit?

[Bug other/120963] New: Missed optimization of (a > b ? a - b : 0) pattern

2025-07-04 Thread Explorer09 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120963 Bug ID: 120963 Summary: Missed optimization of (a > b ? a - b : 0) pattern Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug testsuite/120859] FAIL: gcc.dg/tree-prof/afdo-crossmodule-1b.c compilation

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

[Bug tree-optimization/120951] [16 regression] error: gimple cond condition cannot throw

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 --- Comment #9 from Andrew Pinski --- Created attachment 61804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61804&action=edit V2 of the patch ok, so as I originally was going to do before I thought changing EQ_EXPR over to ORDERED_EXPR

[Bug c++/120953] New: Accepts invalid with range for

2025-07-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120953 Bug ID: 120953 Summary: Accepts invalid with range for Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Ass

[Bug c++/120954] New: [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 Bug ID: 120954 Summary: [15 Regression] False positive -Warray-bounds=2 warning Product: gcc Version: 15.1.1 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/120955] New: 50 % increase in data segment size on avr-gcc for -Os

2025-07-04 Thread fiesh at zefix dot tv via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120955 Bug ID: 120955 Summary: 50 % increase in data segment size on avr-gcc for -Os Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/120954] [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #1 from Sam James --- (In reply to Franz Sirl from comment #0) > But this time I'm not very confident about that. Compiling this a C code > doesn't warn. It does for me, and it warns before Jakub's change.

[Bug c++/120954] [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #2 from Sam James --- (In reply to Franz Sirl from comment #0) > This small code snippet warns with r15-9921 (r15-9866 was still OK): > r15-9873-g06a26f4d643a5d warns for me. ``` $ git shortlog r15-9866-g8d600e98004b63..r15-9873-g

[Bug c++/120955] [15/16 Regression] 50 % increase in data segment size on avr-gcc for -Os

2025-07-04 Thread fiesh at zefix dot tv via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120955 --- Comment #1 from fiesh at zefix dot tv --- 12de1942a0a is r15-6052-g12de1942a0a673

[Bug c++/120953] Accepts invalid with range for

2025-07-04 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120953 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug other/120963] Missed optimization of (a > b ? a - b : 0) pattern

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120963 Andrew Pinski changed: What|Removed |Added Depends on||3507 --- Comment #1 from Andrew Pinski

[Bug libstdc++/119742] [C++26] Implement P2697R1, Interfacing bitset with string_view

2025-07-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119742 --- Comment #4 from Jonathan Wakely --- I've just noticed that the debug mode bitset in needs the new constructor added. make check RUNTESTFLAGS="conformance.exp=*bitset* --target_board=unix/-D_GLIBCXX_DEBUG" FAIL: 20_util/bitset/cons/string_

[Bug c++/84009] No diagnostic issued if the decl-specifier in the decl-specifier-seq of a for-range-declaration is register, static,or thread_local

2025-07-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84009 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug target/118241] RISC-V ICE: internal compiler error: in int_mode_for_mode, at stor-layout.cc:407 caused by prefetch instructions

2025-07-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118241 --- Comment #12 from GCC Commits --- The master branch has been updated by Vineet Gupta : https://gcc.gnu.org/g:f2a3ab7ebf3c40da77f54e8329272fe048ec48a6 commit r16-2032-gf2a3ab7ebf3c40da77f54e8329272fe048ec48a6 Author: Vineet Gupta Date: Fr

[Bug c++/120961] ICE on C++20 module when compiling Eigen.

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120961 --- Comment #2 from Andrew Pinski --- Created attachment 61801 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61801&action=edit testcase compressed using xz xz is able to compress this below the limit.

[Bug target/120941] [16 Regression] 24-40% slowdown of 519.lbm_r on Zen2 and 470.lbm on Zen5 since r16-1644-gaba3b9d3a48a07

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120941 Filip Kastl changed: What|Removed |Added Summary|[16 Regression] 24-40% |[16 Regression] 24-40%

[Bug target/118891] [14/15/16 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-07-04 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 Richard Sandiford changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassig

[Bug target/120782] RISC-V: vector-strict-align not working for spec17 521 ref size

2025-07-04 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120782 --- Comment #6 from Li Pan --- (In reply to Robin Dapp from comment #5) > I tried reproducing this with a recent trunk (r16-1965-gc512c9090f52e7) but > didn't see the exact code sequence. wrf also ran to completion on the Banana > Pi. > > Did y

[Bug tree-optimization/119965] [16 Regression] 531.deepsjeng_r binary is 50% bigger since r16-116-gcfb04e0de6aa43

2025-07-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119965 --- Comment #2 from Jan Hubicka --- This is likely ipa-cp heuristics issue which decides to clone now but after all the benefits are not really visible.

[Bug tree-optimization/119965] [16 Regression] 531.deepsjeng_r binary is 50% bigger since r16-116-gcfb04e0de6aa43

2025-07-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119965 --- Comment #3 from Jan Hubicka --- There is also 3% performance regressions that got lost on transition to ne PR https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=958.387.0

[Bug tree-optimization/120948] Cannot detect potential division-by-zero when numerator is 1 and denominator is variable

2025-07-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120948 --- Comment #4 from Jakub Jelinek --- (In reply to Richard Biener from comment #1) > So you say that we fail to optimize > > int foo (unsigned x) > { > unsigned tem = 1/x; > if (x == 0) > return 5; > return tem; > } > > because we tu

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-04 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 --- Comment #21 from Siddhesh Poyarekar --- (In reply to Richard Biener from comment #20) > so for > > _1 = _2; > > we merge from _2. For > > _1 = *_2; > > we _also_ merge from _2. But those are semantically not the same! Yes, it only "

[Bug c++/120955] [15/16 Regression] 50 % increase in data segment size on avr-gcc for -Os

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120955 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.2 Status|UNCONFIRMED

[Bug c++/120953] Accepts invalid with range for

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

[Bug c++/84009] No diagnostic issued if the decl-specifier in the decl-specifier-seq of a for-range-declaration is register, static,or thread_local

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84009 Andrew Pinski changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/120951] [16 regression] error: gimple cond condition cannot throw

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Better reduced testcase: > ``` > double f(double r, double i) { > return__builtin_fmod(r, i); > } > ``` ``` double f(double r, double i) { return __builtin

[Bug tree-optimization/120951] [16 regression] error: gimple cond condition cannot throw

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 --- Comment #4 from Andrew Pinski --- Better reduced testcase: ``` double f(double r, double i) { return__builtin_fmod(r, i); } ```

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 --- Comment #20 from Richard Biener --- (In reply to qinzhao from comment #16) > (In reply to Siddhesh Poyarekar from comment #12) > > This is interesting here's the IR dump right after objsz: > > > > The key bit is: > > > > map2_4 = __built

[Bug c/120951] New: error: gimple cond condition cannot throw

2025-07-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 Bug ID: 120951 Summary: error: gimple cond condition cannot throw Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c/120951] error: gimple cond condition cannot throw

2025-07-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 David Binderman changed: What|Removed |Added Keywords||needs-bisection --- Comment #1 from D

[Bug tree-optimization/120916] debug line info for IV increment is lost

2025-07-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120916 --- Comment #7 from Jan Hubicka --- LLVM also gets execution counts wrong, just the different (and less harmful) way: test:270773509:9780 1: 9116 2: 51984 for ( 4: 51984 iThis Inner Loop Header: Depth=1 .loc0 10 15

[Bug tree-optimization/120948] Cannot detect potential division-by-zero when numerator is 1 and denominator is variable

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

[Bug tree-optimization/120944] [12/13/14/15/16 Regression] Incorrect optimization with accessing a volatile structure member

2025-07-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120944 --- Comment #3 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:6ed1e2ae1a742d859c2dd74c9e7cebdd3618e8b1 commit r16-2019-g6ed1e2ae1a742d859c2dd74c9e7cebdd3618e8b1 Author: Richard Biener Date:

[Bug tree-optimization/120944] [12/13/14/15 Regression] Incorrect optimization with accessing a volatile structure member

2025-07-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120944 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Known to work|

[Bug target/120956] New: [16 Regression] 6% slowdown of 503.bwaves_r since

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120956 Bug ID: 120956 Summary: [16 Regression] 6% slowdown of 503.bwaves_r since Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug target/120956] [16 Regression] 6% slowdown of 503.bwaves_r since

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120956 Filip Kastl changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/120575] [15/16 Regression] ICE: in cp_parser_abort_tentative_parse, at cp/parser.cc:36574

2025-07-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120575 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:35d6f55f7d6655a8683b45286283d44674fa997e commit r16-2024-g35d6f55f7d6655a8683b45286283d44674fa997e Author: Jason Merrill Date: Fr

[Bug c++/116064] [15 Regression] SPEC 2017 523.xalancbmk_r failed to build

2025-07-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064 --- Comment #16 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:35d6f55f7d6655a8683b45286283d44674fa997e commit r16-2024-g35d6f55f7d6655a8683b45286283d44674fa997e Author: Jason Merrill Date: F

[Bug c++/116064] [15 Regression] SPEC 2017 523.xalancbmk_r failed to build

2025-07-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064 --- Comment #17 from GCC Commits --- The releases/gcc-15 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:799dfe7c5f638a645d33b47750f797b3fb87329b commit r15-9927-g799dfe7c5f638a645d33b47750f797b3fb87329b Author: Jason Merrill

[Bug c++/120575] [15/16 Regression] ICE: in cp_parser_abort_tentative_parse, at cp/parser.cc:36574

2025-07-04 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120575 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/120948] Cannot detect potential division-by-zero when numerator is 1 and denominator is variable

2025-07-04 Thread h13958451065 at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120948 --- Comment #2 from huyubiao --- (In reply to Richard Biener from comment #1) > So you say that we fail to optimize > > int foo (unsigned x) > { > unsigned tem = 1/x; > if (x == 0) > return 5; > return tem; > } > > because we turn 1/

[Bug middle-end/120951] [16 regression] error: gimple cond condition cannot throw

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-07-04 Keywords|needs-bis

[Bug tree-optimization/120951] [16 regression] error: gimple cond condition cannot throw

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

[Bug target/120959] New: [16 Regression] 9% slowdown of 549.fotonik3d_r on Zen5 since r16-1645-g309dbcea2cabb3

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120959 Bug ID: 120959 Summary: [16 Regression] 9% slowdown of 549.fotonik3d_r on Zen5 since r16-1645-g309dbcea2cabb3 Product: gcc Version: 16.0 Status: UNCONFIRMED Ke

[Bug target/120959] [16 Regression] 9% slowdown of 549.fotonik3d_r on Zen5 since r16-1645-g309dbcea2cabb3

2025-07-04 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120959 Tamar Christina changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tnfchris at gcc dot gnu.org -

[Bug target/120957] [16 Regression] 6-9% slowdown of 503.bwaves_r on Zen{2,3} since r16-1647-gc06979ff957485

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120957 Filip Kastl changed: What|Removed |Added Target Milestone|--- |16.0

[Bug target/120957] New: [16 Regression] 6-9% slowdown of 503.bwaves_r on Zen{2,3} since r16-1647-gc06979ff957485

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120957 Bug ID: 120957 Summary: [16 Regression] 6-9% slowdown of 503.bwaves_r on Zen{2,3} since r16-1647-gc06979ff957485 Product: gcc Version: 16.0 Status: UNCONFIRMED

[Bug fortran/120958] New: tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-04 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 Bug ID: 120958 Summary: tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec Product: gcc Version: 15.1.0 Status: UNCONFIRMED

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-04 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 --- Comment #1 from Martin Jambor --- And indeed the following hack in Fortran FE "fixes" the benchmark (of course, this is not meant as a proposed fix, just as a demonstration where the problem is): diff --git a/gcc/fortran/trans-types.cc b/gc

[Bug c/118948] [15/16 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in tree_single_nonnegative_warnv_p, at fold-const.cc:14878 since r15-328

2025-07-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118948 --- Comment #7 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:f24015a4c2ca6d6fbbf7090004b3a83081f18f03 commit r16-2026-gf24015a4c2ca6d6fbbf7090004b3a83081f18f03 Author: Andrew Pinski Date: Th

[Bug c/118948] [15/16 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in tree_single_nonnegative_warnv_p, at fold-const.cc:14878 since r15-328

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

[Bug target/117850] GCC emits DUP, UMULL instead of UMULL2

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117850 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #7 from Andrew Pin

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-04 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 kargls at comcast dot net changed: What|Removed |Added CC||kargls at comcast dot net --

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread holger--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #27 from Holger Hoffstätte --- If I add lifetime-extending printfs to QStringTokenizerBase::next() like this: --- qstringtokenizer.h 2025-07-04 17:56:28.523676630 +0200 +++ qstringtokenizer-printf.h 2025-07-04 17:56:03.998840901

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug target/120957] [16 Regression] 6-9% slowdown of 503.bwaves_r on Zen{2,3} since r16-1647-gc06979ff957485

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120957 --- Comment #1 from Filip Kastl --- The slowdown is also present on 410.bwaves from 2006 SPEC https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=467.40.0 https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=301.40.0 again, both on Zen2

[Bug target/120943] [16 Regression] 5% slowdown of 527.cam4_r on Zen{4,5} since r16-1643-gd073bb6cfc219d

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120943 --- Comment #3 from Filip Kastl --- (In reply to H.J. Lu from comment #1) > Please try: > > https://patchwork.sourceware.org/project/gcc/list/?series=48886 Yes, if I apply this patch, the slowdown goes away

[Bug tree-optimization/120951] [16 regression] error: gimple cond condition cannot throw

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 --- Comment #6 from Andrew Pinski --- use_internal_fn has: ``` /* Skip the call if LHS == LHS. If we reach here, EDOM is the only valid errno value and it is used iff the result is NaN. */ conds.quick_push (gimple_build_co

[Bug libstdc++/118681] [C++17] unsynchronized_pool_resource may fail to respect alignment

2025-07-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118681 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Targ

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-04 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 --- Comment #3 from Martin Jambor --- SRA is "Scalar Replacement of Aggregates" pass. It is one of our optimization passes which can split up aggregates into scalar components and thus allow further optimizations. To "escape" means that the ad

[Bug tree-optimization/120951] [16 regression] error: gimple cond condition cannot throw

2025-07-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951 --- Comment #7 from Andrew Pinski --- Created attachment 61800 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61800&action=edit Patch which I am testing

[Bug jit/120960] New: jit: The static initialization of builtin_data uses flag_openacc and flag_openmp (which have not been set yet)

2025-07-04 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120960 Bug ID: 120960 Summary: jit: The static initialization of builtin_data uses flag_openacc and flag_openmp (which have not been set yet) Product: gcc Version: 15.1

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-04 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 --- Comment #4 from rguenther at suse dot de --- > Am 04.07.2025 um 18:18 schrieb jamborm at gcc dot gnu.org > : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 > > --- Comment #3 from Martin Jambor --- > SRA is "Scalar Replacement

[Bug target/120941] [16 Regression] 24-40% slowdown of 519.lbm_r on Zen2 since r16-1644-gaba3b9d3a48a07

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120941 --- Comment #7 from Filip Kastl --- >(In reply to Filip Kastl from comment #0) > there was a 40% exec time slowdown (on another machine I measured only 24%) > of 527.cam4_r SPEC 2017 benchmark when run with -Ofast -march=native -flto and this s

[Bug target/120941] [16 Regression] 10-40% slowdown of 519.lbm_r on Zen2 since r16-1644-gaba3b9d3a48a07

2025-07-04 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120941 Filip Kastl changed: What|Removed |Added Summary|[16 Regression] 10-40% |[16 Regression] 10-40%

[Bug c++/120954] [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #3 from Sam James --- 15.1: https://godbolt.org/z/3bM5bEY7b 14.3: https://godbolt.org/z/fahjWYEfr 13.4: https://godbolt.org/z/KK3bh5Gz4 12.4: https://godbolt.org/z/fM3c913qh However, when compiling it as C++, I only see it on trunk

  1   2   >