[Bug c++/119319] [14/15 Regression] incorrect error: invalid use of incomplete type

2025-03-17 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119319 --- Comment #9 from Hans-Peter Nilsson --- (In reply to Andrew Pinski from comment #6) > > I just can't find the incompleteness > > the use of Xyzzy is before it is fully declared. There is only a forward > declaration of the struct type when i

[Bug target/118974] Use SVE cbranch sequence for Neon modes when TARGET_SVE

2025-03-17 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118974 Tamar Christina changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tnfchris at gcc dot gnu.org

[Bug target/118974] Use SVE cbranch sequence for Neon modes when TARGET_SVE

2025-03-17 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118974 --- Comment #3 from Tamar Christina --- and using the SVE CC regs: .L6: ldr q30, [x2, x0] cmple p15.s, p7/z, z30.s, #0 b.none .L2

[Bug tree-optimization/119320] unexpected -Wstringop-overflow= when using memcpy

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

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 119320, which changed state. Bug 119320 Summary: unexpected -Wstringop-overflow= when using memcpy https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119320 What|Removed |Added ---

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread chz0808 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #35 from Chen Chen --- (In reply to chenglulu from comment #34) > (In reply to Xi Ruoyao from comment #29) > > For 15 r15-7525 is intended for this issue. But I don't know if it's a good > > idea to backport it, as it's only a worka

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #36 from Andrew Pinski --- (In reply to Chen Chen from comment #35) > > 1. unknown patch committed between 20250105-20250112 on gcc15: works for > gcc15, possibly also works for gcc14? If yes, can it be backported to gcc14? r15-665

[Bug target/119291] [13/14/15 regression] wrong code at -O{2, 3} with "-fno-thread-jumps" on x86_64-linux-gnu since r13-793-g8fb94fc6097c0a

2025-03-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119291 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Component|middle-end

[Bug c/119311] musttail attribute is lost sometimes as single statement for then part of an if statement

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119311 --- Comment #2 from Jakub Jelinek --- Created attachment 60789 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60789&action=edit gcc15-pr119311.patch Untested fix.

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #9 from Bruno Haible --- > But the callee is still allowed to assign the whole struct through the > non-const pointer. Oh, I see. Yes, void foo (struct S *s) { s[-1] = s[0]; } would disable the optimization. Yeah, then it need

[Bug ipa/119318] [15 Regression] wrong code with vector arithmetics at -O2 since r15-6294-g96fb71883d438b

2025-03-17 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119318 Martin Jambor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #10 from Jakub Jelinek --- (In reply to Bruno Haible from comment #9) > We need only to see that the compilation unit only ever accesses > html5[i].name and html5[i].value but never html5[i] as an entire struct. I > don't think any k

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread chz0808 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #38 from Chen Chen --- (In reply to Xi Ruoyao from comment #37) > So if we revert r15-7525 now, would things work normally with just r15-6657? > If so I'd suggest to revert r15-7525 (now or when GCC 16 stage 1 starts) and > close thi

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #18 from Jakub Jelinek --- I think s390x-linux is similar to aarch64-linux here, neither has libquadmath support. Just long double is always IEEE quad on aarch64-linux and on s390x-linux it is configurable, one can choose between IEE

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #19 from Richard Biener --- I'll cook up a preliminary patch for the Q vs. f128 change.

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #20 from Iain Sandoe --- (In reply to Jakub Jelinek from comment #18) > I think s390x-linux is similar to aarch64-linux here, neither has > libquadmath support. However, libquadmath works fine on aarch64-darwin, so it is a possible

[Bug c++/119322] Different results between -O1 and -O3

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119322 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug c++/119322] New: Different results between -O1 and -O3

2025-03-17 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119322 Bug ID: 119322 Summary: Different results between -O1 and -O3 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #22 from Jakub Jelinek --- Q is an extension suffix for __float128 literals. s390*-linux doesn't support those, it only has long double (l/L suffix) or _Float128 (f128/F128 suffix).

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #21 from Richard Biener --- (In reply to Richard Biener from comment #19) > I'll cook up a preliminary patch for the Q vs. f128 change. Note it seems libgfortran LIBGFOR_CHECK_FLOAT128 sets USE_IEC_60559 in odd ways, also requiring

