[Bug fortran/80235] ICE: coarrays, submodule

2024-10-17 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80235 Andre Vehreschild changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/117172] FAIL: gcc.target/i386/pr111820-2.c and gcc.target/i386/pr111820-3.c with forced SLP

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117172 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug middle-end/116510] [15 Regression] ice in decompose, at wide-int.h:1049

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116510 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

A bug in gcc-13.2.0-llvm-17.0.5-mingw-w64ucrt-11.0.1-r3 with the -O3 option

2024-10-17 Thread Сергей via Gcc-bugs
Hello All,    I found a bug in gcc-13.2.0-llvm-17.0.5-mingw-w64ucrt-11.0.1-r3 for Windows. This bug occurs when translating the file "bug.c" with the -O3 option. There is no error when translating it with the -O2 option. To check this bug, download bug.c file and other files from Google disk: htt

[Bug target/117185] Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha

2024-10-17 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185 --- Comment #4 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #3) > (In reply to Richard Biener from comment #2) > > I would suggest to change reload_in_progress || lra_in_progress back to > > just reload_

[Bug c/117178] -Wunterminated-string-initialization should ignore trailing NUL byte for nonstring char arrays

2024-10-17 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 --- Comment #12 from Alejandro Colomar --- (In reply to Andrew Pinski from comment #11) > (In reply to Alejandro Colomar from comment #9) > > > > I think it's simpler to have -Wc++-compat warn about any uses of > > [[gnu::nonstring]] at all, si

[Bug target/116590] unrecognized opcode th.vmv8r.v th.vfrec7.v when compiling for risc-v xtheadvector

2024-10-17 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116590 Christoph Müllner changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassig

[Bug target/116591] internal compiler error: in extract_insn when compiling for risc-v xtheadvector

2024-10-17 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116591 Christoph Müllner changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Keywords|

[Bug target/116593] internal compiler error: in get_attr_type, at config/riscv/riscv.md:28048 with -O2 -O3 when compiling for risc-v xtheadvector

2024-10-17 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116593 Christoph Müllner changed: What|Removed |Added Target|Riscv |riscv Ever confirmed|0

[Bug target/117184] New: m2 fails with "terminate called after throwing an instance of 'unsigned int'" with LRA on alpha

2024-10-17 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117184 Bug ID: 117184 Summary: m2 fails with "terminate called after throwing an instance of 'unsigned int'" with LRA on alpha Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/117185] New: Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha

2024-10-17 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185 Bug ID: 117185 Summary: Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha Product: gcc Version: 15.0 Status: UNCONFIRMED Severity

[Bug target/80881] Implement Windows native TLS

2024-10-17 Thread tanksherman27 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881 --- Comment #68 from Julian Waters --- I don't know why but apparently using force_reg and copy_to_mode_reg to load into registers instead of using gen_rtx_SET and emit_insn fixes the garbage movabsq instructions. I was going to ask why, but I su

[Bug preprocessor/117166] [15 regression] ICE when building lxml-5.3.0 with LTO (linemap_line_start, at libcpp/line-map.cc:949)

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117166 --- Comment #4 from Richard Biener --- maybe changing if (line_delta < 0 || (line_delta > 10 && line_delta * map->m_column_and_range_bits > 1000) to if (line_delta < 0 || line_delta > INT_MAX / map->m_column_and_ran

[Bug tree-optimization/117176] [15 regression] ICE when building netpbm-11.8.0

2024-10-17 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117176 Tamar Christina changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigne

[Bug target/117185] Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185 --- Comment #2 from Richard Biener --- I would suggest to change reload_in_progress || lra_in_progress back to just reload_in_progress for resolve_reload_operand - this code can't work for LRA.

[Bug c++/117174] [12/13/14/15 Regression] Compiler seems to incorrectly cache SFINAE condition evaluation results

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117174 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c/117177] [15 regression] RISC-V: Error when building glibc from source since r15-4377-gf9bac238840

2024-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117177 --- Comment #7 from Sergei Trofimovich --- The change fixed python-3.12.7 build failure for me. Thank you!

[Bug tree-optimization/117176] [15 regression] ICE when building netpbm-11.8.0

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117176 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org,

[Bug preprocessor/117166] [15 regression] ICE when building lxml-5.3.0 with LTO (linemap_line_start, at libcpp/line-map.cc:949)

2024-10-17 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117166 --- Comment #5 from Andreas Schwab --- line_delta > 1000 / map->m_column_and_range_bits

