[Bug tree-optimization/108353] [13 Regression] Dead Code Elimination Regression at -O2 since r13-3898-gaf96500eea72c6

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108353 --- Comment #4 from Richard Biener --- Visiting statement: +j_13 = j_39 + 9; + +Match-and-simplified j_39 + 9 to -1420678594 + +Visiting statement: if (j_13 <= 2147483628) Trying to determine truth value of predicate if (j_13 <= 2147483628)

[Bug tree-optimization/108353] [13 Regression] Dead Code Elimination Regression at -O2 since r13-3898-gaf96500eea72c6

2023-01-11 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108353 --- Comment #5 from Yann Girsberger --- Sorry the initial error slipped through. The original large case seems fine. I re-reduced it but it seems I was too slow :) The result is the same as the shown fixed version except for the constant used in

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #12 from Iain Sandoe --- (In reply to Gaius Mulley from comment #11) > > when a module has the same name but a different interface are the > symbols distinct (i.e. mangled differently)? > > no. So, as you say, the ordering of the

[Bug target/108240] [13 Regression] ICE in emit_library_call_value_1 at gcc/calls.cc:4181 since r13-4894-gacc727cf02a144

2023-01-11 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108240 --- Comment #7 from Segher Boessenkool --- -m64 requires 64-bit instructions. We will ICE if we try to generate code for -m64 without support for 64-bit insns enabled in the compiler. For example, the stdu insn is required to implement the ABI

[Bug fortran/108349] LTO mismatch for __builtin_realloc between glibc and gfortran frontend

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108349 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0986c351aa8a9f08b3cb614baec13564dd62c114 commit r13-5100-g0986c351aa8a9f08b3cb614baec13564dd62c114 Author: Jakub Jelinek Date: W

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #13 from Iain Sandoe --- (In reply to Iain Sandoe from comment #12) > (In reply to Gaius Mulley from comment #11) > > > when a module has the same name but a different interface are the > > symbols distinct (i.e. mangled differentl

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #14 from Iain Sandoe --- (In reply to Iain Sandoe from comment #13) > (In reply to Iain Sandoe from comment #12) > > (In reply to Gaius Mulley from comment #11) > > > > when a module has the same name but a different interface are th

[Bug tree-optimization/108359] [13 Regression] Dead Code Elimination Regression at -Os since r13-1162-g9991d84d2a8435

2023-01-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108359 --- Comment #6 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #5) > NOt sure we want to do that for this release tho...? Why not? Regression fixes are fine even in stage4, we are still in stage3. I'd go with something like you

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #15 from Iain Sandoe --- (In reply to Iain Sandoe from comment #14) > (In reply to Iain Sandoe from comment #13) > > (In reply to Iain Sandoe from comment #12) > > > (In reply to Gaius Mulley from comment #11) > > > > > when a module

[Bug libstdc++/108225] canadian compilation of gdb error for libstdc++'s std_mutex.h on x86_64-w64-mingw32 host

2023-01-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225 Jonathan Wakely changed: What|Removed |Added Resolution|MOVED |--- Status|RESOLVED

[Bug libstdc++/108225] canadian compilation of gdb error for libstdc++'s std_mutex.h on x86_64-w64-mingw32 host

2023-01-11 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225 --- Comment #24 from Eric Botcazou --- > Maybe we want something like this: > > diff --git a/libstdc++-v3/config/os/mingw32-w64/os_defines.h > b/libstdc++-v3/config/os/mingw32-w64/os_defines.h > index ee02ff82e86..68ac100acc8 100644 > --- a/lib

[Bug libstdc++/108225] canadian compilation of gdb error for libstdc++'s std_mutex.h on x86_64-w64-mingw32 host

2023-01-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225 --- Comment #25 from Jonathan Wakely --- For --enable-threads=posix the value of _WIN32_WINNT doesn't matter, so we don't want to disable _GLIBCXX_HAS_GTHREADS in that case. That's why we need to include , to find out if it's actually affected b

[Bug tree-optimization/105973] Wrong branch prediction for if (COND) { if(x) noreturn1(); else noreturn2(); }

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105973 --- Comment #8 from Martin Liška --- Thinking about it, we would likely need a "data flow" algorithm, where we want to transitively propagate equal predicates that occur in both successors of a basic block. Once we "merge" such a predictor, a ne