[Bug c++/119322] Different results between -O1 and -O3

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119322 Jakub Jelinek changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/119316] [14/15 Regression] new expression incorrectly required to have constant expression size inside a requires constraint of a template function

2025-03-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119316 Marek Polacek changed: What|Removed |Added Summary|new expression incorrectly |[14/15 Regression] new

[Bug c++/119328] New: ICE on generic lambda with defaulted parameter in requires clause

2025-03-17 Thread eczbek.void at gmail dot com via Gcc-bugs
); } ``` ``` Using built-in specs. COLLECT_GCC=/opt/compiler-explorer/gcc-snapshot/bin/g++ Target: x86_64-linux-gnu Configured with: ../gcc-trunk-20250317/configure --prefix=/opt/compiler-explorer/gcc-build/staging --enable-libstdcxx-backtrace=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu

[Bug c++/119328] ICE on generic lambda with defaulted parameter in requires clause

2025-03-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119328 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Last reco

[Bug c++/119305] [14 Regression] ICE in add_to_same_comdat_group with constexpr virtual and constexpr instance

2025-03-17 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119305 Patrick Palka changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug target/119308] Cobol ICE on "hello world" on POWER in rs6000_output_function_epilogue

2025-03-17 Thread iains at gcc dot gnu.org via Gcc-bugs
confirmed|0 |1 Last reconfirmed||2025-03-17 Status|UNCONFIRMED |NEW --- Comment #2 from Iain Sandoe --- confirmed on cfarm135 with 15.0.1 20250317

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #12 from Andrew Pinski --- https://gcc.gnu.org/pipermail/gcc-patches/2025-March/60.html

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #5 from Tobias Burnus --- For both the reduced and the full example: If I write the pragma as: #pragma omp target map(to:a,b) map(from:res) #pragma omp for simd (i.e. I remove the 'parallel' before 'for simd') the code starts

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread chz0808 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #40 from Chen Chen --- (In reply to Andrew Pinski from comment #36) > (In reply to Chen Chen from comment #35) > > > > 1. unknown patch committed between 20250105-20250112 on gcc15: works for > > gcc15, possibly also works for gcc14

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 Iain Sandoe changed: What|Removed |Added Attachment #60777|0 |1 is obsolete|

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #25 from Iain Sandoe --- (In reply to Iain Sandoe from comment #24) > Created attachment 60792 [details] > v2 patch with support for long double and literal suffix wrapping. > > This tries to pick up Jakub's suggestion as to how to

[Bug testsuite/119220] [15 Regression] FAIL: gcc.dg/debug/dwarf2/inline2.c scan-assembler-times DW_AT_entry_pc 6

2025-03-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119220 --- Comment #3 from GCC Commits --- The master branch has been updated by John David Anglin : https://gcc.gnu.org/g:45f7424ce8961631ee12ba473e3c36d3952d19f2 commit r15-8089-g45f7424ce8961631ee12ba473e3c36d3952d19f2 Author: John David Anglin D

[Bug c++/119343] New: No SFINAE for deleted explicit specializations

2025-03-17 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119343 Bug ID: 119343 Summary: No SFINAE for deleted explicit specializations Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/119344] internal compiler error related to template parameters and pointers to member functions

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344 --- Comment #1 from Andrew Pinski --- Created attachment 60795 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60795&action=edit C++98 testcase

[Bug c++/119344] [14/15 Regression] internal compiler error related to template parameters and pointers to member functions

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-03-17 Target Milestone|---

[Bug cobol/119213] gcc/cobol/Make-lang.in: suspicious -DEXEC_LIB with hardcoded lib64

2025-03-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119213 --- Comment #11 from GCC Commits --- The master branch has been updated by Robert Dubner : https://gcc.gnu.org/g:aa68eb8d5687f8e0944512cbc8533a77cd312873 commit r15-8239-gaa68eb8d5687f8e0944512cbc8533a77cd312873 Author: Bob Dubner Date: Mon

