[Bug target/108994] [13 Regression] LLVM JIT segfaults in libgcc after upgrading from gcc 12.2.1 to 13.0.1 since r13-2706-g6e80a1d164d1f9

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108994 --- Comment #18 from Jakub Jelinek --- It is a fundamental assumption that the FDE/CIE chain is zero terminated, after all, all the registration APIs (__register_frame_table, __register_frame_info_table, __register_frame_info_table_bases) take j

[Bug target/109093] [13 regression] csmith: a February runtime bug ?

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109093 Jakub Jelinek changed: What|Removed |Added Keywords|needs-reduction | --- Comment #11 from Jakub Jelinek --

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #10 from Martin Liška --- Btw. the backtrace leading to the problematic function: trxundo.ii:0(trx_undo_free_page(trx_rseg_t*, bool, unsigned int, unsigned int, mtr_t*, dberr_t*) [clone .constprop.0] [clone .isra.0])[0x5691bf33] ??:

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #11 from Martin Liška --- (In reply to Jakub Jelinek from comment #9) > Weird, at least on the current trunk when reverting all 4 i386.md hunks vs. > all but the 3_3 one I see differences in both > _Z22trx_undo_get_first_recRK11fil_s

[Bug middle-end/109031] csmith: possible bad code with -O2 -fno-strict-aliasing since r13-254-gdd3c7873a61019e9

2023-03-14 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109031 Roger Sayle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/109087] [13 Regression] csmith: end of year runtime bug since r13-4839-geef81eefcdc2a581

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109087 --- Comment #13 from Richard Biener --- (In reply to Jakub Jelinek from comment #12) > As for the .DEFERRED_INIT not being DSEd when it isn't used, cvise reduced > testcase is e.g. > > int a; > int foo (void); > int bar (void); > > void > baz

[Bug c/109113] [10/11/12/13 Regression] internal compiler error: in output_constructor_regular_field, at varasm.cc:5521

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109113 Richard Biener changed: What|Removed |Added Keywords||accepts-invalid Known to work|

[Bug tree-optimization/106896] [13 Regression] ICE in to_sreal_scale, at profile-count.cc:339 since r13-2288-g61c4c989034548f4

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106896 --- Comment #12 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:5159a1f1e91e03d4b82808a0062697318232543f commit r13-6652-g5159a1f1e91e03d4b82808a0062697318232543f Author: Jan Hubicka Date: Tue

[Bug target/109087] [13 Regression] csmith: end of year runtime bug since r13-4839-geef81eefcdc2a581

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109087 --- Comment #14 from Jakub Jelinek --- I didn't mean for GCC 13, we need to fix the actual backend bug regardless and so a DSE improvement can't be considered a fix... ;) Just the DSE thing happens very often with -ftrivial-auto-var-init=. I won

[Bug tree-optimization/106896] [13 Regression] ICE in to_sreal_scale, at profile-count.cc:339 since r13-2288-g61c4c989034548f4

2023-03-14 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106896 Jan Hubicka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/109115] [13 Regression] ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in upper_bound, at value-range.h:950

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109115 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:72b52751c60abb327c73716259485d04b8eabe4f commit r13-6653-g72b52751c60abb327c73716259485d04b8eabe4f Author: Jakub Jelinek Date: T

[Bug tree-optimization/109115] [13 Regression] ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in upper_bound, at value-range.h:950

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109115 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/109119] missing loading fre with branch comparing two pointers

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109119 Richard Biener changed: What|Removed |Added Last reconfirmed||2023-03-14 Status|UNCONFIR

[Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu

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

[Bug libgcc/109121] New: m68k/coldfire: multilib: arithmetic functions missing

2023-03-14 Thread angelo70 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109121 Bug ID: 109121 Summary: m68k/coldfire: multilib: arithmetic functions missing Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug target/109087] [13 Regression] csmith: end of year runtime bug since r13-4839-geef81eefcdc2a581

2023-03-14 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109087 --- Comment #15 from rguenther at suse dot de --- On Tue, 14 Mar 2023, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109087 > > --- Comment #14 from Jakub Jelinek --- > I didn't mean for GCC 13, we need to fix

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #12 from Martin Liška --- So the problem happens here: static uint32_t trx_undo_free_page( trx_rseg_t* rseg, bool in_history, uint32_t hdr_page_no, uint32_t page_no, mtr_t* mtr, dberr_t* err) { do { if (__builtin_expect(

