[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-10-05 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 Sergei Trofimovich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #9 from CVS Commits --- The master branch has been updated by Sergei Trofimovich : https://gcc.gnu.org/g:043a6fcbc27f8721301eb2f72a7839f54f393003 commit r14-4421-g043a6fcbc27f8721301eb2f72a7839f54f393003 Author: Sergei Trofimovich

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-28 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #8 from Franz Sirl --- The proposed patch on top of r14-4307 fixes the profiled bootstrap here.

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-27 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #7 from Sergei Trofimovich --- Proposed conservative fix as https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631526.html

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-27 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #6 from Sergei Trofimovich --- Uninitialized value comes from `ipa_merge_profiles()` for our `rule1_same()` alias and `rule1()` functions: // in gcc/ipa-icf.cc: else if (create_alias) { alias->icf_merged = true;

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-27 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #5 from Sergei Trofimovich --- Slightly shorter example that does not rely on inline: // $ cat bug.c __attribute__((noipa)) static void edge(void) {} int p = 0; __attribute__((noinline)) static void rule1(void) { if (p) edge(); }

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-27 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #4 from Sergei Trofimovich --- Looks like identical code folding creates uninitialized profile counters if there are any edges in folded functions. I think cvise did a decent job extracting the reproducer below. Here is a

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-24 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #3

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-24 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org ---

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 Andrew Pinski changed: What|Removed |Added CC||hubicka at gcc dot gnu.org Target