[Bug target/113040] [14 Regression] libmvec test failures

2023-12-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113040 Richard Biener changed: What|Removed |Added Priority|P3 |P1 Target|x86-64

[Bug d/113081] New: static linking does not work

2023-12-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113081 Bug ID: 113081 Summary: static linking does not work Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assig

[Bug tree-optimization/113080] New: Missed optimization of loop invariant elimination

2023-12-18 Thread 652023330028 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113080 Bug ID: 113080 Summary: Missed optimization of loop invariant elimination Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3

2023-12-18 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111591 Kewen Lin changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug target/113079] [x86] Fails to generate dot_prod instructions for 64-bit vector.

2023-12-18 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113079 --- Comment #1 from Hongtao Liu --- (In reply to Hongtao Liu from comment #0) > int > foo (int n, unsigned char* p, char* pi) > { > int sum = 0; > for (int i = 0; i != 8; i++) > { > sum += p[i] * pi[i]; > } > return s

[Bug rtl-optimization/112525] fail to eliminate unused store

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112525 --- Comment #7 from GCC Commits --- The master branch has been updated by Jiu Fu Guo : https://gcc.gnu.org/g:4759383245ac97a5c83c0272f0a831f2a26ea5c1 commit r14-6674-g4759383245ac97a5c83c0272f0a831f2a26ea5c1 Author: Jiufu Guo Date: Tue Dec

[Bug target/30271] -mstrict-align can an store extra for struct agrument passing

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30271 --- Comment #14 from GCC Commits --- The master branch has been updated by Jiu Fu Guo : https://gcc.gnu.org/g:4759383245ac97a5c83c0272f0a831f2a26ea5c1 commit r14-6674-g4759383245ac97a5c83c0272f0a831f2a26ea5c1 Author: Jiufu Guo Date: Tue Dec

[Bug target/113079] New: [x86] Fails to generate dot_prod instructions for 64-bit vector.

2023-12-18 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113079 Bug ID: 113079 Summary: [x86] Fails to generate dot_prod instructions for 64-bit vector. Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/111930] aarch64: SME should be supported

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

[Bug target/112943] [14 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1176 with -O2 -march=westmere -mapxf

2023-12-18 Thread hongyuw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112943 --- Comment #6 from Hongyu Wang --- (In reply to Hongtao Liu from comment #3) > (In reply to Jakub Jelinek from comment #1) > > Why does ix86_expand_binary_operator have the use_ndd argument at all? > > Shouldn't it always act as if the argumen

[Bug c++/113047] dereferencing a null pointer in a constant expression

2023-12-18 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113047 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #3 from Jian

[Bug libstdc++/113074] std::to_address should be SFINAE safe

2023-12-18 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #6 from Jian

[Bug tree-optimization/113078] [14 regression] reduction of cond_sub is not vectorized.

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113078 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-12-19 Status|UNCONFIRM

[Bug tree-optimization/113078] New: [14 regression] reduction of cond_sub is not vectorized.

2023-12-18 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113078 Bug ID: 113078 Summary: [14 regression] reduction of cond_sub is not vectorized. Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Prio

[Bug middle-end/113077] [14 Regression] ICE in dwarf2out_frame_debug_cfa_offset with `-O2 -fstack-protector-strong -fstack-clash-protection`

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113077 Andrew Pinski changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment

[Bug middle-end/113077] [14 Regression] ICE in dwarf2out_frame_debug_cfa_offset with `-O2 -fstack-protector-strong -fstack-clash-protection`

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113077 --- Comment #1 from Andrew Pinski --- Worked with r14-6063-gc6bb413eeb9 but fails with r14-6663-g4554a151d0ec62 .

[Bug middle-end/113077] [14 Regression] ICE in dwarf2out_frame_debug_cfa_offset with `-O2 -fstack-protector-strong -fstack-clash-protection`

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113077 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug middle-end/113077] New: [14 Regression] ICE in dwarf2out_frame_debug_cfa_offset with `-O2 -fstack-protector-strong -fstack-clash-protection`

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113077 Bug ID: 113077 Summary: [14 Regression] ICE in dwarf2out_frame_debug_cfa_offset with `-O2 -fstack-protector-strong -fstack-clash-protection` Product: gcc Version

