[Bug target/58416] Incorrect x87-based union copying code

2024-08-21 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416 --- Comment #29 from Sam James --- It wasn't clear to me if your case was fixed (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416#c23) or if it needed reduction.

[Bug target/58416] Incorrect x87-based union copying code

2024-08-21 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416 --- Comment #28 from Paul Eggert --- Thanks for the fix. I updated Emacs to no longer work around the bug when GCC 15+ is being used, here: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3d1d4f109ed4115256a08c74eeb704259d91c9f4

[Bug target/116415] [12/13/14/15 Regression][PPC64LE] atomics wrongly use vector instructions in DWCAS.

2024-08-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415 --- Comment #8 from Kewen Lin --- Some more information: bisection showed it started to fail from r12-4240-g2b8453c401b699 which enabled vectorization at -O2. But by further checking, I confirmed that commit just exposed this latent issue, if we

[Bug c/116457] Add -frandomize-layout-seed and -frandomize-layout-seed-file

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116457 --- Comment #3 from Andrew Pinski --- This is NOT a security feature. It actually can introduce security bugs and even make things un-reproducible. As mentioned in the other bug, the c++ standard went out of their way to say this is invalid eve

[Bug c/116457] Add -frandomize-layout-seed and -frandomize-layout-seed-file

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

[Bug c/84052] Using Randomizing structure layout plugin in linux kernel compilation doesn't generate proper debuginfo

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

[Bug c/116457] Add -frandomize-layout-seed and -frandomize-layout-seed-file

2024-08-21 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116457 --- Comment #1 from Sam James --- (In reply to Sam James from comment #0) > Clang implemented -frandomize-layout-seed and -frandomize-layout-seed-file > instead. ... with the `randomize_layout` struct attribute.

[Bug c/116457] Add -frandomize-layout-seed and -frandomize-layout-seed-file

2024-08-21 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116457 Sam James changed: What|Removed |Added Severity|normal |enhancement

[Bug c/116457] New: Add -frandomize-layout-seed and -frandomize-layout-seed-file

2024-08-21 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116457 Bug ID: 116457 Summary: Add -frandomize-layout-seed and -frandomize-layout-seed-file Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c/84052] Using Randomizing structure layout plugin in linux kernel compilation doesn't generate proper debuginfo

2024-08-21 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84052 Sam James changed: What|Removed |Added CC||david.faust at oracle dot com,

[Bug c/116456] New: initialization of auto / __auto_type variable at file scope with compound literal with const

2024-08-21 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116456 Bug ID: 116456 Summary: initialization of auto / __auto_type variable at file scope with compound literal with const Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 Andrew Pinski changed: What|Removed |Added Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Created attachment 58974 [details] > Patch which I am testing > > Simple tests on the testcase works and we get the correct behavior now. This patch causes som

[Bug libstdc++/116455] Should std::noop_coroutine() be constexpr?

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116455 --- Comment #6 from Andrew Pinski --- (In reply to Zhao Dai from comment #5) > (In reply to Andrew Pinski from comment #4) > > (In reply to Zhao Dai from comment #3) > > > I understand that the standard says so. > > > > > > But the question is:

[Bug libstdc++/116455] Should std::noop_coroutine() be constexpr?

2024-08-21 Thread daidodo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116455 --- Comment #5 from Zhao Dai --- (In reply to Andrew Pinski from comment #4) > (In reply to Zhao Dai from comment #3) > > I understand that the standard says so. > > > > But the question is: Should it? > > This is not the correct forum for tha

[Bug libstdc++/116455] Should std::noop_coroutine() be constexpr?

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116455 --- Comment #4 from Andrew Pinski --- (In reply to Zhao Dai from comment #3) > I understand that the standard says so. > > But the question is: Should it? This is not the correct forum for that though.

[Bug libstdc++/116455] Should std::noop_coroutine() be constexpr?

2024-08-21 Thread daidodo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116455 Zhao Dai changed: What|Removed |Added CC||daidodo at gmail dot com --- Comment #3 from

