[Bug c++/116102] New: static_cast to derived& of base& produced unused gimple ir and affected the correctness of -fsanitize=vptr

2024-07-25 Thread wso4133560 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116102 Bug ID: 116102 Summary: static_cast to derived& of base& produced unused gimple ir and affected the correctness of -fsanitize=vptr Product: gcc Version: 12.3.0

[Bug tree-optimization/116101] [14/15 Regression] isel duplicates comparisons even at -O0

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116101 --- Comment #2 from Richard Biener --- Yeah, when -fno-tree-ter - this is explicitly to help COND_EXPR expansion when TER is enabled. TER also has more constraints like not TER-ing across calls(?), so the code likely duplicates too much anyways

[Bug tree-optimization/116100] (VEC_COND (UNCOND_EXPR)) -> COND_FN conversion should happen in isel

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116100 --- Comment #1 from Richard Biener --- True, though it seems to matter less in practice for vec_cond consumed ops (or rather vector typed expressions in general).

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 --- Comment #7 from Richard Biener --- Ah, it's the code that makes SRA widen bit-precision values to size-precision integers. That said, I don't see why the V_C_E should not be moveable. value$8_11 = MEM [(struct Value *)&s_value + 8B];

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 --- Comment #6 from Andrew Pinski --- (In reply to Richard Biener from comment #5) > Why should they be non-moveable? Because the padding might be not > initialized? > That there's a V_C_E to bool looks odd (I assume the value type is void * or

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment

[Bug middle-end/116097] strlcpy, strlcat --> memcpy optimization passes

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116097 Richard Biener changed: What|Removed |Added Version|unknown |15.0 Status|UNCONFIRMED

[Bug lto/116094] Missing -Wodr diagnostic

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116094 Richard Biener changed: What|Removed |Added Keywords||diagnostic CC|

[Bug c/116092] Should allow --param options to the optimize attribute/pragma

2024-07-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116092 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

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

2024-07-25 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 115757, which changed state. Bug 115757 Summary: [modules] maybe_unused attributes not honored in member function of imported class template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115757 What|Remov

[Bug c++/115757] [modules] maybe_unused attributes not honored in member function of imported class template

2024-07-25 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115757 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |15.0 Resolution|---

[Bug c++/115757] [modules] maybe_unused attributes not honored in member function of imported class template

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115757 --- Comment #2 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:fd599d96d464caed8bf78e4a43120d9a121b7e7a commit r15-2334-gfd599d96d464caed8bf78e4a43120d9a121b7e7a Author: Nathaniel Shead Date:

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

2024-07-25 Thread awilfox at adelielinux dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116007 --- Comment #11 from A. Wilcox (awilfox) --- I was unable to find any target-specific code in libquadmath at all. I haven't bothered to actually bisect this, but the 13 branch is the last one that builds libquadmath without the compiler support

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 --- Comment #4 from Andrew Pinski --- So the check for VCE should be: type_strictly_matches_mode_p (TREE_TYPE (lhs)) I am trying to figure out if the padding bits on real types matter here. I don't think so since those padding are ignored alway

[Bug tree-optimization/111924] Look into using movement_possibility (in tree-ssa-loop-im.cc) for empty_bb_or_one_feeding_into_p for phi-opt

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111924 --- Comment #2 from Andrew Pinski --- I think I will do this after I fix PR 116098 which is related (in that I now need to change two places for the fix).

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

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

[Bug middle-end/116065] [13/14/15 Regression] Function attribute optimize() might make ISA target attribute broken

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116065 --- Comment #10 from Andrew Pinski --- Note I submitted the aarch64 patch here: https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658287.html

[Bug c++/116052] [15 Regression] ICE in diagnostic_context::diagnostic_impl

2024-07-25 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116052 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Eve

[Bug tree-optimization/115824] [12 Regression] Strange -Warray-bounds warning when assigning an initializer list to a vector of pointers