[Bug tree-optimization/112468] [14 Regression] Missed phi-opt after recent change (phi-opt-24.c)

2023-12-18 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112468 sandra at gcc dot gnu.org changed: What|Removed |Added CC||sandra at gcc dot gnu.org --

[Bug middle-end/56888] memcpy implementation optimized as a call to memcpy

2023-12-18 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 --- Comment #48 from M Welinder --- It's your (1). gcc is changing a program that can rely on errno not being changed to one where the C library can change it. (The current C library or any future library that the resulting binary may be dynami

[Bug target/113076] New: [14] RISC-V: gfortran.dg/dec_io_1.f90 runtime error after r14-4971-g0beb1611754

2023-12-18 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113076 Bug ID: 113076 Summary: [14] RISC-V: gfortran.dg/dec_io_1.f90 runtime error after r14-4971-g0beb1611754 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity

[Bug tree-optimization/110279] [14 Regression] Regressions on aarch64 cause by handing FMA in reassoc (510.parest_r, 508.namd_r)

2023-12-18 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110279 sandra at gcc dot gnu.org changed: What|Removed |Added CC||sandra at gcc dot gnu.org --

[Bug libstdc++/113074] std::to_address should be SFINAE safe

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 --- Comment #5 from Andrew Pinski --- Created attachment 56905 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56905&action=edit testcase which shows libc++ and libstdc++ difference with libstdc++, both GCC and clang reject this. with libc

[Bug libstdc++/113068] : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/113074] std::to_address should be SFINAE safe

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 --- Comment #4 from Andrew Pinski --- >This case fails in Clang with the expected outcome (it fails to resolve to a >valid call). No it fails the same way if you use libstdc++ from GCC. It fails that way if you use libc++ from the LLVM project

[Bug libstdc++/113068] : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 Bug 113068 depends on bug 112802, which changed state. Bug 112802 Summary: : _ToClosure::operator() has no constraints https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112802 What|Removed |Added ---

[Bug libstdc++/112802] : _ToClosure::operator() has no constraints

2023-12-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112802 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/112802] : _ToClosure::operator() has no constraints

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112802 --- Comment #3 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4f54e656788be3268dd45eb036447464a937fae9 commit r14-6668-g4f54e656788be3268dd45eb036447464a937fae9 Author: Patrick Palka Date: M

[Bug libstdc++/113068] : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 --- Comment #4 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4f54e656788be3268dd45eb036447464a937fae9 commit r14-6668-g4f54e656788be3268dd45eb036447464a937fae9 Author: Patrick Palka Date: M

[Bug libstdc++/113074] requires requires should be SFINAE

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 --- Comment #3 from Andrew Pinski --- https://eel.is/c++draft/memory#pointer.conversion As far as I can tell, std::to_address is not required to be SFINAE safe ... The standard just says: ``` Returns: pointer_traits​::​to_address(p) if that e

[Bug libstdc++/113074] requires requires should be SFINAE

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Oh > https://cplusplus.github.io/LWG/issue3545 Whoops wrong one.

[Bug libstdc++/113074] requires requires should be SFINAE

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 --- Comment #1 from Andrew Pinski --- Oh https://cplusplus.github.io/LWG/issue3545

[Bug c++/113075] New: Inconsistent/wrong diagnostic when incorrectly taking address of single/overloaded

2023-12-18 Thread waffl3x at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113075 Bug ID: 113075 Summary: Inconsistent/wrong diagnostic when incorrectly taking address of single/overloaded Product: gcc Version: 14.0 Status: UNCONFIRMED Sever

