[Bug target/116283] New: [15 Regression] RISC-V rv64id_zbs ICE: unrecognizable insn

2024-08-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116283 Bug ID: 116283 Summary: [15 Regression] RISC-V rv64id_zbs ICE: unrecognizable insn Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pr

[Bug c++/115062] [modules] internal compiler error: in simplify_aggr_init_exp

2024-08-07 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115062 --- Comment #2 from Nathaniel Shead --- This minimal patch fixes the (reduced) issue: diff --git a/gcc/cp/class.cc b/gcc/cp/class.cc index 718601756dd..81429f3a73b 100644 --- a/gcc/cp/class.cc +++ b/gcc/cp/class.cc @@ -2312,6 +2312,7 @@ fixup_t

[Bug target/55212] [SH] Switch to LRA

2024-08-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #145 from John Paul Adrian Glaubitz --- (In reply to Kazumoto Kojima from comment #144) > It seems that all ICEs in the log in c#142 are the pcrel call issues > described in c#129 which could be avoided with the patch 58831. OK, the

[Bug target/116275] [15 regression] ICE when building llvm-18.1.8 (convert_insn, at config/i386/i386-features.cc:1502)

2024-08-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116275 --- Comment #3 from Sam James --- (In reply to Sam James from comment #2) (Make SymbolAddressOrErr a parameter for it to be well-defined.)

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

2024-08-07 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 115801, which changed state. Bug 115801 Summary: [modules] segfault instantiating a template with a templated friend declaration referring to an unexported template using a qualified name https://gcc.gnu.org/bugzilla/s

[Bug c++/115801] [modules] segfault instantiating a template with a templated friend declaration referring to an unexported template using a qualified name

2024-08-07 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115801 Nathaniel Shead changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2024-08-07 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 114950, which changed state. Bug 114950 Summary: [modules] ICE in binding_cmp when merging friend functions in partitions https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114950 What|Removed

[Bug c++/114950] [modules] ICE in binding_cmp when merging friend functions in partitions

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

[Bug c++/115801] [modules] segfault instantiating a template with a templated friend declaration referring to an unexported template using a qualified name

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115801 --- Comment #5 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:79209273663672ff05663554741fd2558b4aac99 commit r15-2808-g79209273663672ff05663554741fd2558b4aac99 Author: Nathaniel Shead Date:

[Bug c++/114950] [modules] ICE in binding_cmp when merging friend functions in partitions

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114950 --- Comment #1 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:c592310d5275e09977504c136419686bd2277af0 commit r15-2807-gc592310d5275e09977504c136419686bd2277af0 Author: Nathaniel Shead Date:

[Bug testsuite/116252] variation in C++ filename extensions in testsuite ?

2024-08-07 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116252 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug target/116282] New: [15 Regression] RISC-V rv64id_zba_zbkb ICE: could not split insn

2024-08-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116282 Bug ID: 116282 Summary: [15 Regression] RISC-V rv64id_zba_zbkb ICE: could not split insn Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/116191] Avoid inlining in unlikely branches

2024-08-07 Thread morrison.levi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116191 Levi Morrison changed: What|Removed |Added CC||morrison.levi at gmail dot com --- Comm

[Bug c++/116281] Comma operator used in the middle operand of a conditional expression is incorrectly rejected in non static data member initializer

2024-08-07 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116281 --- Comment #2 from Halalaluyafail3 --- (In reply to Andrew Pinski from comment #1) > EDG also rejects it: > ``` > "", line 3: error: expected an identifier > int y=0?0,0:0; > ^ > ``` > > > Are you sure this is valid code

[Bug c++/116281] Comma operator used in the middle operand of a conditional expression is incorrectly rejected in non static data member initializer

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116281 --- Comment #1 from Andrew Pinski --- EDG also rejects it: ``` "", line 3: error: expected an identifier int y=0?0,0:0; ^ ``` Are you sure this is valid code and not a bug in clang? Especially when 3 out of the 4 major fr

[Bug c++/116281] New: Comma operator used in the middle operand of a conditional expression is incorrectly rejected in non static data member initializer

2024-08-07 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116281 Bug ID: 116281 Summary: Comma operator used in the middle operand of a conditional expression is incorrectly rejected in non static data member initializer Product: gcc

