[Bug tree-optimization/117356] __builtin_mul_overflow_p(signed, 1, unsigned long) should be just changed to `signed<0`

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117356 --- Comment #1 from Andrew Pinski --- By the way, no compiler gets the same code generation for all 3 functions. Most have foo and foo1 being the same but some targets get close to foo2 though . RISCV32 GCC gets: (insn 28 42 47 (set (reg/i:SI 1

[Bug tree-optimization/117356] New: __builtin_mul_overflow_p(signed, 1, unsigned long) should be just changed to `signed<0`

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117356 Bug ID: 117356 Summary: __builtin_mul_overflow_p(signed, 1, unsigned long) should be just changed to `signed<0` Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug ipa/117350] [15 Regression] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #14 from Andrew Pinski --- So ipa-free-lang-data calls assign_assembler_name_if_needed which calls need_assembler_name_p which does the check on if the assembler name is needed before doing the freeing of front-end specific. So that

[Bug gcov-profile/117350] [15 Regression] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Ever confirmed|0

[Bug ipa/117350] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Andrew Pinski changed: What|Removed |Added Ever confirmed|1 |0 Component|bootstrap

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #11 from ak at gcc dot gnu.org --- Given that it reproduce with distribution gcc 13.0 I don't think it's a miscompilation.

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #10 from ak at gcc dot gnu.org --- The small test case also fails with gcc 13.0 (although it doesn't have the nested ICE). So it's an old latent bug. gcc version 13.3.1 20240913 (Red Hat 13.3.1-3) (GCC) gcc -fauto-profile=fbdata.afd

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O since r15-4396-g72ae35bbc90fea

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 Sam James changed: What|Removed |Added Summary|[15 regression] firebird|[15 regression] firebird

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code --- Comment #9 from Andrew P

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #8 from ak at gcc dot gnu.org --- It's when reading the profile file, so stage 4 (?) The full log is here: http://firstfloor.org/~andi/l2

[Bug middle-end/117002] [13/14/15 Regression] lifetime.d: In function ‘_d_newclassT’: error: size of array element is not a multiple of its alignment with -Warray-bounds and -O2

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117002 Sam James changed: What|Removed |Added Last reconfirmed|2024-10-07 00:00:00 |2024-10-30 --- Comment #3 from Sam James -

[Bug target/117301] Many AVX10 tests fail

2024-10-29 Thread haochen.jiang at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117301 --- Comment #6 from Haochen Jiang --- Fixed on trunk.

[Bug target/117301] Many AVX10 tests fail

2024-10-29 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117301 Hongtao Liu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/117301] Many AVX10 tests fail

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117301 --- Comment #5 from GCC Commits --- The master branch has been updated by Haochen Jiang : https://gcc.gnu.org/g:12086865232382f93081d5564ff44b14bd71341c commit r15-4765-g12086865232382f93081d5564ff44b14bd71341c Author: Haochen Jiang Date: T

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O since r15-4396-g72ae35bbc90fea

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 Sam James changed: What|Removed |Added Ever confirmed|0 |1 Keywords|needs-bisection

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #9 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > (In reply to Andrew Pinski from comment #6) > > Most likely r15-4414-g51b85dfeb19652 > > Or r15-4396-g72ae35bbc90fea . 100% this one. Tested the revision befor

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #8 from Andrew Pinski --- Created attachment 59495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59495&action=edit C/C++ code

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > Most likely r15-4414-g51b85dfeb19652 Or r15-4396-g72ae35bbc90fea .

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #6 from Andrew Pinski --- Most likely r15-4414-g51b85dfeb19652

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #5 from Andrew Pinski --- It worked in July (20240727).

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #4 from Sam James --- Created attachment 59494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59494&action=edit larger.cxx Attached the larger original function without branches pruned. I'll bisect.

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #3 from Sam James --- --- a/foo.cxx.034t.early_objsz +++ b/foo.cxx.034t.early_objsz @@ -19,14 +19,14 @@ char * strncpy (char * restrict __dest, const char * restrict __src, size_t __le -;; Function gen_blr (_ZL7gen_blrPKc, funcdef

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #2 from Sam James --- It's fine in C...

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #1 from Sam James --- $ gcc-14 foo.cxx -Og -ggdb3 -o /tmp/a && /tmp/a # nothing $ gcc-15 foo.cxx -Og -ggdb3 -o /tmp/a && /tmp/a In file included from /usr/include/string.h:548, from /usr/lib/gcc/x86_64-pc-linux-gnu/

