[Bug target/115690] Strange codegen for small fixed-size `memcpy` when targeting `-march=i486`

2024-06-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115690 --- Comment #2 from Richard Biener --- looks like tuning picks an odd memcpy inline expansion choice.

[Bug target/115688] [15 regression] ICE on simple test case from r15-703-gb390b011569635

2024-06-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115688 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0

[Bug target/115683] [15 Regression] SSE2 regressions after obselete of vcond{,u,eq}.

2024-06-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115683 Richard Biener changed: What|Removed |Added Summary|[GCC 15] SSE2 regressions |[15 Regression] SSE2

[Bug c/115684] No warning for pointer and enum field comparison

2024-06-27 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684 --- Comment #5 from Eric Gallager --- (In reply to Andrew Pinski from comment #4) > C++ has -Wzero-as-null-pointer-constant . > Maybe it should be added for C also for at least C23 where nullptr exists > now. > > Note for C++, the enum value is

[Bug testsuite/115545] [15 regression] missing/excess errors after r15-1394 for targets where sizeof(int)==sizeof(long)

2024-06-27 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115545 --- Comment #5 from uecker at gcc dot gnu.org --- PATCH: https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655470.html

[Bug tree-optimization/115157] incorrect TBAA for derived types involving enum types

2024-06-27 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115157 --- Comment #6 from uecker at gcc dot gnu.org --- PATCH: https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655473.html

[Bug target/115634] [15 regression] s390 bootstrap failure since r15-1579-g792f97b44ffc5e

2024-06-27 Thread stefansf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115634 Stefan Schulze Frielinghaus changed: What|Removed |Added Resolution|--- |FIXED Status|

[Bug fortran/115689] Missed deallocation before exit

2024-06-27 Thread jvdelisle2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689 --- Comment #4 from Jerry DeLisle --- (In reply to kargls from comment #3) > The code you posted is standard conforming, and when > compiled, executes as expected. > > My point is that the program is exiting.  The operate system will > reap the

[Bug lto/115694] ICE when building scipy with LTO

2024-06-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694 --- Comment #3 from Sam James --- I should say -- I'm pretty sure the original code is undefined, but we obviously shouldn't ICE. See https://bugs.gentoo.org/932721 and https://github.com/scipy/scipy/issues/21065 for that side of things.

[Bug lto/115694] ICE when building scipy with LTO

2024-06-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694 --- Comment #2 from Sam James --- (In reply to Sam James from comment #1) > Created attachment 58539 [details] > gcc-PR115694-scipy.tar.xz There's a test.sh within, but pasting it inline: ``` gcc \ -O1 -flto=1 \ -o meson-generat

[Bug lto/115694] ICE when building scipy with LTO

2024-06-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115694 --- Comment #1 from Sam James --- Created attachment 58539 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58539&action=edit gcc-PR115694-scipy.tar.xz

[Bug lto/115694] New: ICE when building scipy with LTO