[Bug target/116347] [13/14/15 only] RISC-V: Duplicate entries for -mtune in --target-help

2024-10-17 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116347 Christoph Müllner changed: What|Removed |Added Last reconfirmed||2024-10-17 CC|

[Bug target/116720] [13/14/15 Regression] RISC-V: Unrecognizable insn with xtheadmemidx on rv32

2024-10-17 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116720 Christoph Müllner changed: What|Removed |Added Last reconfirmed||2024-10-17 Ever confirmed|0

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-17 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #12 from Filip Kastl --- (In reply to Andi Kleen from comment #9) > Yes I guess we should keep better switches at -O1 because machine generated > code may have lot of switches. > > I don't think we need perfect clustering? Perhaps t

[Bug target/111565] ICE: in riscv_expand_strcmp_scalar, at config/riscv/riscv-string.cc:382 with -mcpu=thead-c906 -minline-strncmp

2024-10-17 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111565 Christoph Müllner changed: What|Removed |Added CC||cmuellner at gcc dot gnu.org Ev

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 --- Comment #20 from GCC Commits --- The master branch has been updated by Denis Chertykov : https://gcc.gnu.org/g:e7393cbb5f2cae50b42713e71984064073aa378a commit r15-4406-ge7393cbb5f2cae50b42713e71984064073aa378a Author: Denis Chertykov Date

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

2024-10-17 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #402 from Kazumoto Kojima --- I've opened PR 117182 for a wrong fldi0/1 issue. Looks target + RA issue. FYI, with the patches in PR 116932, PR 117111 and PR 117182 on top of devel/sh-lra, c/c++ testsuite shows only one regression ag

[Bug target/117185] Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha

2024-10-17 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185 --- Comment #3 from John Paul Adrian Glaubitz --- (In reply to Richard Biener from comment #2) > I would suggest to change reload_in_progress || lra_in_progress back to > just reload_in_progress for resolve_reload_operand - this code can't work

[Bug fortran/83700] [Meta-bug] Fortran Coarray issues

2024-10-17 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83700 Bug 83700 depends on bug 80235, which changed state. Bug 80235 Summary: ICE: coarrays, submodule https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80235 What|Removed |Added ---

[Bug target/117185] Bootstrap fails with ICE: in operator[], at vec.h:910 with LRA on non-BWX alpha

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117185 Uroš Bizjak changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug libstdc++/117151] _GLIBCXX_USE_C99_COMPLEX_ARC and _GLIBCXX_USE_C99_COMPLEX are not defined in a consistent way

2024-10-17 Thread vincenzo.innocente at cern dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117151 --- Comment #2 from vincenzo Innocente --- fine. I was trying to understand (reverse-engineering) what cuda and hip were using in device and host code... In case anybody is interested I think that cuda/nvcc uses their own implementation (in t

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 --- Comment #21 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:e74d25cd00629e001038cf6ff83e48d7ca6f4873 commit r15-4410-ge74d25cd00629e001038cf6ff83e48d7ca6f4873 Author: Georg-Johann Lay Da

[Bug rtl-optimization/113533] Code generation regression after change for pr111267

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113533 --- Comment #22 from GCC Commits --- The master branch has been updated by Oleg Endo : https://gcc.gnu.org/g:2390cbad85cbd122d4e58c94f7891d7c5fde49b3 commit r15-4411-g2390cbad85cbd122d4e58c94f7891d7c5fde49b3 Author: Oleg Endo Date: Thu Oct

Re: A bug in gcc-13.2.0-llvm-17.0.5-mingw-w64ucrt-11.0.1-r3 with the -O3 option

2024-10-17 Thread Jonathan Wakely via Gcc-bugs
On 17/10/24 12:16 +0300, Сергей wrote: Hello All,    I found a bug in gcc-13.2.0-llvm-17.0.5-mingw-w64ucrt-11.0.1-r3 for Windows. This bug occurs when translating the file "bug.c" with the -O3 option. There is no error when translating it with the -O2 option. To check this bug, download bug.c f

[Bug libstdc++/117187] New: __niter_base overloads need to be declare before use

2024-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117187 Bug ID: 117187 Summary: __niter_base overloads need to be declare before use Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal

[Bug libstdc++/117187] __niter_base overloads need to be declare before use

2024-10-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117187 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/117186] New: aarch64 wrong code for (a < b) < (b < a)