[Bug middle-end/117355] New: [15 regression] firebird miscompiled

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 Bug ID: 117355 Summary: [15 regression] firebird miscompiled Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3

[Bug middle-end/117329] -Wnull-dereference Warray-bounds warnings seems to point to the wrong location

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 Andrew Pinski changed: What|Removed |Added Summary|-Wnull-dereference error|-Wnull-dereference |i

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 ak at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #7 from Andrew Pinski --- Also when was the last time was this known to work?

[Bug bootstrap/117350] ICE in pretty print during bootstrap

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

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #5 from ak at gcc dot gnu.org --- Also the ICE had a truncated backtrace. Checking it in gdb gives the full one. The bad mangling happens while autofdo is reading the string table of the afdo file, and trying to generate the asm name

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 ak at gcc dot gnu.org changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug c/117311] Documentation request: __builtin_frame_address(0) and inline assembly

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117311 --- Comment #4 from H. Peter Anvin --- Again, any recommendations for a construct (current or future) that *can* be relied upon?

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #15 from H. Peter Anvin --- Odd. When I added a read flag intrinsic to my test case, it prevented the red zone from being used. If it clobbers the redzone, then that's obviously a very serious problem.

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread brad.moody at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117327 --- Comment #11 from Brad Moody --- Thank you for the quick turnaround!

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org Severit

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 Sam James changed: What|Removed |Added Target Milestone|--- |15.0

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 --- Comment #35 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:0b73e9382ab51c00a79b2a6f8abbcd31d87f6814 commit r15-4760-g0b73e9382ab51c00a79b2a6f8abbcd31d87f6814 Author: David Malcolm Date:

