[Bug preprocessor/118168] -Wmisleading-indentation causes 10x+ overhead or higher (visible on mypy-1.13.0)

2024-12-22 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118168 --- Comment #1 from Andi Kleen --- Did you attach the correct file? I get mypy.c:9524:5: error: implicit declaration of function ‘__builtin_c23_va_start’; did you mean ‘__builtin_ms_va_start’? [-Wimplicit-function-declaration] 9524 | __bu

[Bug preprocessor/118168] -Wmisleading-indentation causes 10x+ overhead or higher (visible on mypy-1.13.0)

2024-12-22 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118168 --- Comment #3 from Andi Kleen --- never mind, i had an old compiler.

[Bug preprocessor/118168] -Wmisleading-indentation causes 10x+ overhead or higher (visible on mypy-1.13.0)

2024-12-22 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118168 --- Comment #8 from Andi Kleen --- Oh actually it's not the beginning, but some point file size / 100 (the scaled down line cache)

[Bug tree-optimization/106883] SLSR may generate signed wrap

2025-01-09 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106883 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug target/118373] gcc-14.2 kernel panic on alderlake cpus

2025-01-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118373 --- Comment #13 from Andi Kleen --- If it immediately reboots (and you didn't use panic=XXX to reboot quickly) then it might be a triple fault. These are unfortunately harder to debug because they don't produce any console output in a native set

[Bug target/118373] gcc-14.2 kernel panic on alderlake cpus

2025-01-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118373 --- Comment #8 from Andi Kleen --- Classical "make photo of panic" screen method should be enough. The critical part is the Code: line that shows the bad instruction, and the name of the function.

[Bug gcov-profile/118442] -fprofile-generate wrongly adds instrumentation after musttail call

2025-01-18 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118442 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug testsuite/116080] [15 regression] New tests from r15-2233-g8d1af8f904a0c0 fail

2025-01-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 --- Comment #26 from Andi Kleen --- It's quite difficult to express the rules for tail calls for all targets in dejagnu effective rules. Currently we're a bit too aggressive for excluding on Power, but nobody has the energy to reopen it again,

[Bug gcov-profile/118442] -fprofile-generate wrongly adds instrumentation after musttail call

2025-01-18 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118442 --- Comment #4 from Andi Kleen --- The problem seems to be that the call BB has an extra fallthrough edge to the basic block containing the return. Perhaps it should just have an EXIT edge or not split the RETURN? (not sure if that is legal in

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #6 from Andi Kleen --- The C test case needs to use constexpr too. #define DATA_SIZE 1024 static constexpr int TO_DATA_INDEX[DATA_SIZE] = {}; bool foo(int* data, unsigned char first_idx) { int second_idx = TO_DATA_INDEX[first_idx]

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #9 from Andi Kleen --- With constexpr you are guaranteed an visible initializer. const would potentially require messing with IPA and might impossible.

[Bug target/107827] switch table compression could shrink large tables (but missing), testcase cerf-lib

2025-01-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107827 --- Comment #7 from Andi Kleen --- We need a validator for x86 assembler length indications in the x86 machine descriptions, then it could be easily enabled. This will require patching gas at least for test suite runs.

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-25 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug target/95834] x86 immediates --- some redundant

2025-01-13 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95834 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug tree-optimization/118468] New: vectorizer: extra phi blocks vectorization of if

2025-01-13 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118468 Bug ID: 118468 Summary: vectorizer: extra phi blocks vectorization of if Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/118469] ICE in lexical parser if too many open parentheses

2025-01-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118469 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug tree-optimization/118468] vectorizer: if conversion does not handle early exit well

2025-01-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118468 Andi Kleen changed: What|Removed |Added Summary|vectorizer: extra phi |vectorizer: if conversion

[Bug debug/118198] GCC wrong debug information bug

2024-12-31 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118198 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug rtl-optimization/118288] New: Using new crc builtins on i386 leads to ICE

2025-01-03 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118288 Bug ID: 118288 Summary: Using new crc builtins on i386 leads to ICE Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-

[Bug target/118289] New: Using new crc builtins leads to ICE on x86_64

2025-01-03 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118289 Bug ID: 118289 Summary: Using new crc builtins leads to ICE on x86_64 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ta

[Bug target/118289] Using new crc builtins leads to ICE on x86_64

2025-01-03 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118289 --- Comment #2 from Andi Kleen --- Yes sorry for the dup.

[Bug target/113149] Function multiversioning prefers arch=x86-64-v3 to actual processors

2024-12-25 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113149 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug middle-end/118050] [15 Regression] timevar.cc:163:18: error: 'CLOCK_MONOTONIC' was not declared in this scope

2024-12-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118050 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug target/118288] Using new crc builtins on i386 leads to ICE