2024-07-25 Thread randy.macleod at windriver dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115824 --- Comment #5 from Randy MacLeod --- Andrew, Is Rogério's confirmation, that reverting r12-10250-g8ec265c1464dec avoids the error, sufficient to revert the commit on 12.4 or do you want someone to write a test case, confirm it works on 12.3's t

[Bug rtl-optimization/116096] [15 Regression] during RTL pass: cprop_hardreg ICE: in extract_insn, at recog.cc:2848 (unrecognizable insn ashift:TI?) with -O2 -flive-range-shrinkage -fno-peephole2 -mst

2024-07-25 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116096 Hongtao Liu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |liuhongt at gcc dot gnu.org

[Bug rtl-optimization/116096] [15 Regression] during RTL pass: cprop_hardreg ICE: in extract_insn, at recog.cc:2848 (unrecognizable insn ashift:TI?) with -O2 -flive-range-shrinkage -fno-peephole2 -mst

2024-07-25 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116096 Hongtao Liu changed: What|Removed |Added CC||liuhongt at gcc dot gnu.org --- Comment #

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

2024-07-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug fortran/20585] [meta-bug] Fortran 2003 support

2024-07-25 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20585 Bug 20585 depends on bug 105361, which changed state. Bug 105361 Summary: Incorrect end-of-file condition for derived-type I/O https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 What|Removed |Added

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

2024-07-25 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753 Bug 109753 depends on bug 115403, which changed state. Bug 115403 Summary: [15 Regression] highway build from git fails with 'target specific option mismatch' (templates) since r15-902-geff00046409a72 https://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug c++/115403] [15 Regression] highway build from git fails with 'target specific option mismatch' (templates) since r15-902-geff00046409a72

2024-07-25 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115403 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

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

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753 --- Comment #22 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:e397f8524a7982004eb616217477434ce350e80f commit r15-2332-ge397f8524a7982004eb616217477434ce350e80f Author: Jason Merrill Date: T

[Bug c++/115403] [15 Regression] highway build from git fails with 'target specific option mismatch' (templates) since r15-902-geff00046409a72

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115403 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:e397f8524a7982004eb616217477434ce350e80f commit r15-2332-ge397f8524a7982004eb616217477434ce350e80f Author: Jason Merrill Date: Th

[Bug tree-optimization/116101] [14/15 Regression] isel duplicates comparisons even at -O0

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

[Bug tree-optimization/116101] New: [14/15 Regression] isel duplicates comparisons even at -O0

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116101 Bug ID: 116101 Summary: [14/15 Regression] isel duplicates comparisons even at -O0 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: internal-improvemen

[Bug c++/115897] [14/15 Regression] vector_size attribute on alias template has no effect when used in a dependent variable template-id

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115897 --- Comment #12 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:523836716137d0f7f4088c85752a980f5f971b36 commit r15-2331-g523836716137d0f7f4088c85752a980f5f971b36 Author: Patrick Palka Date:

[Bug c++/115897] [14/15 Regression] vector_size attribute on alias template has no effect when used in a dependent variable template-id

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115897 --- Comment #11 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:9bcad238837e2100978cd839c343c488f72e1d4a commit r15-2330-g9bcad238837e2100978cd839c343c488f72e1d4a Author: Patrick Palka Date:

[Bug rtl-optimization/116096] [15 Regression] during RTL pass: cprop_hardreg ICE: in extract_insn, at recog.cc:2848 (unrecognizable insn ashift:TI?) with -O2 -flive-range-shrinkage -fno-peephole2 -mst

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

[Bug target/116085] RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 --- Comment #6 from Jeffrey A. Law --- So I think Philipp's code would work if it transformed the resulting min/max into a minu/maxu. And I think there's some room for improvement here. The core bug is that we're sign-extending the non-constan

[Bug tree-optimization/116090] Another -Wmaybe-uninitialized false positive with std::optional

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

[Bug tree-optimization/116090] Another -Wmaybe-uninitialized false positive with std::optional

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116090 Andrew Pinski changed: What|Removed |Added Known to fail||15.0 --- Comment #2 from Andrew Pinski

[Bug c++/116099] Inconsistent errors for ClassTemplate and ClassTemplate