[Bug tree-optimization/108137] [12 Regression] ICE: segfault during GIMPLE pass: warn-printf since r12-523-g2254b3233b5bfa69

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108137 --- Comment #10 from Martin Liška --- Great, glad to hear that. I'm testing the backport to gcc-12 branch right now.

[Bug tree-optimization/108366] [12/13 Regression] Spurious stringop overflow, possibly alias-related since r12-145-gd1d01a66012a93cc

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108366 Martin Liška changed: What|Removed |Added Summary|[12/13 Regression] Spurious |[12/13 Regression] Spurious

[Bug tree-optimization/108353] [13 Regression] Dead Code Elimination Regression at -O2 since r13-3898-gaf96500eea72c6

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

[Bug tree-optimization/108353] [13 Regression] Dead Code Elimination Regression at -O2 since r13-3898-gaf96500eea72c6

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108353 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:445a48a226ffd530b37bcdc13b6bdca94ba2e122 commit r13-5102-g445a48a226ffd530b37bcdc13b6bdca94ba2e122 Author: Richard Biener Date:

[Bug tree-optimization/108352] [13 Regression] Dead Code Elimination Regression at -O2 since r13-1960-gd86d81a449c036

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108352 Richard Biener changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/108137] [12 Regression] ICE: segfault during GIMPLE pass: warn-printf since r12-523-g2254b3233b5bfa69

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108137 --- Comment #11 from CVS Commits --- The releases/gcc-12 branch has been updated by Martin Liska : https://gcc.gnu.org/g:bd4c310b06d747975853ac6dfef6da120c13f6ec commit r12-9040-gbd4c310b06d747975853ac6dfef6da120c13f6ec Author: Martin Liska D

[Bug tree-optimization/108137] [12 Regression] ICE: segfault during GIMPLE pass: warn-printf since r12-523-g2254b3233b5bfa69

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108137 Martin Liška changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/108367] New: [12/13 Regression] ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 3)

2023-01-11 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108367 Bug ID: 108367 Summary: [12/13 Regression] ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 3) Product: gcc Version: 13.0

[Bug c++/108365] [9/10/11/12/13 Regression] Wrong code with -O0

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

[Bug tree-optimization/108367] [12/13 Regression] ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 3) since r12-5138-ge82c382971664d6f

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108367 Martin Liška changed: What|Removed |Added Last reconfirmed||2023-01-11 Summary|[12/13 Reg

[Bug tree-optimization/108352] [13 Regression] Dead Code Elimination Regression at -O2 since r13-1960-gd86d81a449c036

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108352 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:7c9f20fcfdc2d8453df88ceb7e693debfcd678c0 commit r13-5103-g7c9f20fcfdc2d8453df88ceb7e693debfcd678c0 Author: Richard Biener Date:

[Bug c/105972] [12/13 Regression] ICE in lower_stmt, at gimple-low.cc:312 since r12-4608-gb4702276615ff8d4

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105972 Martin Liška changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|marxin at gcc dot

[Bug middle-end/107976] ICE: SIGSEGV (stack overflow) in emit_case_dispatch_table (stmt.cc:783) with large --param=jump-table-max-growth-ratio-for-speed

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107976 --- Comment #5 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:8221efae233e2d5992a79600071dd0a52f1b3c74 commit r13-5104-g8221efae233e2d5992a79600071dd0a52f1b3c74 Author: Martin Liska Date: Wed

[Bug tree-optimization/108352] [13 Regression] Dead Code Elimination Regression at -O2 since r13-1960-gd86d81a449c036

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

[Bug middle-end/107976] ICE: SIGSEGV (stack overflow) in emit_case_dispatch_table (stmt.cc:783) with large --param=jump-table-max-growth-ratio-for-speed

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107976 Martin Liška changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/108308] [13 Regression] wrong code at -Os and -O2 with "-fno-tree-ccp" on x86_64-linux-gnu

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108308 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:b39c1bea5bae9aee1df25cab1064f983b9ec6941 commit r13-5105-gb39c1bea5bae9aee1df25cab1064f983b9ec6941 Author: Jakub Jelinek Date: W

[Bug c++/108365] [9/10/11/12/13 Regression] Wrong code with -O0

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108365 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/107767] [13 Regression] switch to table conversion happening even though using btq is better

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107767 --- Comment #19 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:f99d7d669eaa2830eb5878df4da67e77ec791522 commit r13-5106-gf99d7d669eaa2830eb5878df4da67e77ec791522 Author: Richard Biener Date:

