[Bug other/116970] New: -ftime-report -fdiagnostics-format=sarif-file causes ICE

2024-10-04 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116970 Bug ID: 116970 Summary: -ftime-report -fdiagnostics-format=sarif-file causes ICE Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Prio

[Bug tree-optimization/116520] Multiple condition lead to missing vectorization due to missing early break

2024-09-12 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 --- Comment #7 from Andi Kleen --- Tamas also gave this example in PR115866 which shows the same problem: short a[100]; int foo(int n, int counter) { for (int i = 0; i < n; i++) { if (a[i] == 1 || a[i] == 2 || a[i] == 7 || a[i]

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

2024-09-10 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 --- Comment #8 from Andi Kleen --- It doesn't even try to convert the switch because of t.c.179.ifcvt: Can not ifcvt due to multiple exits if (loop->num_nodes > 2) { /* More than one loop exit is too much to handle. */ if (

[Bug target/116599] New: volatile generates unexpected RMW on global

2024-09-04 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116599 Bug ID: 116599 Summary: volatile generates unexpected RMW on global Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: targ

[Bug c/116545] New: Support old style statement attributes

2024-08-30 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116545 Bug ID: 116545 Summary: Support old style statement attributes Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug tree-optimization/116520] Multiple condition lead to missing vectorization due to missing early break

2024-08-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 Andi Kleen changed: What|Removed |Added Summary|incorrect |Multiple condition lead to

[Bug tree-optimization/116520] New: incorrect

2024-08-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 Bug ID: 116520 Summary: incorrect Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assigne

[Bug tree-optimization/116500] gcc.dg/vect/vect-switch-ifcvt-1.c FAILs

2024-08-27 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116500 --- Comment #4 from Andi Kleen --- It seems sparc doesn't support comparisons in vectorization? /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/vect-switch-ifcvt-1.c:13:7: missed: not vectorized: relevant stmt not supported: _13 = _1

[Bug tree-optimization/116500] gcc.dg/vect/vect-switch-ifcvt-1.c FAILs

2024-08-27 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116500 --- Comment #2 from Andi Kleen --- Do you have the dump file from tree-vect? I guess it just doesn't vectorize something here. The right fix is probably to skip it for sparc, or adjust the vect_int target test.

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-27 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 Andi Kleen changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-27 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #21 from Andi Kleen --- As HJ pointed out the change is not needed, the compiler DTRT with no_callee_saved_registers on the callees.

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-27 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #16 from Andi Kleen --- Created attachment 59013 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59013&action=edit test case This test case using Pinski's clobber trick shows the benefit. If you compile with -O2 -mgeneral-regs

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #1 from Andi Kleen --- Disable check for no_caller_saved_registers enforcing non FP. diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc index f79257cc764..cec652cc9e6 100644 --- a/gcc/config/i386/i386-opt

[Bug target/116497] New: Need no_caller_saved_registers with SSE support

2024-08-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 Bug ID: 116497 Summary: Need no_caller_saved_registers with SSE support Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/116285] Compilation of nodejs/v8's v8_base_without_compiler.runtime-temporal.cc is slow

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

[Bug gcov-profile/71672] inlining indirect calls does not work with autofdo

2024-08-12 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71672 Andi Kleen changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/116264] New: Spurious {NF}s in APX code

2024-08-06 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116264 Bug ID: 116264 Summary: Spurious {NF}s in APX code Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assi

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

2024-08-06 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 Andi Kleen changed: What|Removed |Added Attachment #58804|0 |1 is obsolete|

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

2024-08-05 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 --- Comment #13 from Andi Kleen --- Created attachment 58842 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58842&action=edit add a param to limit BBs for dominator pass Maybe something like this patch. It adds a check to disable the dom

[Bug ipa/116191] Avoid inlining in unlikely branches

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

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

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

[Bug tree-optimization/116166] risc-v (last) insn-emit-nn.c build takes hours

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

[Bug testsuite/116163] RFE: add a linting tool for DegaGnu tests

2024-08-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116163 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

2024-07-29 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 Andi Kleen changed: What|Removed |Added Attachment #58761|0 |1 is obsolete|

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

2024-07-29 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 --- Comment #8 from Andi Kleen --- Patch was reverted, it just made a bunch of tests unsupported. problems: - Need unique name for each new test to not confuse the caching - -O0 tests need to use musttail explictly because the musttail pass onl

