[Bug c++/116005] Class template argument deduction for alias templates error in C++20

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116005 --- Comment #5 from Andrew Pinski --- If I change the definition of B to: template using B = A; Then it works in GCC and MSVC but still fails on clang (but that might be a clang issue). Note EDG also rejects it. ``` "", line 20: error: no

[Bug c++/116005] Class template argument deduction for alias templates error in C++20

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

[Bug c++/116005] Class template argument deduction for alias templates error in C++20

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116005 --- Comment #3 from Andrew Pinski --- I tested the trunk of clang.

[Bug rtl-optimization/116009] [15 regression] ICE when building cython-3.0.10 on arm64 for Python 3.12 (insert_def_after, at rtl-ssa/accesses.cc:622)

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116009 --- Comment #5 from Andrew Pinski --- Created attachment 58712 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58712=edit slightly different testcase So it looks like an interaction between ccmp and late_combine.

[Bug rtl-optimization/116009] [15 regression] ICE when building cython-3.0.10 on arm64 for Python 3.12 (insert_def_after, at rtl-ssa/accesses.cc:622)

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

[Bug rtl-optimization/116009] [15 regression] ICE when building cython-3.0.10 on arm64 for Python 3.12 (insert_def_after, at rtl-ssa/accesses.cc:622)

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116009 Andrew Pinski changed: What|Removed |Added Attachment #58710|0 |1 is obsolete|

[Bug rtl-optimization/116009] [15 regression] ICE when building cython-3.0.10 on arm64 for Python 3.12 (insert_def_after, at rtl-ssa/accesses.cc:622)

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116009 --- Comment #2 from Andrew Pinski --- Created attachment 58710 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58710=edit Cleanup reduced testcase

[Bug rtl-optimization/116009] [15 regression] ICE when building cython-3.0.10 on arm64 for Python 3.12 (insert_def_after, at rtl-ssa/accesses.cc:622)

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116009 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Target

[Bug middle-end/45215] Tree-optimization misses a trick with bit tests

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45215 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org

[Bug tree-optimization/82189] Two stage SLP needed

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82189 --- Comment #4 from Andrew Pinski --- Note starting GCC 14 on aarch64 we get: ldp s31, s30, [x1] add x1, x2, 4 dup v0.4s, v0.s[0] ld1 {v30.s}[1], [x1] ld1 {v31.s}[1], [x2] zip1

[Bug target/116010] [15 regression] vectorization regressions on arm and aarch64 since r15-491-gc290e6a0b7a9de

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116010 Andrew Pinski changed: What|Removed |Added Keywords||testsuite-fail --- Comment #1 from

[Bug c++/85012] GCC does not inline extern "C" functions defined in a different namespace

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85012 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last

[Bug rtl-optimization/98986] Try matching both orders of commutative RTX operations when there is no canonical order

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98986 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Target|

[Bug target/93594] Missed optimization with _mm256_set/setr_m128i intrinsics

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93594 --- Comment #11 from Andrew Pinski --- I know the missed optimization is fixed in GCC 10 at the RTL level. But shouldn't these optimized at gimple level to similar to: ``` __m256i cvt_setr1(__m128i low) { return __builtin_shufflevector

[Bug target/93613] Missed optimization with _mm256_permute2x128_si256 intrinsic

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

[Bug ipa/105728] dead store to static var not optimized out

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105728 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org

[Bug target/100929] gcc fails to optimize less to min for SIMD code

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

[Bug target/116007] libquadmath fails to build with libgcc/soft-fp/quad.h:69:1: error: unable to emulate 'TF'

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116007 --- Comment #3 from Andrew Pinski --- > --enable-libquadmath --enable-libquadmath-support You should not need this since the libc should already have support for 128bit FP (either double double or IEEE 128bit).

[Bug target/116007] libquadmath fails to build with libgcc/soft-fp/quad.h:69:1: error: unable to emulate 'TF'

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116007 Andrew Pinski changed: What|Removed |Added Keywords||build Target|