[Bug tree-optimization/107767] [13 Regression] switch to table conversion happening even though using btq is better

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

[Bug target/105554] [10/11/12/13 Regression] ICE: in emit_block_move_hints, at expr.cc:1829 since r9-5509-g5928bc2ec06dd4e7

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105554 Martin Liška changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment #

[Bug tree-optimization/108366] [12/13 Regression] Spurious stringop overflow, possibly alias-related since r12-145-gd1d01a66012a93cc

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108366 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Last reconfirmed

[Bug middle-end/105126] [10/11/12/13 Regression] Optimization regression gcc inserts not needed movsx when using switch statement

2023-01-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105126 Martin Liška changed: What|Removed |Added Assignee|marxin at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug tree-optimization/108367] [12/13 Regression] ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 3) since r12-5138-ge82c382971664d6f

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108367 --- Comment #2 from Richard Biener --- The OACC parloops pass adds a loop-around edge which short-cuts the definition of the debug use. I don't see anywhere how that handles debug stmts - maybe it gets fixed during lowering ... (yes, with -fno-

[Bug target/105554] [10/11/12/13 Regression] ICE: in emit_block_move_hints, at expr.cc:1829 since r9-5509-g5928bc2ec06dd4e7

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105554 --- Comment #7 from Richard Biener --- (In reply to Martin Liška from comment #6) > We fail in the param assignment: > > (gdb) pp x > (reg:V4DI 82) > (gdb) pp y > (mem/c:BLK (reg/f:DI 76 virtual-incoming-args) [1 x+0 S32 A256]) > > So we will

[Bug target/105554] [10/11/12/13 Regression] ICE: in emit_block_move_hints, at expr.cc:1829 since r9-5509-g5928bc2ec06dd4e7

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105554 --- Comment #8 from Richard Biener --- (In reply to Richard Biener from comment #7) > (In reply to Martin Liška from comment #6) > > We fail in the param assignment: > > > > (gdb) pp x > > (reg:V4DI 82) > > (gdb) pp y > > (mem/c:BLK (reg/f:DI 7

[Bug tree-optimization/108368] New: [13 Regression] Dead Code Elimination Regression at -O3 since r13-1759-gdbb093f4f15

2023-01-11 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108368 Bug ID: 108368 Summary: [13 Regression] Dead Code Elimination Regression at -O3 since r13-1759-gdbb093f4f15 Product: gcc Version: 13.0 Status: UNCONFIRMED Seve

[Bug fortran/108369] New: FM509 Fails to compile with error

2023-01-11 Thread ben.brewer at codethink dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 Bug ID: 108369 Summary: FM509 Fails to compile with error Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug c/108370] New: gcc doesn't merge bitwise-AND if an explicit comparison against 0 is given

2023-01-11 Thread dhowells at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108370 Bug ID: 108370 Summary: gcc doesn't merge bitwise-AND if an explicit comparison against 0 is given Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: n

[Bug tree-optimization/108368] [13 Regression] Dead Code Elimination Regression at -O3 since r13-1759-gdbb093f4f15

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108368 Richard Biener changed: What|Removed |Added Target Milestone|--- |13.0 --- Comment #1 from Richard Biene

[Bug fortran/108349] LTO mismatch for __builtin_realloc between glibc and gfortran frontend

2023-01-11 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108349 Thomas Schwinge changed: What|Removed |Added CC||burnus at gcc dot gnu.org,

[Bug c/108370] gcc doesn't merge bitwise-AND if an explicit comparison against 0 is given

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108370 Richard Biener changed: What|Removed |Added Last reconfirmed||2023-01-11 Ever confirmed|0

[Bug target/108371] New: gcc for x86_64 may sign/zero extent arguments unnecessarily

2023-01-11 Thread dhowells at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108371 Bug ID: 108371 Summary: gcc for x86_64 may sign/zero extent arguments unnecessarily Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/103755] {has,use}_facet() and iostream constructor performance

2023-01-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103755 --- Comment #16 from Jonathan Wakely --- Unfortunately this change causes a regression for libs that were statically linked to libstdc++.a before the PR 91057 fix. Any object which has the buggy std::locale::id::_M_id() code linked into it can g

[Bug c/105972] [12/13 Regression] ICE in lower_stmt, at gimple-low.cc:312 since r12-4608-gb4702276615ff8d4