2024-07-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116099 --- Comment #5 from Jonathan Wakely --- Ha, so because it doesn't know what `const Oops` is, g++ applies the implicit-int rule and decides it's `const int Oops` i.e. a non-type template parameter, but that's invalid because `template struct S` i

[Bug tree-optimization/116100] (VEC_COND (UNCOND_EXPR)) -> COND_FN conversion should happen in isel

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

[Bug tree-optimization/116100] New: (VEC_COND (UNCOND_EXPR)) -> COND_FN conversion should happen in isel

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116100 Bug ID: 116100 Summary: (VEC_COND (UNCOND_EXPR)) -> COND_FN conversion should happen in isel Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: internal-

[Bug c++/116099] Inconsistent errors for ClassTemplate and ClassTemplate

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

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

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

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

2024-07-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #1 fr

[Bug c++/116099] Inconsistent errors for ClassTemplate and ClassTemplate

2024-07-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116099 --- Comment #3 from Jonathan Wakely --- I didn't find a match for the "ISO C++ forbids declaration of 'type name' with no type" text, but we certainly have some bugs about implicit int causing bad recovery.

[Bug tree-optimization/116098] [14/15 Regression] _Bool value from tagged union is incorrect when built with optimization

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 Andrew Pinski changed: What|Removed |Added Component|c |tree-optimization Summary|_B

[Bug c++/116099] Inconsistent errors for ClassTemplate and ClassTemplate

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116099 --- Comment #2 from Andrew Pinski --- This might be a dup ...

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread isanbard at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #21 from Bill Wendling --- Another question: Should we allow side-effects in the builtin? I think it would cause too much pain if we did. If we don't allow it, should it emit a warning or silently become a no-op?

[Bug c++/116099] Inconsistent errors for ClassTemplate and ClassTemplate

2024-07-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116099 --- Comment #1 from Jonathan Wakely --- For comparison, Clang also doesn't give consistent errors: x.cc:3:3: error: use of undeclared identifier 'Oops' 3 | S o; | ^ x.cc:4:9: error: unknown type name 'Oops' 4 | S oo; |

[Bug c++/116099] New: Inconsistent errors for ClassTemplate and ClassTemplate

2024-07-25 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116099 Bug ID: 116099 Summary: Inconsistent errors for ClassTemplate and ClassTemplate Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: diagnostic S

[Bug c/116098] New: _Bool value from tagged union is incorrect when built with -O1

2024-07-25 Thread laria at laria dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 Bug ID: 116098 Summary: _Bool value from tagged union is incorrect when built with -O1 Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/115403] [15 Regression] highway build from git fails with 'target specific option mismatch' (templates) since r15-902-geff00046409a72

2024-07-25 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115403 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c/116097] New: strlcpy, strlcat --> memcpy optimization passes

2024-07-25 Thread crrodriguez at opensuse dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116097 Bug ID: 116097 Summary: strlcpy, strlcat --> memcpy optimization passes Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #20 from qinzhao at gcc dot gnu.org --- (In reply to Bill Wendling from comment #19) > > Does it have to be a FAM? What is the problem if this is used on, e.g. an > > arbitrary pointer? > > > > IMO once we have support for 'counted