[Bug c++/116019] Incorrect cannot-tail messages on targets

2024-07-29 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116019 Andi Kleen changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c++/116019] Incorrect cannot-tail messages on targets

2024-07-29 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116019 Andi Kleen changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|FIXED

[Bug tree-optimization/116126] New: vectorize libcpp search_line_fast

2024-07-29 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116126 Bug ID: 116126 Summary: vectorize libcpp search_line_fast Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimi

[Bug c++/116019] Incorrect cannot-tail messages on targets

2024-07-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116019 Andi Kleen changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

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

2024-07-25 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 --- Comment #6 from Andi Kleen --- Created attachment 58761 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58761&action=edit Improve test suite tail call checks This patch should fix it. We must run the test suite tail call probes without

[Bug c/116087] New: Add optional warning for too large macro expansion

2024-07-25 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116087 Bug ID: 116087 Summary: Add optional warning for too large macro expansion Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug other/116080] New tests from r15-2233-g8d1af8f904a0c0 fail

2024-07-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 --- Comment #2 from Andi Kleen --- Also can you upload the whole log files somewhere? I would like to see what the output of check_effective_target_struct_tail_call is. It should have caught some of these problems.

[Bug other/116080] New tests from r15-2233-g8d1af8f904a0c0 fail

2024-07-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 --- Comment #1 from Andi Kleen --- Yes it is known that powerpc (or some flavors of it) has poor tail call support due to ABI limitations. Just need to figure out how to skip the test. I guess it needs a better test in check_effective_target_ta

[Bug target/116014] Missed optimization opportunity: inverted shift count

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

[Bug preprocessor/116047] C preprocessor bug

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

[Bug gcov-profile/83355] autofdo g++.dg/bprob/g++-bprob-1.C FAILS with ICE

2024-07-22 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83355 Andi Kleen changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/116019] New: Incorrect cannot-tail messages on targets

2024-07-20 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116019 Bug ID: 116019 Summary: Incorrect cannot-tail messages on targets Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2024-07-18 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #19 from Andi Kleen --- Middle/back-end parts are in, still need acks for the C/C++ frontend parts

[Bug tree-optimization/115979] Implicitly generated C++ calls stop musttail search early

2024-07-18 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115979 --- Comment #3 from Andi Kleen --- Doing it in the frontend would require some duplication between C/C++ at least? I was thinking to just keep searching if has_mustail is set, but was wary of endless loops walking single basic block precessors.

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-07-18 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 Andi Kleen changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/115979] New: Implicitly generated C++ calls stop musttail search early

2024-07-17 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115979 Bug ID: 115979 Summary: Implicitly generated C++ calls stop musttail search early Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/115813] missing constant evaluation for vectors

2024-07-06 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115813 --- Comment #2 from Andi Kleen --- Is that the right pattern for the example? It looks different Enabling match.pd debugging for the scalar version shows: taddbit.c.034t.ccp1:Applying pattern match.pd:3960, gimple-match.cc:18437 taddbit.c.034t

[Bug tree-optimization/115813] New: missing constant evaluation for vectors

2024-07-06 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115813 Bug ID: 115813 Summary: missing constant evaluation for vectors Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-opt

[Bug tree-optimization/115274] Bogus -Wstringop-overread in SQLite source code

2024-06-29 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274 --- Comment #10 from Andi Kleen --- -fno-thread-jumps fixes it, so it's probably a dup of PR109071 (same problem with a different warning)

[Bug tree-optimization/115274] Bogus -Wstringop-overread in SQLite source code

2024-06-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274 --- Comment #8 from Andi Kleen --- Ah never mind. I ran it with the wrong option with -O3 it shows the warning. Unfortunately the run time is very long so it will be difficult to minimize.

[Bug tree-optimization/115274] Bogus -Wstringop-overread in SQLite source code

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

[Bug preprocessor/79465] infinite #include cycle is not detected

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

[Bug tree-optimization/115344] Missing loop counter reversal

2024-06-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115344 --- Comment #5 from Andi Kleen --- Also the other problem is that doloop optimization is only for known bounds, while generic reversal works for unknown too

[Bug tree-optimization/115344] Missing loop counter reversal