2023-01-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105972 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Prio

[Bug c/108370] gcc doesn't merge bitwise-AND if an explicit comparison against 0 is given

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108370 --- Comment #2 from Richard Biener --- ifcombine seems to assume that D.1987_7 = op0 & 1; if (D.1987_7 != 0) is canonical but we see _9 = (_Bool) _6; if (_9 != 0) instead. That's already the form introduced by inlining from _

[Bug c/105972] [12/13 Regression] ICE in lower_stmt, at gimple-low.cc:312 since r12-4608-gb4702276615ff8d4

2023-01-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105972 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/108371] gcc for x86_64 may sign/zero extent arguments unnecessarily

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108371 Richard Biener changed: What|Removed |Added Target||x86_64-*-* Status|UNCONFIR

[Bug target/108240] [13 Regression] ICE in emit_library_call_value_1 at gcc/calls.cc:4181 since r13-4894-gacc727cf02a144

2023-01-11 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108240 --- Comment #8 from Kewen Lin --- (In reply to Segher Boessenkool from comment #7) > -m64 requires 64-bit instructions. We will ICE if we try to generate code > for -m64 without support for 64-bit insns enabled in the compiler. For > example,

[Bug preprocessor/108372] New: [12 regression] -E -fdirectives-only crash

2023-01-11 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108372 Bug ID: 108372 Summary: [12 regression] -E -fdirectives-only crash Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: pr

[Bug modula2/108373] New: Update 'contrib/gcc_update:files_and_dependencies' for Modula-2

2023-01-11 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108373 Bug ID: 108373 Summary: Update 'contrib/gcc_update:files_and_dependencies' for Modula-2 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c/108370] gcc doesn't merge bitwise-AND if an explicit comparison against 0 is given

2023-01-11 Thread dhowells at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108370 --- Comment #3 from dhowells at redhat dot com --- We don't want to do: return ((unsigned int) bio->bi_flags >> bit & 1) != 0; if we can avoid it as "bit" is usually constant - though I'm guessing the optimiser should handle that?

[Bug libstdc++/108225] canadian compilation of gdb error for libstdc++'s std_mutex.h on x86_64-w64-mingw32 host

2023-01-11 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225 --- Comment #26 from Eric Botcazou --- > For --enable-threads=posix the value of _WIN32_WINNT doesn't matter, so we > don't want to disable _GLIBCXX_HAS_GTHREADS in that case. That's why we need > to include , to find out if it's actually affect

[Bug tree-optimization/108355] [13 Regression] Dead Code Elimination Regression at -O2 since r13-2772-g9baee6181b4e42

2023-01-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108355 --- Comment #2 from Richard Biener --- Basically get_ref_base_and_extent trusts TYPE_SIZE of the array operand of an ARRAY_REF (it would also use range info on an SSA name index, but we'd expect a singleton to be propagated there already). In p

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #16 from Iain Sandoe --- (In reply to Iain Sandoe from comment #13) > (In reply to Iain Sandoe from comment #12) > > (In reply to Gaius Mulley from comment #11) > > > > when a module has the same name but a different interface are th

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 --- Comment #14 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:3e1cba12a8d71e70235a9a9b8f1a237a561db3e7 commit r13-5109-g3e1cba12a8d71e70235a9a9b8f1a237a561db3e7 Author: Eric Botcazou Date:

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #17 from Gaius Mulley --- Yes I was coming to the same conclusion (re: name mangling). If each library module had its mangled name component set via -flibname=pim or -flibname=iso etc. Then we have one universe of distinct named mo

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #18 from Gaius Mulley --- For the runtime perspective then your layered approach is much cleaner. It would be good to allow users to be able to use pim and some iso functionality or visa versa.

[Bug tree-optimization/108334] Strange message in libgav1

2023-01-11 Thread lukaszcz18 at wp dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108334 --- Comment #5 from Jamaika --- Created attachment 54247 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54247&action=edit Added zip files

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org Key

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

2023-01-11 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 Andreas Krebbel changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

2023-01-11 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 Andreas Krebbel changed: What|Removed |Added Version|13.0|12.2.1 --- Comment #16 from Andreas K

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 --- Comment #3 from Tobias Burnus --- Commenting out the 'gcc_assert' of comment 0, it compiles and produces the following dump. I don't understand why there is a 'lastprivate' – and 'i' in the bounds are wrong: for the first iteration, it is un

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

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