[Bug target/115881] [15 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1934 with -O2 -mx32 -maddress-mode=long

2024-07-25 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115881 --- Comment #7 from Sergei Trofimovich --- Started from r15-1945-g9d20529d94b232. https://gcc.gnu.org/PR115991#c10 also has an `x86_64 -m64 -O2` example extracted from ICE during `linux-6.10` kernel build.

[Bug target/115881] [15 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1934 with -O2 -mx32 -maddress-mode=long

2024-07-25 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115881 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comm

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

2024-07-25 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115991 Sergei Trofimovich changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/110171] [[nodiscard]] of await_resume ignored when discarding result of co_await expression

2024-07-25 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110171 Arsen Arsenović changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |arsen at gcc dot gnu.org

[Bug testsuite/116080] New tests from r15-2233-g8d1af8f904a0c0 fail

2024-07-25 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 --- Comment #6 from Andi Kleen --- Created attachment 58761 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58761&action=edit Improve test suite tail call checks This patch should fix it. We must run the test suite tail call probes without

[Bug target/116086] RISC-V: Hash mismatch with vectorized 557.xz_r at zvl128b and LMUL=m2

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116086 --- Comment #5 from Patrick O'Neill --- Ah yep that was it :) Reduced testcase: long a; long b; long c[80]; int main() { for (int d = 0; d < 16; d++) c[d] = a; for (int d = 16; d < 80; d++) c[d] = c[d - 2]; for (int d = 0; d < 80;

[Bug target/116085] RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 --- Comment #5 from Jeffrey A. Law --- Bisection landed on this change from 2022: commit 3142265dedd84c2f3dbf824f2d1b0c182e3c8b3c Author: Philipp Tomsich Date: Sun Oct 16 10:51:47 2022 +0200 RISC-V: No extensions for SImode min/max agai

[Bug c++/110338] Implement C++26 language features

2024-07-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110338 Bug 110338 depends on bug 110343, which changed state. Bug 110343 Summary: [C++26] P2558R2 - Add @, $, and ` to the basic character set https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110343 What|Removed |Added --

[Bug c++/110343] [C++26] P2558R2 - Add @, $, and ` to the basic character set

2024-07-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110343 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/110343] [C++26] P2558R2 - Add @, $, and ` to the basic character set

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110343 --- Comment #12 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:29341f21ce1eb7cdb8cd468e4ceb0d07cf2775e0 commit r15-2322-g29341f21ce1eb7cdb8cd468e4ceb0d07cf2775e0 Author: Jakub Jelinek Date:

[Bug target/116096] New: during RTL pass: cprop_hardreg ICE: in extract_insn, at recog.cc:2848 (unrecognizable insn ashift:TI?) with -O2 -flive-range-shrinkage -fno-peephole2 -mstackrealign

2024-07-25 Thread zsojka at seznam dot cz via Gcc-bugs
ary-trunk-r15-2320-20240725090119-g3aeb697a215-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240725 (experimental) (GCC)

[Bug tree-optimization/115819] RISC-V: Failed to hoist vrsub.vx to the header of the loop

2024-07-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115819 Jeffrey A. Law changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #9

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread isanbard at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #19 from Bill Wendling --- (In reply to Siddhesh Poyarekar from comment #13) > (In reply to qinzhao from comment #11) > > After the discussion with Kees on the major usage of this new builtin, I > > think that the above Category A mi

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread isanbard at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #18 from Bill Wendling --- (In reply to qinzhao from comment #12) > (In reply to Bill Wendling from comment #10) > > The Clang implementation will probably have a prototype of something like: > > > > void __builtin_set_counted_by(

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

2024-07-25 Thread adhemerval.zanella at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50 Adhemerval Zanella changed: What|Removed |Added CC||adhemerval.zanella at linaro dot o

[Bug c++/116095] satisfaction of atomic constraint depends on itself, when piping boost range into range-v3

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116095 --- Comment #4 from Andrew Pinski --- Mainly also see https://cplusplus.github.io/CWG/issues/2369.html .

[Bug target/116085] RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 Jeffrey A. Law changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/116095] satisfaction of atomic constraint depends on itself, when piping boost range into range-v3

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

[Bug c++/116095] satisfaction of atomic constraint depends on itself, when piping boost range into range-v3

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116095 --- Comment #2 from Andrew Pinski --- This might not be a GCC bug. GCC implements the C++ constraint on "satisfaction of atomic constraint of itself" while most compilers don't.

[Bug target/116086] RISC-V: Hash mismatch with vectorized 557.xz_r at zvl128b and LMUL=m2

2024-07-25 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116086 --- Comment #4 from Robin Dapp --- Probably because I left out a crucial detail ;) It only happens starting with vlen=256 in qemu.

[Bug c++/116095] satisfaction of atomic constraint depends on itself, when piping boost range into range-v3

2024-07-25 Thread enricomaria.dean6elis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116095 --- Comment #1 from Enrico Maria De Angelis --- Forgot to say that at the question on stackoverflow I've listed other ways that make the code compile: - change list to vector - make r const

[Bug c++/116095] New: satisfaction of atomic constraint depends on itself, when piping boost range into range-v3

2024-07-25 Thread enricomaria.dean6elis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116095 Bug ID: 116095 Summary: satisfaction of atomic constraint depends on itself, when piping boost range into range-v3 Product: gcc Version: 14.1.0 Status: UNCONFIRMED

[Bug rtl-optimization/116066] ext-dce + uncommitted LoongArch patch breaks libcpp

2024-07-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116066 --- Comment #2 from Jeffrey A. Law --- Xi, can you give the latest trunk a fresh try. There's a nonzero chance the patch I just installed for 116039 fixes your problem.There's not enough RTL shown to be sure though.

[Bug rtl-optimization/116039] [15 Regression] rv64gc miscompile at -O3 with -fno-strict-aliasing since r15-1901-g98914f9eba5

2024-07-25 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116039 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/116039] [15 Regression] rv64gc miscompile at -O3 with -fno-strict-aliasing since r15-1901-g98914f9eba5

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116039 --- Comment #3 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:34fb0feca71f763b2fbe832548749666d34a4a76 commit r15-2321-g34fb0feca71f763b2fbe832548749666d34a4a76 Author: Jeff Law Date: Thu Jul 25

[Bug c++/115746] [C++26] P2963R3 - Ordering of constraints involving fold expressions

2024-07-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115746 --- Comment #3 from Jakub Jelinek --- BTW, with a modified version of fold-constr5.C which doesn't involve any fold expanded constraints: struct A { using type = int; }; struct B { using type = long; }; template concept C = true; template

[Bug c++/115746] [C++26] P2963R3 - Ordering of constraints involving fold expressions

2024-07-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115746 Jakub Jelinek changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #

[Bug lto/116094] New: Missing -Wodr diagnostic

2024-07-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116094 Bug ID: 116094 Summary: Missing -Wodr diagnostic Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee:

[Bug c++/115746] [C++26] P2963R3 - Ordering of constraints involving fold expressions

2024-07-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115746 --- Comment #1 from Jakub Jelinek --- Created attachment 58759 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58759&action=edit gcc15-pr115746-wip.patch Untested WIP patch.

[Bug tree-optimization/116093] wrong code with -Og -ftree-vrp -fno-tree-dce

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

[Bug tree-optimization/116093] New: wrong code with -Og -ftree-vrp -fno-tree-dce

2024-07-25 Thread zsojka at seznam dot cz via Gcc-bugs
with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-2320-20240725090119-g3aeb697a215-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 2

[Bug c/116092] New: Should allow --param options to the optimize attribute/pragma

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116092 Bug ID: 116092 Summary: Should allow --param options to the optimize attribute/pragma Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: enhancement

[Bug c/116091] New: MinGW-w64 build not building plugin libraries

2024-07-25 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116091 Bug ID: 116091 Summary: MinGW-w64 build not building plugin libraries Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/116086] RISC-V: Hash mismatch with vectorized 557.xz_r at zvl128b and LMUL=m2

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116086 --- Comment #3 from Patrick O'Neill --- I'm having trouble reproducing the failure. Here's my commands: > /scratch/tc-testing/tc-compiler-fuzz-trunk/build-gcv/bin/riscv64-unknown-linux-gnu-gcc > -O3 -march=rv64gcv -mrvv-max-lmul=m2 red.c -o use

[Bug middle-end/116065] [13/14/15 Regression] Function attribute optimize() might make ISA target attribute broken

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

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

2024-07-25 Thread jvdelisle2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #7 from Jerry DeLisle --- I am not allowed to close this PR. (???) It is Resolved/Fixed.

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

2024-07-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #6 from GCC Commits --- The master branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:3aeb697a2158d359d9f951f6c6c6bcd9c53c8c2f commit r15-2320-g3aeb697a2158d359d9f951f6c6c6bcd9c53c8c2f Author: Jerry DeLisle Date: W

[Bug tree-optimization/116075] Inefficient SVE INSR codegen

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116075 --- Comment #5 from Andrew Pinski --- Note the original testcase was fixed via PR 116081 . Patch for the other issue found here: https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658274.html

[Bug tree-optimization/116090] Another -Wmaybe-uninitialized false positive with std::optional

2024-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116090 --- Comment #1 from Andrew Pinski --- Created attachment 58757 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58757&action=edit Slightly reduced if we change opt_c to be bool rather than `unsigned char`, there is no warning. I have not l

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #17 from qinzhao at gcc dot gnu.org --- (continue with the comment #16): the compiler's responsibility is: A. check whether p->fam has counted-by attribute or not; B. get the corresponding counted-by field for p->fam and set it the va

[Bug c++/116090] New: [11 regression] Another -Wmaybe-uninitialized false positive with std::optional

2024-07-25 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116090 Bug ID: 116090 Summary: [11 regression] Another -Wmaybe-uninitialized false positive with std::optional Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severi

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #16 from qinzhao at gcc dot gnu.org --- (In reply to Siddhesh Poyarekar from comment #15) > (In reply to qinzhao from comment #14) > > If we go with the category B (as I mentioned in Comment #9), define the new > > builtin as a regul

[Bug target/116085] RISC-V: Miscompile at -O2 with zbb

2024-07-25 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116085 --- Comment #3 from Patrick O'Neill --- (In reply to Xi Ruoyao from comment #2) > Maybe add __attribute__((noipa)) for test() and merge the files. That worked, thanks! Testcase: int a = 2; unsigned b = 0x8000; int arr_5[2][23]; void test(i

[Bug target/116088] Solaris i386 - some GCC tests fails with: internal compiler error: Illegal Instruction

2024-07-25 Thread sumbera at volny dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116088 Petr Sumbera changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug target/116088] Solaris i386 - some GCC tests fails with: internal compiler error: Illegal Instruction

2024-07-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116088 --- Comment #10 from Sam James --- (In reply to Petr Sumbera from comment #9) > Thread 2 received signal SIGILL, Illegal instruction. > [Switching to Thread 1 (LWP 1)] > 0x7fd0fef67f3a in isl_hash_table_init () from /usr/lib/64/libisl.so.23

[Bug ipa/116055] [14/15 Regression] ICE from gcc.c-torture/unsorted/dump-noaddr.c after "Fix modref's iteraction with store merging"

2024-07-25 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116055 --- Comment #4 from Jan Hubicka --- This does not reproduce for me (with trunk nor gcc14 build with --target=powerpc64le-linux-gnu) However the problem is almost surely sanity check in dumping code that flags does not get worse (which they can

[Bug target/116088] Solaris i386 - some GCC tests fails with: internal compiler error: Illegal Instruction

2024-07-25 Thread sumbera at volny dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116088 --- Comment #9 from Petr Sumbera --- Thread 2 received signal SIGILL, Illegal instruction. [Switching to Thread 1 (LWP 1)] 0x7fd0fef67f3a in isl_hash_table_init () from /usr/lib/64/libisl.so.23 (gdb) x/i $pc => 0x7fd0fef67f3a : blsr %eax,%

[Bug c/116016] enhancement: add __builtin_set_counted_by(P->FAM, COUNT) or equivalent

2024-07-25 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #15 from Siddhesh Poyarekar --- (In reply to qinzhao from comment #14) > If we go with the category B (as I mentioned in Comment #9), define the new > builtin as a regular builtin, > Then, arbitrary pointer for the 1st parameter is

[Bug target/116088] Solaris i386 - some GCC tests fails with: internal compiler error: Illegal Instruction

2024-07-25 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116088 --- Comment #8 from Sam James --- Try running this directly (no gdb), note the appended '-wrapper gdb,--args'. /builds/psumbera/userland-gcc-11.5/components/gcc11/build/amd64/gcc/xgcc -B/builds/psumbera/userland-gcc-11.5/components/gcc11/build/

  1   2   >