[Bug tree-optimization/91940] __builtin_bswap16 loop optimization

2024-08-07 Thread amylaar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91940 --- Comment #10 from Jorn Wolfgang Rennecke --- Even if you add support for V2HI bswap, it won't help vectorization without support for V4QI vectors and permutations, because vectorizable_bswap won't recognize the bswap capability of the target a

[Bug tree-optimization/91940] __builtin_bswap16 loop optimization

2024-08-07 Thread amylaar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91940 Jorn Wolfgang Rennecke changed: What|Removed |Added CC||amylaar at gcc dot gnu.org ---

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #8 from Li Pan --- (In reply to Li Pan from comment #7) > The backend take > rtx xmode_x = gen_lowpart (Xmode, x); > > For the incoming op of .SAT_ADD, thus I think we should take lbu instead of > lb according to the ISA. During u

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #7 from Li Pan --- The backend take rtx xmode_x = gen_lowpart (Xmode, x); For the incoming op of .SAT_ADD, thus I think we should take lbu instead of lb according to the ISA.

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #6 from Li Pan --- (In reply to Andrew Pinski from comment #4) > lb a1,0(a5) // load -40 > lui a0,%hi(.LC0) > lui a4,%hi(c) > addia5,a1,9 //a5 = -31 > sllia5,a5,48 >

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #5 from Li Pan --- Reproduced from both qemu and hardware, let me take a look.

[Bug target/116280] New: [15 Regression] RISC-V: expected mode RVVMF8QI for operand 2 of insn pred_vwsllrvvmf4hi but got mode RVVMF2SI

2024-08-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116280 Bug ID: 116280 Summary: [15 Regression] RISC-V: expected mode RVVMF8QI for operand 2 of insn pred_vwsllrvvmf4hi but got mode RVVMF2SI Product: gcc Version: 15.0

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #4 from Andrew Pinski --- lb a1,0(a5) // load -40 lui a0,%hi(.LC0) lui a4,%hi(c) addia5,a1,9 //a5 = -31 sllia5,a5,48 srlia5,a5,48 // a5 = -31 sltua

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #3 from Li Pan --- (In reply to Kito Cheng from comment #2) > Hi Pan, could you take a look to see if it related to SAT_ADD? Ack, thanks.

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread kito at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 Kito Cheng changed: What|Removed |Added CC||kito at gcc dot gnu.org,

[Bug gcov-profile/116279] New: Branch coverage measure is reported in inconsistent ways for comma operators

2024-08-07 Thread wentaoz5 at illinois dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116279 Bug ID: 116279 Summary: Branch coverage measure is reported in inconsistent ways for comma operators Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: n

[Bug target/116278] [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 --- Comment #1 from Andrew Pinski --- This might be a SAT_ADD issue.

[Bug target/116275] [15 regression] ICE when building llvm-18.1.8 (convert_insn, at config/i386/i386-features.cc:1502)

2024-08-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116275 --- Comment #2 from Sam James --- Thank you Roger! Reduced: ``` struct SymbolDesc push_back(SymbolDesc); struct SymbolDesc { long long ELFLocalSymIdx; }; struct Expected { long long &operator*(); }; void SymbolizableObjectFileaddSymbol() {

[Bug target/116278] New: [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing

2024-08-07 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116278 Bug ID: 116278 Summary: [15] RISC-V: Miscompile at -O2 -fwrapv -fno-strict-aliasing Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/116277] "may be used uninitialized [-Werror=maybe-uninitialized]" instead of -Werror=dangling-reference

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116277 --- Comment #4 from Andrew Pinski --- (In reply to Frank Heckenbach from comment #3) > When 63446 was reported, gcc didn't have -Werror=dangling-reference, so a > false positive was perhaps better than no warning in this case back then. > Now it

[Bug c++/115062] [modules] internal compiler error: in simplify_aggr_init_exp

2024-08-07 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115062 Nathaniel Shead changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug tree-optimization/116277] "may be used uninitialized [-Werror=maybe-uninitialized]" instead of -Werror=dangling-reference

2024-08-07 Thread f.heckenbach--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116277 --- Comment #3 from Frank Heckenbach --- When 63446 was reported, gcc didn't have -Werror=dangling-reference, so a false positive was perhaps better than no warning in this case back then. Now it has the proper warning for this case.