[Bug modula2/108182] gm2 driver mishandles target and multilib options

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108182 --- Comment #13 from Iain Sandoe --- Created attachment 54248 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54248&action=edit Revised fix This essentially makes Modula-2 build its include paths in the Front End (which is how all the othe

[Bug target/108293] Incorrect assembly emitted for float for BPF target

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108293 --- Comment #4 from CVS Commits --- The master branch has been updated by David Faust : https://gcc.gnu.org/g:c7279270a2deda81eaeba37a87d721bee0ed6004 commit r13-5110-gc7279270a2deda81eaeba37a87d721bee0ed6004 Author: David Faust Date: Tue J

[Bug c/105180] [10/11/12/13 Regression] K&R style definition does not evaluate array size

2023-01-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105180 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug tree-optimization/71343] missed optimization (can't "prove" shift and multiplication equivalence)

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71343 --- Comment #4 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:98837d6e79dd27c15f5218f3f1ddf838cda4796c commit r13-5111-g98837d6e79dd27c15f5218f3f1ddf838cda4796c Author: Roger Sayle Date: Wed Ja

[Bug target/108293] Incorrect assembly emitted for float for BPF target

2023-01-11 Thread jemarch at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108293 Jose E. Marchesi changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/108374] New: [12/13 Regression] unexpected -Wstringop-overflow when using std::atomic and std::shared_ptr

2023-01-11 Thread romain.geissler at amadeus dot com via Gcc-bugs
In file included from /opt/compiler-explorer/gcc-trunk-20230111/include/c++/13.0.0/atomic:41, from :1: In member function 'std::__atomic_base<_IntTp>::__int_type std::__atomic_base<_IntTp>::load(std::memory_order) const [with _ITp = long unsigned int]

[Bug tree-optimization/108374] [12/13 Regression] unexpected -Wstringop-overflow when using std::atomic and std::shared_ptr

2023-01-11 Thread romain.geissler at amadeus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108374 --- Comment #1 from Romain Geissler --- I forgot to mention: this happens on x86-64 with -O1.

[Bug c/108375] New: [10/11/12/13 Regression] Some variably modified types not detected as such

2023-01-11 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108375 Bug ID: 108375 Summary: [10/11/12/13 Regression] Some variably modified types not detected as such Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: nor

[Bug middle-end/108376] New: TSVC s1279 runs 40% faster with aocc than gcc at zen4

2023-01-11 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108376 Bug ID: 108376 Summary: TSVC s1279 runs 40% faster with aocc than gcc at zen4 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug tree-optimization/99408] s3251 benchmark of TSVC vectorized by clang runs about 7 times faster compared to gcc

2023-01-11 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99408 --- Comment #3 from Jan Hubicka --- with zen4 gcc build loop takes 19s, while aocc 6.6. aocc: .LBB0_1:# %for.cond22.preheader # =>This Loop Header: Depth=1

[Bug tree-optimization/99412] s352 benchmark of TSVC is vectorized by clang and not by gcc

2023-01-11 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99412 --- Comment #2 from Jan Hubicka --- This is also seen with zen4 comparing gcc and aocc. (about 2.3 times differnece)

[Bug preprocessor/108372] [12 regression] -E -fdirectives-only crash

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

[Bug preprocessor/108244] [13 Regression] `pragma GCC diagnostic` and -E -fdirectives-only causes the preprocessor to become confused since r13-1544-ge46f4d7430c52104

2023-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108244 Andrew Pinski changed: What|Removed |Added CC||thiago at kde dot org --- Comment #10 f

[Bug c/108375] [10/11/12/13 Regression] Some variably modified types not detected as such

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

[Bug c/108375] [10/11/12/13 Regression] Some variably modified types not detected as such

2023-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108375 --- Comment #2 from Andrew Pinski --- https://gcc.gnu.org/pipermail/gcc-patches/2006-May/194375.html

[Bug c/108375] [10/11/12/13 Regression] Some variably modified types not detected as such