[Bug rtl-optimization/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #1 fr

[Bug rtl-optimization/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #3 from Sam James --- Reproduced on trunk and tip of releases/gcc-14 with: ``` $ gcc /tmp/a.c -O2 -march=znver4 -fwhole-program -fsanitize=address during RTL pass: expand example.c:29:3: internal compiler error: in extract_bit_field_

[Bug middle-end/117354] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt (and asan in some cases)

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #8 from Andrew Pinski --- Created attachment 59493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59493&action=edit fails with ` -O2 -mavx2 -fsanitize=address`

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #14 from H. Peter Anvin --- I am assuming the cases Uroš are talking about are constrained by a separate software convention.

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #6 from Andrew Pinski --- Created attachment 59492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59492&action=edit Reduced testcase ` -O2 -mavx512f -fsanitize=address` is enough to reproduce the issue.

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt and asan

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Ever confirmed|0

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #5 from Sam James --- asan isn't needed.

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #13 from H. Peter Anvin --- Yes, you have to be able to "reserve" (clobber) the entire redzone (128 bytes).

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #4 from Sam James --- _BitInt(512) x; void baz (void *p) { __builtin_memcpy (p, &x, sizeof x); } _BitInt(512) qux (void *p) { _BitInt(512) y = x + 1; __builtin_memcpy (p, &y, sizeof y); return x; } int main() { void *ptr

[Bug rtl-optimization/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #2 from Sam James --- Oh, nevermind.

[Bug rtl-optimization/117354] New: [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Bug ID: 117354 Summary: [14] ICE: in extract_bit_field_1, at expmed.cc:1838 Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85605 Bug 85605 depends on bug 117346, which changed state. Bug 117346 Summary: ccmp does not go through canonicalize_comparison https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117346 What|Removed |Added

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #12 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #11) > (In reply to H. Peter Anvin from comment #9) > > So this sounds like it would solve additional problems, which may very well > > make it worthwhile. > > How about

[Bug middle-end/117329] -Wnull-dereference error indicator in the wrong place.

2024-10-29 Thread o.putaans at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 --- Comment #6 from Oskars Putans --- (In reply to Andrew Pinski from comment #5) > That is ok because the underlying issue is the same though. Only the line > info for the `var = a;` assignment is there. Could I get confirmation of Wnull-deref

[Bug target/117353] [15 regression] RISC-V: ICE when building libcrypt since r15-3228-g771256bcb9ddc4

2024-10-29 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 --- Comment #2 from Vineet Gupta --- For other benign instances of the pattern lshrv8qi3, typically it goes through a splitter in autovec.md which converts it into the canonical RVV form with all the VL info. (define_insn_and_split "3" [(set

[Bug target/117353] New: RISC-V: ICE when building libcrypt

2024-10-29 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 Bug ID: 117353 Summary: RISC-V: ICE when building libcrypt Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/117353] RISC-V: ICE when building libcrypt

2024-10-29 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 Vineet Gupta changed: What|Removed |Added CC||ewlu at rivosinc dot com,

[Bug target/117346] ccmp does not go through canonicalize_comparison

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117346 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Resolution|---

[Bug target/117346] ccmp does not go through canonicalize_comparison

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117346 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 commit r15-4759-g3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 Author: Andrew Pinski Date: Tu

[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85605 --- Comment #8 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 commit r15-4759-g3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 Author: Andrew Pinski Date: Tue

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #17 from GCC Commits --- The trunk branch has been updated by Andi Kleen : https://gcc.gnu.org/g:a4e2b13888267f2581ac03f076aa0d32cd045adb commit r15-4757-ga4e2b13888267f2581ac03f076aa0d32cd045adb Author: Andi Kleen Date: Wed Oct

[Bug middle-end/117352] New: switch bit test conversion makes comparison code worse

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 Bug ID: 117352 Summary: switch bit test conversion makes comparison code worse Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug middle-end/117352] [15 Regression] switch bit test conversion makes comparison code worse on aarch64 and x86_64 with APX due to not generating ccmp

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 Andrew Pinski changed: What|Removed |Added Summary|switch bit test conversion |[15 Regression] switch bit

[Bug middle-end/117352] switch bit test conversion makes comparison code worse

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 Andrew Pinski changed: What|Removed |Added Target||aarch64 x86_64 Ever confirmed|0

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #11 from Uroš Bizjak --- (In reply to H. Peter Anvin from comment #9) > So this sounds like it would solve additional problems, which may very well > make it worthwhile. How about a guarantee that the first word of the redzone won't

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 ak at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug middle-end/117329] -Wnull-dereference error indicator in the wrong place.

2024-10-29 Thread o.putaans at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 --- Comment #4 from Oskars Putans --- (In reply to Andrew Pinski from comment #1) > I can't reproduce the warning for Wnull-dereference but I do get a warning > for -O2 -Warray-bounds that has the same line as what you reported. Oh no.. It see

[Bug middle-end/117329] -Wnull-dereference error indicator in the wrong place.

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 --- Comment #5 from Andrew Pinski --- (In reply to Oskars Putans from comment #4) > (In reply to Andrew Pinski from comment #1) > > I can't reproduce the warning for Wnull-dereference but I do get a warning > > for -O2 -Warray-bounds that has t

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #18 from GCC Commits --- The trunk branch has been updated by Andi Kleen : https://gcc.gnu.org/g:3d06e9c3e07e13eab715e19dafbcfc1a0b7e43d6 commit r15-4758-g3d06e9c3e07e13eab715e19dafbcfc1a0b7e43d6 Author: Andi Kleen Date: Fri Oct

[Bug middle-end/117352] switch bit test conversion makes comparison code worse

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 --- Comment #2 from Andrew Pinski --- But note not all targets support all comparisons with ccmp (though I think for integer both x86_64 and aarch64 supports all, it is float comparisons where TARGET_GEN_CCMP_FIRST/TARGET_GEN_CCMP_NEXT can fail)

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #10 from Uroš Bizjak --- (In reply to H. Peter Anvin from comment #9) > I just want to reiterate that for the inline assembly case specifically, > just doing the "heavy hammer" thing of disabling the redzone (which looks to > me to

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
. gcc/ PR rtl-optimization/117327 * reorg.cc (find_end_label): Do not return a dangling label at the end of the function and adjust commentary. gcc/testsuite/ * gcc.c-torture/execute/20241029-1.c: New test.

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #9 from H. Peter Anvin --- So this sounds like it would solve additional problems, which may very well make it worthwhile. I just want to reiterate that for the inline assembly case specifically, just doing the "heavy hammer" thing

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
commentary. gcc/ PR rtl-optimization/117327 * reorg.cc (find_end_label): Do not return a dangling label at the end of the function and adjust commentary. gcc/testsuite/ * gcc.c-torture/execute/20241029-1.c: New test.

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #3 from ak at gcc dot gnu.org --- Reduced test case for an Intel platform: gu.cc: template class tuple; template struct tuple<_T1, _T2> { tuple(_T1, _T2); }; struct __uniq_ptr_impl { __uniq_ptr_impl(int __p, int) : _M_t(__p, in

[Bug tree-optimization/116949] walk_stmt_load_store_addr_ops has extra code to handle comparisons in there

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116949 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/117007] Poor optimization for small vector constants needed for vector shift/rotate/mask generation

2024-10-29 Thread munroesj at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117007 --- Comment #10 from Steven Munroe --- (In reply to Segher Boessenkool from comment #7) > It is always more and slower code. Yes. More examples: vui64_t test_sld_52_v1 (vui64_t vra) { vui32_t shft = vec_splat_u32(52-64); return vec_vsld (

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117327 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/114785] special handling of COND_EXPR in gimple_extract can be removed

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114785 --- Comment #4 from Andrew Pinski --- (In reply to Richard Biener from comment #3) > Note there's still code in tree-vect-patterns.cc creating those and code in > tree-vect-stmts.cc might use gimple_extract on them. Now we assert this won't hap

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
. gcc/ PR rtl-optimization/117327 * reorg.cc (find_end_label): Do not return a dangling label at the end of the function and adjust commentary. gcc/testsuite/ * gcc.c-torture/execute/20241029-1.c: New test.

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
commentary. gcc/ PR rtl-optimization/117327 * reorg.cc (find_end_label): Do not return a dangling label at the end of the function and adjust commentary. gcc/testsuite/ * gcc.c-torture/execute/20241029-1.c: New test.