[Bug tree-optimization/63446] dangling reference results in confusing diagnostic from -Wuninitialized

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63446 Andrew Pinski changed: What|Removed |Added CC||f.heckenb...@fh-soft.de --- Comment #10

[Bug tree-optimization/116277] "may be used uninitialized [-Werror=maybe-uninitialized]" instead of -Werror=dangling-reference

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

[Bug tree-optimization/116277] "may be used uninitialized [-Werror=maybe-uninitialized]" instead of -Werror=dangling-reference

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116277 --- Comment #1 from Andrew Pinski --- I think this is a dup.

[Bug c++/116277] New: "may be used uninitialized [-Werror=maybe-uninitialized]" instead of -Werror=dangling-reference

2024-08-07 Thread f.heckenbach--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116277 Bug ID: 116277 Summary: "may be used uninitialized [-Werror=maybe-uninitialized]" instead of -Werror=dangling-reference Product: gcc Version: 14.1.0

[Bug c++/116276] [14/15 regression] multiple inheritance CTAD regression with -std=c++23

2024-08-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116276 --- Comment #2 from Patrick Palka --- In C++20 mode it works because of the default ctor guide [over.match.class.deduct]/1.2: "If C is not defined or does not declare any constructors, an additional function template derived as above from a hypo

[Bug target/55212] [SH] Switch to LRA

2024-08-07 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #144 from Kazumoto Kojima --- It seems that all ICEs in the log in c#142 are the pcrel call issues described in c#129 which could be avoided with the patch 58831.

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

2024-08-07 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #65 from Kees Cook --- (In reply to Alejandro Colomar from comment #64) > How about having two macros? One that works for non-attributed pointers, > and other that works for attributed ones. And use the appropriate one for > each o

[Bug c++/116276] [14/15 regression] multiple inheritance CTAD regression with -std=c++23

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

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

2024-08-07 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #64 from Alejandro Colomar --- (In reply to Kees Cook from comment #63) > (In reply to Alejandro Colomar from comment #62) > > What's the value of returning NULL instead of just failing the compilation > > with an error? > > It's so

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

2024-08-07 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #63 from Kees Cook --- (In reply to Alejandro Colomar from comment #62) > What's the value of returning NULL instead of just failing the compilation > with an error? It's so that the same allocator macros can be used for FAM structs

[Bug c++/116015] ICE in replace_placeholders_r for simple default member initializer

2024-08-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116015 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

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

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

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

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116238 --- Comment #2 from Andrew Pinski --- Created attachment 58864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58864&action=edit Reduced testcase `-Ofast -msve-vector-bits=128 -march=armv9-a -fno-vect-cost-model `

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

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116238 --- Comment #1 from Andrew Pinski --- Created attachment 58863 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58863&action=edit Just this file with `-Ofast -msve-vector-bits=128 -march=armv9-a` [apinski@xeond2 t]$ ../xgcc -B.. t2.c -Ofast

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

2024-08-07 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #62 from Alejandro Colomar --- (In reply to qinzhao from comment #61) > (In reply to qinzhao from comment #60) > > I came up with the following draft for the documentation of the new > > __builtin_get_counted_by, let me know your com

[Bug c++/116276] [14/15 regression] multiple inheritance CTAD regression with -std=c++23

2024-08-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116276 Jason Merrill changed: What|Removed |Added Priority|P3 |P2 Known to work|

[Bug c++/116276] [14/15 regression] multiple inheritance CTAD regression with -std=c++23

2024-08-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116276 Jason Merrill changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/116276] New: [14/15 regression] multiple inheritance CTAD regression with -std=c++23

2024-08-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116276 Bug ID: 116276 Summary: [14/15 regression] multiple inheritance CTAD regression with -std=c++23 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/116275] [15 regression] ICE when building llvm-18.1.8 (convert_insn, at config/i386/i386-features.cc:1502)

2024-08-07 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116275 Roger Sayle changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug fortran/116128] missed optimisation: fortran sum instrinsic performed in order

2024-08-07 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116128 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to mjr19 from comment #3) > It seems that most of these are in-line expanded by gfortran-14.1, at least > in some cases. > > function foo(a,n) > real(kind(1d0))::a(*),foo > integer:

