[Bug target/114323] [14 Regression] MVE vector load intrinsic miscompiled since r14-5622-g4d7647edfd7d98

2024-03-14 Thread prathamesh3492 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114323 prathamesh3492 at gcc dot gnu.org changed: What|Removed |Added CC||prathamesh3492 at

[Bug middle-end/114347] wrong constant folding when casting __bf16 to int

2024-03-14 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114347 --- Comment #2 from Paul Eggert --- (In reply to Andrew Pinski from comment #1) > I am not so sure that 257.0bf16 gets rounded to 256. It should get rounded to 256, since 257 has no exact representation in __bf16 and 256 is the closest

[Bug middle-end/114347] wrong constant folding when casting __bf16 to int

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114347 --- Comment #1 from Andrew Pinski --- Hmm, I am not so sure that 257.0bf16 gets rounded to 256.

[Bug c/114347] New: wrong constant folding when casting __bf16 to int

2024-03-14 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114347 Bug ID: 114347 Summary: wrong constant folding when casting __bf16 to int Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/81482] by-value lambda capture in remove_if

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81482 Andrew Pinski changed: What|Removed |Added Resolution|--- |WONTFIX Status|UNCONFIRMED

[Bug target/81759] Improve data tracking for _pext_u64

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2017-08-08 00:00:00 |2024-3-14 --- Comment #4 from Andrew

[Bug target/81759] Improve data tracking for _pext_u64 and __builtin_ffsll

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759 --- Comment #3 from Andrew Pinski --- (In reply to Daniel Fruzynski from comment #2) > Looks that __builtin_ffs does not check if input value is nonzero at all. > Assembler code for following code also has unnecessary instructions: > > [code] >

[Bug tree-optimization/114346] New: vectorizer generates the same IV twice

2024-03-14 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114346 Bug ID: 114346 Summary: vectorizer generates the same IV twice Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug tree-optimization/114345] FRE missing knowledge of semantics of IFN loads

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114345 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/114345] FRE missing knowledge of semantics of IFN loads

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

[Bug c++/83777] Invalid dependent initialization of a static data member.

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83777 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2018-01-11 00:00:00 |2024-3-14 Status|WAITING

[Bug tree-optimization/114345] New: FRE missing knowledge of semantics of IFN loads

2024-03-14 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114345 Bug ID: 114345 Summary: FRE missing knowledge of semantics of IFN loads Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 Andrew Pinski changed: What|Removed |Added CC||joerg at netbsd dot org --- Comment #19

[Bug preprocessor/47047] Support for path translation in __FILE__

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47047 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/88823] ivopts introduces -1(OVF)

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88823 --- Comment #2 from Andrew Pinski --- Looks to be fixed on the trunk.

[Bug tree-optimization/88926] ivopts with some NOP conversions

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88926 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2019-01-21 00:00:00 |2024-3-14 --- Comment #3 from Andrew

[Bug ipa/89567] [missed-optimization] Should not be initializing unused struct parameter members

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89567 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #6 from Andrew

[Bug rtl-optimization/43473] hword size destination variable induces suboptimal code generation compared to full word size var

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43473 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #3 from

[Bug rtl-optimization/29860] comment / code incosistency in cfgcleanup.c:flow_find_cross_jump

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29860 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/111555] [AArch64] __ARM_FEATURE_UNALIGNED should be undefined with -mstrict-align

2024-03-14 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #5 from

[Bug target/114334] [14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn and:HF?) with lroundf16() and -ffast-math -mavx512fp16

2024-03-14 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114334 Hongtao Liu changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/110027] [11/12/13/14 regression] Misaligned vector store on detect_stack_use_after_return

2024-03-14 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027 --- Comment #15 from Hongtao Liu --- A patch is posted at https://gcc.gnu.org/pipermail/gcc-patches/2024-March/647604.html

[Bug testsuite/114343] [13 regression] many erratic errors starting with r13-8433-g1277f69b9b0206

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114343 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/114344] [arm/mips] __alignof__ report a member packed struct as 1, while normal load/store instruction is used

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114344 --- Comment #2 from Andrew Pinski --- Note __alignof__ might say 1, but alignof vs what GCC knows the alignment of the decl are 2 different things.

