[Bug middle-end/78947] sub-optimal code for (bool)(int ? int : int)

2024-05-06 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78947 Roger Sayle changed: What|Removed |Added CC||roger at nextmovesoftware dot com

[Bug tree-optimization/114872] [13/14/15 Regression] Miscompilation with -O2 after commit r13-8037

2024-05-06 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114872 --- Comment #17 from Sergei Trofimovich --- > 1) attach your *.s file and state which exact compiler you used (revision) Generate code first: https://slyfox.uni.cx/b/gcc/PR114872/d.tar.gz (4MB, does not fit on bugzilla's 1MB limit) is the arc

[Bug tree-optimization/114749] [13 Regression] RISC-V rv64gcv ICE: in vectorizable_load, at tree-vect-stmts.cc

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114749 --- Comment #8 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:4b1f128d4c25713116c7d9fd37016f7d9a112959 commit r15-216-g4b1f128d4c25713116c7d9fd37016f7d9a112959 Author: Robin Dapp Date: Mon May 6

[Bug ada/114964] Ada Address_To_Access_Conversions gnat_to_gnu_entity internal error

2024-05-06 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114964 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org Ever c

[Bug tree-optimization/114872] [13/14/15 Regression] Miscompilation with -O2 after commit r13-8037

2024-05-06 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114872 --- Comment #18 from Sergei Trofimovich --- > 2) ideally show a gdb session with the important events, which setjmp was it > (I see _setjmp and __sigsetjmp calls in the function), which exact function > called from the function ended up aborti

[Bug c/114965] New: wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

2024-05-06 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 Bug ID: 114965 Summary: wrong code generated for Emacs/Gnulib strftime (regression from 13.2) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c++/108620] coroutines: ICE: in instantiate_type, at cp/class.cc:8742 when assign the return value of co_yield to a member of class/struct

2024-05-06 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108620 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Comme

[Bug tree-optimization/114872] [13/14/15 Regression] Miscompilation with -O2 after commit r13-8037

2024-05-06 Thread dima.pasechnik at cs dot ox.ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114872 --- Comment #19 from Dmitrii Pasechnik --- Declaring the last argument in the call to GAP_CallFunc3Args() volatile appears to fix the issue. Namely, apply diff --git a/src/sage/libs/gap/element.pyx b/src/sage/libs/gap/element.pyx index f1482997

[Bug middle-end/114965] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

2024-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 --- Comment #1 from Andrew Pinski --- Created attachment 58112 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58112&action=edit Slightly reduced