2024-06-24 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115344 --- Comment #4 from Andi Kleen --- Pedantry aside the basic problem is that doloop optimization depends on the target supporting doloop, but the loop reversal would be useful everywhere. So there are two options: add doloop to every target of i

[Bug middle-end/115606] return slot opt prevents tail calls

2024-06-23 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115606 Andi Kleen changed: What|Removed |Added Target|arm-*-* | Status|RESOLVED

[Bug tree-optimization/115344] Missing loop counter reversal

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

[Bug middle-end/115606] New: return slot opt prevents tail calls

2024-06-23 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115606 Bug ID: 115606 Summary: return slot opt prevents tail calls Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-en

[Bug rtl-optimization/63384] scheduler loops on endless fence list with -fselective-scheduling2 on x86

2024-06-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63384 Andi Kleen changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/85099] [meta-bug] selective scheduling issues

2024-06-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85099 Bug 85099 depends on bug 63384, which changed state. Bug 63384 Summary: scheduler loops on endless fence list with -fselective-scheduling2 on x86 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63384 What|Removed

[Bug tree-optimization/115484] [13/14/15 regression] if-to-switch prevents AVX vectorization

2024-06-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115484 --- Comment #6 from Andi Kleen --- As an interesting but irrelevant side comment clang seems to have the same bug.

[Bug bootstrap/115584] Boot strap comparison failure on trunk with --enable-checking=release

2024-06-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115584 Andi Kleen changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug bootstrap/115584] New: Boot strap comparison failure on trunk with --enable-checking=release

2024-06-21 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115584 Bug ID: 115584 Summary: Boot strap comparison failure on trunk with --enable-checking=release Product: gcc Version: unknown Status: UNCONFIRMED Severity: norma

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2024-06-19 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #14 from Andi Kleen --- Latest patchkit is here, but stalled due to lack of reviewers: https://gcc.gnu.org/pipermail/gcc-patches/2024-June/653319.html

[Bug c/115496] RFE: new warning to detect suspicious multiline string literals

2024-06-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #6 from Andi Kleen --- Yes a # check would need to be target dependent.

[Bug c/115496] RFE: new warning to detect suspicious multiline string literals

2024-06-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #3 from Andi Kleen --- When writing inline assembler an alternative to \n is to use ; as separator e.g. asm("movl $1,%eax ; " "movl %eax,%ebx") there can be also comment mistake here like asm("movl $1,%eax # comment ;" "

[Bug c/115496] RFE: new warning to detect suspicious multline string literals

2024-06-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #2 from Andi Kleen --- It would need some heuristic that if the line nearly fills a standard line length (how defined) don't trigger it. Otherwise people breaking the string due to line length restrictions might trigger it incorrectl

[Bug tree-optimization/115484] New: AVX vectorization is limited to 3 comparisons

2024-06-13 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115484 Bug ID: 115484 Summary: AVX vectorization is limited to 3 comparisons Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tr

[Bug rtl-optimization/113723] switch (jump) tables don't get along with -freorder-blocks-and-partition on non-x86

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

[Bug middle-end/63556] gcc should dedup string postfixes

2024-06-13 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556 --- Comment #7 from Andi Kleen --- I'm not sure how it would speed up the linker if gcc did it. The linker would still need to do it because there might be matches between different .o files. Also linker wouldn't know if the compiler supported th

[Bug c++/68615] Unhelpful location when missing a semi-colon on a function declaration at the end of a header

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

[Bug c/82013] better error message for missing semicolon in prototype

2024-06-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82013 Andi Kleen changed: What|Removed |Added Resolution|--- |DUPLICATE Status|ASSIGNED

[Bug target/80742] attribute target no- does not work

2024-06-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80742 Andi Kleen changed: What|Removed |Added Resolution|--- |WORKSFORME Status|WAITING

[Bug middle-end/63556] gcc should dedup string postfixes

2024-06-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556 Andi Kleen changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW

[Bug rtl-optimization/30688] Branch registers loaded too late on ia64

2024-06-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30688 Andi Kleen changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug lto/80379] Redundant note: code may be misoptimized unless -fno-strict-aliasing is used