[Bug target/109104] [13 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1171 with -fzero-call-used-regs=all -march=rv64gv

2023-03-14 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109104 Roger Sayle changed: What|Removed |Added CC||roger at nextmovesoftware dot com --- Co

[Bug target/108429] [13 Regression] FAIL: gcc.target/i386/pr89618.c scan-tree-dump vect "LOOP VECTORIZED"

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108429 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:27e02e9fc388d7dc86ec10bedc6b8f13ec94725a commit r12-9251-g27e02e9fc388d7dc86ec10bedc6b8f13ec94725a Author: Jan Hubicka Date

[Bug target/109104] [13 Regression] ICE: in gen_reg_rtx, at emit-rtl.cc:1171 with -fzero-call-used-regs=all -march=rv64gv

2023-03-14 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109104 --- Comment #2 from JuzheZhong --- (In reply to Roger Sayle from comment #1) > Not exactly my area of expertise, but adding > > if (!can_create_pseudo_p ()) > return false; > > at the start of legitimize_move on line 262 of riscv-v.cc sh

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #13 from Jakub Jelinek --- (In reply to Martin Liška from comment #12) > So the problem happens here: > > static > uint32_t > trx_undo_free_page( > > trx_rseg_t* rseg, > bool in_history, > > uint32_t hdr_page_no, > uint32_t pa

[Bug libgcc/109121] m68k/coldfire: multilib: arithmetic functions missing

2023-03-14 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109121 --- Comment #1 from Andreas Schwab --- That looks more a bug in the software you are building. It appears to be using a custom link command that fails to link against libgcc. The errors about the incompatible architecture are due to invalid mi

[Bug libgcc/109121] m68k/coldfire: multilib: arithmetic functions missing

2023-03-14 Thread angelo--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109121 --- Comment #2 from Angelo Dureghello --- Hi Andreas, thanks a lot. Will recheck all the flags.-

[Bug c++/109122] New: std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt

2023-03-14 Thread samuel.beer at gmx dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109122 Bug ID: 109122 Summary: std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug target/109117] "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.

2023-03-14 Thread lin1.hu at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109117 --- Comment #4 from lin1.hu at intel dot com --- (In reply to lin1.hu from comment #2) > Created attachment 54659 [details] > 0001-i386-Add-missing-OPTION_MASK_ISA_AVX512VL-in-i386-bu.patch Regtested on x86_64-pc-linux-gnu.

[Bug target/100001] [GCN offloading] Occasional 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure

2023-03-14 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 Thomas Schwinge changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|[GCN offloadin

[Bug tree-optimization/109011] missed optimization in presence of __builtin_ctz

2023-03-14 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109011 --- Comment #18 from Hongtao.liu --- (In reply to Jakub Jelinek from comment #16) > Created attachment 54590 [details] > gcc13-pr109011-2.patch > > Here is what I have right now, totally untested and will need further work > so that the two pat

[Bug target/100001] [GCN offloading] Occasional 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure

2023-03-14 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 --- Comment #2 from Thomas Schwinge --- With my recent commit r13-6590-gf8332e52a498df480f72303de32ad0751ad899fe "Use 'GOMP_MAP_VARS_TARGET' for OpenACC compute constructs [PR90596]", the frequency of those FAILs has increased to (almost) always

[Bug libgomp/93030] [OpenACC] libgomp.oacc-c-c++-common/deep-copy-10.c FAILS on AMDGCN – invalid 'async' usage?

2023-03-14 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93030 Thomas Schwinge changed: What|Removed |Added Last reconfirmed|2021-07-27 00:00:00 |2023-3-14 Keywords|

[Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu

2023-03-14 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762 --- Comment #3 from Eric Botcazou --- Indeed this pessimizes on s390 because it has insv instructions. It's too late to properly sort this out so I'm going to revert the change.

[Bug c/109123] New: Bogus warning: pointer used after 'realloc' -Wuse-after-free

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 Bug ID: 109123 Summary: Bogus warning: pointer used after 'realloc' -Wuse-after-free Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug libgomp/109124] New: 'libgomp.oacc-c-c++-common/data-2-lib.c', 'libgomp.oacc-c-c++-common/data-2.c' GCN offloading execution test FAILs

2023-03-14 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109124 Bug ID: 109124 Summary: 'libgomp.oacc-c-c++-common/data-2-lib.c', 'libgomp.oacc-c-c++-common/data-2.c' GCN offloading execution test FAILs Product: gcc Version:

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 Manuel López-Ibáñez changed: What|Removed |Added Summary|Bogus warning: pointer used |Bogus warning: pointer used

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 --- Comment #2 from Manuel López-Ibáñez --- This is probably the same underlying issue as PR 106119 and PR 104215, but unlike those, this testcase is heavily reduced without any header files (and it could be reduced further I believe).

[Bug c++/85270] Trivial assignment operator not considered such

2023-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85270 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/109005] [13 Regression] ICE during GIMPLE pass: ifcvt

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109005 --- Comment #24 from CVS Commits --- The master branch has been updated by Andre Simoes Dias Vieira : https://gcc.gnu.org/g:b109964ddb421cf481828a2f3465751a2bd6a8f6 commit r13-6654-gb109964ddb421cf481828a2f3465751a2bd6a8f6 Author: Andre Vieira

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 --- Comment #4 from Manuel López-Ibáñez --- This case is a bit different from other Wuse-after-free false positives: * there is no path through which the warning is true * the warning says "is used" not "may be used" * there is no easy workarou