2024-10-17 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117186 Bug ID: 117186 Summary: aarch64 wrong code for (a < b) < (b < a) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug c++/116424] [13/14 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.c:904 creating static object from other static objects

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116424 --- Comment #15 from GCC Commits --- The releases/gcc-14 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:420e17e642e0b1e9ebf1502613ea1c0acfa8a0e1 commit r14-10798-g420e17e642e0b1e9ebf1502613ea1c0acfa8a0e1 Author: Marek Polacek

[Bug c++/116476] [14 Regression] error: binding reference of type 'int&&' to 'const int' discards qualifiers for std::vector> f{2}; (OK under Clang and GCC<=13)

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116476 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:0784e8934e96187e17c1b02dce1e0ed35d2229dd commit r14-10799-g0784e8934e96187e17c1b02dce1e0ed35d2229dd Author: Marek Polacek

[Bug c++/116534] [14 regression] internal compiler error with comparison of pointers calculated with array offset

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116534 --- Comment #4 from GCC Commits --- The releases/gcc-14 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:36de56d3d643e7b8131fa6671b9e85258a1d1ca1 commit r14-10800-g36de56d3d643e7b8131fa6671b9e85258a1d1ca1 Author: Marek Polacek

[Bug c++/116476] [14 Regression] error: binding reference of type 'int&&' to 'const int' discards qualifiers for std::vector> f{2}; (OK under Clang and GCC<=13)

2024-10-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116476 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/116534] [14 regression] internal compiler error with comparison of pointers calculated with array offset

2024-10-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116534 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 --- Comment #25 from Georg-Johann Lay --- (In reply to denisc from comment #24) > Johann do you think that it is better to open a new bug for lra-pr116550-2.c Yes, seems to be a different issue.

[Bug tree-optimization/116578] vectorizer SLP transition issues / dependences

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116578 Bug 116578 depends on bug 117172, which changed state. Bug 117172 Summary: FAIL: gcc.target/i386/pr111820-2.c and gcc.target/i386/pr111820-3.c with forced SLP https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117172 What|Removed

[Bug tree-optimization/117172] FAIL: gcc.target/i386/pr111820-2.c and gcc.target/i386/pr111820-3.c with forced SLP

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117172 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-17 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #13 from rguenther at suse dot de --- On Thu, 17 Oct 2024, pheeck at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 > > --- Comment #12 from Filip Kastl --- > (In reply to Andi Kleen from comment #9)