2023-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108375 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > https://gcc.gnu.org/pipermail/gcc-patches/2006-May/194375.html I can't tell if the Ada testcase was added or not.

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 --- Comment #18 from CVS Commits --- The releases/gcc-12 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:eec3a65ed638a1c58fa08ddf508d2d60b64d311d commit r12-9041-geec3a65ed638a1c58fa08ddf508d2d60b64d311d Author: Eric Botcazou

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 --- Comment #19 from CVS Commits --- The releases/gcc-11 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:01e80c4c630a5a6286a521b047d0ef80631c892c commit r11-10463-g01e80c4c630a5a6286a521b047d0ef80631c892c Author: Eric Botcazou

[Bug tree-optimization/108199] Bitfields, unions and SRA and storage_order_attribute

2023-01-11 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug fortran/108369] FM509 Fails to compile with error

2023-01-11 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug tree-optimization/108334] Strange message in libgav1

2023-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108334 Andrew Pinski changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever confirmed|1

[Bug middle-end/108376] TSVC s1279 runs 40% faster with aocc than gcc at zen4

2023-01-11 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108376 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Com

[Bug tree-optimization/107838] spurious "may be used uninitialized" warning on variable initialized at the first iteration of a loop

2023-01-11 Thread guilherme.janczak at yandex dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107838 Guilherme Janczak changed: What|Removed |Added CC||guilherme.janczak at yandex dot co

[Bug tree-optimization/108377] New: Unexpected 'exceeds maximum object size' diagnostic, wrong-code?

2023-01-11 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108377 Bug ID: 108377 Summary: Unexpected 'exceeds maximum object size' diagnostic, wrong-code? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug modula2/108261] modula-2 module registration process seems to fail with shared libraries.

2023-01-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261 --- Comment #19 from Iain Sandoe --- (In reply to Gaius Mulley from comment #18) > For the runtime perspective then your layered approach is much cleaner. indeed .. > It would be good to allow users to be able to use pim and some iso > functi

[Bug tree-optimization/108377] Unexpected 'exceeds maximum object size' diagnostic, wrong-code?

2023-01-11 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108377 --- Comment #1 from Thomas Schwinge --- That's x86_64-pc-linux-gnu at today's commit de99049f6fe5341024d4d939ac50d063280f90db.

[Bug c/105972] [12/13 Regression] ICE in lower_stmt, at gimple-low.cc:312 since r12-4608-gb4702276615ff8d4

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105972 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:23b4ce18379cd336d99d7c71701be28118905b57 commit r13-5112-g23b4ce18379cd336d99d7c71701be28118905b57 Author: Jakub Jelinek Date: W

[Bug tree-optimization/108377] Unexpected 'exceeds maximum object size' diagnostic, wrong-code?

2023-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108377 --- Comment #2 from Andrew Pinski --- So we have: const __SIZE_TYPE__ n = calc_n(259); #if 1 haystack = __builtin_malloc(n + 1); if (!haystack) __builtin_abort(); for (__SIZE_TYPE__ i = 0; i < n + 1; ++i) haystack[i] = '0'; #endi

[Bug tree-optimization/108377] Unexpected 'exceeds maximum object size' diagnostic, wrong-code?

2023-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108377 --- Comment #3 from Andrew Pinski --- Just adding: if (n+1 == 0) __builtin_unreachable(); Right before the first malloc removes the warning as expected.

[Bug analyzer/108252] false positive: leak detection

2023-01-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108252 --- Comment #3 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:688fc162b76dc6747a30fcfd470f4770da0f4924 commit r13-5113-g688fc162b76dc6747a30fcfd470f4770da0f4924 Author: David Malcolm Date: W

[Bug fortran/108369] FM509 Fails to compile with error

2023-01-11 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 kargl at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug analyzer/108252] false positive: leak detection

2023-01-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108252 --- Comment #4 from David Malcolm --- Should be fixed on trunk for gcc 13 by the above commit. I *think* the store::set_value change can be readily backported to GCC 12, so keeping this bug open to track that backport (perhaps even earlier???)

[Bug fortran/108369] FM509 Fails to compile with error

2023-01-11 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #1) > (In reply to Ben Brewer from comment #0) > Workaround: either use -std=legacy or fix the above argument declaration to: > > CHARACTER C1D001(*)*8,CVD00

[Bug middle-end/99634] s2102 benchmarks of TSVC is vectorized better by icc than gcc, interchange is missing

2023-01-11 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99634 --- Comment #2 from Jan Hubicka --- AOCC produced code is: .LBB0_2:# %vector.body # Parent Loop BB0_1 Depth=1 # => This Inner Loop

  1   2   >