[Bug c++/116440] [14/15 Regression] [C++20] std::tuple> does not compile

2024-08-21 Thread tianchengyu at tencent dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116440 --- Comment #4 from Tiancheng Yu --- on clang 18.1, works with both libstdc++ (from GCC 13.2.0) and libc++. on clang trunk, works with libc++ (trunk) but not libstdc++ (trunk).

[Bug c++/116440] [14/15 Regression] [C++20] std::tuple> does not compile

2024-08-21 Thread tianchengyu at tencent dot com via Gcc-bugs
and for the latter, *which version* > of libstdc++. Sorry for not being clear. clang does not compile with libstdc++ (trunk, as of 20240821), but works fine with libc++.

[Bug c++/116168] Segmentation fault when compiling user-defined partial_ordering

2024-08-21 Thread daidodo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116168 Zhao Dai changed: What|Removed |Added CC||daidodo at gmail dot com --- Comment #2 from

[Bug libstdc++/116455] Should std::noop_coroutine() be constexpr?

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

[Bug libstdc++/116455] Should std::noop_coroutine() be constexpr?

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116455 --- Comment #1 from Andrew Pinski --- I think the standard does not define it as constexpr which is why it is not constexpr in libstdc++.

[Bug libstdc++/116455] New: Should std::noop_coroutine() be constexpr?

2024-08-21 Thread daidodo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116455 Bug ID: 116455 Summary: Should std::noop_coroutine() be constexpr? Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lib

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 --- Comment #5 from Andrew Pinski --- Created attachment 58974 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58974&action=edit Patch which I am testing Simple tests on the testcase works and we get the correct behavior now.

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 --- Comment #4 from Andrew Pinski --- Another testcase: ``` static int t = 0; _Complex float f() { t++; return 0; } int main() { t = 0; f() * 1j; // incorrectly invokes f() twice if (t != 1) __bu