[Bug tree-optimization/109005] [13 Regression] ICE during GIMPLE pass: ifcvt

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109005 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 --- Comment #5 from Manuel López-Ibáñez --- > GCC has sunk part of the old_size computation (not the loads but the > subtraction) to after the realloc but before the use of old_size. Is this code motion valid? Is there any point in the middle-e

[Bug modula2/109125] New: [13 regression] SIGBUS in m2pim_ldtoa_ldtoa

2023-03-14 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109125 Bug ID: 109125 Summary: [13 regression] SIGBUS in m2pim_ldtoa_ldtoa Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modu

[Bug modula2/109125] [13 regression] SIGBUS in m2pim_ldtoa_ldtoa

2023-03-14 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109125 Rainer Orth changed: What|Removed |Added Target Milestone|--- |13.0

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #14 from Martin Liška --- Btw. the problematic instruction that assembly the page_id_t: # /tmp/trxundo.ii:181919: if (__builtin_expect(!undo_block, (0))) { addl$48, %esp #, # /tmp/trxundo.ii:181915: buf_block_t*

[Bug c++/109122] std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt

2023-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109122 --- Comment #1 from Jonathan Wakely --- As requested when creating a bug, please read https://gcc.gnu.org/bugs/ which says to provide the testcase, not a URL to somewhere else. #include #include #include #include #include namespace rng =

[Bug c++/109122] std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt

2023-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109122 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 --- Comment #6 from Manuel López-Ibáñez --- (In reply to Manuel López-Ibáñez from comment #5) > Is this code motion valid? Is there any point in the middle-end that checks > the validity of the pointer beyond a free/realloc? > > If there is a p

[Bug testsuite/109118] gcc.dg/mla_1.c failed on target w/o __Uint32x4_t support

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109118 --- Comment #1 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:0e0c18f60af51f3afd210a2929b853dd02abe996 commit r13-6655-g0e0c18f60af51f3afd210a2929b853dd02abe996 Author: Tamar Christina Date:

[Bug testsuite/109118] gcc.dg/mla_1.c failed on target w/o __Uint32x4_t support

2023-03-14 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109118 Tamar Christina changed: What|Removed |Added Resolution|--- |FIXED CC|

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

2023-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109126 Bug ID: 109126 Summary: [DR2387] Linkage of const-qualified variable template Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug libstdc++/62196] running time segment fault with valarray

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62196 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:abb958ada1e4d195f31740659cd8af8bebce7bfd commit r13-6656-gabb958ada1e4d195f31740659cd8af8bebce7bfd Author: Jonathan Wakely Date:

[Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762 --- Comment #4 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641 commit r13-6659-g8b6c38ef6a7a8cc1f7cc2ff86a686e07ceab1641 Author: Eric Botcazou Date: T

[Bug tree-optimization/109005] [13 Regression] ICE during GIMPLE pass: ifcvt

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109005 --- Comment #26 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:67839c562779081936cb79ebca156ef43d70f65f commit r13-6660-g67839c562779081936cb79ebca156ef43d70f65f Author: Eric Botcazou Date:

[Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu

2023-03-14 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/109127] New: More advanced constexpr value compile time evaluation

2023-03-14 Thread dmitriy.ovdienko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109127 Bug ID: 109127 Summary: More advanced constexpr value compile time evaluation Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #15 from Jakub Jelinek --- I think I have finally a self-contained reproducer, -m32 -O2: struct S { char pad[44]; unsigned int id; }; __attribute__((noipa, regparm (2))) unsigned long long foo (struct S *p, unsigned int q) { retur

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762 --- Comment #6 from Jakub Jelinek --- So perhaps make it dependent on targetm.have_insv () or targetm.have_insv () && get_traditional_extraction_insn (insn, type, mode, targetm.code_for_insv, 0, 3) o

[Bug rtl-optimization/107762] [13 Regression] Recent change causing regressions on s390-linux-gnu

2023-03-14 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107762 --- Comment #7 from Eric Botcazou --- > So perhaps make it dependent on targetm.have_insv () or > targetm.have_insv () && get_traditional_extraction_insn (insn, type, mode, > targetm.code_for_insv, 0

[Bug middle-end/109128] New: [Offload][OpenMP][OpenACC] Static linking with unused offload function will lead to mismatch number of offload fn/symbols

2023-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109128 Bug ID: 109128 Summary: [Offload][OpenMP][OpenACC] Static linking with unused offload function will lead to mismatch number of offload fn/symbols Product: gcc Ve

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 --- Comment #7 from Richard Biener --- (In reply to Manuel López-Ibáñez from comment #6) > (In reply to Manuel López-Ibáñez from comment #5) > > Is this code motion valid? Is there any point in the middle-end that checks > > the validity of the

[Bug middle-end/109128] [Offload][OpenMP][OpenACC] Static linking with unused offload function will lead to mismatch number of offload fn/symbols

2023-03-14 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109128 Thomas Schwinge changed: What|Removed |Added Last reconfirmed||2023-03-14 Ever confirmed|0

[Bug c/109123] Bogus warning: pointer used after 'realloc' -Wuse-after-free with -O2

2023-03-14 Thread manu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109123 --- Comment #8 from Manuel López-Ibáñez --- (In reply to Richard Biener from comment #7) > Warning for "escapes" (the store is an escape point) is also sensible I > think. Would it be possible to make this distinction at the point of warning?

[Bug middle-end/109128] [Offload][OpenMP][OpenACC] Static linking with unused offload function will lead to mismatch number of offload fn/symbols

2023-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109128 --- Comment #2 from Tobias Burnus --- (In reply to Thomas Schwinge from comment #1) > See also "Allow the accelerator to have more offloaded functions than the > host". Which was: - if (num_target_entries != num_funcs + num_vars) + if (num_

[Bug tree-optimization/106570] [12/13 Regression] DCE sometimes fails with depending if statements since r12-2305-g398572c1544d8b75

2023-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106570 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | --- Comment #5 from Martin Liška --- (

[Bug target/106828] cc1plus: warning: '-fsanitize=address' not supported for this target for loongarch64-linux-gnu

2023-03-14 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106828 Xi Ruoyao changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug testsuite/109129] New: [13 regression] g++.dg/cpp2a/concepts-lambda3.C in unresolved after r13-6594-ga915c29a7d63cc

2023-03-14 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109129 Bug ID: 109129 Summary: [13 regression] g++.dg/cpp2a/concepts-lambda3.C in unresolved after r13-6594-ga915c29a7d63cc Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug sanitizer/109107] [10/11/12/13 Regression] UBsan since GCC-8 misses an integer-overflow

2023-03-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109107 --- Comment #3 from Marek Polacek --- A similar problem: #define INT_MIN (-__INT_MAX__ - 1) int a = INT_MIN; const int b = 676540; int main () { int c = a - 1 + (int) (short) b; return c; } for which I think we need: --- a/gcc/fold-const.

[Bug testsuite/109129] [13 regression] g++.dg/cpp2a/concepts-lambda3.C in unresolved after r13-6594-ga915c29a7d63cc

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

[Bug testsuite/109129] [13 regression] g++.dg/cpp2a/concepts-lambda3.C in unresolved after r13-6594-ga915c29a7d63cc

2023-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109129 Richard Biener changed: What|Removed |Added Keywords||testsuite-fail Target Milestone|---

[Bug target/109121] m68k/coldfire: multilib: arithmetic functions missing