[Bug tree-optimization/102951] failure to optimize MIN_EXPR of subobject addresses of the same object

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

[Bug tree-optimization/108017] ptr+v >= ptr + d should converted into (long)v >= CST(/sizeof(*ptr))

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108017 --- Comment #3 from Andrew Pinski --- Related is optimizing: _1 = (long unsigned int) j_5(D); _2 = _1 * 4; t_7 = i_6(D) + _2; _3 = (long unsigned int) k_8(D); _4 = _3 * 4; t1_9 = i_6(D) + _4; _10 = MAX_EXPR ; into: i_6(D) +

[Bug tree-optimization/116008] MAX should simplify to MAX+i

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116008 --- Comment #1 from Andrew Pinski --- Note clang/LLVM can optimize the case where j/k are constants but gcc still does not. e.g. ``` int f2(int i, int j, int k) { j = 1; k = 2; int t = i+j; int t1 = i+k;

[Bug tree-optimization/116008] New: MAX should simplify to MAX+i

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116008 Bug ID: 116008 Summary: MAX should simplify to MAX+i Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement

[Bug rtl-optimization/86901] [AArch64] Suboptimal register allocation for int/float reinterpret

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

[Bug target/101200] Unneeded AND after shift

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101200 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > For aarch64 we get: > adrpx1, .LANCHOR0 > add x0, x1, :lo12:.LANCHOR0 > add x0, x0, 8 > ldrbw1, [x1,

[Bug libstdc++/115907] Libstdc++ and GCC itself should avoid glibc above 2.34 dependency

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115907 --- Comment #42 from Andrew Pinski --- (In reply to frankhb1989 from comment #41) > I ran into exact the same trouble of C23 missing symbols on old systems. In > my case it is a custom build (with tailored source) of libfreeimage which > has

[Bug analyzer/116006] RFE: detect usage of pointers to local variables that are out of scope

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

[Bug driver/115990] Consider deprecating -Ofast

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #17 from Andrew Pinski --- Note the argument about nobody reads documentation does not hold much weight about doing what we think is right. If that was the argument then -fwrapv and -fno-strict-aliasing would be defaults in

[Bug c++/116005] Class template argument deduction for alias templates error in C++20

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116005 --- Comment #1 from Andrew Pinski --- clang rejects it with: :11:1: error: deduction guide template contains a template parameter that cannot be deduced 11 | A(std::vector const &) -> A; | ^ :10:33: note: non-deducible template

[Bug tree-optimization/46728] GCC does not generate fmadd for pow (x, 0.75)+y on powerpc

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46728 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.7.0

[Bug middle-end/35545] tracer pass is run too late

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35545 --- Comment #26 from Andrew Pinski --- Note I think we should be able to do this without the tracer. After PRE we get now: ``` if (_1 == 0) goto ; [50.00%] else goto ; [50.00%] [local count: 531502204]: _14 = operator new (16);

[Bug tree-optimization/114192] scalar code left around following early break vectorization of reduction

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114192 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug target/115998] Redundant stack pointer manipulation

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

[Bug middle-end/115999] New: a - (a>>31) should be transformed into a + ((unsigned)a)>>31 (for signed a)

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115999 Bug ID: 115999 Summary: a - (a>>31) should be transformed into a + ((unsigned)a)>>31 (for signed a) Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords:

[Bug tree-optimization/98772] Widening patterns causing missed vectorization

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98772 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.0

[Bug tree-optimization/96691] Failure to optimize bitwise not+or+xor with constants to and+xor with bitwise not-ed constants

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96691 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.0

[Bug tree-optimization/57371] Simplify (double)i != 0

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

[Bug tree-optimization/116001] Missing optimization: Unoptimized indirect virtual call

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

[Bug tree-optimization/57124] [4.9 Regression] 254.gap@spec2000 got miscompare after r198413

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57124 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID Blocks|

