[Bug target/108348] ICE in gen_movoo, at config/rs6000/mma.md:292

2023-01-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108348 --- Comment #3 from Kewen Lin --- There seem to be two alternatives to fix this, one is to raise error in rs6000_pass_by_reference like what we do in rs6000_function_arg, but we need something like mma_return_type_error to avoid re-erroring;

[Bug target/108322] Using __restrict parameter with -ftree-vectorize (default with -O2) results in massive code bloat

2023-01-10 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108322 --- Comment #5 from Alexander Monakov --- (In reply to Richard Biener from comment #4) > > For the case at hand loading two vectors from the destination and then > punpck{h,l}bw and storing them again might be the most efficient thing > to do

[Bug tree-optimization/108341] argument to `__builtin_ctz` should be assumed non-zero when CTZ_DEFINED_VALUE_AT_ZERO says it is undefined

2023-01-10 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108341 --- Comment #7 from LIU Hao --- (In reply to Jakub Jelinek from comment #4) > I think 0 argument for __builtin_c[lt]z{,l,ll,imax} is always undefined, 0 > argument > to .C[LT]Z (internal calls) is undefined if C[LT]Z_DEFINED_VALUE_AT_ZERO is >

[Bug tree-optimization/107323] [10/11 Regression] Loop distribute issue

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107323 Richard Biener changed: What|Removed |Added CC||hahnjo at hahnjo dot de --- Comment

[Bug tree-optimization/108008] [12 Regression] wrong code with -O3 and posix_memalign since r12-4526-gd8edfadfc7a9795b

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

[Bug libstdc++/108331] [13 Regression] ABI break of std::__c_file and std::fstream for win32 thread model of GCC for windows

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