[Bug fortran/117347] Associate with derived type array constructor

2024-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117347 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid Last reconfi

[Bug c++/117351] [14/15 Regression] ICE while reporting invalid template error

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117351 Andrew Pinski changed: What|Removed |Added Known to work||11.1.0, 13.1.0, 13.3.0 Ever confirm

[Bug c++/117351] ICE while reporting invalid template error

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117351 --- Comment #1 from Andrew Pinski --- Created attachment 59490 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59490&action=edit Slightly reduced and cleaned up

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 Uroš Bizjak changed: What|Removed |Added CC||hjl.tools at gmail dot com,

[Bug target/117344] Suboptimal use of movprfx in SVE intrinsics code due to hard register for return register or argument passing

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117344 --- Comment #2 from Andrew Pinski --- The way cond_addvnx4si_2 is written currently is: ;; Predicated integer operations, merging with the first input. (define_insn "*cond__2" [(set (match_operand:SVE_I 0 "register_operand") (unspec:SV

[Bug c++/117351] New: ICE while reporting invalid template error

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117351 Bug ID: 117351 Summary: ICE while reporting invalid template error Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/117344] Suboptimal use of movprfx in SVE intrinsics code

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117344 Andrew Pinski changed: What|Removed |Added Keywords||ra Ever confirmed|0

[Bug target/117349] aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:9dd9a88b75334bc079b8ab5fb2dbb5d56765bd60 commit r15-4754-g9dd9a88b75334bc079b8ab5fb2dbb5d56765bd60 Author: Andrew Pinski Date: Tu

[Bug c++/116607] ICE: tree check: expected tree_list, have integer_cst in has_active_contract_condition, at cp/contracts.cc:1505 with no_sanitize attribute and -fcontracts option

2024-10-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116607 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org Assign

[Bug target/117349] aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Status|ASSIGNED

[Bug target/117007] Poor optimization for small vector constants needed for vector shift/rotate/mask generation

2024-10-29 Thread munroesj at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117007 --- Comment #9 from Steven Munroe --- (In reply to Segher Boessenkool from comment #7) > It is always more and slower code. Yes. lets try some specific examples and examine the code generated for power8/9/10 vui32_t test_slw_23_v0 (vui32_t vr

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Sam James changed: What|Removed |Added CC||erozen at microsoft dot com --- Comment #2

[Bug target/117170] [15 regression] Failed bootstrap comparison in tree-vect-data-refs.o on sparcv9-sun-solaris2.11

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117170 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Commen

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Andrew Pinski changed: What|Removed |Added Keywords||build Ever confirmed|0

[Bug other/117350] New: ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Bug ID: 117350 Summary: ICE in pretty print during bootstrap Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other

[Bug ada/117328] iterated component association fails for array with large index type

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328 Eric Botcazou changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ebotcazou at gcc dot gnu.org

[Bug ada/117328] iterated component association fails for array with large index type

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328 Eric Botcazou changed: What|Removed |Added Summary|Iterated component |iterated component |a

[Bug c/117313] [15 regression] ICE when building linux-6.11.5 (output_constructor_regular_field, at varasm.cc:5672)

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117313 --- Comment #7 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:28b7aed124d4d86be552f24469c2cfa59a49edaf commit r15-4753-g28b7aed124d4d86be552f24469c2cfa59a49edaf Author: Jakub Jelinek Date: T

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #7 from H. Peter Anvin --- Created attachment 59489 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59489&action=edit Test case assembly output

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #6 from H. Peter Anvin --- Created attachment 59488 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59488&action=edit Test case

  1   2   >