[Bug tree-optimization/116405] New: wrong code at -O{2,3} with "-fno-ssa-phiopt -fno-tree-dce" on x86_64-linux-gnu

2024-08-18 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
sable-bootstrap --enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20240818 (experimental) (GCC) [616] % [616] % gc

[Bug tree-optimization/116406] New: [15 Regression] ICE: in add_to_value, at tree-ssa-pre.cc:695 with -Os -finstrument-functions-once -mfpmath=387

2024-08-18 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116406 Bug ID: 116406 Summary: [15 Regression] ICE: in add_to_value, at tree-ssa-pre.cc:695 with -Os -finstrument-functions-once -mfpmath=387 Product: gcc Version: 15.0

[Bug target/116407] New: [avr] error: relocation truncated to fit

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 Bug ID: 116407 Summary: [avr] error: relocation truncated to fit Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: targe

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 Georg-Johann Lay changed: What|Removed |Added Target||avr Keywords|

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 --- Comment #1 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:dfb2e8caa85d1059a0ab8ed4f19568c04c9f13a4 commit r15-2982-gdfb2e8caa85d1059a0ab8ed4f19568c04c9f13a4 Author: Georg-Johann Lay Dat

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 --- Comment #2 from GCC Commits --- The releases/gcc-14 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:919c42bf4487a8f0cc584a3ca53784c381f19dfa commit r14-10599-g919c42bf4487a8f0cc584a3ca53784c381f19dfa Author: Georg-Johan

[Bug c++/115908] [coroutines] Wrong behavior of using get_return_object() when creating coroutines

2024-08-18 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115908 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #4 f

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 --- Comment #3 from GCC Commits --- The releases/gcc-13 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:58c8882ff5ba249ef4cfc99f3c3f8ada8810f75a commit r13-8980-g58c8882ff5ba249ef4cfc99f3c3f8ada8810f75a Author: Georg-Johann

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-18 Thread dv at vollmann dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #10 from Detlef Vollmann --- Just in case you don't already know it, this is the commit that caused this regression: Detlef

[Bug c++/101976] When constructing object, calling function and performing co_await in same statement, temporary is erroneously moved trivially

2024-08-18 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101976 Iain Sandoe changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug middle-end/116408] New: wrong code due to missing sign extension of _BitInt() at -O0 / -O1

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

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 --- Comment #4 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:22acd3c4d18dbd4d4d39d7770145fe3ec36073f6 commit r15-2983-g22acd3c4d18dbd4d4d39d7770145fe3ec36073f6 Author: Georg-Johann Lay Dat

[Bug c/84052] Using Randomizing structure layout plugin in linux kernel compilation doesn't generate proper debuginfo

2024-08-18 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84052 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment #

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:c7257486630c419f0d140d558eaa20d183439811 commit r14-10600-gc7257486630c419f0d140d558eaa20d183439811 Author: Georg-Johan

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug middle-end/116408] wrong code due to missing sign extension of _BitInt() at -O0 / -O1

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116408 --- Comment #1 from Andrew Pinski --- I wonder if this is undefined and -fsanitize=undefined is not catching it. If we change the union to be using bitfields (_BitInt(31) b:31;) it works.

[Bug tree-optimization/116406] [15 Regression] ICE: in add_to_value, at tree-ssa-pre.cc:695 with -Os -finstrument-functions-once -mfpmath=387

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116406 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Last reconfirmed|

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #11 from Georg-Johann Lay --- This PR is about a segmentation fault, which has been fixed already by the commit above. The "insn does not satisfy its constraints" ICE you are seeing now is PR116389. Please f'up to PR116389.

[Bug rtl-optimization/116405] wrong code at -O{2,3} with "-fno-ssa-phiopt -fno-tree-dce" on x86_64-linux-gnu

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

[Bug rtl-optimization/116405] wrong code at -O{2,3} with "-fno-ssa-phiopt -fno-tree-dce" on x86_64-linux-gnu

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

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

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