[Bug target/112918] [m68k] [LRA] ICE: maximum number of generated reload insns per insn achieved (90)

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112918 --- Comment #13 from GCC Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:989e67f827b74b76e58abe137ce12d948af2290c commit r14-6667-g989e67f827b74b76e58abe137ce12d948af2290c Author: Vladimir N. Makarov

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread juki at gcc dot mail.kapsi.fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 --- Comment #7 from juki at gcc dot mail.kapsi.fi --- (In reply to Xi Ruoyao from comment #6) > Works for me: I also have plenty of code where this works just fine and still some locations where it does not. And there are optimization level requ

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 --- Comment #6 from Xi Ruoyao --- Works for me: #include #include #define LOAD_SI128(ptr) \ ( ((uintptr_t)(ptr) & 15) == 0 ) ? _mm_load_si128((__m128i*)(ptr)) : _mm_loadu_si128((__m128i*)(ptr)) extern char x[16]; __m128i y; void te

[Bug fortran/85836] [meta-bug] Fortran 2018 support

2023-12-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85836 Bug 85836 depends on bug 96580, which changed state. Bug 96580 Summary: F2018 changes to date_and_time intrinsics https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96580 What|Removed |Added --

[Bug fortran/96580] F2018 changes to date_and_time intrinsics

2023-12-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96580 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |14.0 Resolution|---

[Bug middle-end/56888] memcpy implementation optimized as a call to memcpy

2023-12-18 Thread david at westcontrol dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 --- Comment #47 from David Brown --- (In reply to M Welinder from comment #46) > Should "-std=c99" imply turning off these optimizations? > > Creating calls to, say, strlen is incompatible with the C99 standard and > perhaps better limited to "-

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread juki at gcc dot mail.kapsi.fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 --- Comment #5 from juki at gcc dot mail.kapsi.fi --- (In reply to Xi Ruoyao from comment #4) > (In reply to Xi Ruoyao from comment #3) > > > > This won't work if ptr is a __m128i *. It is allowed to optimize > > (uintptr_t)(__m128i *)foo % 15

[Bug c++/113074] New: requires requires should be SFINAE

2023-12-18 Thread jdapena at igalia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113074 Bug ID: 113074 Summary: requires requires should be SFINAE Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/113073] New: [14] RISC-V: segfault from out of bounds memory access in gcc.dg/torture/pr112736.c

2023-12-18 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113073 Bug ID: 113073 Summary: [14] RISC-V: segfault from out of bounds memory access in gcc.dg/torture/pr112736.c Product: gcc Version: 14.0 Status: UNCONFIRMED Seve

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 --- Comment #4 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #3) > (In reply to juki from comment #2) > > Unfortunately alignment of the cast type was not causing this issue. > > > > I changed all calls that were defined in GCC headers

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #3 fr

[Bug middle-end/56888] memcpy implementation optimized as a call to memcpy

2023-12-18 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 --- Comment #46 from M Welinder --- Should "-std=c99" imply turning off these optimizations? Creating calls to, say, strlen is incompatible with the C99 standard and perhaps better limited to "-std=gnu-something" or an opt-in f-flag.

[Bug target/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 --- Comment #9 from Xi Ruoyao --- diff --git a/gcc/config/loongarch/loongarch.cc b/gcc/config/loongarch/loongarch.cc index 256fa7d048d..65a2915329e 100644 --- a/gcc/config/loongarch/loongarch.cc +++ b/gcc/config/loongarch/loongarch.cc @@ -10770,

[Bug target/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 Xi Ruoyao changed: What|Removed |Added Component|middle-end |target --- Comment #8 from Xi Ruoyao --- (

[Bug target/112816] [11/12 Regression] ICE unrecognizable_insn with __builtin_signbit and returning struct with int[4]

2023-12-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112816 --- Comment #16 from Jakub Jelinek --- Created attachment 56903 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56903&action=edit gcc14-pr112816-3.patch Ah, forgot some expanders in mmx.md.

[Bug c++/113064] assignement from temporary sometimes invokes copy-assign instead of move-assign operator

2023-12-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113064 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug target/113040] [14 Regression] libmvec test failures

2023-12-18 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113040 H.J. Lu changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug fortran/96585] Fortran 2018 changes to get_command_argument