[Bug tree-optimization/108314] [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE since r13-707-g68e0063397ba82

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108314 --- Comment #3 from Richard Biener --- (gdb) p debug_gimple_stmt (stmt) t_5 = .FOLD_EXTRACT_LAST (t_14, _41, ); there's a missing call argument, the call is built here: #0 vectorizable_condition (vinfo=0x3b67200, stmt_info=0x3c3d160,

[Bug driver/108350] New: Windows: invoking gcc via symlink does not work

2023-01-10 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 Bug ID: 108350 Summary: Windows: invoking gcc via symlink does not work Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

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

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

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

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

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #1 from niXman --- > FIX > > The most straightforward fix is to change `lrealpath` to use > `GetFinalPathNameByHandle` instead of `GetFullPathName`. thanks for the investigation! will do it now.

[Bug tree-optimization/108314] [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE since r13-707-g68e0063397ba82

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108314 Richard Biener changed: What|Removed |Added Priority|P3 |P1 --- Comment #4 from Richard Biener

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #4 from niXman --- > FYI `GetFinalPathNameByHandle` is known to fail on drives that are created > via `DefineDosDevice` (e.g. via the SUBST command). So I recommend using > `GetFullPathName` as a fallback if you find that

[Bug tree-optimization/108360] New: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 Bug ID: 108360 Summary: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #14 from Richard Biener --- const_binop has /* Don't constant fold this floating point operation if the result has overflowed and flag_trapping_math. */ if (flag_trapping_math && MODE_HAS_INFINITIES

[Bug target/108322] Using __restrict parameter with -ftree-vectorize (default with -O2) results in massive code bloat

2023-01-10 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108322 --- Comment #6 from rguenther at suse dot de --- On Tue, 10 Jan 2023, amonakov at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108322 > > --- Comment #5 from Alexander Monakov --- > (In reply to Richard Biener from

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

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108349 --- Comment #3 from Jakub Jelinek --- Seems e.g. sincos* have wrong prototypes since that revision too.

[Bug tree-optimization/108351] New: Dead Code Elimination Regression at -O3 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108351 Bug ID: 108351 Summary: Dead Code Elimination Regression at -O3 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/106293] [13 Regression] 456.hmmer at -Ofast -march=native regressed by 19% on zen2 and zen3 in July 2022

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106293 Yann Girsberger changed: What|Removed |Added CC||yann at ywg dot ch --- Comment #6

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #3 from niXman --- (In reply to Bill Zissimopoulos from comment #2) > (In reply to niXman from comment #1) > > > The most straightforward fix is to change `lrealpath` to use > > > `GetFinalPathNameByHandle` instead of

[Bug tree-optimization/108355] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108355 Bug ID: 108355 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #18 from Jakub Jelinek --- See #c10, I think even with comparisons we need to be careful. One thing is whether we can prove one of the branches will be unreachable, we can do that and replace that branch with __builtin_unreachable,

[Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc

2023-01-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221 --- Comment #17 from Jonathan Wakely --- Please try current master, I think the errors for h8300-elf and msp430-elf should be fixed (but I still get the assembler errors for h8300-elf using latest binutils).

[Bug tree-optimization/108314] [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE since r13-707-g68e0063397ba82

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

[Bug tree-optimization/106476] ICE generating FOLD_EXTRACT_LAST

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106476 Richard Biener changed: What|Removed |Added Known to work||13.0 Resolution|---

[Bug tree-optimization/106293] [13 Regression] 456.hmmer at -Ofast -march=native regressed by 19% on zen2 and zen3 in July 2022

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

[Bug tree-optimization/108356] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108356 Bug ID: 108356 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #7 from Bill Zissimopoulos --- (In reply to niXman from comment #6) > > I would use `FILE_NAME_NORMALIZED` and `VOLUME_NAME_DOS`. > > together? OR'ed? > > or should I try for the first, and for the second one? or...? Yes, or them

[Bug tree-optimization/108314] [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE since r13-707-g68e0063397ba82

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108314 Richard Biener changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/106476] ICE generating FOLD_EXTRACT_LAST

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

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #17 from Richard Biener --- (In reply to Aldy Hernandez from comment #16) > Created attachment 54224 [details] > untested patch > > Perhaps this would work. It solves the testcase, though I think we should > probably audit the

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

2023-01-10 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108182 --- Comment #12 from Iain Sandoe --- unfortunately, neither this nor the v4.1 (WIP) is still quite right. Using LIBDIR in the computation of the include paths means that the compiler does not work when it is relocated .. the directory prefix

[Bug tree-optimization/108353] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108353 Bug ID: 108353 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108354] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108354 Bug ID: 108354 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108357] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 Bug ID: 108357 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108359] New: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108359 Bug ID: 108359 Summary: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/108331] [13 Regression] ABI break of std::__c_file and std::fstream for win32 thread model of GCC for windows

2023-01-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108331 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug target/107714] MVE: Invalid addressing mode generated for VLD2

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107714 --- Comment #7 from CVS Commits --- The releases/gcc-11 branch has been updated by Stam Markianos-Wright : https://gcc.gnu.org/g:08842ad274f5e2630994f7c6e70b2d31768107ea commit r11-10461-g08842ad274f5e2630994f7c6e70b2d31768107ea Author: Stam

[Bug target/108348] ICE in gen_movoo, at config/rs6000/mma.md:292

2023-01-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108348 --- Comment #4 from Kewen Lin --- (In reply to Kewen Lin from comment #3) > There seem to be two alternatives to fix this, one is to raise error in > rs6000_pass_by_reference like what we do in rs6000_function_arg, but we need > something like

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #13 from Richard Biener --- (In reply to Aldy Hernandez from comment #12) > (In reply to Richard Biener from comment #6) > > (In reply to Jakub Jelinek from comment #0) > > > ... but then > > > comes dom2 and happily replaces > > >

[Bug middle-end/69482] Writing through pointers to volatile not always preserved

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69482 Richard Biener changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

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

2023-01-10 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108349 Bug ID: 108349 Summary: LTO mismatch for __builtin_realloc between glibc and gfortran frontend Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221 --- Comment #15 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:b39f4333d18cc58b1a655c537a78fefe95b82609 commit r13-5079-gb39f4333d18cc58b1a655c537a78fefe95b82609 Author: Jonathan Wakely

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

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

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