[Bug target/119327] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #2 from Sergey Fedorov --- Created attachment 60796 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60796&action=edit Preprocessed source file which fails to compile

[Bug cobol/119213] gcc/cobol/Make-lang.in: suspicious -DEXEC_LIB with hardcoded lib64

2025-03-17 Thread rdubner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119213 Robert Dubner changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug cobol/119211] [15 Regression] Cobol GCC 15 release checklist

2025-03-17 Thread rdubner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119211 Bug 119211 depends on bug 119213, which changed state. Bug 119213 Summary: gcc/cobol/Make-lang.in: suspicious -DEXEC_LIB with hardcoded lib64 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119213 What|Removed |A

[Bug target/119327] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #3 from Sergey Fedorov --- And result of running the command manually: $ sudo /opt/local/bin/g++-mp-14 -v -save-temps -DABSL_MIN_LOG_LEVEL=1 -Ds2_EXPORTS -I/opt/local/libexec/openssl3/include -I/opt/local/var/macports/build/_opt_loc

[Bug c++/119344] New: internal compiler error related to template parameters and pointers to member functions

2025-03-17 Thread ivan.lazaric.gcc at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344 Bug ID: 119344 Summary: internal compiler error related to template parameters and pointers to member functions Product: gcc Version: 14.2.0 Status: UNCONFIRMED

[Bug middle-end/119314] Possibly wrong code generation for branch after tail function call

2025-03-17 Thread root at hsnovel dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 --- Comment #6 from Novel --- (In reply to Andrew Pinski from comment #5) > (In reply to Novel from comment #0) > > > ; CODE XREF from sym.IGNORE_THIS_ITS_FUNCTION_NAME @ 0x8bcc(x) > > ; 0x28f58

[Bug middle-end/119314] Possibly wrong code generation for branch after tail function call

2025-03-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 --- Comment #7 from Sam James --- Please try to reduce the relevant functions and we can take a look with a testcase.

[Bug c++/119344] [14/15 Regression] internal compiler error related to template parameters and pointers to member functions

2025-03-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/119345] ICE segfault on capturing lambda in fold expression in capturing lambda

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119345 --- Comment #1 from Andrew Pinski --- Created attachment 60799 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60799&action=edit C++17 testcase

[Bug c++/119345] [14/15 Regression] ICE segfault on capturing lambda in fold expression in capturing lambda

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119345 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.3 Status|UNCONFIRMED

[Bug c++/119222] Conversion of inf to integer is not diagnosed

2025-03-17 Thread gwen3293940943 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119222 --- Comment #14 from Gwen Fu --- and I will send the patch at the same time

[Bug c++/119347] New: ICE: in tsubst, at cp/pt.cc:16632

2025-03-17 Thread eczbek.void at gmail dot com via Gcc-bugs
::xform<0>; int main() {} ``` ``` Using built-in specs. COLLECT_GCC=/opt/compiler-explorer/gcc-snapshot/bin/g++ Target: x86_64-linux-gnu Configured with: ../gcc-trunk-20250317/configure --prefix=/opt/compiler-explorer/gcc-build/staging --enable-libstdcxx-backtrace=yes --build=x86_64-lin

[Bug c++/119347] ICE: in tsubst, at cp/pt.cc:16632

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119347 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug ipa/119012] [riscv] Bootstrap comparison failure: gcc/rust/rust-lex.o differs

2025-03-17 Thread rsworktech at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119012 --- Comment #20 from Levi Zim --- I have minified it to the following commands: git -C gcc checkout 1cd744a6828f6ab9179906d16434ea40b6404737 mkdir gcc-build && cd $_ export CFLAGS="-march=rv64gc -mabi=lp64d -O2 -Wp,-D_FORTIFY_SOURCE=3 -g -ffil

[Bug c++/119346] ICE: in tsubst_pack_expansion, at cp/pt.cc:13899 when using fold expression with a lambda without a pack

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

