[Bug target/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread pietro.gcc at sociotechnical dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #3 from pietro --- It looks like it's a more general GCC issue. The prefetch gets moved on both x86_64 and aarch64 on GCC, but not on clang: https://godbolt.org/z/Ycjr7Tq8b > It looks like the problem can be "fixed" by inserting a

[Bug testsuite/116862] New: [15 regression] gfortran.dg/initialization_25.f90 fails starting with r15-3890-g34bf6aa41ba539

2024-09-26 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116862 Bug ID: 116862 Summary: [15 regression] gfortran.dg/initialization_25.f90 fails starting with r15-3890-g34bf6aa41ba539 Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug libstdc++/50871] libstdc++ should be built with -Wpedantic and/or -Wsystem-headers

2024-09-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50871 --- Comment #19 from Sam James --- FTR: * r15-3714-gd3a7302ec5985a * r15-3859-g63a598deb0c9fc

[Bug testsuite/116862] [15 regression] gfortran.dg/initialization_25.f90 fails starting with r15-3890-g34bf6aa41ba539

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

[Bug libstdc++/116859] [15 Regression] Bootstrap broken on FreeBSD due to _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC

2024-09-26 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116859 --- Comment #7 from kargls at comcast dot net --- (In reply to kargls from comment #6) > (In reply to Jakub Jelinek from comment #5) > > Created attachment 59203 [details] > > gcc15-pr116859.patch > > > > Here it is in patch form. But I can't r

[Bug fortran/116858] gfortran.dg/initialization_25.f90 test failure (exposed by r15-3890-g34bf6aa41ba539)

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

[Bug fortran/116858] gfortran.dg/initialization_25.f90 test failure (exposed by r15-3890-g34bf6aa41ba539)

2024-09-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116858 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|

[Bug fortran/116858] gfortran.dg/initialization_25.f90 test failure (exposed by r15-3890-g34bf6aa41ba539)

2024-09-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116858 --- Comment #6 from Sam James --- Will do.

[Bug gcov-profile/116743] [12/13/14/15 regression] Commit r12-5817-g3d9e6767939e96 causes ~10% perf regression w AutoFDO

2024-09-26 Thread rvmallad at amazon dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116743 --- Comment #9 from Rama Malladi --- Created attachment 59206 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59206&action=edit reporducer for function inlining issue This is a reproducer to show GCC 12.3.0 inlining issue w AutoFDO due to

[Bug libstdc++/116859] [15 Regression] Bootstrap broken on FreeBSD due to _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC

2024-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116859 --- Comment #8 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:e23e5370d5855fc18b9f6f3fb680fcd2971e7a79 commit r15-3904-ge23e5370d5855fc18b9f6f3fb680fcd2971e7a79 Author: Jakub Jelinek Date: T

[Bug libstdc++/112808] Consider enabling _GLIBCXX_ASSERTIONS checks by default for debug builds

2024-09-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112808 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #11 from Richard Biener --- Yep note we now ggc_free gphi nodes when calling remove_phi_node (, true) (and there are many incoming edges).

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 --- Comment #5 from Richard Biener --- Note some older GCC had issues with misaligned accesses but IIRC Bernd E. fixed those.

[Bug middle-end/116860] [15 Regression] New test case gcc.dg/tree-ssa/fold-xor-and-or.c from r15-3866-ga88d6c6d777ad7 fails

2024-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116860 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0 Summary|New test case

[Bug libstdc++/116859] [15 Regression] Bootstrap broken on FreeBSD due to _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC

2024-09-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116859 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/55212] [SH] Switch to LRA

2024-09-26 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #331 from John Paul Adrian Glaubitz --- I found another failure when building webkit2gtk with the branch sh-lra-take3: /usr/bin/g++-15 -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DGETTEXT_PACKAGE=\"WebKitGTK-4.1\"

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-26 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 Uroš Bizjak changed: What|Removed |Added CC||Ganesh.Gopalasubramanian@am

[Bug libstdc++/113578] Incorrect sign printed for -nan on RISC-V