2023-01-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199 --- Comment #12 from Eric Botcazou --- > How are the bits numbered in there, IOW is bit 0 always the LSB or not? Answering to myself: no, they are numbered in memory order, which is problematic because, in the implementation model, stand-alone

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #19 from rguenther at suse dot de --- On Tue, 10 Jan 2023, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 > > --- Comment #18 from Jakub Jelinek --- > See #c10, I think even with comparisons

[Bug tree-optimization/108314] [13 Regression] Segfault in gimple-match-head.cc:do_valueize when vectorizing for SVE since r13-707-g68e0063397ba82

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108314 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:554bb9b61e2b76d4ace16a3f766b98ea887b17f4 commit r13-5089-g554bb9b61e2b76d4ace16a3f766b98ea887b17f4 Author: Richard Biener Date:

[Bug target/107843] error: incompatible type for argument in ___bpf_ctx_cast2

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

[Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221 --- Comment #16 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:769fae76dfd71045fe062e7b1edef0f59e50371d commit r13-5080-g769fae76dfd71045fe062e7b1edef0f59e50371d Author: Jonathan Wakely

[Bug target/108140] ICE expanding __rbit

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108140 --- Comment #7 from CVS Commits --- The releases/gcc-12 branch has been updated by Kyrylo Tkachov : https://gcc.gnu.org/g:849c3cf7b4189342b4a0df941afddf8327585570 commit r12-9037-g849c3cf7b4189342b4a0df941afddf8327585570 Author: Kyrylo

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #16 from Aldy Hernandez --- Created attachment 54224 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54224=edit untested patch Perhaps this would work. It solves the testcase, though I think we should probably audit the

[Bug tree-optimization/108351] [13 Regression] Dead Code Elimination Regression at -O3 (trunk vs. 12.2.0)

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108351 Richard Biener changed: What|Removed |Added Target Milestone|--- |13.0 Summary|Dead Code

[Bug tree-optimization/108352] New: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108352 Bug ID: 108352 Summary: Dead Code Elimination Regression at -O2 (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108358] New: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0)

2023-01-10 Thread yann at ywg dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108358 Bug ID: 108358 Summary: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=znver3 since r13-4685-g4834e9360f7bf4

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110 --- Comment #18 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:c389991432da2bcc335a2b4fb7e502d28a6b3346 commit r13-5090-gc389991432da2bcc335a2b4fb7e502d28a6b3346 Author: Martin Jambor Date:

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #5 from Bill Zissimopoulos --- (In reply to niXman from comment #4) > > FYI `GetFinalPathNameByHandle` is known to fail on drives that are created > > via `DefineDosDevice` (e.g. via the SUBST command). So I recommend using > >

[Bug middle-end/106133] ICE: SIGSEGV in diagnostic_output_format_init_json_file() with -fdiagnostics-format=json-file -E

2023-01-10 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106133 --- Comment #4 from Martin Liška --- Btw. it crashes also for: gcc empty.c -fdiagnostics-format=sarif-file --save-temps -c 0xf02ebf crash_signal /home/marxin/Programming/gcc/gcc/toplev.cc:314 0x778b78df ???

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #15 from Aldy Hernandez --- (In reply to Richard Biener from comment #13) > Note that the constant folding routines generally refrain from folding > when that loses exceptions, it's just ranger when producing singleton > ranges and

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

2023-01-10 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 Assignee|unassigned at gcc dot gnu.org |ebotcazou at gcc dot gnu.org

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #2 from Bill Zissimopoulos --- (In reply to niXman from comment #1) > > The most straightforward fix is to change `lrealpath` to use > > `GetFinalPathNameByHandle` instead of `GetFullPathName`. > > thanks for the investigation! >

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=znver3 since r13-4685-g4834e9360f7bf4

2023-01-10 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110 Martin Jambor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #6 from niXman --- > I would use `FILE_NAME_NORMALIZED` and `VOLUME_NAME_DOS`. together? OR'ed? or should I try for the first, and for the second one? or...?