[Bug tree-optimization/112358] [14/15 Regression] glibc -Wstringop-overflow= build failure on hppa since r14-4089-gd45ddc2c04e471

2024-08-07 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112358 --- Comment #8 from Joseph S. Myers --- If it's a false positive, it's reasonable to work around in glibc using the libc-diag.h macros (DIAG_PUSH_NEEDS_COMMENT / DIAG_IGNORE_NEEDS_COMMENT / DIAG_POP_NEEDS_COMMENT) - but that would need an approp

[Bug target/116275] New: [15 regression] ICE when building llvm-18.1.8 (convert_insn, at config/i386/i386-features.cc:1502)

2024-08-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
--enable-host-pie --disable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240807 (experimental) 2083389a18d36684a88d9

[Bug target/116237] gcc does not accept -weak_framework without -Wl on macOS

2024-08-07 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116237 --- Comment #2 from Sergey Fedorov --- Thank you, Iain!

[Bug tree-optimization/112358] [14/15 Regression] glibc -Wstringop-overflow= build failure on hppa since r14-4089-gd45ddc2c04e471

2024-08-07 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112358 --- Comment #7 from Jeffrey A. Law --- It could well be the case that the threader could transform this code to eliminate the unexecutable path, but that it wasn't deemed profitable, thus leaving a path in the IL that will never occur at runtime

[Bug target/116237] gcc does not accept -weak_framework without -Wl on macOS

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116237 --- Comment #1 from GCC Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:4cec7bc79db52bae159c3c60a415e2aea48051d8 commit r15-2803-g4cec7bc79db52bae159c3c60a415e2aea48051d8 Author: Iain Sandoe Date: Mon

[Bug tree-optimization/112358] [14/15 Regression] glibc -Wstringop-overflow= build failure on hppa since r14-4089-gd45ddc2c04e471

2024-08-07 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112358 --- Comment #6 from John David Anglin --- This note seems bogus: In function '_dl_find_object_update': cc1: note: destination object is likely at address zero bool _dl_find_object_update (struct link_map *new_map) { /* Copy the newly-loaded

[Bug testsuite/116271] [15 regression] gcc.dg/vect/tsvc/vect-tsvc-s176.c fails after r15-2777-g8fac69a2dbff98

2024-08-07 Thread amylaar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116271 --- Comment #2 from Jorn Wolfgang Rennecke --- Created attachment 58861 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58861&action=edit proposed patch Does this patch work for you?

[Bug target/55212] [SH] Switch to LRA

2024-08-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #143 from John Paul Adrian Glaubitz --- The most common failure seems to be "error: unable to generate reloads for" and it occurs often in routine for integer arithmetic.

[Bug target/55212] [SH] Switch to LRA

2024-08-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #142 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #141) > (In reply to Oleg Endo from comment #140) > > Created attachment 58860 [details] > > testcase for attachment 58831 [details], 58832,

[Bug c++/116064] [15 Regression] SPEC 2017 523.xalancbmk_r failed to build

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064 --- Comment #9 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:d1fc9816df81e953308428641685d6ec6d84c9ac commit r15-2802-gd1fc9816df81e953308428641685d6ec6d84c9ac Author: Patrick Palka Date: W

[Bug ipa/96265] offloading to nvptx-none from aarch64-linux-gnu (and riscv*-linux-gnu) does not work

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96265 --- Comment #8 from GCC Commits --- The master branch has been updated by Prathamesh Kulkarni : https://gcc.gnu.org/g:38900247f3880d6eca2e364a000e5898f8deae64 commit r15-2801-g38900247f3880d6eca2e364a000e5898f8deae64 Author: Prathamesh Kulkarni

[Bug ipa/111937] offloading from x86_64-linux-gnu to riscv*-linux-gnu will have issues

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111937 --- Comment #8 from GCC Commits --- The master branch has been updated by Prathamesh Kulkarni : https://gcc.gnu.org/g:38900247f3880d6eca2e364a000e5898f8deae64 commit r15-2801-g38900247f3880d6eca2e364a000e5898f8deae64 Author: Prathamesh Kulkarn

[Bug testsuite/116271] [15 regression] gcc.dg/vect/tsvc/vect-tsvc-s176.c fails after r15-2777-g8fac69a2dbff98