[Bug rtl-optimization/116405] [15 regression] wrong code at -O{2,3} with "-fno-ssa-phiopt -fno-tree-dce" on x86_64-linux-gnu

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

[Bug fortran/114781] Error in ALLOCATE with MOLD=

2024-08-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114781 --- Comment #2 from anlauf at gcc dot gnu.org --- Update: at r15-2986 the allocation errors are no longer present. Likely fixed by r15-1704 and r15-2910. Older branches are still affected. Replacing mold= by source=, or using parentheses around

[Bug fortran/106603] Problem with character(:), allocatable, intent(out) :: err for functions which return fixed arrays

2024-08-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106603 anlauf at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug fortran/99884] Double spaces in warning message

2024-08-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99884 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING --- Comment #3 from a

[Bug fortran/107508] Invalid bounds due to bogus reallocation on assignment with KIND=4 characters

2024-08-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107508 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|WAI

[Bug translation/40883] [meta-bug] Translation breakage with trivial fixes

2024-08-18 Thread goeran at uddeborg dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40883 Bug 40883 depends on bug 99884, which changed state. Bug 99884 Summary: Double spaces in warning message https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99884 What|Removed |Added ---

[Bug fortran/99884] Double spaces in warning message

2024-08-18 Thread goeran at uddeborg dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99884 Göran Uddeborg changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added Status|REOPENED|WAITING --- Comment #12 from Georg-J

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

2024-08-18 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #181 from John Paul Adrian Glaubitz --- Just as a heads-up: I am currently performing extensive testing to be able to generate anything useful from testsuite results to a usable backtrace. For that, I am building GCC natively with var

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

2024-08-18 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108620 --- Comment #5 from Iain Sandoe --- (In reply to Peter Damianov from comment #4) > Seems like this is fixed on trunk, it no longer ICEs. > > https://godbolt.org/z/9oGrGq7xq It's fixed (or, at least has become latent) on 14.1 and trunk - probab

[Bug rtl-optimization/115876] [15 regression] ext-dce.cc has ubsan issues; shifting negative values

2024-08-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #18 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:f10d2ee95356b9de6c44d701c4dfa8fb088714d2 commit r15-2989-gf10d2ee95356b9de6c44d701c4dfa8fb088714d2 Author: Jeff Law Date: Sun Aug 18

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2024-08-18 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 115876, which changed state. Bug 115876 Summary: [15 regression] ext-dce.cc has ubsan issues; shifting negative values https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 What|Removed |

[Bug rtl-optimization/115876] [15 regression] ext-dce.cc has ubsan issues; shifting negative values

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

[Bug target/116030] ICE "could not split insn" in final_scan_insn_1, at final.cc on power pc

2024-08-18 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116030 --- Comment #2 from HaoChen Gui --- Peter, the root cause of the issue is the combine is done at ira pass. There is no split pass after ira and reload. So the split has to been done after reload, which causes the ICE. Jeff (Jiufu) is working on

[Bug tree-optimization/116409] New: [15 Regression] Recent phiopt change causing ICE on riscv64

2024-08-18 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 Bug ID: 116409 Summary: [15 Regression] Recent phiopt change causing ICE on riscv64 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/116409] [15 Regression] Recent phiopt change causing ICE on riscv64

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Status|UNCONFIRMED

[Bug tree-optimization/116409] [15 Regression] Recent phiopt change causing ICE on riscv64

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 --- Comment #2 from Andrew Pinski --- `-O2 -frounding-math -fno-math-errno` is enough to get the ICE even on x86_64.

[Bug tree-optimization/116409] [15 Regression] Recent phiopt change causing ICE with sqrt and -frounding-math

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 --- Comment #3 from Andrew Pinski --- I have a quick fix which just limits to const builtins (rather than pure). The expanded change to handle more than const functions will happen later.