[Bug rtl-optimization/106421] [10/11/12/13 Regression] ICE with computed goto from a nested functon

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106421 --- Comment #4 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:851e1ba03f9de699a754dd8648fc151c3e26d697 commit r13-5091-g851e1ba03f9de699a754dd8648fc151c3e26d697 Author: Roger Sayle Date: Tue

[Bug c++/108361] Assembly code that is never called emitted on x86_64

2023-01-10 Thread eric-bugs at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361 --- Comment #2 from eric-bugs at omnifarious dot org --- Created attachment 54238 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54238=edit Assembly output from compiler

[Bug tree-optimization/108351] [13 Regression] Dead Code Elimination Regression at -O3 since r13-4240-gfeeb0d68f1c708

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

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #24 from Aldy Hernandez --- (In reply to Andrew Macleod from comment #21) > (In reply to Richard Biener from comment #13) > > > Yes, the fact that ranger doesn't operate as a usual propagator with a > > lattice > > makes things

[Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-01-10 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|Dead Code

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

2023-01-10 Thread ucko at ncbi dot nlm.nih.gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108137 --- Comment #9 from ucko at ncbi dot nlm.nih.gov --- Thanks! I'm happy to confirm that the patch works for me too, even in the more severely affected file I mentioned earlier.

[Bug tree-optimization/106293] [13 Regression] 456.hmmer at -Ofast -march=native regressed by 19% on zen2 and zen3 in July 2022

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106293 --- Comment #8 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:4e0b504f26f78ff02e80ad98ebbf8ded3aa6ffa1 commit r13-5092-g4e0b504f26f78ff02e80ad98ebbf8ded3aa6ffa1 Author: Richard Biener Date:

[Bug tree-optimization/108356] [13 Regression] Dead Code Elimination Regression at -O2 since r13-434-g6b156044c12bc4

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108356 --- Comment #2 from Richard Biener --- (In reply to Andrew Macleod from comment #1) > From ccp2 : > > Simulating block 2 > > Visiting statement: > c.2_1 = c; > which is likely CONSTANT > Lattice value changed to VARYING. Adding SSA edges to

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

2023-01-10 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 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 --- Comment #3 from Jakub Jelinek --- The first difference with r13-2048 is during fre3: @@ -210,7 +210,7 @@ marking outgoing edge 6 -> 1 executable RPO iteration over 5 blocks visited 5 blocks in total discovering 5 executable blocks

[Bug modula2/108142] Many empty directories created in the build directory

2023-01-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142 Gaius Mulley changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/108218] [12/13 Regression] Constant arguments in the new expression is not checked in unevaluated operand since r12-5253-g4df7f8c79835d569

2023-01-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108218 --- Comment #10 from Andrew Pinski --- https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2392 "potentially-evaluated".

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

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

[Bug tree-optimization/31756] -floop-interchange is not working on some fortran loops

2023-01-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31756 Thomas Koenig changed: What|Removed |Added CC||mehdi.chinoune at hotmail dot com ---

[Bug other/89204] -floop-interchange has no effect on Fortran code

2023-01-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89204 Thomas Koenig changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #8 from Thomas

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-10 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #10 from niXman --- it is strange, but for some reason I can't build master nor 12.2.0 because of error: ``` { /c/mingw-builds/x86_64-1220-win32-seh-msvcrt-rt_v10-rev0/build/gcc-12.2.0/./gcc/nm -pg _chkstk_s.o _chkstk_ms_s.o

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

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108359 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug c++/108363] New: Narrowing conversion errors are suppressed with the -w flag

2023-01-10 Thread novulae at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108363 Bug ID: 108363 Summary: Narrowing conversion errors are suppressed with the -w flag Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 --- Comment #2 from Jakub Jelinek --- Seems it happens even with short b; static short c; unsigned char e; char f; void foo(); short(a)(short h, short i) { return h + i; } static short(d)(short h, int i) { return (h >= 32 || h > (7 >> i)) ? h :

[Bug ipa/99373] unused static function not being removed in some cases after optimization