2023-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109121 --- Comment #3 from Andrew Pinski --- This seems like a bug in uboot ...

[Bug libstdc++/62196] running time segment fault with valarray

2023-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62196 --- Comment #4 from Jonathan Wakely --- I've added some additional precondition checks to . If you compile the original testcase with -D_GLIBCXX_ASSERTIONS it will abort at runtime now: $ ./a.out abcdefghijklmnopqrstuvwxyz /home/jwakely/gcc/13/i

[Bug c++/109122] std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt

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

[Bug c++/109122] std::ranges::find segfaults with gcc (trunk but not 12.2) on godbolt

2023-03-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109122 --- Comment #3 from Marek Polacek --- Ah, looks like we're trying to print a name of a TYPE_PTRMEMFUNC_P, but it doesn't have one; build_ptrmemfunc_type has: 11025 /* Zap out the name so that the back end will give us the debugging 11026

[Bug rtl-optimization/109086] Bug of builtin_strcmp in the case of using the adddi3 instruction patterns

2023-03-14 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109086 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #5 fr

[Bug target/109109] [13 Regression] mariadb fails in tests on i586 (non-LTO mode) after r13-4435-g2c089640279614e3

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109109 --- Comment #17 from Jakub Jelinek --- Created attachment 54661 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54661&action=edit gcc13-pr109109.patch Untested fix.

[Bug analyzer/109120] False positive -Wanalyzer-malloc-leak with failed iconv_open()

2023-03-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120 --- Comment #1 from David Malcolm --- Thanks for filing this bug. Seems to affect GCC 11 onwards, as GCC 10 didn't support the 2nd argument to __attribute__((malloc)): Trunk: https://godbolt.org/z/MbWezaxrz GCC 12.2: https://godbolt.org/z/v

[Bug c++/109096] __has_unique_object_representations does not account for unnamed bitfield

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109096 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:c35cf160a0ed81570cff6600dba465cf95fa80fa commit r13-6663-gc35cf160a0ed81570cff6600dba465cf95fa80fa Author: Jakub Jelinek Date: T

[Bug testsuite/109129] [13 regression] g++.dg/cpp2a/concepts-lambda3.C in unresolved after r13-6594-ga915c29a7d63cc

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109129 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:7f22d1c83e74c41116300bebac2e4c492c90b03d commit r13-6664-g7f22d1c83e74c41116300bebac2e4c492c90b03d Author: Jakub Jelinek Date: T

[Bug c++/108972] [13 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'error_mark' in compare_lambda_template_head, at cp/lambda.cc:1551 since r13-3601-g2b0e81d5c

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108972 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:7f22d1c83e74c41116300bebac2e4c492c90b03d commit r13-6664-g7f22d1c83e74c41116300bebac2e4c492c90b03d Author: Jakub Jelinek Date: T

[Bug testsuite/109129] [13 regression] g++.dg/cpp2a/concepts-lambda3.C in unresolved after r13-6594-ga915c29a7d63cc

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

[Bug c++/109096] __has_unique_object_representations does not account for unnamed bitfield

2023-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109096 --- Comment #5 from Jakub Jelinek --- Fixed on the trunk so far.

[Bug target/109093] [13 regression] csmith: a February runtime bug ?

2023-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109093 --- Comment #12 from H.J. Lu --- ix86_find_max_used_stack_alignment fails to detect that (insn 281 152 282 34 (set (mem/c:V16QI (reg/f:DI 2 cx [144]) [0 MEM [(void *)_109]+0 S16 A128]) (reg:V16QI 21 xmm1 [orig:156 MEM [(void *)_109] ]

[Bug analyzer/109120] False positive -Wanalyzer-malloc-leak with failed iconv_open()

2023-03-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120 --- Comment #2 from David Malcolm --- Looks like the attribute was added to iconv_open in glibc in this commit: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=260a430dd841072020c4dae91468322e619e7330 Unfortunately, as currently written

[Bug analyzer/109120] False positive -Wanalyzer-malloc-leak with failed iconv_open()

2023-03-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120 --- Comment #3 from David Malcolm --- (In reply to David Malcolm from comment #2) > Looks like the attribute was added to iconv_open in glibc in this commit: > > https://sourceware.org/git/?p=glibc.git;a=commitdiff; > h=260a430dd841072020c4dae9

[Bug c++/107310] [12/13 Regression] "warning: control reaches end of non-void function" with a throw under a trivially-true conditional since r12-5638-ga3e75c1491cd2d50

2023-03-14 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107310 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug analyzer/109120] False positive -Wanalyzer-malloc-leak with failed iconv_open()