[Bug tree-optimization/116409] [15 Regression] Recent phiopt change causing ICE with sqrt and -frounding-math

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 --- Comment #4 from Andrew Pinski --- Better and well defined testcase which ICEs: ``` double f(int c, double a, double b) { if (c) return __builtin_sqrt(a); return __builtin_sqrt(b); } ```

[Bug ipa/116410] New: fat-lto-objects generates different and inefficient code compared with no-fat-lto-objects

2024-08-18 Thread yinyuefengyi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116410 Bug ID: 116410 Summary: fat-lto-objects generates different and inefficient code compared with no-fat-lto-objects Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug ipa/116410] fat-lto-objects generates different and inefficient code compared with no-fat-lto-objects

2024-08-18 Thread yinyuefengyi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116410 --- Comment #1 from Xionghu Luo (luoxhu at gcc dot gnu.org) --- Created attachment 58950 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58950&action=edit nofat.asm for ZSTD_rescaleFreqs

[Bug ipa/116410] fat-lto-objects generates different and inefficient code compared with no-fat-lto-objects

2024-08-18 Thread yinyuefengyi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116410 --- Comment #2 from Xionghu Luo (luoxhu at gcc dot gnu.org) --- Created attachment 58951 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58951&action=edit fat.asm for ZSTD_rescaleFreqs

[Bug tree-optimization/116409] [15 Regression] Recent phiopt change causing ICE with sqrt and -frounding-math

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 --- Comment #5 from Andrew Pinski --- Created attachment 58952 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58952&action=edit Patch which I am testing This adds the check so there is no assert. Basically non-const builtins can't be hand

[Bug rtl-optimization/116405] [15 regression] wrong code at -O{2,3} with "-fno-ssa-phiopt -fno-tree-dce" on x86_64-linux-gnu since r15-2890-g72c9b5f438f22c

2024-08-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116405 Sam James changed: What|Removed |Added Summary|[15 regression] wrong code |[15 regression] wrong code

[Bug middle-end/116411] New: [15 Regression] ICE on readline-8.2p13: in factor_out_conditional_operation, at tree-ssa-phiopt.cc:407

2024-08-18 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116411 Bug ID: 116411 Summary: [15 Regression] ICE on readline-8.2p13: in factor_out_conditional_operation, at tree-ssa-phiopt.cc:407 Product: gcc Version: 14.0

[Bug tree-optimization/116409] [15 Regression] Recent phiopt change causing ICE with sqrt and -frounding-math

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409 Andrew Pinski changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comment #

[Bug middle-end/116411] [15 Regression] ICE on readline-8.2p13: in factor_out_conditional_operation, at tree-ssa-phiopt.cc:407

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

[Bug middle-end/116411] [15 Regression] ICE on readline-8.2p13: in factor_out_conditional_operation, at tree-ssa-phiopt.cc:407

2024-08-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116411 --- Comment #2 from Andrew Pinski --- Will add a cleaned up version of this reduced testcase too.

[Bug target/115982] [15 Regression] ICE: unrecognizable insn in ira_remove_insn_scratches with -mavx512vl since r15-1742

2024-08-18 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115982 Hongtao Liu changed: What|Removed |Added Resolution|--- |FIXED Known to fail|

[Bug target/115830] [avr] Make better use of SREG in conditional jumps

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115830 --- Comment #1 from Georg-Johann Lay --- Created attachment 58953 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58953&action=edit proposed patch: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/659422.html AVR: target/115830 - Make

[Bug middle-end/116411] [15 Regression] ICE on readline-8.2p13: in factor_out_conditional_operation, at tree-ssa-phiopt.cc:407

2024-08-18 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116411 --- Comment #3 from Sergei Trofimovich --- I confirm the pending change fixes readline-8.2p13 build for me. Thank you!

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

2024-08-18 Thread mkretz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114908 --- Comment #12 from Matthias Kretz (Vir) --- (In reply to rguent...@suse.de from comment #11) > On Wed, 17 Jul 2024, mkretz at gcc dot gnu.org wrote: > > Unless the target has a masked load instruction (e.g. AVX512) or ptr is > > known > > to