[Bug tree-optimization/117172] FAIL: gcc.target/i386/pr111820-2.c and gcc.target/i386/pr111820-3.c with forced SLP

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117172 --- Comment #4 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:1081f4cb34ea22e6ba07ddcb88cada3ec60bc9c4 commit r15-4408-g1081f4cb34ea22e6ba07ddcb88cada3ec60bc9c4 Author: Richard Biener Date:

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 --- Comment #22 from Georg-Johann Lay --- I allowed me to add some test cases. Unfortunatels, one of them is failing with the patch and -mlra, whereas is passes with -mno-lra. In $builddir/gcc: $ make -k check-gcc RUNTESTFLAGS="--target_board

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/113934] Switch avr to LRA

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113934 Bug 113934 depends on bug 116550, which changed state. Bug 116550 Summary: [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 What|Removed

[Bug middle-end/56183] [meta-bug][avr] Problems with register allocation

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 116550, which changed state. Bug 116550 Summary: [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 What|Removed

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-10-17 Thread denisc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 --- Comment #24 from denisc at gcc dot gnu.org --- (In reply to Georg-Johann Lay from comment #23) > (In reply to Georg-Johann Lay from comment #22) > > Unfortunately, one of them [lra-pr116550-2.c} is failing > > with the patch and -mlra, wherea

[Bug middle-end/117123] [14/15 regression] Generated code at -Os on trunk is larger than GCC 14.4 since r14-6536-gcd794c39610177 (sccopy)

2024-10-17 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117123 --- Comment #9 from Filip Kastl --- Btw, here is a reduced testcase: - struct Potato { bool isMashed; }; void dont_be_here(); int patatino_a; void patatino() { if (patatino_a && patatino_a % 2 == 0 && patatino_a

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-17 Thread andi at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #15 from andi at firstfloor dot org --- An upper limit has the problem that very large switches may never get the bitmasks or the jump clusters. Would be good to have a heuristic that still works for them. Bit clustering always wor

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-17 Thread andi at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #14 from andi at firstfloor dot org --- On 2024-10-17 05:59, rguenther at suse dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 > > --- Comment #13 from rguenther at suse dot de de> --- > On Thu, 17 Oct 2024, phee

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #6 from Andrew Pinski --- before is before r15-4397-g70f59d2a1c51bd --- before.s2024-10-17 20:17:06.172435278 + +++ after.s 2024-10-17 20:15:24.703424849 + @@ -15,21 +15,21 @@ main: movlc(%rip), %eax

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Summary|[15 Regression] wrong code |[15 Regression] wrong code

[Bug tree-optimization/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Component|target |tree-optimization --- Comment #4 from A

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |target --- Comment #5 from Andrew Pinsk

[Bug target/117194] New: [15 Regression] Wrong code on highway-1.2.0

2024-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117194 Bug ID: 117194 Summary: [15 Regression] Wrong code on highway-1.2.0 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: targ

[Bug rtl-optimization/115879] ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 6 with -O -fnon-call-exceptions -finstrument-functions and invalid memory access

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879 --- Comment #3 from Andrew Pinski --- (In reply to Zdenek Sojka from comment #2) > _BitInt() is not needed, this can be also triggered at least by memset() and > memcpy() with the memory operand having negative offset to address to a > variable.

[Bug fortran/117188] ICE when OUT variable dimension is defined by a IN variable member

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

[Bug target/113934] Switch avr to LRA

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113934 Bug 113934 depends on bug 116779, which changed state. Bug 116779 Summary: [lra][avr] internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116779 What|Removed

[Bug rtl-optimization/116779] [lra][avr] internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116779 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug rtl-optimization/117191] [avr][dse2][lra] wrong dead store elimination

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117191 --- Comment #3 from Georg-Johann Lay --- *** Bug 116779 has been marked as a duplicate of this bug. ***

[Bug middle-end/56183] [meta-bug][avr] Problems with register allocation

2024-10-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 116779, which changed state. Bug 116779 Summary: [lra][avr] internal compiler error: in patch_jump_insn, at cfgrtl.cc:1303 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116779 What|Removed

[Bug middle-end/117195] Invalid IR after vectorization

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 Andrew Pinski changed: What|Removed |Added Keywords||documentation, |

[Bug middle-end/117195] Invalid IR after vectorization

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 --- Comment #2 from Andrew Pinski --- The tree code represents the following obtab: @cindex @code{widen_ssum@var{m}3} instruction pattern @cindex @code{widen_usum@var{m}3} instruction pattern @item @samp{widen_ssum@var{m}3} @itemx @samp{widen_us

[Bug middle-end/117195] WIDEN_SUM_EXPR documentation is weak when the second oeprand is 2x the number of elements than other operand

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

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #11 from Andrew Pinski --- (In reply to Uroš Bizjak from comment #9) > (In reply to Andrew Pinski from comment #6) > > > The andn is swapped. > Indeed: > > +(define_expand "andn3" > + [(set (match_operand:MMXMODEI 0 "register_oper

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

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

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

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

[Bug target/117194] [15 Regression] Wrong code on highway-1.2.0

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117194 --- Comment #2 from Andrew Pinski --- ;; vect_iftmp.29_100 = .BIT_ANDN ({ 1, 2, 3, 4, 5, 6, 7, 8 }, _68); (insn 33 32 34 (set (reg:V8QI 128) (mem/u/c:V8QI (symbol_ref/u:DI ("*.LC2") [flags 0x2]) [0 S8 A64])) -1 (expr_list:REG_EQUA

[Bug target/117194] [15 Regression] Wrong code on highway-1.2.0

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

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

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

[Bug fortran/104827] [12/13/14/15 Regression] ICE in gfc_conv_array_constructor_expr, at fortran/trans-expr.cc:8329 since r12-4409-g724ee5a0093da443

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

[Bug middle-end/117195] New: Invalid IR after vectorization

2024-10-17 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 Bug ID: 117195 Summary: Invalid IR after vectorization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end

[Bug fortran/104826] [12/13/14/15 Regression] ICE in gimple_range_global, at value-query.cc:424 – with deferred-length character variable

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

[Bug sanitizer/117196] New: Should no_sanitize_address turn off hwaddress too?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117196 Bug ID: 117196 Summary: Should no_sanitize_address turn off hwaddress too? Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug sanitizer/117196] Should no_sanitize_address attribute turn off hwaddress too?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117196 --- Comment #1 from Andrew Pinski --- "I believe this is a compiler bug, as there doesn't seem to be a separate attribute to prevent instrumentation in this mode. " At least the above is not true. `__attribute__((no_sanitize("hwaddress")

[Bug sanitizer/117196] Should no_sanitize_address attribute turn off hwaddress too?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117196 --- Comment #2 from Andrew Pinski --- The documentation for GCC's no_sanitize_address attribute is at least clear that it does not disable it for hwasan: "when compiling with the -fsanitize=address option." https://gcc.gnu.org/onlinedocs/gcc-14

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 --- Comment #3 from Jakub Jelinek --- Another option would be to revert r15-4402 and r15-4377 and reapply once this fix is tested and approved.

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #9 from Uroš Bizjak --- (In reply to Andrew Pinski from comment #6) > The andn is swapped. Indeed: +(define_expand "andn3" + [(set (match_operand:MMXMODEI 0 "register_operand") +(and:MMXMODEI + (not:MMXMODEI (matc

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

2024-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #19 from GCC Commits --- The master branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:6604a05fa27bc21c3409e767552daca3fcf43964 commit r15-4419-g6604a05fa27bc21c3409e767552daca3fcf43964 Author: Jerry DeLisle Date:

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 --- Comment #2 from Jakub Jelinek --- Created attachment 59372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59372&action=edit gcc15-pr117190.patch Untested fix. As the ICE shows, I think we need to use bitsize_int instead of size_int (o

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #7 from Uroš Bizjak --- (In reply to Andrew Pinski from comment #6) > before is before r15-4397-g70f59d2a1c51bd > - movq16(%rsp), %xmm2 > + movq16(%rsp), %xmm1 Isn't this reading from uninitialized stack slot? m

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #8 from Andrew Pinski --- (In reply to Uroš Bizjak from comment #7) > (In reply to Andrew Pinski from comment #6) > > before is before r15-4397-g70f59d2a1c51bd > > - movq16(%rsp), %xmm2 > > + movq16(%rsp), %xmm1 >

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu since r15-4397-g70f59d2a1c51bd

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117192 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > Yes but in this case the mask will 0 forcing it all to 0 . But the mask is > swapping around to -1 for some reason. Also if you are worried about that, you can

[Bug target/117192] [15 Regression] wrong code at -O3 with "-fno-unswitch-loops" on x86_64-linux-gnu

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

[Bug c++/116506] [15 Regression] Destructors of temporary awaitables are executed too early

2024-10-17 Thread daklishch at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116506 --- Comment #4 from Dan Klishch --- SerenityOS's on-host tests seem to work fine with the patch attached here (this was the original reproducer) and one from PR116914. Without the later, I hit ICE similar to one outlined in the gimplify_var_or_p

[Bug middle-end/117195] WIDEN_SUM_EXPR/widen_[us]sum documentation is weak when the second oeprand is 2x the number of elements than other operand

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117195 --- Comment #4 from Richard Biener --- Note this tree code (and optab) is useful only for reductions since it is left unspecified which of the 2x number of input lanes are accumulated to which output lane (even accumulating _all_ input lanes to

[Bug c/117197] ICE: 'verify_gimple' failed with vector_size

2024-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197 Richard Biener changed: What|Removed |Added Keywords||wrong-code CC|

[Bug c/117197] New: ICE: 'verify_gimple' failed with vector_size

2024-10-17 Thread iamanonymous.cs at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197 Bug ID: 117197 Summary: ICE: 'verify_gimple' failed with vector_size Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug target/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #8 from Andrew Pinski --- ;; MEM [(void *)&reversal] = *.LC1; (insn 35 34 36 (set (reg:DI 667) (symbol_ref/f:DI ("*.LC11") [flags 0x2] )) "/var/tmp/portage/dev-libs/libgcrypt-1.11.0-r1/work/libgcrypt-1.11.0/cipher/mceliece

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #9 from Andrew Pinski --- ``` /home/apinski/upstream-gcc/bin/gcc -O3 -shared -fPIC -Wl,--whole-archive mceliece6688128f.i -Wl,--no-whole-archive -flto=auto -mtls-dialect=gnu2 -march=znver2 -fno-semantic-interposition ``` Is enough.

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Component|target

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 --- Comment #10 from Andrew Pinski --- Created attachment 59379 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59379&action=edit Reduced testcase `-O3 -flto -shared -fPIC -march=znver2` reproduces it with this testcase.

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Andrew Pinski changed: What|Removed |Added Attachment #59379|0 |1 is obsolete|

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

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

[Bug c/117198] Why are there differences using -Wredundant-decls, is bug or not?

2024-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198 --- Comment #3 from Andrew Pinski --- alias changes the name underneath and is not redundant .

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190 Sam James changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

  1   2   >