2024-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113578 --- Comment #15 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:ee9f00606f184be37d6f9df74cc7e222157c7fee commit r15-3903-gee9f00606f184be37d6f9df74cc7e222157c7fee Author: Jonathan Wakely Date

[Bug libstdc++/113578] Incorrect sign printed for -nan on RISC-V

2024-09-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113578 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #8 from Li Pan --- [0] psi ptr 0x7e2f8f00c000 [1] psi ptr 0x7e2f8f00c400 [2] psi ptr 0xa5a5a5a5a5a5a5a5 <=== Invalid. Looks some gsi info is polluted during matching.

[Bug target/56592] [SH] Add vector ABI

2024-09-26 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56592 --- Comment #5 from Oleg Endo --- (In reply to Oleg Endo from comment #0) > In order to > minimize mode switches the function signature can be taken into account when > deciding the default FPU precision for a particular function. E.g. when a >

[Bug target/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #6 from Oleg Endo --- (In reply to pietro from comment #5) > Created attachment 59210 [details] > Add a blockage instruction before the prefetch > > I did a few tests on sh4-elf and adding a blockage before the prefetch keeps > the

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #9 from Andrew Pinski --- (In reply to Li Pan from comment #8) > [0] psi ptr 0x7e2f8f00c000 > [1] psi ptr 0x7e2f8f00c400 > [2] psi ptr 0xa5a5a5a5a5a5a5a5 <=== Invalid. > > Looks some gsi info is polluted during matching. [2] is a

[Bug gcov-profile/116743] [12/13/14/15 regression] Commit r12-5817-g3d9e6767939e96 causes ~10% perf regression w AutoFDO

2024-09-26 Thread rvmallad at amazon dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116743 --- Comment #10 from Rama Malladi --- Created attachment 59207 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59207&action=edit reproducer for funtion inlining issue - source This is a reproducer to show GCC 12.3.0 inlining issue w AutoFD

[Bug libstdc++/116847] [15 regression] r15-3859-g63a598deb0c9fc causes many excess errors

2024-09-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116847 --- Comment #14 from Jason Merrill --- (In reply to Jakub Jelinek from comment #13) > Created attachment 59202 [details] > gcc15-pr116847-3.patch > > This seems to work on quick testing (just pch.exp so far). > > > I was thinking just history,

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-26 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #5 from Thiago Macieira --- (In reply to Andrew Pinski from comment #4) > > Since the BIOS and/or OS can disable it, > > From the way I understand it, even things like avx can be turned on/off too. > Does that mean gcc should disabl

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-26 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #6 from Thiago Macieira --- (In reply to Thiago Macieira from comment #5) > The argument was that -march=bdver4 should not imply -mrdrnd, the same way > that we had to fix -march=westmere to -march=haswell not to imply -maes: not > a

[Bug target/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #4 from Oleg Endo --- (In reply to pietro from comment #3) > It looks like it's a more general GCC issue. The prefetch gets moved on both > x86_64 and aarch64 on GCC, but not on clang: https://godbolt.org/z/Ycjr7Tq8b > > > It looks

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #7 from Li Pan --- Thanks all for reducing, reproduced from myside and will take a look soon.

[Bug target/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread pietro.gcc at sociotechnical dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #5 from pietro --- Created attachment 59210 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59210&action=edit Add a blockage instruction before the prefetch I did a few tests on sh4-elf and adding a blockage before the prefetch

[Bug tree-optimization/111276] rewrite_to_defined_overflow rewrites already defined code

2024-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111276 --- Comment #5 from Andrew Pinski --- Created attachment 59211 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59211&action=edit Patch but ... It causes gcc.c-torture/execute/pr111422.c to fail. See https://gcc.gnu.org/pipermail/gcc-patche

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

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

[Bug tree-optimization/111276] rewrite_to_defined_overflow rewrites already defined code

2024-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111276 --- Comment #4 from Andrew Pinski --- (In reply to Richard Biener from comment #3) > I think the API expects to be guarded to only be called on stmts that > require rewriting. That makes sense, so adding gimple_stmt_with_undefined_signed_overfl

[Bug rtl-optimization/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #9 from Oleg Endo --- (In reply to Andrew Pinski from comment #8) > See > https://gcc.gnu.org/legacy-ml/gcc-patches/2009-05/msg01233.html > and > https://gcc.gnu.org/legacy-ml/gcc-patches/2009-09/msg00130.html Nice find! Yeah, same

[Bug rtl-optimization/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 Andrew Pinski changed: What|Removed |Added Component|target |rtl-optimization CC|

[Bug rtl-optimization/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread pietro.gcc at sociotechnical dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #10 from pietro --- (In reply to Oleg Endo from comment #6) > Thanks! Can you post that patch to the gcc-patches mailing list? It's more > likely to receive attention and discussion -- which is needed, since this is > outside of SH

[Bug target/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #7 from Andrew Pinski --- There was a scheduler change I thought which prevented moving prefetches across load/stores but I can't find it for some reason. Maybe it didn't make it in.

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-26 Thread ipsum.te.futue at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #8 from Anonymous --- (In reply to Thiago Macieira from comment #5) > This has nothing to do with -march=native. In fact, for the Gentoo people > who are using -march=native, everything is fine because __RDRND__ is *not* > defined (

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-26 Thread ipsum.te.futue at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #7 from Anonymous --- (In reply to Thiago Macieira from comment #5) > This has nothing to do with -march=native. In fact, for the Gentoo people > who are using -march=native, everything is fine because __RDRND__ is *not* > defined (

[Bug c++/116731] Incorrect behavior of -Wrange-loop-construct in GCC 14

2024-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116731 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:6ac4e2f4b2ca9980670e7d3815a9140730df1005 commit r15-3905-g6ac4e2f4b2ca9980670e7d3815a9140730df1005 Author: Marek Polacek Date: Tu

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #6 from Sam James --- Created attachment 59209 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59209&action=edit reduced-again.ii cvise gave me this when I asked it to try harder but it's still pretty horrible. Yours is a lot

[Bug gcov-profile/116743] [12/13/14/15 regression] Commit r12-5817-g3d9e6767939e96 causes ~10% perf regression w AutoFDO

2024-09-26 Thread rvmallad at amazon dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116743 --- Comment #8 from Rama Malladi --- Here attached is a compilation unit extracted from `MySQL` repo (https://github.com/mysql/mysql-server/blob/trunk/storage/innobase/handler/ha_innodb.cc) which shows the impact of commit `3d9e6767939e` on func

[Bug libstdc++/116847] [15 regression] r15-3859-g63a598deb0c9fc causes many excess errors

2024-09-26 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116847 --- Comment #15 from David Malcolm --- Ouch, sorry about this. The -3 patch looks reasonable to me.

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #4 from Andrew Pinski --- Created attachment 59208 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59208&action=edit Best I could get it

[Bug libstdc++/115126] TU-local entity exposures in libstdc++

2024-09-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115126 --- Comment #3 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:6a4d1c374eed177eceb12a50f3b25bd20f8b347a commit r15-3906-g6a4d1c374eed177eceb12a50f3b25bd20f8b347a Author: Nathaniel Shead Date:

[Bug rtl-optimization/116713] [SH] __builtin_prefetch can't be used for store queues

2024-09-26 Thread pietro.gcc at sociotechnical dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116713 --- Comment #11 from pietro --- (In reply to Oleg Endo from comment #9) > (In reply to Andrew Pinski from comment #8) > > See > > https://gcc.gnu.org/legacy-ml/gcc-patches/2009-05/msg01233.html > > and > > https://gcc.gnu.org/legacy-ml/gcc-patch

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-26 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #10 from Li Pan --- (In reply to Andrew Pinski from comment #9) > (In reply to Li Pan from comment #8) > > [0] psi ptr 0x7e2f8f00c000 > > [1] psi ptr 0x7e2f8f00c400 > > [2] psi ptr 0xa5a5a5a5a5a5a5a5 <=== Invalid. > > > > Looks som

<    1   2