[Bug rtl-optimization/116437] [15 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1934 with -O2 -march=emeraldrapids -fno-split-wide-types -m32

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

[Bug rtl-optimization/116437] [15 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1934 with -O2 -march=emeraldrapids -fno-split-wide-types -m32

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116437 --- Comment #4 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:cdc9cd4afe8949276a0c50215eb7f23e2086044f commit r15-3074-gcdc9cd4afe8949276a0c50215eb7f23e2086044f Author: Jeff Law Date: Wed Aug 21

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread Liam_Kerrigan at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 --- Comment #3 from Liam Kerrigan --- (In reply to Andrew Pinski from comment #2) > I will take care of fixing this. Thank you for fixing my original title, which I now realize was really incorrect. It is very impressive to me how quickly you a

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Known to work|

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

2024-08-21 Thread lucier at math dot purdue.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 lucier at math dot purdue.edu changed: What|Removed |Added CC||lucier at math dot purdue.

[Bug middle-end/116454] [12/13/14/15 Regression] `*++ptr * 1j` is handled incorrectly with -ffast-math, increments ptr twice

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code Summary|`*++ptr *

[Bug c/116454] New: Under certain conditions, gcc produces an extra "addq $8, 40(%rsp)" instruction overfreeing the stack.

2024-08-21 Thread Liam_Kerrigan at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116454 Bug ID: 116454 Summary: Under certain conditions, gcc produces an extra "addq $8, 40(%rsp)" instruction overfreeing the stack. Product: gcc Version: 14.2.0 Status: UNCON

[Bug middle-end/116453] Large code when initializing array using user defined literals

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

[Bug middle-end/116453] Large code when initializing array using user defined literals

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116453 --- Comment #2 from Andrew Pinski --- Created attachment 58972 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58972&action=edit testcase

[Bug middle-end/116453] Large code when initializing array using user defined literals

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116453 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Component|tree-opt

[Bug tree-optimization/116453] New: Large code when initializing array using user defined literals

2024-08-21 Thread JoernRath at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116453 Bug ID: 116453 Summary: Large code when initializing array using user defined literals Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/116451] Missing conversion warning from std::exclusive_scan, related to -Wsystem-headers

2024-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116451 --- Comment #2 from Jonathan Wakely --- Basically a dup of PR 87614

[Bug gcov-profile/116452] Inconsistent way of reporting negative counter values

2024-08-21 Thread wentaoz5 at illinois dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116452 --- Comment #2 from Wentao Zhang --- Thanks for your prompt response! I was actually thinking: should we let line coverage also report "-125" instead of "#" so that people know the profile is invalid?

[Bug c++/116451] Missing conversion warning from std::exclusive_scan, related to -Wsystem-headers

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116451 --- Comment #1 from Andrew Pinski --- Note -Wconversion is not enabled by -Wall or -Wextra, so I am not sure this is a bug ...

[Bug gcov-profile/116452] Inconsistent way of reporting negative counter values

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

[Bug c++/116450] [14 Regression] ICE in in expand_expr_real_1, at expr.cc:11376

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

[Bug c++/116327] [14/15 Regression] ICE in coroutine with parameter preview on lambda with captures since r15-2210

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116327 Andrew Pinski changed: What|Removed |Added CC||indiosmo at gmail dot com --- Comment #

[Bug c++/116450] [14 Regression] ICE in in expand_expr_real_1, at expr.cc:11376

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116450 Andrew Pinski changed: What|Removed |Added Known to work||15.0 Target Milestone|---

[Bug gcov-profile/116452] New: Inconsistent way of reporting negative counter values

2024-08-21 Thread wentaoz5 at illinois dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116452 Bug ID: 116452 Summary: Inconsistent way of reporting negative counter values Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug libstdc++/116451] New: Missing conversion warning from std::exclusive_scan, related to -Wsystem-headers

2024-08-21 Thread heuristic42 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116451 Bug ID: 116451 Summary: Missing conversion warning from std::exclusive_scan, related to -Wsystem-headers Product: gcc Version: 14.2.1 Status: UNCONFIRMED Sever

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2024-08-21 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #17 from Edwin Lu --- (In reply to Jerry DeLisle from comment #16) > Created attachment 58799 [details] > Revised test case with careful precision and tolerance values. > > New suggested test case which passes on x86-64-linux. We r

[Bug fortran/116196] Missing temporary with WHERE and aliasing TARGET array references

2024-08-21 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116196 --- Comment #3 from Mikael Morin --- Created attachment 58971 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58971&action=edit Draft patch This fixes the testcase. But the testcase is by far insufficient to thoroughly check the correctnes

[Bug fortran/116196] Missing temporary with WHERE and aliasing TARGET array references

2024-08-21 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116196 --- Comment #2 from Mikael Morin --- More complete testcase: ! { dg-do run } ! { dg-additional-options "-fdump-tree-original" } ! ! PR fortran/116196 MODULE m IMPLICIT NONE INTEGER, TARGET :: arr(5) END MODULE m PROGRAM main USE m IMP

[Bug fortran/116254] new test case gfortran.dg/class_transformational_2.f90 from r15-2739-g4cb07a38233aad fails

2024-08-21 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116254 Richard Sandiford changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/116449] Miscompilation and missing bounds check with UBSAN with pointer to member functions and array accesses

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

[Bug c++/116449] Miscompilation with UBSAN

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116449 --- Comment #1 from Andrew Pinski --- Looks like there is a missing SAVE_EXPR in a few places when dealing with the pointer to member functions.

[Bug c++/116450] New: ICE in in expand_expr_real_1, at expr.cc:11376

2024-08-21 Thread indiosmo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116450 Bug ID: 116450 Summary: ICE in in expand_expr_real_1, at expr.cc:11376 Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug sanitizer/116449] New: Miscompilation with UBSAN

2024-08-21 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116449 Bug ID: 116449 Summary: Miscompilation with UBSAN Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer As

[Bug fortran/106606] Internal compiler error with abstract derived type using recursive class() components. since r7-4096-gbf9f15ee55f5b291

2024-08-21 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106606 Paul Thomas changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comme

[Bug fortran/116254] new test case gfortran.dg/class_transformational_2.f90 from r15-2739-g4cb07a38233aad fails

2024-08-21 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116254 Richard Sandiford changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Com

[Bug rtl-optimization/116238] [12/13/14 Regression] ICE building 526.blender_r on aarch64 SVE after r15-1619-g3b9b8d6cfdf593

2024-08-21 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116238 Richard Sandiford changed: What|Removed |Added Known to fail|15.0|14.2.1 Summary|[12/13/14

[Bug rtl-optimization/116238] [12/13/14/15 Regression] ICE building 526.blender_r on aarch64 SVE after r15-1619-g3b9b8d6cfdf593

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116238 --- Comment #7 from GCC Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:ec9d6d45191f639482344362d048294e74587ca3 commit r15-3073-gec9d6d45191f639482344362d048294e74587ca3 Author: Richard Sandiford Da

[Bug c++/116424] [13/14/15 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.c:904 creating static object from other static objects

2024-08-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116424 --- Comment #12 from Marek Polacek --- We set TARGET_EXPR_ELIDING_P in massage_init_elt. Not setting TARGET_EXPR_ELIDING_P when the target expr isn't TARGET_EXPR_DIRECT_INIT_P breaks nsdmi-aggr21.C.

[Bug target/116448] New: gcc.target/arm/vfp-1.c uses the wrong instructions on Cortex-M55

2024-08-21 Thread azoff at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116448 Bug ID: 116448 Summary: gcc.target/arm/vfp-1.c uses the wrong instructions on Cortex-M55 Product: gcc Version: 13.3.0 Status: UNCONFIRMED Severity: normal

[Bug c++/116424] [13/14/15 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.c:904 creating static object from other static objects

2024-08-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116424 --- Comment #11 from Marek Polacek --- Ah, bug 114854 which is already in See Also...

[Bug c++/116424] [13/14/15 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.c:904 creating static object from other static objects

2024-08-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116424 --- Comment #10 from Marek Polacek --- We are taking the address of the TARGET_EXPR: v::v (&c.D.2588, &TARGET_EXPR >>>) so we can't elide it. This sounds awfully similar to something I fixed recently.

[Bug c++/116369] [12/13/14/15 Regression] temporary variable bounded to const reference with mutable field incorrectly marked as rodata since r9-869-g5603790dbf233c

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116369 --- Comment #10 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #9) > Ah no, during iterator construction we do: > > this->_M_attach(const_cast<_Safe_sequence_base*>(__seq), __constant); > > So that is a library bug. So

[Bug target/116447] New: g++.dg/cpp23/ext-floating13.C fails on Cortex-M55 due to undefined reference

2024-08-21 Thread azoff at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116447 Bug ID: 116447 Summary: g++.dg/cpp23/ext-floating13.C fails on Cortex-M55 due to undefined reference Product: gcc Version: 13.3.0 Status: UNCONFIRMED Severity:

[Bug target/113042] popcount of 128bits can be improved for !TARGET_CSSC

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

[Bug target/113042] popcount of 128bits can be improved for !TARGET_CSSC

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113042 --- Comment #10 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:4a5d6118c10dfa4f1ed28ab4875bb80f2b2dca9d commit r15-3072-g4a5d6118c10dfa4f1ed28ab4875bb80f2b2dca9d Author: Andrew Pinski Date: F

[Bug c++/79009] Missing 'inconsistent deduction for ‘auto’' error when having a dependent initializer and a nondependent one in the same declaration

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79009 Andrew Pinski changed: What|Removed |Added CC||iamkirkezz at gmail dot com --- Comment

[Bug c++/116446] GCC incorrectly accepts multiple method declarations with deduced return types

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

[Bug c++/116446] GCC incorrectly accepts multiple method declarations with deduced return types

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

[Bug c++/116439] [14/15 Regression] decltype(auto) in return type of lambda uses the type of the outer scope, not the capture

2024-08-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116439 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org,

[Bug c++/116446] New: GCC incorrectly accepts multiple method declarations with deduced return types

2024-08-21 Thread iamkirkezz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116446 Bug ID: 116446 Summary: GCC incorrectly accepts multiple method declarations with deduced return types Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severit

[Bug c++/116424] [13/14/15 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.c:904 creating static object from other static objects

2024-08-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116424 Marek Polacek changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug libstdc++/115098] std::vector::iterator::reference is default-constructible

2024-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115098 --- Comment #5 from Jonathan Wakely --- I've just created https://cplusplus.github.io/LWG/issue4140 to remove that useless default constructor from std::bitset.

[Bug c++/116441] [[nodiscard]] attribute ignored in some cases

2024-08-21 Thread leonid.satanovsky at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441 --- Comment #5 from Leonid Satanovsky --- N.B.: #include is for sure not needed for reproduction (just a leftover from earlier experiments)

[Bug target/116445] New: gcc.target/arm/unsigned-extend-2.c on Cortex-M55 and misses possible Cortex-M optimization

2024-08-21 Thread azoff at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116445 Bug ID: 116445 Summary: gcc.target/arm/unsigned-extend-2.c on Cortex-M55 and misses possible Cortex-M optimization Product: gcc Version: 13.3.0 Status: UNCONFIRMED

[Bug target/116444] New: gcc.target/arm/thumb-ifcvt-2.c fails on Cortex-M55 and misses possible Cortex-M optimization

2024-08-21 Thread azoff at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116444 Bug ID: 116444 Summary: gcc.target/arm/thumb-ifcvt-2.c fails on Cortex-M55 and misses possible Cortex-M optimization Product: gcc Version: 13.3.0 Status: UNCONFIRMED

[Bug sanitizer/66880] 'error: case label does not reduce to an integer constant' with -fsanitize=shift -std=gnu99.

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66880 Andrew Pinski changed: What|Removed |Added CC||stsp at users dot sourceforge.net --- C

[Bug sanitizer/87857] case label does not reduce to an integer constant

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

[Bug c/106988] subscripting a string literal is not an integer constant expression but strlen is

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106988 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c/89408] No constant folding when dereferencing string literals

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89408 --- Comment #10 from Andrew Pinski --- *** Bug 106988 has been marked as a duplicate of this bug. ***

[Bug c/89408] No constant folding when dereferencing string literals

2024-08-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89408 Andrew Pinski changed: What|Removed |Added CC||rasmus.tempcache at gmail dot com --- C

[Bug c/116443] String values not accepted for case labels

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

[Bug c/116443] String values not accepted for case labels

2024-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116443 --- Comment #2 from Jonathan Wakely --- Slight correction, the correct term is "integer constant expression", and C requires a "constant expression" for a case label, not an integer constant expression. But the rest still stands, GCC is not req

[Bug c/116443] String values not accepted for case labels

2024-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116443 --- Comment #1 from Jonathan Wakely --- I don't think this is technically a bug. The C standard requires an integral constant expression for a case label, and "str"[0] is not required to be an integral constant expression. The C standard does al

[Bug libstdc++/115098] std::vector::iterator::reference is default-constructible

2024-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115098 --- Comment #4 from Jonathan Wakely --- And the default constructor *is* private in libstdc++. Your example comment 1 uses a non-standard constructor, not the default constructor.

[Bug c++/116442] ICE when calling immediate function in NSDMI with aggregate initialization

2024-08-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116442 Marek Polacek changed: What|Removed |Added Last reconfirmed||2024-08-21 Ever confirmed|0

[Bug target/116413] [LRA] [M68K] ICE: unrecognized insn in lra_set_insn_recog_data, at lra.cc:1036

2024-08-21 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116413 --- Comment #18 from Michael Matz --- This last problem is a pre-existing one in the backend. It accepts bare label_ref plus operands, but it does so also in flag_pic mode. There it isn't correct (because it implies another memory reference).

[Bug tree-optimization/116406] [15 Regression] ICE: in add_to_value, at tree-ssa-pre.cc:695 with -Os -finstrument-functions-once -mfpmath=387

2024-08-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116406 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/114659] gcc miscompiles a __builtin_memcpy on i386, leading to wrong results for SNaN

2024-08-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114659 Bug 114659 depends on bug 116406, which changed state. Bug 116406 Summary: [15 Regression] ICE: in add_to_value, at tree-ssa-pre.cc:695 with -Os -finstrument-functions-once -mfpmath=387 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116406

[Bug tree-optimization/116406] [15 Regression] ICE: in add_to_value, at tree-ssa-pre.cc:695 with -Os -finstrument-functions-once -mfpmath=387

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116406 --- Comment #3 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:893cef363c46fa879b47d2b042c19c98bcd2b5f8 commit r15-3071-g893cef363c46fa879b47d2b042c19c98bcd2b5f8 Author: Richard Biener Date:

[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

2024-08-21 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug ada/116438] Ada FE should use libbacktrace to print backtraces on ICE with bug boxes

2024-08-21 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116438 --- Comment #3 from Eric Botcazou --- In my experience a backtrace is not sufficient to debug compiler issues.

[Bug target/58416] Incorrect x87-based union copying code

2024-08-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416 Richard Biener changed: What|Removed |Added Known to work||15.0 --- Comment #27 from Richard Biene

[Bug tree-optimization/113281] [11 Regression] Latent wrong code due to vectorization of shift reduction and missing promotions since r9-1590

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113281 --- Comment #37 from GCC Commits --- The releases/gcc-12 branch has been updated by Richard Ball : https://gcc.gnu.org/g:881b54f56e77dc470d27e4746b90dc7819c2be81 commit r12-10680-g881b54f56e77dc470d27e4746b90dc7819c2be81 Author: Alexandre Oliv

[Bug tree-optimization/113281] [11 Regression] Latent wrong code due to vectorization of shift reduction and missing promotions since r9-1590

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113281 --- Comment #36 from GCC Commits --- The releases/gcc-13 branch has been updated by Richard Ball : https://gcc.gnu.org/g:3e5cf9f060f39a958edf4b817f632ee93e96d55c commit r13-8985-g3e5cf9f060f39a958edf4b817f632ee93e96d55c Author: Alexandre Oliva

[Bug target/116415] [12/13/14/15 Regression][PPC64LE] atomics wrongly use vector instructions in DWCAS.

2024-08-21 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415 Peter Bergner changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug libstdc++/115098] std::vector::iterator::reference is default-constructible

2024-08-21 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115098 --- Comment #3 from 康桓瑋 --- (In reply to Jonathan Wakely from comment #2) > (In reply to 康桓瑋 from comment #1) > > std::bitset has similar issues: > > > > #include > > > > std::bitset<1> bitset; > > typename std::bitset<1>::reference bit_ref(b

[Bug rtl-optimization/116437] [15 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1934 with -O2 -march=emeraldrapids -fno-split-wide-types -m32

2024-08-21 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116437 Jeffrey A. Law changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |law at gcc dot gnu.org --- Comm

[Bug target/58416] Incorrect x87-based union copying code

2024-08-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58416 --- Comment #26 from GCC Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:f577959f420ae404f99f630dadc1c0370734d0da commit r15-3070-gf577959f420ae404f99f630dadc1c0370734d0da Author: Martin Jambor Date: W

[Bug tree-optimization/116380] [13/14 regression] ICE on valid code at -O3 with "-fno-tree-scev-cprop" on x86_64-linux-gnu: Segmentation fault

2024-08-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116380 Richard Biener changed: What|Removed |Added Summary|[13/14/15 regression] ICE |[13/14 regression] ICE on

  1   2   >