[Bug tree-optimization/110218] sink pass heuristic not working in practice

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

[Bug rtl-optimization/115998] Redundant stack pointer manipulation

2024-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115998 --- Comment #2 from Andrew Pinski --- The add 8 to the sp before the jump to g says the return address on the stack now belongs to g's stack and it is g responsible to realign the stack as needed.

[Bug rtl-optimization/115998] Redundant stack pointer manipulation

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

[Bug tree-optimization/115993] New: `((A)^C)^B` or `(~A & B) ^ C` is more canonical

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115993 Bug ID: 115993 Summary: `((A)^C)^B` or `(~A & B) ^ C` is more canonical Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity:

[Bug tree-optimization/113131] `((A)^C)|B` should be simplified to `C | B`

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113131 --- Comment #2 from Andrew Pinski --- ``` int f(int A, int B, int C) { return ((A)^C)|B; // C|B } int f1(int A, int B, int C) { return ((A|B)^C)|B; // (C^A)|B } int f2(int A, int B, int C) { return ((A^B)^C)|B; // (C^A)|B } int

[Bug tree-optimization/115991] [15 Regression] ICE on linux-6.10 in ix86_print_operand_address_as() since r15-1945-g9d20529d94b232

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 --- Comment #7 from Andrew Pinski --- (In reply to Sam James from comment #6) > The ICE bisects to r15-1945-g9d20529d94b232. The ivopts issue needs to be > done still. Note this is basically the same issue as PR 115881 except it could be fixed

[Bug tree-optimization/115991] [15 Regression] ICE on linux-6.10 in ix86_print_operand_address_as()

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 --- Comment #5 from Andrew Pinski --- Note the testcase in PR 115992 also produces the same broken IV-OPTS even on aarch64 this time around.

[Bug rtl-optimization/115992] [15 regression] ICE when building linux-6.9.10 (RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1934)

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

[Bug tree-optimization/115991] [15 Regression] ICE on linux-6.10 in ix86_print_operand_address_as()

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 --- Comment #4 from Andrew Pinski --- *** Bug 115992 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/115991] [15 Regression] ICE on linux-6.10 in ix86_print_operand_address_as()

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 --- Comment #3 from Andrew Pinski --- It is ok on aarch64: ivtmp.16_6 = (unsigned long) I didn't look into why x86 choices unsigned int and why aarch64 choises unsigned long though.

[Bug tree-optimization/115991] [15 Regression] ICE on linux-6.10 in ix86_print_operand_address_as()

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #2 from

[Bug tree-optimization/115991] [15 Regression] ICE on linux-6.10 in ix86_print_operand_address_as()

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 See Also|

[Bug middle-end/115913] [11/12/13/14/15 Regression] ICE with pragma GCC pop_options with diagnostic since r11-1141

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115913 --- Comment #7 from Andrew Pinski --- The bigger question should `GCC pop_options` also pop the diagnostic option changes too? or is that only done with `GCC diagnostic pop`.

[Bug tree-optimization/112626] `ABS(a) CMP a` can be optimized

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112626 --- Comment #2 from Andrew Pinski --- For non wrapping case: #define func(opname,op) int abs##opname (int a) { return __builtin_abs(a) op a; } func(le,<=) // a >= 0 func(lt,<) // false func(ge,>=) // true func(gt,>) // a < 0 func(eq,==) //

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #9 from Andrew Pinski --- https://inbox.sourceware.org/gcc-patches/alpine.lnx.2.00.1005251143560.1...@zhemvz.fhfr.qr/ https://inbox.sourceware.org/gcc-patches/alpine.lnx.2.00.1005251147450.1...@zhemvz.fhfr.qr/ Fortran enabling

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #8 from Andrew Pinski --- https://inbox.sourceware.org/gcc-patches/alpine.lnx.2.00.1005211345180.1...@zhemvz.fhfr.qr/ The discussion when the patch was posted.

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #7 from Andrew Pinski --- https://inbox.sourceware.org/gcc/alpine.lnx.2.00.1005061613520.1...@zhemvz.fhfr.qr/ is the original discussion about adding -Ofast.

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #5 from Andrew Pinski --- https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Optimize-Options.html#index-Ofast

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #4 from Andrew Pinski --- (In reply to Aaron Ballman from comment #3). > > > > People will never read the documentation either way anyways. > > Agreed, that's part of why we're deprecating. That is a real bad excuse really. Also

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #2 from Andrew Pinski --- https://gcc.gnu.org/wiki/FloatingPointMath