2025-02-15 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118288 Andi Kleen changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug preprocessor/116087] Add optional warning for too large macro expansion

2025-03-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116087 --- Comment #4 from Andi Kleen --- After some digging into the code: libcpp already keeps track of how many tokens get expanded in a global. This is even accessible for through linemap's statistics dumped on -fmem-report, but only as a averaged

[Bug c/116545] Support old style statement attributes

2025-03-12 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116545 --- Comment #2 from Andi Kleen --- It's too late to fix gcc 15, you'll just have to release an update. Sorry.

[Bug c/116545] Support old style statement attributes

2025-03-12 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116545 --- Comment #5 from Andi Kleen --- Something like this untested patch would likely also fix the test case: diff --git a/gcc/c-family/c-lex.cc b/gcc/c-family/c-lex.cc index e450c9a57f0..e1f78431210 100644 --- a/gcc/c-family/c-lex.cc +++ b/gcc/c

[Bug ipa/119376] [15 Regression] musttail does not get dropped after inlining?

2025-03-19 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119376 --- Comment #6 from Andi Kleen --- For the gcc 15 release we could just drop the clang:: support, so it becomes opt-in? (have to use gnu::musttail)

[Bug gcov-profile/119375] Some autofdo test cases fail

2025-03-20 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119375 --- Comment #2 from Andi Kleen --- I already had that commit in my tree, since it was already on trunk. Or did you think of something different? commit cfdb961588ba318a78e995d2e2cde43130acd993 Author: Alex Coplan Date: Tue Nov 26 17:48:14 20

[Bug gcov-profile/119375] Some autofdo test cases fail

2025-03-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119375 --- Comment #4 from Andi Kleen --- I applied Alex's patches, but had to resolve one conflict. Unfortunately made no difference in the test results.

[Bug ipa/119376] [15 Regression] musttail does not get dropped after inlining?

2025-03-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119376 --- Comment #18 from Andi Kleen --- Yes the multiple passes are a problem. They also do redundant work I believe. But it would be easier to just check opt_tailcalls I think instead of adding a new variable. >Plus, given that tail_calls pass use

[Bug gcov-profile/119365] New: -fprofile-correction not covered by test suite

2025-03-19 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119365 Bug ID: 119365 Summary: -fprofile-correction not covered by test suite Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: g

[Bug gcov-profile/119375] New: Some autofdo test cases fail

2025-03-19 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119375 Bug ID: 119375 Summary: Some autofdo test cases fail Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile

[Bug c++/64500] push_to_top_level() shows up high during build of modern C++ code

2025-03-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64500 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug driver/119727] -freport-bug vs. ASLR

2025-04-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119727 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug driver/119727] -freport-bug vs. ASLR

2025-04-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119727 --- Comment #4 from Andi Kleen --- Yes but on the OS where you know it it's better to do both to make the runs more reproducible. There are also bugs that don't reproduce on ASLR

[Bug middle-end/114563] ggc_internal_alloc is slow

2025-03-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 Andi Kleen changed: What|Removed |Added Attachment #60907|0 |1 is obsolete|

[Bug middle-end/114563] ggc_internal_alloc is slow

2025-03-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 --- Comment #10 from Andi Kleen --- It doesn't really help for the PR119387 test case, perhaps not surprising because it optimizes freeing not allocation: Summary ./gcc/cc1plus-opt -w -std=c++20 ~/gcc/git/tsrc/119387-formatted.ii -quiet ran

[Bug middle-end/114563] ggc_internal_alloc is slow

2025-03-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114563 --- Comment #6 from Andi Kleen --- Created attachment 60907 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60907&action=edit patch for multiple free lists in ggc-page I saw it in some profile, but later trying didn't help anymore. Needs

[Bug middle-end/119482] slow compilation on ladybird interpreter

2025-04-02 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119482 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug sanitizer/107048] GCC lacks -fsanitize=kcfi

2025-03-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107048 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug ipa/119955] New: ipa-locality-cloning.cc has poor test coverage

2025-04-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119955 Bug ID: 119955 Summary: ipa-locality-cloning.cc has poor test coverage Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: i

[Bug lto/119956] New: lockfile / lto-ltrans-cache have poor testing coverage

2025-04-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119956 Bug ID: 119956 Summary: lockfile / lto-ltrans-cache have poor testing coverage Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/119957] New: vtable-verify.cc has poor test coverage

2025-04-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119957 Bug ID: 119957 Summary: vtable-verify.cc has poor test coverage Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/119705] Massive memory use when building Flang (10GB+)

2025-04-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119705 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug gcov-profile/119719] Suitability of gcov for very resource-constrained systems

2025-04-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119719 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug preprocessor/106767] Failure to detect recursive macro calls due to _Pragma(pop_macro)

2025-04-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106767 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

<    1   2