2023-01-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99373 Andrew Pinski changed: What|Removed |Added CC||eric-bugs at omnifarious dot org ---

[Bug c++/108361] Assembly code that is never called emitted on x86_64

2023-01-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361 --- Comment #5 from Andrew Pinski --- Sorry PR 89139. *** This bug has been marked as a duplicate of bug 89139 ***

[Bug ipa/89139] GCC emits code for static functions that aren't used by the optimized code

2023-01-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89139 Andrew Pinski changed: What|Removed |Added CC||eric-bugs at omnifarious dot org ---

[Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-01-10 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 --- Comment #5 from Andrew Macleod --- The key change is that condition: _6 = f.5_5 << 4; e = _6; h_23 = (short int) _6; if (_21 == -1) goto ; [50.00%] else goto ; [50.00%] On the false edge, we lose the ability

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

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108359 --- Comment #2 from Jakub Jelinek --- Note, i and k are [0,0] U [5,5], so e is 0>>0 or 5>>5 and so always 0.

[Bug target/107714] MVE: Invalid addressing mode generated for VLD2

2023-01-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107714 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Stam Markianos-Wright : https://gcc.gnu.org/g:25edc76f2afba0b4eaf22174d42de042a6969dbe commit r12-9038-g25edc76f2afba0b4eaf22174d42de042a6969dbe Author: Stam

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

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

[Bug tree-optimization/108356] [13 Regression] Dead Code Elimination Regression at -O2 since r13-434-g6b156044c12bc4

2023-01-10 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108356 Martin Liška changed: What|Removed |Added Target Milestone|--- |13.0 Last reconfirmed|

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

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

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-01-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 --- Comment #1 from Richard Biener --- The CCP hunk causes a condition to be optimized away which then results in different jump threading and different VRP. I didn't analyze further, but the first difference is good: @@ -253,31 +256,25 @@

[Bug c++/108361] Assembly code that is never called emitted on x86_64

2023-01-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > But the linker errors is a bug in your code really. Because the original code has references to both std::string and std::system_error .

[Bug c++/108361] Assembly code that is never called emitted on x86_64

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

[Bug c++/108361] Assembly code that is never called emitted on x86_64

2023-01-10 Thread eric-bugs at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361 --- Comment #6 from eric-bugs at omnifarious dot org --- Technically, I suppose it is. I do reference those things in the original code. :-) But it is sort of annoying to get the error when I can just edit the assembly and clip out the

[Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-01-10 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 --- Comment #4 from Andrew Macleod --- The IL is different in VRP2 between GCC12 and GCC13. IN GCC 12 I see: [local count: 1073741824]: b.2_1 = b; _2 = b.2_1 <= 0; h.0_20 = (unsigned short) _2; _21 = h.0_20 + 65535; _22 = (short

[Bug tree-optimization/108360] [13 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-01-10 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 --- Comment #6 from Andrew Macleod --- and VRP1 turned that if (_21 < 0) into if (_21 == -1) So yes, that was a correct transformation in FRE3, but the side effect is we lose the ability to look back and determine better ranges for _6 and

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

2023-01-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108353 --- Comment #2 from Andrew Pinski --- (In reply to Richard Biener from comment #1) > The for (; j; j = j + 9) loop invokes undefined behavior: > > t.c: In function 'g': > t.c:11:17: warning: iteration 396462472 invokes undefined behavior >

[Bug c++/108361] Assembly code that is never called emitted on x86_64

2023-01-10 Thread eric-bugs at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361 --- Comment #1 from eric-bugs at omnifarious dot org --- Created attachment 54237 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54237=edit Assembly file containing _start

[Bug c++/108361] New: Assembly code that is never called emitted on x86_64

2023-01-10 Thread eric-bugs at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361 Bug ID: 108361 Summary: Assembly code that is never called emitted on x86_64 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #20 from Jakub Jelinek --- (In reply to Aldy Hernandez from comment #16) > Created attachment 54224 [details] > untested patch > > Perhaps this would work. It solves the testcase, though I think we should > probably audit the

  1   2   >