[Bug target/114344] [arm/mips] __alignof__ report a member packed struct as 1, while normal load/store instruction is used

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114344 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/106119] [12 Regression] Bogus use-after-free warning triggered by optimizer

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106119 Jeffrey A. Law changed: What|Removed |Added Summary|[12/13/14 Regression] Bogus |[12 Regression] Bogus

[Bug tree-optimization/106238] [12 regression] Inline optimization causes dangling pointer warning on "include/c++/12.1.0/bits/stl_tree.h"

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106238 Jeffrey A. Law changed: What|Removed |Added Summary|[12/13/14 regression] |[12 regression] Inline

[Bug target/106342] [12/13/14 Regression] internal compiler error: in extract_insn, at recog.cc:2791 since r12-4240-g2b8453c401b699

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106342 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug target/114344] New: [arm/mips] __alignof__ report a member packed struct as 1, while normal load/store instruction is used

2024-03-14 Thread syq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114344 Bug ID: 114344 Summary: [arm/mips] __alignof__ report a member packed struct as 1, while normal load/store instruction is used Product: gcc Version: unknown Status:

[Bug tree-optimization/106757] [12/13 Regression] Incorrect "writing 1 byte into a region of size 0" on a vectorized loop

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106757 Jeffrey A. Law changed: What|Removed |Added Summary|[12/13/14 Regression] |[12/13 Regression]

[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 --- Comment #10 from Sam James --- I don't plan on pursuing it myself, leaving it to someone else, as I can't reproduce on my main workstation and I don't want to faff w/ kernel config.

[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 --- Comment #9 from Sam James --- Created attachment 57708 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57708=edit 0001-libsanitizer-fix-ASAN-with-aggressive-CONFIG_ARCH_MM.patch Untested patch for 13.

[Bug tree-optimization/106842] [12 Regression] misleading warning : iteration X invokes undefined behavior

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106842 Jeffrey A. Law changed: What|Removed |Added Summary|[12/13/14 Regression] |[12 Regression] misleading

[Bug tree-optimization/106931] [12 Regression] -Wstringop-overflow false positive -O3 -fno-tree-vectorize with loop unrolling since r12-3300-gece28da924ddda8b

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106931 Jeffrey A. Law changed: What|Removed |Added Summary|[12/13/14 Regression] |[12 Regression]

[Bug c++/107138] [12 regression] std::variant triggers false-positive 'may be used uninitialized' warning

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138 Jeffrey A. Law changed: What|Removed |Added Summary|[12/13/14 regression] |[12 regression]

[Bug sanitizer/89323] Asan memory leak detection on 32bit x86 linux platform

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89323 --- Comment #7 from Andrew Pinski --- This might work but I can't test it with x32: ``` diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index 77a0e68222b..eb99edefbd3 100644 --- a/libsanitizer/configure.tgt +++

[Bug sanitizer/113430] [12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 Andrew Pinski changed: What|Removed |Added Summary|Trivial program segfaults |[12/13 only] Trivial

[Bug sanitizer/113430] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration

2024-03-14 Thread dmjpp at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 Dimitrij Mijoski changed: What|Removed |Added CC||dmjpp at hotmail dot com ---

[Bug testsuite/114343] [13 regression] many erratic errors starting with r13-8433-g1277f69b9b0206

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114343 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.3 Assignee|dmalcolm at

[Bug analyzer/114343] [13 regression] many erratic errors starting with r13-8433-g1277f69b9b0206

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114343 --- Comment #1 from Andrew Pinski --- No there is a missing `}` in the line that was done for testsuite/gcc.dg/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_early-O2.c : /* { dg-bogus "may result in an unaligned pointer value" "Fixed in

[Bug analyzer/114343] New: [13 regression] many erratic errors starting with r13-8433-g1277f69b9b0206

2024-03-14 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114343 Bug ID: 114343 Summary: [13 regression] many erratic errors starting with r13-8433-g1277f69b9b0206 Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity:

[Bug sanitizer/89323] Asan memory leak detection on x86 platform

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89323 Andrew Pinski changed: What|Removed |Added Target||i?86 Status|WAITING

[Bug target/113934] Switch avr to LRA

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

[Bug middle-end/59863] const array in function is placed on stack

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863 Andrew Pinski changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug tree-optimization/99091] local array not prompted to static

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99091 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/95943] arc -mbig-endian "inappropriate arguments" error from assembler

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95943 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/111555] [AArch64] __ARM_FEATURE_UNALIGNED should be undefined with -mstrict-align

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > (In reply to YunQiang Su from comment #2) > > For AArch64, clang supports `-mno-unaligned-access`, while gcc doesn't, > > should we add it as an alias of

[Bug target/111555] [AArch64] __ARM_FEATURE_UNALIGNED should be undefined with -mstrict-align

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 --- Comment #3 from Andrew Pinski --- (In reply to YunQiang Su from comment #2) > For AArch64, clang supports `-mno-unaligned-access`, while gcc doesn't, > should we add it as an alias of -mstrict-align? -mno-unaligned-access is the arm option

[Bug target/111555] [AArch64] __ARM_FEATURE_UNALIGNED should be undefined with -mstrict-align

2024-03-14 Thread syq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 YunQiang Su changed: What|Removed |Added CC||syq at gcc dot gnu.org --- Comment #2

[Bug middle-end/114342] suboptimal codegen of vector::vector(range)

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

[Bug middle-end/114342] suboptimal codegen of vector::vector(range)

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114342 --- Comment #1 from Andrew Pinski --- The first memcpy (rep movsq) is for: ``` int arr[]{-5, 10, 15, -5, 10, 15, -5, 10, 15, -5, 10, 15, -5, 10, 15, -5, 10, 15, -5, 10, 15,-5, 10, 15 -5, 10, 15, -5, 10, 15, -5, 10, 15, -5, 10, 15, -5, 10, 15,

[Bug c++/114342] New: suboptimal codegen of vector::vector(range)

2024-03-14 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114342 Bug ID: 114342 Summary: suboptimal codegen of vector::vector(range) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/114341] Optimization opportunity with {mul,div} "(x & -x)" and {<<,>>} "ctz(x)"

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114341 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-03-14