2023-12-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96585 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/96584] f2018 changes to get_command

2023-12-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96584 anlauf at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/113072] `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113072 --- Comment #4 from Andrew Pinski --- Note this applies to `|` instead of `&` too: ``` int foo1(int a, int b) { return (a ^ 4) | (~a ^ 4); } ``` This should be optimized to `-1`. Though this does NOT get optimized to `-1` on the RTL lev

[Bug fortran/96580] F2018 changes to date_and_time intrinsics

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96580 --- Comment #5 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:b77691a90fc8a7e917417ce747bf78669304f951 commit r14-6665-gb77691a90fc8a7e917417ce747bf78669304f951 Author: Harald Anlauf Date: Mo

[Bug target/112816] [11/12 Regression] ICE unrecognizable_insn with __builtin_signbit and returning struct with int[4]

2023-12-18 Thread a.elovikov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112816 --- Comment #15 from Andrei Elovikov --- I'd like to point out that while the first reproducer (https://godbolt.org/z/3vzejjWcq) started to pass now on godbolt, the second (https://godbolt.org/z/cEh1W7PdG) still fails with an ICE. Please let me

[Bug tree-optimization/113072] `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113072 --- Comment #3 from Andrew Pinski --- here is the bool testcase which just allows the use of ^: ``` bool foo1(bool a, int b) { bool b1 = b == 1; bool b2 = !b1; return (a ^ b1) & (a ^ b2); } ```