2024-06-11 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80379 --- Comment #5 from Andi Kleen --- This bug is about printing a unnecessary message. If your code is actually miscompiled even with -fno-strict-aliasing set (so it is ignored somewhere) it is something different and you would need a test case to

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #7 from Andi Kleen --- The patch can be even more minimized. The thumb2_reorg change is not needed because nothing does df_verify() after it (I just noticed it because I added some extra for debugging). So even though thumb2_reorg br

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #6 from Andi Kleen --- Created attachment 58324 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58324&action=edit patch to fix arm sibcalls with -O0 Better patch that uses the existing cfun flag for tail calls.

[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm

2024-06-01 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 --- Comment #4 from Andi Kleen --- Created attachment 58323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58323&action=edit hack patch to fix arm sibcalls at -O0 The attached patch makes the test case pass on arm. - Some of the sibcall

[Bug target/115255] New: sibcall at -O0 causes ICE in df_refs_verify on arm

2024-05-28 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255 Bug ID: 115255 Summary: sibcall at -O0 causes ICE in df_refs_verify on arm Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/115091] New: Support value speculation in frontend

2024-05-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115091 Bug ID: 115091 Summary: Support value speculation in frontend Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug gcov-profile/113765] ICE: autofdo: val-profiler-threads-1.c compilation, error: probability of edge from entry block not initialized

2024-02-05 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113765 --- Comment #3 from Andi Kleen --- -O1 fixes it, so an easy patch would be diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc index 63d0c3dc36df..180ed7a8260f 100644 --- a/gcc/auto-profile.cc +++ b/gcc/auto-profile.cc @@ -1758,7 +1758,7 @@

[Bug gcov-profile/113765] autofdo: val-profiler-threads-1.c compilation, error: probability of edge from entry block not initialized

2024-02-05 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113765 --- Comment #1 from Andi Kleen --- Seems to be a regression, I tested the same setup on gcc 13 and the test passes there: 55:PASS: gcc.dg/tree-prof/val-profiler-threads-1.c compilation, -fprofile-generate -D_PROFILE_GENERATE 59:PASS: gcc.dg/tr

[Bug gcov-profile/113765] New: autofdo: val-profiler-threads-1.c compilation, error: probability of edge from entry block not initialized

2024-02-05 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113765 Bug ID: 113765 Summary: autofdo: val-profiler-threads-1.c compilation, error: probability of edge from entry block not initialized Product: gcc Version: unknown Status:

[Bug lto/107779] Support implicit references from inline assembler to compiler symbols

2023-10-15 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107779 --- Comment #4 from Andi Kleen --- This whole manual annotation idea (which is equivalent to marking the symbols global and visible and that is what a large part of the kernel LTO patchkit) is dead on arrival because the kernel people already re

[Bug middle-end/111743] shifts in bit field accesses don't combine with other shifts

2023-10-09 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111743 --- Comment #5 from Andi Kleen --- config/i386/i386.h:#define SLOW_BYTE_ACCESS 0 You mean it doesn't define it?

[Bug middle-end/111743] shifts in bit field accesses don't combine with other shifts

2023-10-09 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111743 --- Comment #2 from Andi Kleen --- Okay then it doesn't understand that SHL_signed and SHR_unsigned can be combined when one the values came from a shorter unsigned.

[Bug middle-end/111743] New: shifts in bit field accesses don't combine with other shifts

2023-10-09 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111743 Bug ID: 111743 Summary: shifts in bit field accesses don't combine with other shifts Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

[Bug lto/107779] New: Support implicit references from inline assembler to compiler symbols

2022-11-20 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107779 Bug ID: 107779 Summary: Support implicit references from inline assembler to compiler symbols Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug lto/107014] flatten+lto fails the kernel build

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

[Bug preprocessor/45227] libcpp Makefile does not enable instrumentation

2022-01-04 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45227 --- Comment #5 from Andi Kleen --- I think it was the method from the info file. But I can't quite remember. If you cannot reproduce it I guess it's ok to close. Maybe I made some mistake.

[Bug middle-end/99578] gcc-11 -Warray-bounds or -Wstringop-overread warning when accessing a pointer from integer literal

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

[Bug lto/99828] inlining failed in call to ‘always_inline’ ‘memcpy’: --param max-inline-insns-auto limit reached

2021-03-30 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99828 --- Comment #3 from Andi Kleen --- So what do you want to fix in the kernel? Use a wrapper for taking the address of the memcpy? (I hope nothing in gcc would remove such a wrapper)