[Bug driver/115990] Consider deprecating -Ofast

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990 --- Comment #1 from Andrew Pinski --- I don't think it should be deprecated or removed. It still has its uses. Documentation is clear too. We just fixed some documentation about the flags being enabled by -Ofast too. People will never read

[Bug target/115982] ICE: unrecognizable insn in ira_remove_insn_scratches with -mavx512vl

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

[Bug target/115982] ICE: unrecognizable insn in ira_remove_insn_scratches with -mavx512vl

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115982 Andrew Pinski changed: What|Removed |Added Keywords|ra | Component|rtl-optimization

[Bug c++/115985] anonymous struct with base class rejected by gcc

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

[Bug rtl-optimization/115984] Missed optimization: unnecessary register copies

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

[Bug c++/115986] [14/15 Regression] ICE in fold_convert_loc, at fold-const.cc:2644 involving consteval user-defined uint128 literals

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

[Bug c++/115986] [14/15 Regression] ICE in fold_convert_loc, at fold-const.cc:2644 involving consteval user-defined uint128 literals

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115986 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code

[Bug c++/109642] False Positive -Wdangling-reference with std::span-like classes

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109642 Andrew Pinski changed: What|Removed |Added CC||durosu at yahoo dot com --- Comment

[Bug c++/115987] False "possibly dangling reference" false positive when having an extra template parameter

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

[Bug tree-optimization/82776] Unable to optimize the loop when iteration count is unavailable.

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

[Bug target/115969] [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > The problem is here: > ``` > /* Return TRUE if OP is a valid vector addressing mode. */ > > bool > aarch64_simd_mem_operand_p (rtx op) > { > return MEM_P

[Bug target/115969] [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969 Andrew Pinski changed: What|Removed |Added Component|rtl-optimization|target --- Comment #6 from Andrew

[Bug rtl-optimization/115969] [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969 Andrew Pinski changed: What|Removed |Added Component|target |rtl-optimization

[Bug sanitizer/115972] [10/11 Regression] Misaligned address error check missing

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

[Bug target/115969] [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969 Andrew Pinski changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org ---

[Bug target/115969] [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug target/115969] [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969 --- Comment #2 from Andrew Pinski --- #5 0x00f7d015 in output_asm_insn (operands=, templ=0x287a292 "ld1r\t{%0.2s}, %1") at ../../gcc/final.cc:3420 3420 if (*templ == 0) (gdb) up (insn:TI 233 1301 1297 (set (reg:V2SI 63 v31)

[Bug tree-optimization/115977] [12/13/14/15 Regression] [sra] Regression targeting PowerPC 970

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115977 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug tree-optimization/115977] [12/13 Regression] [sra] Regression targeting PowerPC 970

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

[Bug tree-optimization/115976] Missing uadd_sat/usub_sat/sstrunc vectorization

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115976 Andrew Pinski changed: What|Removed |Added Summary|Missing uadd_sat/usub_sat |Missing

[Bug target/115974] sat_add, etc. vector patterns not done for aarch64 (non-sve)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115974 --- Comment #3 from Andrew Pinski --- here is testcase for ustrunc at least (note llvm does not use uqxtn here even though it could): ``` void ustrunc0(unsigned long long *__restrict__ a, unsigned * __restrict__ b) { int i = 0;

[Bug target/115974] sat_add, etc. vector patterns not done for aarch64 (non-sve)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115974 --- Comment #2 from Andrew Pinski --- ssadd_optab -> SQADD usadd_optab -> UQADD sssub_optab -> SQSUB ussub_optab -> UQSUB (q) ustrunc_optab -> UQXTN sstrunc_optab -> SQXTN (aarch64_qmovn)

[Bug tree-optimization/115976] Missing uadd_sat/usub_sat vectorization

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115976 --- Comment #1 from Andrew Pinski --- Note f2 should really be: ``` void f2(unsigned *__restrict__ a, unsigned * __restrict__ b) { for(int i = 0;i < 1024;i ++) { long long ta = a[i]; long long tb = b[i];

[Bug tree-optimization/115976] New: Missing uadd_sat/usub_sat vectorization

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115976 Bug ID: 115976 Summary: Missing uadd_sat/usub_sat vectorization Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug target/115975] New: sat_add, etc. vector patterns not done for aarch64 (sve)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115975 Bug ID: 115975 Summary: sat_add, etc. vector patterns not done for aarch64 (sve) Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization

[Bug target/115974] sat_add, etc. vector patterns not done for aarch64 (simd)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115974 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Severity|normal

[Bug target/115974] New: sat_add vector patterns not done for aarch64

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115974 Bug ID: 115974 Summary: sat_add vector patterns not done for aarch64 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug other/115970] RFE: add support for sending SARIF output to a pipe

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115970 --- Comment #1 from Andrew Pinski --- Isn't this just writing through a named pipe?