[Bug tree-optimization/114965] [14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

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

[Bug tree-optimization/114965] [14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

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

[Bug tree-optimization/114965] [13/14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

2024-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 Andrew Pinski changed: What|Removed |Added Summary|[14/15 Regression] wrong|[13/14/15 Regression] wrong

[Bug tree-optimization/114965] [13/14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

2024-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 --- Comment #5 from Andrew Pinski --- Oh I see where the bug is coming from. reassociation is turning: _2 = pad_6 == 48; _3 = pad_6 == 43; _4 = _2 | _3; Into: _11 = (unsigned char) pad_6; _12 = (int) _11; _13 = 290271069732864 >> _

[Bug tree-optimization/114965] [13/14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

2024-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 --- Comment #6 from Andrew Pinski --- Reduded testcase that fails at -O1 (but passes at -O2): ``` [[gnu::noipa]] static void g(char pad1) { if (pad1 != '0' && pad1 != '+' && pad1 != '_') __builtin_unreachable(); if (pad1 == '0' ||

[Bug ada/114964] Ada Address_To_Access_Conversions gnat_to_gnu_entity internal error

2024-05-06 Thread ken at pegasoft dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114964 --- Comment #2 from Ken Burtch --- Thank you. I did my best.

[Bug target/114747] [13 only] [RISC-V RVV] Wrong SEW set for mixed-size intrinsics

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114747 --- Comment #1 from GCC Commits --- The releases/gcc-13 branch has been updated by Kito Cheng : https://gcc.gnu.org/g:c4c0b0be87b4e08dab0e5e62c6f38a610a7423e7 commit r13-8701-gc4c0b0be87b4e08dab0e5e62c6f38a610a7423e7 Author: Kito Cheng Date:

[Bug target/114747] [13 only] [RISC-V RVV] Wrong SEW set for mixed-size intrinsics

2024-05-06 Thread kito at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114747 Kito Cheng changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/114275] using std::thread within a templated function in a module fails to compile

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114275 --- Comment #10 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:ec2365e07537e8b17745d75c28a2b45bf33be119 commit r15-220-gec2365e07537e8b17745d75c28a2b45bf33be119 Author: Nathaniel Shead Date:

[Bug c++/114954] [modules] ICE in write_class_def with templated union type

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114954 --- Comment #1 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:0c43c673b0d431ca02d83bf6fae9cd60e9a3d0a8 commit r15-221-g0c43c673b0d431ca02d83bf6fae9cd60e9a3d0a8 Author: Nathaniel Shead Date:

[Bug c++/103524] [meta-bug] modules issue

2024-05-06 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 114954, which changed state. Bug 114954 Summary: [modules] ICE in write_class_def with templated union type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114954 What|Removed |Added

[Bug c++/114954] [modules] ICE in write_class_def with templated union type

2024-05-06 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114954 Nathaniel Shead changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |nshead at gcc dot gnu.org

[Bug target/108189] anonymous struct declared inside parameter list will not be visible outside of this definition or declaration

2024-05-06 Thread dxu at dxuuu dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108189 Daniel Xu changed: What|Removed |Added CC||dxu at dxuuu dot xyz --- Comment #12 from D

[Bug c/89990] request warning: Use of out of scope compound literals

2024-05-06 Thread modchipv12 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89990 --- Comment #7 from Andrew D'Addesio --- (In reply to Andrew Pinski from comment #6) > The warning is now included in GCC 12. > And this makes this a dup of bug 63272. > > *** This bug has been marked as a duplicate of bug 63272 *** Yep, the ne

[Bug tree-optimization/114966] New: fails to optimize avx2 in-register permute written with std::experimental::simd

2024-05-06 Thread lee.imple at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114966 Bug ID: 114966 Summary: fails to optimize avx2 in-register permute written with std::experimental::simd Product: gcc Version: 14.0 Status: UNCONFIRMED Severity

[Bug tree-optimization/114908] fails to optimize avx2 in-register permute written with std::experimental::simd

2024-05-06 Thread lee.imple at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114908 --- Comment #8 from Imple Lee --- I tried another way to permute the register. Although GCC does generate simd instructions, the generated code is sub-optimal. I opened PR114966 for that.

[Bug tree-optimization/114966] fails to optimize avx2 in-register permute written with std::experimental::simd

2024-05-06 Thread lee.imple at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114966 --- Comment #1 from Imple Lee --- This is probably a regression. GCC 13.2 can generate optimal code. See https://godbolt.org/z/4n8ovr7jr .

[Bug tree-optimization/114965] [13/14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2)

2024-05-06 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 Sam James changed: What|Removed |Added CC||aldyh at gcc dot gnu.org --- Comment #7 fro

[Bug c/89990] request warning: Use of out of scope compound literals

2024-05-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89990 --- Comment #8 from Andrew Pinski --- (In reply to Andrew D'Addesio from comment #7) > > This actually has gotten me curious. Would you have an idea/explanation > behind that 2 function call threshold @Andrew Pinski? Most likely it is due to ju

[Bug tree-optimization/113831] [11/12/13 Regression] Wrong VN with structurally identical ref since r9-398

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113831 --- Comment #10 from GCC Commits --- The releases/gcc-13 branch has been updated by Richard Biener : https://gcc.gnu.org/g:14a16787d99831a28b0c9690e80c420d765ba26f commit r13-8702-g14a16787d99831a28b0c9690e80c420d765ba26f Author: Richard Biene

[Bug tree-optimization/114121] wrong code with _BitInt() arithmetics at -O2

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114121 --- Comment #18 from GCC Commits --- The releases/gcc-13 branch has been updated by Richard Biener : https://gcc.gnu.org/g:14a16787d99831a28b0c9690e80c420d765ba26f commit r13-8702-g14a16787d99831a28b0c9690e80c420d765ba26f Author: Richard Biene

[Bug target/106060] Inefficient constant broadcast on x86_64

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106060 --- Comment #6 from GCC Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:79649a5dcd81bc05c0ba591068c9075de43bd417 commit r15-222-g79649a5dcd81bc05c0ba591068c9075de43bd417 Author: Roger Sayle Date: Tue Ma

[Bug target/112992] Inefficient vector initialization using vec_duplicate/broadcast

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112992 --- Comment #11 from GCC Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:79649a5dcd81bc05c0ba591068c9075de43bd417 commit r15-222-g79649a5dcd81bc05c0ba591068c9075de43bd417 Author: Roger Sayle Date: Tue M

[Bug tree-optimization/114921] Optimization flags cause _Float16 to __bf16 casting to do nothing

2024-05-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114921 --- Comment #4 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d0d6dcc019cd32eebf85d625f56e0f7573938319 commit r15-223-gd0d6dcc019cd32eebf85d625f56e0f7573938319 Author: Richard Biener Date:

[Bug target/108189] anonymous struct declared inside parameter list will not be visible outside of this definition or declaration

2024-05-06 Thread jemarch at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108189 --- Comment #13 from Jose E. Marchesi --- In bpf-next we are passing -Wno-error for the particular BPF selftests that use this construct: progs/btf_dump_test_case_bitfields.c-CFLAGS := -Wno-error progs/btf_dump_test_case_namespacing.c-CFLAGS :=

[Bug tree-optimization/114959] incorrect TBAA for drived types involving function types

2024-05-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114959 --- Comment #3 from Richard Biener --- (In reply to Martin Uecker from comment #2) > The GCC FE has all the necessary logic to compute type compatibility and > this could easily be adapted to compute equivalence classes and then set a > TYPE_CAN

<    1   2