2023-03-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120 --- Comment #4 from David Malcolm --- ...and thus presumably glibc 2.36 onwards uses the attribute on iconv_open.

[Bug analyzer/109120] False positive -Wanalyzer-malloc-leak with failed iconv_open() with glibc 2.36 onwards

2023-03-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120 --- Comment #5 from David Malcolm --- Potentially could be worked around from the gcc side by adding a known_function implementation for iconv_{open,close}.

[Bug modula2/109125] [13 regression] SIGBUS in m2pim_ldtoa_ldtoa

2023-03-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109125 --- Comment #1 from Gaius Mulley --- Created attachment 54662 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54662&action=edit Proposed fix Thanks for the bug report - here is a proposed patch for ldtoa, dtoa and also termios all of which

[Bug analyzer/109120] False positive -Wanalyzer-malloc-leak with failed iconv_open() with glibc 2.36 onwards

2023-03-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120 --- Comment #6 from David Malcolm --- Note to self: there's a usage example in the glibc manual here: https://www.gnu.org/software/libc/manual/html_node/iconv-Examples.html

[Bug target/109130] New: 464.h264ref regressed by 6.5% on a Neoverse-N1 CPU with PGO, LTO, -Ofast and -march=native

2023-03-14 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109130 Bug ID: 109130 Summary: 464.h264ref regressed by 6.5% on a Neoverse-N1 CPU with PGO, LTO, -Ofast and -march=native Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug target/108994] [13 Regression] LLVM JIT segfaults in libgcc after upgrading from gcc 12.2.1 to 13.0.1 since r13-2706-g6e80a1d164d1f9

2023-03-14 Thread tstellar at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108994 --- Comment #19 from Tom Stellard --- Thanks, Jakub. It looks like this is in fact an LLVM bug. I've posted a patch here that fixes my test case: https://reviews.llvm.org/D146067

[Bug modula2/109125] [13 regression] SIGBUS in m2pim_ldtoa_ldtoa

2023-03-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109125 Gaius Mulley changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug modula2/109125] [13 regression] SIGBUS in m2pim_ldtoa_ldtoa

2023-03-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109125 Gaius Mulley changed: What|Removed |Added Attachment #54662|0 |1 is obsolete|

[Bug ipa/107925] ICE in update_specialized_profile at gcc/ipa-cp.cc:5082 for 531.deepsjeng_r benchmark

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107925 --- Comment #8 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:68ba253bda74d6c6e77726d98184a6faee5e7337 commit r13--g68ba253bda74d6c6e77726d98184a6faee5e7337 Author: Martin Jambor Date: T

[Bug ipa/107925] ICE in update_specialized_profile at gcc/ipa-cp.cc:5082 for 531.deepsjeng_r benchmark

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107925 --- Comment #9 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:1526ecd739fc6a13329abdcbdbf7c2df57c22177 commit r13-6667-g1526ecd739fc6a13329abdcbdbf7c2df57c22177 Author: Martin Jambor Date: T

[Bug ipa/107925] ICE in update_specialized_profile at gcc/ipa-cp.cc:5082 for 531.deepsjeng_r benchmark

2023-03-14 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107925 --- Comment #10 from Martin Jambor --- Fixed on trunk so far, I plan to backport it to GCC 12 too.

[Bug target/108994] [13 Regression] LLVM JIT segfaults in libgcc after upgrading from gcc 12.2.1 to 13.0.1 since r13-2706-g6e80a1d164d1f9

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

[Bug target/109092] [13 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1932 when building libgcc on riscv64

2023-03-14 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109092 --- Comment #4 from Jeffrey A. Law --- Also note there's an unsafe REGNO in peephole.md as well. Slightly different in form, but still unprotected and thus for well crafted inputs could probably cause an ICE or incorrect codegen (in a non-checki

[Bug d/109108] d: Undefined reference to lambda in private enum

2023-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109108 --- Comment #1 from CVS Commits --- The master branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:423d34f61c43e400f0d5b837fe93c83963b2ecdd commit r13-6668-g423d34f61c43e400f0d5b837fe93c83963b2ecdd Author: Iain Buclaw Date: Tue M

  1   2   >