[Bug c++/119344] [14/15 Regression] internal compiler error related to template parameters and pointers to member functions

2025-03-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119344 --- Comment #4 from Marek Polacek --- I guess we need --- a/gcc/tree.cc +++ b/gcc/tree.cc @@ -4101,7 +4101,7 @@ skip_simple_arithmetic (tree expr) computations if they actually occur. */ while (true) { - if (UNARY_CLASS_P (e

[Bug c++/119343] No SFINAE for deleted explicit specializations

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119343 --- Comment #1 from Andrew Pinski --- 4.8.0 used to do something similar for has_f too. Maybe that can help someone.

[Bug fortran/119338] Type-spec in ALLOCATE of dummy with assumed length shall use asterisk

2025-03-17 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119338 anlauf at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFI

[Bug c++/37208] C++0x deleted functions and SFINAE

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37208 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.4.0

[Bug target/119327] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #4 from Andrew Pinski --- Trying to reduce it. But yes I can reproduce it on the trunk and -O2 works but -Os does not. This might be due to the code savings with the C++ front-end and constructors. Or it could be something else.

[Bug middle-end/119314] Possibly wrong code generation for branch after leaf function call

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 Andrew Pinski changed: What|Removed |Added Summary|Possibly wrong code |Possibly wrong code |

[Bug c++/119343] No SFINAE for deleted explicit specializations

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

[Bug c++/57419] Access control doesn't stop referring to a deleted function

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57419 --- Comment #7 from Andrew Pinski --- r0-123716-g2e6491515ec153

[Bug c++/55004] [meta-bug] constexpr issues

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 111379, which changed state. Bug 111379 Summary: comparison between unequal pointers to void should be illegal during constant evaluation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111379 What|Removed

[Bug c++/111379] comparison between unequal pointers to void should be illegal during constant evaluation

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

[Bug target/117452] ICE: in patch_jump_insn, at cfgrtl.cc:1303 with -Ofast -mavx10.2 and __bf16

2025-03-17 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117452 Hongtao Liu changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug target/119327] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 Andrew Pinski changed: What|Removed |Added Ever confirmed|1 |0 Keywords|needs-source

[Bug target/119327] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #5 from Andrew Pinski --- Note the quick and dirty short function testcase just includes absl and libstdc++ classes (note is not a full testcase just what I have done so far manually to testcase): ``` void BuildPolygonBoundaries() {

[Bug fortran/119349] New: [15 Regression] polymorphic array dummy argument with function result actual argument in elemental function

2025-03-17 Thread damian at archaeologic dot codes via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119349 Bug ID: 119349 Summary: [15 Regression] polymorphic array dummy argument with function result actual argument in elemental function Product: gcc Version: 15.0 Status: UN

[Bug middle-end/119314] Possibly wrong code generation for branch after tail function call

2025-03-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 --- Comment #10 from Sam James --- (We also don't care if the reduced version has the same real typedefs and so on as the original, as long as the reduced version reproduces it, of course.)

[Bug middle-end/119314] Possibly wrong code generation for branch after tail function call

2025-03-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #9 fr

[Bug target/119327] [12/13/14/15 Regression] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > So it is not related at all to s2geometry sources as far as I can tell. Except for the `pragma GCC optimize` :).

[Bug target/119348] risc-v vector tuple casting optimization regression

2025-03-17 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 --- Comment #1 from nihui --- tested commit gcc 7efe3aa9b5d4d7aba3736d1393b007705522dc45 binutils cf4fdbd491bbf60267d4ba6ec3f533944e376e6c

[Bug target/119348] New: risc-v vector tuple casting optimization regression

2025-03-17 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 Bug ID: 119348 Summary: risc-v vector tuple casting optimization regression Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug target/119348] risc-v vector tuple casting optimization regression

2025-03-17 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 --- Comment #2 from nihui --- aha, just found that pointer casting works in gcc :) though clang seems unhappy about it ```c #include vfloat32m8_t convert_vfloat32m1x8_to_vfloat32m8(vfloat32m1x8_t tuple) { return *(vfloat32m8_t*)(&tuple);