2024-08-07 Thread amylaar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116271 --- Comment #1 from Jorn Wolfgang Rennecke --- I have overlooked that, in the inner loop of s176, the array index i+m-j-1 turns negativeat for higher iterations of the middle loop for small m.

[Bug c++/116219] [14/15 regression] -O3 -march=znver3 -gno-statement-frontiers -fcompare-debug failure when building botan-3.2.0

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116219 --- Comment #17 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:165e3e7c3ba884345647c0f1c9a3a57a03383651 commit r15-2800-g165e3e7c3ba884345647c0f1c9a3a57a03383651 Author: Jakub Jelinek Date:

[Bug target/116274] [14/15 Regression] x86: poor code generation with 16 byte function arguments

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

[Bug c/116274] New: x86: poor code generation with 16 byte function arguments

2024-08-07 Thread ripatel at wii dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116274 Bug ID: 116274 Summary: x86: poor code generation with 16 byte function arguments Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal P

[Bug target/116273] New: [14/15 regression] RISC-V: gcc.dg/long_branch.c flakey timeout

2024-08-07 Thread ewlu at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116273 Bug ID: 116273 Summary: [14/15 regression] RISC-V: gcc.dg/long_branch.c flakey timeout Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

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

2024-08-07 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #61 from qinzhao at gcc dot gnu.org --- (In reply to qinzhao from comment #60) > I came up with the following draft for the documentation of the new > __builtin_get_counted_by, let me know your comments and suggestions: After discuss

[Bug tree-optimization/116272] [13/14/15 Regression] Wrong code at -O2/3/s on aarch64-linux-gnu

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

[Bug c++/109126] [DR2387] Linkage of const-qualified variable template

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

[Bug c++/94404] [meta-bug] C++ core issues

2024-08-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 109126, which changed state. Bug 109126 Summary: [DR2387] Linkage of const-qualified variable template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109126 What|Removed |Added ---

[Bug tree-optimization/116272] New: [13/14/15 Regression] Wrong code at -O2/3/s on aarch64-linux-gnu

2024-08-07 Thread jwzeng at nuaa dot edu.cn via Gcc-bugs
-13 test.c -O2; ./a.out 1 $ $ gcc-trunk -v Using built-in specs. COLLECT_GCC=/root/compilers/gcc/gcc-trunk-20240807/bin/gcc COLLECT_LTO_WRAPPER=/root/compilers/gcc/gcc-trunk-20240807/libexec/gcc/aarch64-unknown-linux-gnu/15.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: ./configure

[Bug c++/109126] [DR2387] Linkage of const-qualified variable template

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109126 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:82cd63a63eaa61a4ed5c4029a1869be7446ecb3c commit r15-2798-g82cd63a63eaa61a4ed5c4029a1869be7446ecb3c Author: Jakub Jelinek Date: W

[Bug tree-optimization/116258] PAREN_EXPR lowering for vectors is bad

2024-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116258 --- Comment #7 from Andrew Pinski --- (In reply to Richard Biener from comment #4) > Fixed on trunk, I do plan to backport. ok, thanks for the fix, I added 2 aarch64 specific testcases, one for the VLA vectors since that was not being tested be

[Bug middle-end/116259] __builtin_assoc_barrier with VLA type ICEs

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

[Bug tree-optimization/116258] PAREN_EXPR lowering for vectors is bad

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

[Bug tree-optimization/116258] PAREN_EXPR lowering for vectors is bad

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116258 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:2c6174402ea315ecf618cfcba741e8cb18bc5282 commit r15-2797-g2c6174402ea315ecf618cfcba741e8cb18bc5282 Author: Andrew Pinski Date: We

[Bug middle-end/116259] __builtin_assoc_barrier with VLA type ICEs

2024-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116259 --- Comment #1 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:2c6174402ea315ecf618cfcba741e8cb18bc5282 commit r15-2797-g2c6174402ea315ecf618cfcba741e8cb18bc5282 Author: Andrew Pinski Date: We

[Bug tree-optimization/116166] [13/14 Regression] risc-v (last) insn-emit-nn.c build takes hours

2024-08-07 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116166 Mark Wielaard changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/116266] rs6000: P10 vector insn ICE with -mno-vsx