2024-06-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
read model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240627 (experimental) 9c56dc7f52a7c238c104cf9cc82d17a3703d970f (Gentoo Hardened 15.0. p, commit 7760ff0bf2fd5fa05385fc11158cb7efd7a05cc5) ```

[Bug target/101017] ICE: Segmentation fault, convert_memory_address_addr_space_1 with vector_size(32) and target_clone arch=core-avx2/default

2024-06-27 Thread haochen.jiang at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101017 --- Comment #9 from Haochen Jiang --- I would rather do not touch all the ISA level since it might cause unexpected problems after thinking twice. Since there is also indirect call, I will throw an error for this case.

[Bug tree-optimization/115693] 8 std::byte std::array comparison potential missed optimization

2024-06-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115693 Xi Ruoyao changed: What|Removed |Added Version|unknown |14.1.0 CC|

[Bug fortran/115689] Missed deallocation before exit

2024-06-27 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689 --- Comment #3 from kargls at comcast dot net --- The code you posted is standard conforming, and when compiled, executes as expected. My point is that the program is exiting.  The operate system will reap the process and reclaim the memory.  Va

[Bug c++/115676] [c++11-C++14] gcc allows invalid calling to implicitly-deleted default constructor of a template derived class (non-dependent) in template function

2024-06-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115676 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #3 fr

[Bug middle-end/115675] [15 Regression] truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization.

2024-06-27 Thread lin1.hu at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115675 --- Comment #3 from Hu Lin --- 192t.slp2 Previous: 781 char * vectp.10; 782 vector(4) char * vectp_a.9; 783 short int _1; 784 short int _2; 785 char _3; 786 char _4; 787 short int _5; 788 short int _6; 789 char _7; 790 char

[Bug libstdc++/115693] New: 8 std::byte std::array comparison potential missed optimization

2024-06-27 Thread paulhaile3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115693 Bug ID: 115693 Summary: 8 std::byte std::array comparison potential missed optimization Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug target/115688] ICE on simple test case from r15-703-gb390b011569635

2024-06-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115688 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org

[Bug target/106069] [12/13/14/15 Regression] wrong code with -O -fno-tree-forwprop -maltivec on ppc64le

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106069 --- Comment #45 from GCC Commits --- The releases/gcc-14 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:ef8b60dd48faeaf2b4e28c35401fa10d2a3e53fb commit r14-10355-gef8b60dd48faeaf2b4e28c35401fa10d2a3e53fb Author: Kewen Lin Date:

[Bug target/115355] [12/13/14/15 Regression] vectorization exposes wrong code on P9 LE starting from r12-4496

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115355 --- Comment #18 from GCC Commits --- The releases/gcc-14 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:ef8b60dd48faeaf2b4e28c35401fa10d2a3e53fb commit r14-10355-gef8b60dd48faeaf2b4e28c35401fa10d2a3e53fb Author: Kewen Lin Date:

[Bug target/115355] [12/13/14/15 Regression] vectorization exposes wrong code on P9 LE starting from r12-4496

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115355 --- Comment #17 from GCC Commits --- The releases/gcc-13 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:361bfcec901ca882130e338aebaa2ebc6ea2dc3b commit r13-8876-g361bfcec901ca882130e338aebaa2ebc6ea2dc3b Author: Kewen Lin Date:

[Bug target/106069] [12/13/14/15 Regression] wrong code with -O -fno-tree-forwprop -maltivec on ppc64le

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106069 --- Comment #44 from GCC Commits --- The releases/gcc-13 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:361bfcec901ca882130e338aebaa2ebc6ea2dc3b commit r13-8876-g361bfcec901ca882130e338aebaa2ebc6ea2dc3b Author: Kewen Lin Date:

[Bug target/115355] [12/13/14/15 Regression] vectorization exposes wrong code on P9 LE starting from r12-4496

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115355 --- Comment #16 from GCC Commits --- The releases/gcc-12 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:96ef3367067219c8e3eb88c0474a1090cc7749b4 commit r12-10587-g96ef3367067219c8e3eb88c0474a1090cc7749b4 Author: Kewen Lin Date:

[Bug target/106069] [12/13/14/15 Regression] wrong code with -O -fno-tree-forwprop -maltivec on ppc64le

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106069 --- Comment #43 from GCC Commits --- The releases/gcc-12 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:96ef3367067219c8e3eb88c0474a1090cc7749b4 commit r12-10587-g96ef3367067219c8e3eb88c0474a1090cc7749b4 Author: Kewen Lin Date:

[Bug c++/115672] [11/12/13/14/15 Regression] Incorrect template type parameter deduced in non-deduced context if class template has template template parameter

2024-06-27 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672 --- Comment #11 from Sean Murthy --- Created attachment 58538 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58538&action=edit Repro for "order dependency" where issues with both A objects and B objects disappear because B objects are crea

[Bug c++/115672] [11/12/13/14/15 Regression] Incorrect template type parameter deduced in non-deduced context if class template has template template parameter

2024-06-27 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672 --- Comment #10 from Sean Murthy --- Comment on attachment 58537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58537 Repro for "dependency" where not creating A objects fixes the issue with B objects Oops, the last two lines of the code

[Bug c++/115672] [11/12/13/14/15 Regression] Incorrect template type parameter deduced in non-deduced context if class template has template template parameter

2024-06-27 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672 --- Comment #9 from Sean Murthy --- Created attachment 58537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58537&action=edit Repro for "dependency" where not creating A objects fixes the issue with B objects See: https://sigcpp.godbolt.o

[Bug c++/115672] [11/12/13/14/15 Regression] Incorrect template type parameter deduced in non-deduced context if class template has template template parameter

2024-06-27 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672 --- Comment #8 from Sean Murthy --- Created attachment 58536 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58536&action=edit Repro for "contamination" or "bleeding" of A object issues to B objects See: https://sigcpp.godbolt.org/z/73j6Yq

[Bug c++/115672] [11/12/13/14/15 Regression] Incorrect template type parameter deduced in non-deduced context if class template has template template parameter

2024-06-27 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672 --- Comment #7 from Sean Murthy --- I have three other observations I'm having a hard time grasping and worry that I might be doing something wrong. I share them anyway in the hope they add value. I will also attach repros for these. The observ

[Bug c++/115692] C++ module ice

2024-06-27 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 cqwrteur changed: What|Removed |Added CC||unlvsur at live dot com --- Comment #6 from

[Bug c++/115692] C++ module ice

2024-06-27 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 --- Comment #5 from cqwrteur --- g++ -c ../modules/fast_io_core_impl.cppm -Ofast -std=c++26 -fmodules-ts -I../include -freport-bug

[Bug c++/115692] C++ module ice

2024-06-27 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 --- Comment #4 from cqwrteur --- g++ -c ../modules/fast_io_core_impl.cppm -Ofast -std=c++26 -fmodules-ts -I../include -freport-bug

[Bug c++/115692] C++ module ice

2024-06-27 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 --- Comment #3 from cqwrteur --- Created attachment 58534 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58534&action=edit Preprocessed source stored into /tmp/cc3uiZPp.out file, please attach this to your bugreport.

[Bug c++/115692] C++ module ice

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 --- Comment #2 from Andrew Pinski --- Or attach the preprocessed source split correctly.

[Bug c++/115692] C++ module ice

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

[Bug fortran/115689] Missed deallocation before exit

2024-06-27 Thread jvdelisle2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689 --- Comment #2 from Jerry DeLisle --- Well I do not know about how all the hooks work but this is with the following configure: ../trunk/configure --prefix=/home/jerry/dev/usr --enable-languages=c,c++,fortran --enable-libgomp --disable-bootstra

[Bug c++/115692] New: C++ module ice

2024-06-27 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115692 Bug ID: 115692 Summary: C++ module ice Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassi

[Bug target/103100] [11/12/13 Regression] unaligned access generated with memset or {} and -O2 -mstrict-align

2024-06-27 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103100 --- Comment #28 from Hans-Peter Nilsson --- (In reply to GCC Commits from comment #27) > The releases/gcc-13 branch has been updated by Wilco Dijkstra > : Thanks!

[Bug tree-optimization/115157] incorrect TBAA for derived types involving enum types

2024-06-27 Thread thiago.bauermann at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115157 Thiago Jung Bauermann changed: What|Removed |Added CC||thiago.bauermann at linaro dot

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-06-27 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 --- Comment #2 from John David Anglin --- The xmpy patterns using uint32_operand have been there for ever. I think they should be removed.

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread palmer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 --- Comment #8 from Palmer Dabbelt --- (In reply to Andrew Waterman from comment #6) > I note MIPS sets TARGET_CONST_ANCHOR to 0x8000, and that architecture's > ADDIU instruction has a 16-bit immediate. RISC-V's ADDI instruction has a > 12-bit

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

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

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 Andrew Pinski changed: What|Removed |Added Target||hppa-linux-gnu Summary|libgo

[Bug target/115690] Strange codegen for small fixed-size `memcpy` when targeting `-march=i486`

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115690 Andrew Pinski changed: What|Removed |Added Known to work||6.1.0 --- Comment #1 from Andrew Pinski

[Bug rtl-optimization/115691] New: libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-06-27 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 Bug ID: 115691 Summary: libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816 Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c++/115583] [14/15 Regression] C++23: Call to consteval function in `if consteval` immediate function context rejected at -O1 since r14-4140

2024-06-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115583 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include since r14-5836

2024-06-27 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312 Lewis Hyatt changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug rtl-optimization/115690] New: Strange codegen for small fixed-size `memcpy` when targeting `-march=i486`

2024-06-27 Thread arcata at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115690 Bug ID: 115690 Summary: Strange codegen for small fixed-size `memcpy` when targeting `-march=i486` Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: n

[Bug c/115549] ICE: tree check: expected tree that contains ‘decl common’ structure, have ‘error_mark’ in common_handle_aligned_attribute, at c-family/c-attribs.cc:2665 with invalid aligned attribute

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

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 Vineet Gupta changed: What|Removed |Added CC||vineetg at gcc dot gnu.org --- Comment #

[Bug fortran/115689] Missed deallocation before exit

2024-06-27 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689 kargls at comcast dot net changed: What|Removed |Added CC||kargls at comcast dot net --

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread andrew at sifive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 Andrew Waterman changed: What|Removed |Added CC||andrew at sifive dot com --- Comment

[Bug c++/115670] auto placeholder for return type should change the linkage of the function if the type becomes local linkage too

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115670 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > So at -O1, foo0, foo5, foo6 are the only ones left. > > at -O0, foo1, foo2, foo3, foo4 are also emitted but that is expected since > GCC emits static unused fun

[Bug fortran/115689] New: Missed deallocation before exit

2024-06-27 Thread jvdelisle2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689 Bug ID: 115689 Summary: Missed deallocation before exit Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug c++/115670] auto placeholder for return type should change the linkage of the function if the type becomes local linkage too

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115670 --- Comment #5 from Andrew Pinski --- So at -O1, foo0, foo5, foo6 are the only ones left. at -O0, foo1, foo2, foo3, foo4 are also emitted but that is expected since GCC emits static unused functions always at -O0. So let's keep this for foo0/

[Bug fortran/114019] allocation with source of deferred character length entity

2024-06-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114019 --- Comment #2 from anlauf at gcc dot gnu.org --- The following - seemingly hackish - change fixes the ICE: diff --git a/gcc/fortran/trans-stmt.cc b/gcc/fortran/trans-stmt.cc index 93b633e212e..60275e18867 100644 --- a/gcc/fortran/trans-stmt.cc

[Bug c++/115676] [c++11-C++14] gcc allows invalid calling to implicitly-deleted default constructor of a template derived class (non-dependent) in template function

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115676 --- Comment #2 from Andrew Pinski --- Yes see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55361#c5 for that ...

[Bug c++/115676] [c++11-C++14] gcc allows invalid calling to implicitly-deleted default constructor of a template derived class (non-depdenent) in template function

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115676 Andrew Pinski changed: What|Removed |Added Summary|gcc allows invalid calling |[c++11-C++14] gcc allows

[Bug tree-optimization/115679] inlining failed in call to 'foo': function not considered for inlining

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

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread palmer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 --- Comment #5 from palmer at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #3) > (In reply to Andrew Pinski from comment #2) > > There is some code in cse.cc which does handle this. > > See > > https://gcc.gnu.org/onlinedocs/gccint

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread palmer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 --- Comment #4 from palmer at gcc dot gnu.org --- Just poking around a bit: I think this is coming from CSE, which is replacing (insn 5 2 6 2 (set (reg:DI 135) (const_int 16384 [0x4000])) "pr115687.c":7:12 275 {*movdi_64bit} (nil))

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > There is some code in cse.cc which does handle this. > See > https://gcc.gnu.org/onlinedocs/gccint/Misc.html#index- > TARGET_005fCONST_005fANCHOR also. MIPS, aa

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 --- Comment #2 from Andrew Pinski --- There is some code in cse.cc which does handle this. See https://gcc.gnu.org/onlinedocs/gccint/Misc.html#index-TARGET_005fCONST_005fANCHOR also.

[Bug target/115687] RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread palmer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 palmer at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2024-06-27 Ever confirme

[Bug c/115684] No warning for pointer and enum field comparison

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

[Bug c/112556] Null pointer constants with enumeration type are not accepted

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

[Bug c/115684] No warning for pointer and enum field comparison

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #3 from Andrew P

[Bug target/115688] ICE on simple test case from r15-703-gb390b011569635

2024-06-27 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115688 Peter Bergner changed: What|Removed |Added Last reconfirmed||2024-06-27 CC|

[Bug target/115688] New: ICE on simple test case from r15-703-gb390b011569635

2024-06-27 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115688 Bug ID: 115688 Summary: ICE on simple test case from r15-703-gb390b011569635 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug libstdc++/115040] Missed optimization opportunity in std::find of std::vector elements

2024-06-27 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115040 --- Comment #6 from AK --- The duplicate part of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88545, the first loop, will get fixed with Jonathan's patch.

[Bug c++/102398] thread_local works incorrectly outside of main file

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

[Bug libstdc++/88545] std::find compile to memchr in trivial random access cases (patch)

2024-06-27 Thread hiraditya at msn dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88545 --- Comment #10 from AK --- With this patch find of int8_t gets converted to memchr. Using testcase from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115040 as example. With the patch posted in https://gcc.gnu.org/pipermail/gcc-patches/2024-June/

[Bug target/81915] bug with thread_local inline variables

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

[Bug target/81915] bug with thread_local inline variables

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81915 Andrew Pinski changed: What|Removed |Added CC||MacroModel at trajectronix dot onm

[Bug target/115686] gcc cannot generate weak link function for thread_local variable `TLS init function`

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115686 --- Comment #2 from Andrew Pinski --- Really dup of bug 81915. *** This bug has been marked as a duplicate of bug 81915 ***

[Bug target/115686] gcc cannot generate weak link function for thread_local variable `TLS init function`

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

[Bug c++/102398] thread_local works incorrectly outside of main file

2024-06-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102398 Andrew Pinski changed: What|Removed |Added CC||MacroModel at trajectronix dot onm

[Bug c++/109521] [11/12/13/14/15 Regression] Checking ICE with canonical types differ for identical types ‘UBYTE [7]’ {aka ‘unsigned char [7]’} and ‘unsigned char [7]’ since r11-6508-gabb1b6058c09a7

2024-06-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109521 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug other/115687] New: RISC-V optimization when "lui" instructions can be merged

2024-06-27 Thread Explorer09 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687 Bug ID: 115687 Summary: RISC-V optimization when "lui" instructions can be merged Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/115670] auto placeholder for return type should change the linkage of the function if the type becomes local linkage too

2024-06-27 Thread federico at kircheis dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115670 --- Comment #4 from Federico Kircheis --- Sorry, I've posted the wrong link in the previous reply, this is the correct one https://godbolt.org/z/nhrM46ajs Also struct s2{ s i; //s is in anonymous namespace }; s2 foo6(){ return

[Bug c++/115670] auto placeholder for return type should change the linkage of the function if the type becomes local linkage too

2024-06-27 Thread federico at kircheis dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115670 --- Comment #3 from Federico Kircheis --- I've collected the example mentioned here and in my original report https://godbolt.org/z/o4893zhPs struct { int i = 42; } const a; auto foo0(){ return a; } int foo1(decltype(a)&){

[Bug target/103100] [11/12/13 Regression] unaligned access generated with memset or {} and -O2 -mstrict-align

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103100 --- Comment #27 from GCC Commits --- The releases/gcc-13 branch has been updated by Wilco Dijkstra : https://gcc.gnu.org/g:5aa9ed0f353f835005c3df8932c7bc6e26f53904 commit r13-8874-g5aa9ed0f353f835005c3df8932c7bc6e26f53904 Author: Wilco Dijkstr

[Bug c++/115686] New: gcc cannot generate weak link function for thread_local variable `TLS init function`

2024-06-27 Thread MacroModel at trajectronix dot onmicrosoft.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115686 Bug ID: 115686 Summary: gcc cannot generate weak link function for thread_local variable `TLS init function` Product: gcc Version: 15.0 Status: UNCONFIRMED Sev

[Bug tree-optimization/110498] Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector::reserve

2024-06-27 Thread rogerio.souza at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110498 Rogério de Souza Moraes changed: What|Removed |Added Version|13.1.0 |12.4.0 --- Comment #4 from Ro

[Bug libstdc++/115444] std::copy_n generates more code than needed

2024-06-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115444 --- Comment #6 from Jonathan Wakely --- If the compile wants to vectorize the loop, knowing there are N iterations helps. Using first != last as the condition isn't necessarily just a pointer comparison for arbitrary random access iterators, so

[Bug c/115684] No warning for pointer and enum field comparison

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

[Bug c/115684] No warning for pointer and enum field comparison

2024-06-27 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684 --- Comment #1 from Konstantin Kharlamov --- FWIW, IRL these cases happen during refactoring, when you factor out a code to a smaller function, and some variables from the original function become pointers. I honestly never even check the parame

[Bug fortran/115685] New: [OpenMP][5.1][OpenACC] Permit named constants ("PARAMETER") in firstprivate, shared and copyin clauses

2024-06-27 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115685 Bug ID: 115685 Summary: [OpenMP][5.1][OpenACC] Permit named constants ("PARAMETER") in firstprivate, shared and copyin clauses Product: gcc Version: 15.0

[Bug c/115684] New: No warning for pointer and enum field comparison

2024-06-27 Thread Hi-Angel at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684 Bug ID: 115684 Summary: No warning for pointer and enum field comparison Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug c++/115364] [11/12/13/14/15 Regression] ICE-on-invalid when calling non-const template member on const object

2024-06-27 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115364 Simon Martin changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug target/115475] AArch64 should define __ARM_FEATURE_SVE_BF16 when appropriate

2024-06-27 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115475 ktkachov at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED Assigne

[Bug target/115457] AArch64 should define __ARM_FEATURE_BF16

2024-06-27 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115457 ktkachov at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ktkachov at gcc dot

[Bug rtl-optimization/115677] ICE when building argon2 with -flate-combine-instructions on amd64

2024-06-27 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115677 Richard Sandiford changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/115677] ICE when building argon2 with -flate-combine-instructions on amd64

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115677 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:f6081ee665fd5e4e7d37e02c69d16df0d3eead10 commit r15-1696-gf6081ee665fd5e4e7d37e02c69d16df0d3eead10 Author: Richard Sandiford Da

[Bug target/115634] [15 regression] s390 bootstrap failure since r15-1579-g792f97b44ffc5e

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115634 --- Comment #6 from GCC Commits --- The master branch has been updated by Stefan Schulze Frielinghaus : https://gcc.gnu.org/g:187eeb99ec5289538923668de9d61a3138376817 commit r15-1695-g187eeb99ec5289538923668de9d61a3138376817 Author: Stefan Sch

[Bug middle-end/115345] [12/13/14/15 Regression] Different outputs compared to GCC 11- and MSVC/Clang

2024-06-27 Thread djordje.baljozovic at ac dot rwth-aachen.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115345 Djordje Baljozovic changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/115679] inlining failed in call to 'foo': function not considered for inlining

2024-06-27 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115679 --- Comment #2 from Jan Hubicka --- > With -Og it's usually that the always-inline function is called indirectly - > that's an unsupported case. We can probably add CIF code for functions that were called indirectly but are no more, so this is r

[Bug analyzer/115680] ICE in on_ranges, at analyzer/constraint-manager.cc:3166

2024-06-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115680 David Malcolm changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/108860] [12/13/14/15 regression] New (since gcc 12) false positive null-dereference in vector.resize

2024-06-27 Thread adl at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108860 Alexandre Duret-Lutz changed: What|Removed |Added CC||adl at gnu dot org --- Comment #

  1   2   >