[Bug target/119348] [15 Regression] risc-v vector tuple casting optimization regression

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization, ra Ever confir

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-17 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #14 from Hongtao Liu --- (In reply to Sam James from comment #13) > (In reply to Hongtao Liu from comment #9) > > I didn't find this commit in gcc trunk? > > Ah, sorry for confusion: it's from my local test results. Only the date >

[Bug tree-optimization/119310] Unnecessary instructions on std::bit_cast of an array of 3 strongly-typed floats

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

[Bug middle-end/119314] Possibly wrong code generation for branch after tail function call

2025-03-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 --- Comment #11 from Sam James --- Or, to put it another way: you're familiar with the code enough to share those comments about whether something is pure and so on, so it should be doable for you to then replace the function names with some stu

[Bug target/119327] [12/13/14/15 Regression] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 Andrew Pinski changed: What|Removed |Added Target|powerpc64-linux-gnu |powerpc*-linux-gnu |

[Bug target/119327] [12/13/14/15 Regression] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 Andrew Pinski changed: What|Removed |Added Known to work||11.2.0 Target|powerpc-apple

[Bug target/119327] -Os breaks inlining: raw_hash_set.h: error: inlining failed in call to 'always_inline': target specific option mismatch

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119327 --- Comment #6 from Andrew Pinski --- Created attachment 60798 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60798&action=edit Reduced testcase

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 --- Comment #2 from Sam James --- Created attachment 60797 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60797&action=edit reduced.i

[Bug c/119350] New: flexible array initialization is allowed when initialized with `{}` with C23

2025-03-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119350 Bug ID: 119350 Summary: flexible array initialization is allowed when initialized with `{}` with C23 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: a

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #11 from Joseph S. Myers --- A struct with a const field is not a modifiable lvalue in C, so it's not valid to assign to it. Modifying a const field with memcpy / byte accesses would probably also violate "If an attempt is made to mo

[Bug middle-end/119314] Possibly wrong code generation for branch after tail function call

2025-03-17 Thread root at hsnovel dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 --- Comment #8 from Novel --- (In reply to Sam James from comment #7) > Please try to reduce the relevant functions and we can take a look with a > testcase. I am not sure to what extend it is possible for you to make a testcase for it because

[Bug middle-end/119314] Possibly wrong code generation for branch after leaf function call

2025-03-17 Thread root at hsnovel dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 --- Comment #13 from Novel --- (In reply to Andrew Pinski from comment #3) > Before `DEBUG_LOG_INFO("2 Data %p\n", dest.Data);` > is there any calls before hand? Like say to memcpy? or anything that might > have the nonnull attribute on it and u

[Bug target/117069] [15 Regression] gcc.target/i386/apx-ndd-tls-1b.c since r15-268-g9dbff9c05520a7

2025-03-17 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117069 --- Comment #15 from Hongtao Liu --- (In reply to Sam James from comment #7) > This stopped failing for me around: > > commit 2bc3ea210565dc7cdbba9adb31acceefed406254 > Author: Sam James > Date: Fri Nov 22 15:20:45 2024 + > > saving

[Bug c++/119345] New: ICE segfault on capturing lambda in fold expression in capturing lambda

2025-03-17 Thread eczbek.void at gmail dot com via Gcc-bugs
; }); }.template operator()<0>(); } int main() { f(); } ``` ``` Using built-in specs. COLLECT_GCC=/opt/compiler-explorer/gcc-snapshot/bin/g++ Target: x86_64-linux-gnu Configured with: ../gcc-trunk-20250317/configure --prefix=/opt/compiler-explorer/gcc-build/staging --enable-lib

[Bug c++/119222] Conversion of inf to integer is not diagnosed

2025-03-17 Thread gwen3293940943 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119222 --- Comment #13 from Gwen Fu --- When executing the conversion_warning function, if you do not add any of the three compilation options -Warn-conversion or -Warn_sign_conversion or -Warn-float-conversion, the function will return directly.