2024-08-07 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116266 --- Comment #2 from Peter Bergner --- (In reply to Kewen Lin from comment #0) > I think not having TARGET_P10_VECTOR isn't intentional, as we still allow > -mno-vsx with -mcpu=power10. We have TARGET_P8_VECTOR and TARGET_P9_VECTOR > for P8 and

[Bug c++/107222] const qualifier appears in mangled NTTP value when the original object is so qualified

2024-08-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107222 Patrick Palka changed: What|Removed |Added CC||jason at gcc dot gnu.org,

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

2024-08-07 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116254 John David Anglin changed: What|Removed |Added CC||danglin at gcc dot gnu.org --- Comm

[Bug testsuite/116148] c-c++-common/fam-in-union-alone-in-struct-2.c fails on big-endian (finally tested starting with r15-2403-g136f364e26d9ad)

2024-08-07 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116148 --- Comment #12 from John David Anglin --- Adding -funsigned-char fixes test. Posted change also fixes test.

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-08-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug c++/114461] [C++26] P3034R1 - Disallow module declarations to be macros

2024-08-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114461 --- Comment #5 from Jakub Jelinek --- Oh, and I think there is another problem with that paper. module : private ; is valid, but the addition of https://eel.is/c++draft/cpp.module#2 stands in a way, the pp-tokens in that case don't match pp-modu

[Bug target/55212] [SH] Switch to LRA

2024-08-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #141 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #140) > Created attachment 58860 [details] > testcase for attachment 58831 [details], 58832, 58833, 58836 > (...) > The issue goes away after applying att

[Bug c++/116064] [15 Regression] SPEC 2017 523.xalancbmk_r failed to build

2024-08-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116064 --- Comment #8 from Patrick Palka --- One can now use -fpermissive or -Wno-error=template-body to compile TUs containing errors inside uninstantiated templates.

[Bug testsuite/116271] New: [15 regression] gcc.dg/vect/tsvc/vect-tsvc-s176.c fails after r15-2777-g8fac69a2dbff98

2024-08-07 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116271 Bug ID: 116271 Summary: [15 regression] gcc.dg/vect/tsvc/vect-tsvc-s176.c fails after r15-2777-g8fac69a2dbff98 Product: gcc Version: 15.0 Status: UNCONFIRMED S

[Bug target/116261] [15 regression] gfortran.dg/sizeof_6.f90 -O1 timeout since r15-2739-g4cb07a38233

2024-08-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116261 Sam James changed: What|Removed |Added Target|riscv |riscv,powerpc64-linux-gnu,

[Bug target/116261] [15 regression] RISC-V: gfortran.dg/sizeof_6.f90 -O1 timeout since r15-2739-g4cb07a38233

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

[Bug other/116270] [15 regression] erratic failures (time outs) of gfortran.dg/sizeof_6.f90

2024-08-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116270 Sam James changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug ipa/102061] Cloned function names get exposed in warning messages

2024-08-07 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102061 --- Comment #6 from Peter Damianov --- I confirmed this is the case. Compiling the example from the testcase independent-cloneids-1.c confirms that lhd_decl_printable_name is also used for -fdump-rtl-final, my patch results in: ;; Function bar (

[Bug other/116270] New: [15 regression] erratic failures (time outs) of gfortran.dg/sizeof_6.f90

2024-08-07 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116270 Bug ID: 116270 Summary: [15 regression] erratic failures (time outs) of gfortran.dg/sizeof_6.f90 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: norma

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

2024-08-07 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116016 --- Comment #60 from qinzhao at gcc dot gnu.org --- I came up with the following draft for the documentation of the new __builtin_get_counted_by, let me know your comments and suggestions: Builtin-in Function: type __builtin_get_counted_by (ptr)

[Bug target/55212] [SH] Switch to LRA

2024-08-07 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #140 from Oleg Endo --- Created attachment 58860 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58860&action=edit testcase for attachment 58831, 58832, 58833, 58836 The attached test case, when compiled with 'sh-elf-gcc -O2

[Bug target/116268] notes on arm-linux-gnueabi* cannot be turned off

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

[Bug tree-optimization/107087] [12 Regression] bits/stl_algobase.h:431: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading between 8 and 2147483644 bytes from a region of siz

2024-08-07 Thread ted at lyncon dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107087 Ted Lyngmo changed: What|Removed |Added CC||ted at lyncon dot se --- Comment #20 from

  1   2   >