[Bug tree-optimization/113072] `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113072 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/113072] `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113072 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug tree-optimization/113072] `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113072 --- Comment #1 from Andrew Pinski --- Wait this part is wrong `which does basically `(a ^ 4) & (a ^ (~4))` -> `(4 ^ (~4)) & (a ^ a)` which is 0 as `a ^ a` is 0.` Anyways a pattern like: ``` (simplify (bit_and (bit_xor @0 @1) (bit_xor @0 @2))

[Bug tree-optimization/113072] New: `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113072 Bug ID: 113072 Summary: `(a ^ CST0) & (~a ^ CST0)` is not optimized to 0 at the gimple level Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: TREE

[Bug tree-optimization/113071] New: `((a == c) || (a == b)) ? a : b` is sometimes not optimized to `(a == c) ? c : b`

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113071 Bug ID: 113071 Summary: `((a == c) || (a == b)) ? a : b` is sometimes not optimized to `(a == c) ? c : b` Product: gcc Version: 14.0 Status: UNCONFIRMED Keywor

[Bug fortran/96580] F2018 changes to date_and_time intrinsics

2023-12-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96580 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu.

[Bug target/113070] New: [14 regression] [AArch64] [PGO/LTO] Miscompilation of go compiler

2023-12-18 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113070 Bug ID: 113070 Summary: [14 regression] [AArch64] [PGO/LTO] Miscompilation of go compiler Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: lto, wrong-c

[Bug tree-optimization/113069] gimple-ssa-sccopy.cc:143:12: warning: private field 'curr_generation' is not used [-Wunused-private-field]

2023-12-18 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113069 David Binderman changed: What|Removed |Added CC||fkastl at suse dot cz --- Comment #1

[Bug libstdc++/113068] : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 --- Comment #3 from Patrick Palka --- It could, but IMHO it's a different enough testcase/issue that a separate PR is fine too.

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug c++/113025] Pointer is sometimes assumed to be 16-byte aligned even when there is no such guarantee

2023-12-18 Thread juki at gcc dot mail.kapsi.fi via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113025 juki at gcc dot mail.kapsi.fi changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #2 fro

[Bug rust/113056] [14 regression] Build failure in libgrust

2023-12-18 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113056 Thomas Schwinge changed: What|Removed |Added Keywords||patch --- Comment #12 from Thomas Sch

[Bug c/113069] New: gimple-ssa-sccopy.cc:143:12: warning: private field 'curr_generation' is not used [-Wunused-private-field]

2023-12-18 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113069 Bug ID: 113069 Summary: gimple-ssa-sccopy.cc:143:12: warning: private field 'curr_generation' is not used [-Wunused-private-field] Product: gcc Version: 14.0 Status: UNC

[Bug c++/113063] Strange linker error in special case involving local class with defaulted spaceship operator and static assert

2023-12-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113063 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/113063] Strange linker error in special case involving local class with defaulted spaceship operator and static assert

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

[Bug middle-end/113058] [meta-bug] RTL frontend issues

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113058 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-12-18 Status|UNCONFIRM

[Bug tree-optimization/113054] [14 regressions] ODR warnings when building new SCCP pass

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

[Bug tree-optimization/113054] [14 regressions] ODR warnings when building new SCCP pass

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113054 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:4554a151d0ec62332c332175ec1017f853006b60 commit r14-6663-g4554a151d0ec62332c332175ec1017f853006b60 Author: Andrew Pinski Date: Mo

[Bug libstdc++/113068] : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 --- Comment #2 from 康桓瑋 --- (In reply to Patrick Palka from comment #1) > IIUC this will be fixed by making ranges::to's closure object > SFINAE-friendly. I didn't investigate the root cause in depth. So this should probably be considered a dup

[Bug target/113065] [ARM][NEON] Compiler crashes when doing shift on data with NEON intrinsic type

2023-12-18 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113065 Alex Coplan changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libstdc++/113068] : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned

[Bug target/113040] [14 Regression] libmvec test failures

2023-12-18 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113040 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/113040] [14 Regression] libmvec test failures

2023-12-18 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113040 --- Comment #2 from H.J. Lu --- Created attachment 56902 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56902&action=edit A testcase [hjl@gnu-tgl-3 tmp]$ /export/build/gnu/tools-build/gcc-gitlab-debug/release/usr/gcc-14.0.0-x86-64/bin/gcc

[Bug libstdc++/113068] New: : ranges::to() | ranges::to() is not a range adaptor

2023-12-18 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068 Bug ID: 113068 Summary: : ranges::to() | ranges::to() is not a range adaptor Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority

[Bug middle-end/113066] Returning from a function marked noreturn allows execution to fall-through

2023-12-18 Thread luke.geeson at cs dot ucl.ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113066 Luke Geeson changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/113066] Returning from a function marked noreturn allows execution to fall-through

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113066 --- Comment #3 from Andrew Pinski --- Note -funreachable-traps works for what you want it to work at -O1 and above but not at -O0 due to ub_if_reached not being inlined ...

[Bug middle-end/113066] Returning from a function marked noreturn allows execution to fall-through

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113066 --- Comment #2 from Andrew Pinski --- GCC 2.95.3 has the same behavior

[Bug target/113062] [14 Regression][aarch64] ICE in fuse_pair, at config/aarch64/aarch64-ldp-fusion.cc:1456 since r14-6605-gc0911c6b357ba9

2023-12-18 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113062 --- Comment #2 from Alex Coplan --- So we try to combine these two insns: (insn 14 82 16 2 (set (mem/c:TF (plus:DI (reg/f:DI 31 sp) (const_int 32 [0x20])) [3 %sfp+-32 S16 A128]) (asm_operands:TF ("") ("=g") 0 [

[Bug middle-end/113066] Returning from a function marked noreturn allows execution to fall-through

2023-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113066 --- Comment #1 from Andrew Pinski --- GCC does warn not just once but twice: ``` : In function 'ub_if_reached': :2:44: warning: function declared 'noreturn' has a 'return' statement 2 | [[noreturn]] inline void ub_if_reached() { return; }

[Bug middle-end/113067] [OpenMP][5.1] Context selector - handle 'implementation={requires(...)}'

2023-12-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113067 --- Comment #1 from Tobias Burnus --- Created attachment 56901 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56901&action=edit Simple testcase (C and Fortran) - as same-directory .diff

[Bug middle-end/113067] New: [OpenMP][5.1] Context selector - handle 'implementation={requires(...)}'

2023-12-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113067 Bug ID: 113067 Summary: [OpenMP][5.1] Context selector - handle 'implementation={requires(...)}' Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: openm

[Bug rust/113056] [14 regression] Build failure in libgrust

2023-12-18 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113056 Thomas Schwinge changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tschwinge at gcc dot gnu.org

[Bug translation/113066] New: Returning from a function marked noreturn allows execution to fall-through

2023-12-18 Thread luke.geeson at cs dot ucl.ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113066 Bug ID: 113066 Summary: Returning from a function marked noreturn allows execution to fall-through Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: nor

[Bug middle-end/111975] gimple front end can't round-trip vectorized code

2023-12-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111975 --- Comment #5 from Richard Biener --- What's left is the dots.

[Bug middle-end/111975] gimple front end can't round-trip vectorized code

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111975 --- Comment #4 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:88a398a487ee37f1fc7850740f2d94d895657646 commit r14-6662-g88a398a487ee37f1fc7850740f2d94d895657646 Author: Richard Biener Date:

[Bug libstdc++/113060] std::variant converting constructor/assignment is non-conforming after P2280?

2023-12-18 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113060 --- Comment #2 from Giuseppe D'Angelo --- (In reply to Jonathan Wakely from comment #1) > (In reply to Giuseppe D'Angelo from comment #0) > > GCC 14 implements P2280 (see #106650). > > N.B. if you say "Bug 106650" or "PR 106650" or "bug #10665

[Bug middle-end/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 Xi Ruoyao changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/69374] install.texi is bit-rotten

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69374 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Gerald Pfeifer : https://gcc.gnu.org/g:04538248c3ed202fd938f0ceff65ecce3b1786f3 commit r14-6660-g04538248c3ed202fd938f0ceff65ecce3b1786f3 Author: Gerald Pfeifer Date: M

[Bug target/113061] [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9

2023-12-18 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061 Alex Coplan changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c/112432] Internal-fn: The [i|l|ll]rint family don't support FLOATN

2023-12-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112432 --- Comment #8 from GCC Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:b3b2799b872bc4c1944629af9dfc8472c8ca5fe6 commit r14-6659-gb3b2799b872bc4c1944629af9dfc8472c8ca5fe6 Author: Juzhe-Zhong Date: Mon Dec 18

[Bug rust/113056] [14 regression] Build failure in libgrust

2023-12-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113056 --- Comment #10 from Sam James --- (In reply to Sam James from comment #8) > for the pkg build (original report): no > for the quick test I did earlier: yes because I was rushing, oops /tmp/build $ ~/git/gcc/configure --prefix=/tmp/gcc --enable

[Bug c++/113064] assignement from temporary sometimes invokes copy-assign instead of move-assign operator

2023-12-18 Thread m.cencora at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113064 --- Comment #2 from m.cencora at gmail dot com --- > When invoking the conversion operator the problem does not occur. When invoking the conversion operator *explicitly* the problem does not occur.

[Bug c++/113064] assignement from temporary sometimes invokes copy-assign instead of move-assign operator

2023-12-18 Thread m.cencora at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113064 --- Comment #1 from m.cencora at gmail dot com --- Fixed sample (a typo in else branch of WORKAROUND2): struct no_copy { no_copy() = default; no_copy(const no_copy&) = delete; no_copy(no_copy&&); no_copy& operator=(const no_cop

[Bug c/113065] [ARM][NEON] Compiler crashes when doing shift on data with NEON intrinsic type

2023-12-18 Thread clh960524+gcc at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113065 --- Comment #1 from 陳履軒 --- Here's the result after compiling: $ arm-linux-gnueabihf-gcc -mcpu=cortex-a32 -mfpu=crypto-neon-fp-armv8 -Wextra -Werror -Wall -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations test.c during RTL pass: e

  1   2   >