[Bug c++/119346] New: ICE: in tsubst_pack_expansion, at cp/pt.cc:13899

2025-03-17 Thread eczbek.void at gmail dot com via Gcc-bugs
/compiler-explorer/gcc-snapshot/bin/g++ Target: x86_64-linux-gnu Configured with: ../gcc-trunk-20250317/configure --prefix=/opt/compiler-explorer/gcc-build/staging --enable-libstdcxx-backtrace=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --disable-bootstrap --enable

[Bug fortran/119272] Function misidentified as non-function in associate statement

2025-03-17 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119272 Andre Vehreschild changed: What|Removed |Added Status|NEW |WAITING Assignee|unassign

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #5 from Jakub Jelinek --- Certainly. If you do struct S { char a[4]; char b[4]; }; extern void foo (struct S *); static struct S s[] = { { "abc", "def" }, { "ghi", "jkl" } }; void bar (void) { foo (&s[1]); } i.e. if the address esc

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #4 from Bruno Haible --- > So, you're basically asking for interprocedural optimization No, I'm basically asking for type analysis: The compiler could note that the struct has an "all fields are const" property, and that this is eno

[Bug target/117978] Optimise 128-bit-predicated SVE loads to Advanced SIMD LDRs

2025-03-17 Thread jschmitz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117978 --- Comment #6 from Jennifer Schmitz --- Created attachment 60790 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60790&action=edit Proposed patch for folding SVE load/store with certain ptrue patterns to LDR/STR

[Bug rtl-optimization/119307] [15 Regression] ICE: in lra_rtx_hash, at lra.cc:1782 with -Os -mx32 -maddress-mode=long -fprofile-generate -ftrapv

2025-03-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119307 --- Comment #3 from Jakub Jelinek --- Untested fix: --- gcc/lra.cc.jj 2025-02-26 19:24:53.408264023 +0100 +++ gcc/lra.cc 2025-03-17 10:07:24.299064598 +0100 @@ -1730,6 +1730,12 @@ lra_rtx_hash (rtx x) case CONST_INT: return va

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7284-g6b56e645a7b481

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #2 from Tobias Burnus --- (In reply to Richard Biener from comment #1) > The bisection is quite odd I am re-testing. Somehow mixed full rebuilds and incremental builds, which affect whether newlib (libm) is rebuild or not. I am now

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread chz0808 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #41 from Chen Chen --- (In reply to Chen Chen from comment #40) > (In reply to Andrew Pinski from comment #36) > > (In reply to Chen Chen from comment #35) > > > > > > 1. unknown patch committed between 20250105-20250112 on gcc15: w

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #23 from Iain Sandoe --- (In reply to Richard Biener from comment #21) > (In reply to Richard Biener from comment #19) > > I'll cook up a preliminary patch for the Q vs. f128 change. > > Note it seems libgfortran LIBGFOR_CHECK_FLOAT

[Bug c++/119322] Different results between -O1 and -O3

2025-03-17 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119322 --- Comment #2 from Egor Pugin --- Tried this without -fno-strict-aliasing I suspect it was something on my side. With -fno-strict-aliasing answer is 0.

[Bug c++/119322] Different results between -O1 and -O3

2025-03-17 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119322 --- Comment #4 from Egor Pugin --- I see, thank you.

[Bug tree-optimization/119321] Jump threading causing false positive warnings with integer ranges

2025-03-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119321 Richard Biener changed: What|Removed |Added Keywords||diagnostic, false-positive,

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #39 from Xi Ruoyao --- (In reply to Chen Chen from comment #38) > (In reply to Xi Ruoyao from comment #37) > > So if we revert r15-7525 now, would things work normally with just r15-6657? > > If so I'd suggest to revert r15-7525 (now

[Bug cobol/119323] New: cppcheck meets libgcobol

2025-03-17 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119323 Bug ID: 119323 Summary: cppcheck meets libgcobol Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assigne

  1   2   3   >