[Bug c++/115960] gcc throws an error when I use Optional in c++17.

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115960 --- Comment #6 from Andrew Pinski --- (In reply to Noah Williams from comment #5) > It isn't? The library I was trying to compile included the "optional" > header, and I had looked it up and found it was part of C++ 17, so I thought > it was

[Bug tree-optimization/111150] (vec CMP vec) != (vec CMP vec) should just produce (vec CMP vec) ^ (vec CMP vec)

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/111150] (vec CMP vec) != (vec CMP vec) should just produce (vec CMP vec) ^ (vec CMP vec)

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

[Bug c++/115968] g++ 12 and above incorrectly optimize the code with Eigen (-O2 or -O1)

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

[Bug tree-optimization/107200] False positive -Wdangling-pointer?

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107200 Andrew Pinski changed: What|Removed |Added CC||summersnow9403 at gmail dot com ---

[Bug tree-optimization/107200] False positive -Wdangling-pointer?

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107200 Andrew Pinski changed: What|Removed |Added CC||akihiko.odaki at daynix dot com ---

[Bug c++/115291] armv8-a GCC emits float32x2_t loads from uninitialized stack

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

[Bug tree-optimization/107200] False positive -Wdangling-pointer?

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107200 --- Comment #5 from Andrew Pinski --- See https://libeigen.gitlab.io/docs/TopicPitfalls.html section "C++11 and the auto keyword" explictly.

[Bug target/115966] [15 Regression] Miscompilation of 403.gcc with -Ofast -march=native on x86_64

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115966 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug c++/115965] Stack smashing depending on order of declaration

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115965 --- Comment #7 from Andrew Pinski --- Note valgrind in this case cannot always capture buffer overruns due to it cann't easily add a redzone (buffer to detect overruns) for stack arrays. This is why -fsanitize=address is more powerful than both

[Bug c++/115965] Stack smashing depending on order of declaration

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

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2024-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 115967, which changed state. Bug 115967 Summary: ubsan: shift exponent 64 is too large for 64-bit type HOST_WIDE_INT in ext-dce.cc on line 600 since r15-1901-g98914f9eba5f19

[Bug middle-end/115967] ubsan: shift exponent 64 is too large for 64-bit type HOST_WIDE_INT in ext-dce.cc on line 600 since r15-1901-g98914f9eba5f19

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

<    1   2   3   4   5   6   7   8   9   10   >