[Bug tree-optimization/114341] Optimization opportunity with {mul,div} "(x & -x)" and {<<,>>} "ctz(x)"

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114341 --- Comment #1 from Andrew Pinski --- x/(y&-y) is already recorded as PR 97738 .

[Bug tree-optimization/114341] New: Optimization opportunity with {mul,div} "(x & -x)" and {<<,>>} "ctz(x)"

2024-03-14 Thread Explorer09 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114341 Bug ID: 114341 Summary: Optimization opportunity with {mul,div} "(x & -x)" and {<<,>>} "ctz(x)" Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity:

[Bug target/112548] [14 regression] 5% exec time regression in 429.mcf on AMD zen4 CPU (since r14-5076-g01c18f58d37865)

2024-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112548 --- Comment #25 from Jeffrey A. Law --- Well, at least in theory SPEC isn't supposed to be changing the sources or validation criteria on us. So while our copy may be old, I would expect it's still the same as Filip's. That doesn't resolve

[Bug c/82599] Assignments from statically initialized flexible arrays copy too much

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82599 Andrew Pinski changed: What|Removed |Added Component|middle-end |c --- Comment #2 from Andrew Pinski

[Bug target/114339] [13/14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #15 from Jakub Jelinek --- Created attachment 57707 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57707=edit gcc14-pr114339.patch Untested fix.

[Bug tree-optimization/114340] New: ` X / CST < X` -> `X > 0`

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114340 Bug ID: 114340 Summary: ` X / CST < X` -> `X > 0` Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority:

[Bug target/114339] [13/14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org ---

[Bug target/114339] [13/14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #13 from Jakub Jelinek --- Nice, further cleaned up: /* PR target/114339 */ /* { dg-do run } */ /* { dg-options "-O2 -Wno-psabi" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ typedef long V

[Bug target/114339] [13/14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #12 from Andrew Pinski --- I suspecting r13-3803-gfa271afb584230 which missed the border case of INT_MAX/INT_MIN .

[Bug target/114339] [13/14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 Andrew Pinski changed: What|Removed |Added Known to work||10.1.0, 12.1.0, 12.3.0,

[Bug target/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 Andrew Pinski changed: What|Removed |Added Target||x86_64-linux-gnu

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #9 from Andrew Pinski --- Reduced testcase: ``` #define vect128 __attribute__((vector_size(16))) [[gnu::noinline]] vect128 long f(vect128 long a) { return a <= (vect128 long){0, 9223372036854775807}; } int main() {

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #8 from Jakub Jelinek --- Slightly simplified/cleaned up testcase: /* { dg-do run } */ /* { dg-options "-O2 -fno-vect-cost-model" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ struct S { int a; long b; int c;

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #7 from Andrew Pinski --- This looks wrong: ``` ;; mask_patt_17.15_55 = vect_cst__53 <= { 0, 9223372036854775807 }; (insn 21 20 22 (set (reg:V2DI 111) (mem/u/c:V2DI (symbol_ref/u:DI ("*.LC1") [flags 0x2]) [0 S16 A128]))

[Bug target/112548] [14 regression] 5% exec time regression in 429.mcf on AMD zen4 CPU (since r14-5076-g01c18f58d37865)

2024-03-14 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112548 --- Comment #24 from Robin Dapp --- I rebuilt GCC from scratch with your options but still have the same problem. Could our sources differ? My SPEC version might not be the most recent but I'm not aware that mcf changed at some point. Just

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #6 from Tamar Christina --- vectorizer generates: mask_patt_21.19_58 = vect_perm_even_49 >= vect_cst__57; mask_patt_21.19_59 = vect_perm_even_55 >= vect_cst__57; vexit_reduc_63 = mask_patt_21.19_58 | mask_patt_21.19_59; if

[Bug target/91861] invalid vectorization of isless, islessequal, etc. (with default of -ftrapping-math)

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91861 --- Comment #3 from Andrew Pinski --- *** Bug 94413 has been marked as a duplicate of this bug. ***

[Bug target/94413] auto-vectorization of isfinite raises FP exception

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94413 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/91861] invalid vectorization of isless, islessequal, etc. (with default of -ftrapping-math)

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91861 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Summary|invalid

[Bug c++/109753] [13/14 Regression] pragma GCC target causes std::vector not to compile (always_inline on constructor)

2024-03-14 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753 --- Comment #15 from Jason Merrill --- Created attachment 57706 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57706=edit one approach I tried just making implicit functions respect #pragma target, but that regresses pr105306 due to

[Bug target/108866] Allow to pass Windows resource file (.rc) as input to gcc

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108866 --- Comment #6 from Andrew Pinski --- (In reply to Pali Rohár from comment #5) > There is one problem with it. I had to "hardcode" x86_64-w64-mingw32-windres > name instead of just "windres". How to declare cross compile prefix? Because > gcc

[Bug c/54454] gcc violates c99 specification w.r.t. flexible arrays

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54454 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #4 from Andrew

[Bug c/9058] structure with flexible array member: offsetof() != sizeof()

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9058 Andrew Pinski changed: What|Removed |Added CC||mikulas at artax dot karlin.mff.cu

[Bug target/108866] Allow to pass Windows resource file (.rc) as input to gcc

2024-03-14 Thread pali at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108866 --- Comment #5 from Pali Rohár --- Thank you for info, I read that blog post and based on those details I adjusted spec file $ x86_64-w64-mingw32-gcc -dumpspecs > test.spec by adding additional lines to test.spec: .rc:

[Bug c/91672] wrong amount of storage allocated for initialized structs with flexible array members

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91672 Andrew Pinski changed: What|Removed |Added CC||pascal_cuoq at hotmail dot com ---

[Bug c/109956] GCC reserves 9 bytes for struct s { int a; char b; char t[]; } x = {1, 2, 3};

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109956 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug c/91672] wrong amount of storage allocated for initialized structs with flexible array members

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91672 --- Comment #2 from Andrew Pinski --- Note the .size does match up with what GCC outputs though: e.g. a1: .size a1, 18 a1: .xword 1 .hword 1 .hword 1 .zero 6 that is size of 18. Basically gcc's

[Bug c/91672] wrong amount of storage allocated for initialized structs with flexible array members

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91672 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/114288] [14 regression] ICE when building binutils-2.41 on hppa (extract_constrain_insn, at recog.cc:2713)

2024-03-14 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114288 John David Anglin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug modula2/114294] expression causes ICE

2024-03-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114294 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model since r14-6822

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|[14 regression]

[Bug modula2/114294] expression causes ICE

2024-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114294 --- Comment #3 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:6dbf0d252f69ab2924256e6778ba7dc55d5b6915 commit r14-9483-g6dbf0d252f69ab2924256e6778ba7dc55d5b6915 Author: Gaius Mulley Date:

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #4 from Sam James --- (In reply to Sam James from comment #3) > Created attachment 57705 [details] > larger.i > > Ah, wait, that might be a bad reduction. Let me attach a larger one, then I > can give the original if needed too.

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #3 from Sam James --- Created attachment 57705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57705=edit larger.i Ah, wait, that might be a bad reduction. Let me attach a larger one, then I can give the original if needed

[Bug tree-optimization/114331] Missed optimization: indicate knownbits from dominating condition switch(trunc(a))

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114331 --- Comment #12 from Jakub Jelinek --- Yeah. So the cases where we should do it is when we are reversing a narrowing cast, or also something for the other PRs Andrew mentioned, like when reversing BIT_AND_EXPR (but maybe also

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 Sam James changed: What|Removed |Added CC||tnfchris at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/114339] [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 --- Comment #1 from Sam James --- The assert is at https://gitlab.torproject.org/tpo/core/tor/-/blob/tor-0.4.8.10/src/feature/client/entrynodes.c#L2072 ``` (gdb) p delays $3 = {{ maximum = 21600, primary_delay = 600,

[Bug tree-optimization/114339] New: [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model

2024-03-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114339 Bug ID: 114339 Summary: [14 regression] Tor miscompiled with -O2 -mavx -fno-vect-cost-model Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/114288] [14 regression] ICE when building binutils-2.41 on hppa (extract_constrain_insn, at recog.cc:2713)

2024-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114288 --- Comment #14 from GCC Commits --- The master branch has been updated by John David Anglin : https://gcc.gnu.org/g:53fd0f5b1fd737a208c12909fa1188281cb370a3 commit r14-9482-g53fd0f5b1fd737a208c12909fa1188281cb370a3 Author: John David Anglin

[Bug tree-optimization/114331] Missed optimization: indicate knownbits from dominating condition switch(trunc(a))

2024-03-14 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114331 --- Comment #11 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #10) > I really don't know how GORI etc. works. > But, if when the switch handling determines that _1 (the switch controlling > expression) has [irange] [111, 111]

[Bug c++/113141] [13/14 Regression] ICE on conversion to reference in aggregate initialization

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113141 --- Comment #7 from Andrew Pinski --- Note I noticed the testcase in PR 90390 ICEs starting in GCC 13 and it seems similar to the testcase in comment #0 here.

[Bug c++/86385] calling wrong constructors?

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Fixed for GCC 13+ by r13-2964-gbbdb5612f6661f2c64b0c0f1d2291cb59fde2b40 . Or by r13-2963-g32b2eb59fb9049 . Anyways both together are needed IIRC.

[Bug c++/86385] calling wrong constructors?

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

[Bug tree-optimization/114332] wrong code with _Atomic _BitInt(5) at -O -fwrapv

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114332 --- Comment #1 from Jakub Jelinek --- Given that the x86-64 psABI says: \item The value of the unused bits beyond the width of the \texttt{_BitInt(N)} value but within the size of the \texttt{_BitInt(N)} are unspecified when stored in

[Bug modula2/114294] expression causes ICE

2024-03-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114294 --- Comment #2 from Gaius Mulley --- Created attachment 57704 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57704=edit Proposed fix The proposed fix was to assign a type to the result constant created by HIGH. The call to PutConst was

[Bug tree-optimization/114331] Missed optimization: indicate knownbits from dominating condition switch(trunc(a))

2024-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114331 --- Comment #10 from Jakub Jelinek --- I really don't know how GORI etc. works. But, if when the switch handling determines that _1 (the switch controlling expression) has [irange] [111, 111] MASK 0x0 VALUE 0x6f (does it actually? i.e. for a

[Bug rtl-optimization/114338] (x & (-1 << y)) should be optimized to ((x >> y) << y) or vice versa

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114338 --- Comment #4 from Andrew Pinski --- Note I added this to the list of Canonicalization issues in gimple on the wiki: https://gcc.gnu.org/wiki/GimpleCanonical

  1   2   >