[Bug tree-optimization/111970] [14 regression] SLP for non-IFN gathers result in RISC-V test failure on gather since r14-4745-gbeab5b95c58145

2023-11-19 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111970 --- Comment #13 from JuzheZhong --- Created attachment 56649 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56649&action=edit Correct vectorized optimized dump This is the optimized dump IR that runs correctly.

[Bug tree-optimization/111970] [14 regression] SLP for non-IFN gathers result in RISC-V test failure on gather since r14-4745-gbeab5b95c58145

2023-11-19 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111970 --- Comment #12 from JuzheZhong --- Created attachment 56648 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56648&action=edit Optimized dump which is buggy This is the buggy vectorized dump IR

[Bug tree-optimization/111970] [14 regression] SLP for non-IFN gathers result in RISC-V test failure on gather since r14-4745-gbeab5b95c58145

2023-11-19 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111970 --- Comment #11 from JuzheZhong --- Hi, Richard. I come back to revisit this bug. I found if I do this: diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 4a09b3c2aca..2fd128672b9 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-v

[Bug c++/112633] [13/14 Regression] ICE with type aliases and depedent value

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

[Bug c++/112633] [13/14 Regression] ICE with type aliases and depedent value

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112633 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Version|13

[Bug c++/112633] New: ICE in parser GCC 13+ (including 14) around type aliases

2023-11-19 Thread hanicka at hanicka dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hanicka at hanicka dot net Target Milestone: --- Tested on GCC 14.0.0 20231119 (on Compiler-Explorer) and it's giving me ICE, also on all 13.x versions (not 12.x) ```c++ template cons

[Bug c++/112594] Non-type template parameter created with converting constructor sometimes has original type

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112594 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid --- Comment #2 from Andre

[Bug c++/112632] [14 Regression] Non-type template parameter created with converting constructor sometimes has original type

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112632 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug c++/112632] New: [14 Regression] Non-type template parameter created with converting constructor sometimes has original type

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112632 Bug ID: 112632 Summary: [14 Regression] Non-type template parameter created with converting constructor sometimes has original type Product: gcc Version: 14.0

[Bug c++/112594] Non-type template parameter created with converting constructor sometimes has original type

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

[Bug c++/112557] ICE with coroutines in build_special_member_call, at cp/call.cc:11093

2023-11-19 Thread tobi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112557 --- Comment #1 from Tobias Schlüter --- With today's trunk on x86-64 I can reproduce this, giving the following: $ ../gcc.git/build/gcc/cc1plus t.cc --std=c++20 -fpermissive -fext-numeric-literals 2>&1 [ ... stripping away thousands of warnings

[Bug c++/112631] New: gcc rejects block-scope declaration of function in a module unit even if the function is attached to the global module fragment

2023-11-19 Thread michael.kenzel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112631 Bug ID: 112631 Summary: gcc rejects block-scope declaration of function in a module unit even if the function is attached to the global module fragment Product: gcc

[Bug tree-optimization/112325] Missed vectorization of reduction after unrolling

2023-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112325 --- Comment #7 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:2b59e2b4dff42118fe3a505f07b9a6aa4cf53bdf commit r14-5603-g2b59e2b4dff42118fe3a505f07b9a6aa4cf53bdf Author: liuhongt Date: Thu Nov

[Bug target/112537] Is there a way to disable cpymem pass for rvv

2023-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112537 --- Comment #14 from CVS Commits --- The master branch has been updated by Li Xu : https://gcc.gnu.org/g:e6269bb69c0734a5af716bfbded3621de6ca351d commit r14-5602-ge6269bb69c0734a5af716bfbded3621de6ca351d Author: xuli Date: Fri Nov 17 04:48:

[Bug libstdc++/112630] New: [14 Regression] 19_diagnostics/stacktrace/output.cc execution test

2023-11-19 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112630 Bug ID: 112630 Summary: [14 Regression] 19_diagnostics/stacktrace/output.cc execution test Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: testsuite-f

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #10 from Andrew Pinski --- (In reply to David Edelsohn from comment #9) > Brandt Bucher: A JIT compiler for CPython > https://www.youtube.com/watch?v=HxSHIpEQRjs > https://github.com/brandtbucher/cpython/tree/justin But must tail is

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2023-11-19 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #9 from David Edelsohn --- Brandt Bucher: A JIT compiler for CPython https://www.youtube.com/watch?v=HxSHIpEQRjs https://github.com/brandtbucher/cpython/tree/justin

[Bug target/112578] LoongArch: Wrong code -with -mlsx -fno-fp-int-builtin-inexact

2023-11-19 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112578 Xi Ruoyao changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |https://gcc.gnu.org/piperma

[Bug libstdc++/112591] variant allows for creating multiple empty objects at same address

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112591 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/112614] Compile-time float-to-_Decimal64 fails for -NAN

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

[Bug c++/99187] [modules] ICE exporting thread_local static local variable

2023-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99187 --- Comment #5 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:eaeaad3fcac4d7a30b5a256410cb59fa1a3fa9dd commit r14-5598-geaeaad3fcac4d7a30b5a256410cb59fa1a3fa9dd Author: Nathaniel Shead Date:

[Bug middle-end/112600] Failed to optimize saturating addition using __builtin_add_overflow

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112600 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Status|UNCONFIR

[Bug tree-optimization/112629] Missed-optimization: constant << (b + signed_constant)

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112629 Andrew Pinski changed: What|Removed |Added Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug middle-end/112629] Missed-optimization: constant << (b + signed_constant)

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112629 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW --- Comment #6 from Andrew Pinski

[Bug c++/112595] ICE on invalid code: Literal class NTTP aggregate initialized with self-referential pointer

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

[Bug sanitizer/112563] [14 regression] libsanitizer doesn't assemble with Solaris/sparc as

2023-11-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112563 --- Comment #1 from Jakub Jelinek --- So, what is the Solaris/sparc native as syntax for something similar? Strangely, non-weak aliases in config/sparc/sysv4.h use the x = y syntax rather than .set x, y that is used on most targets. Would using

[Bug middle-end/112629] Missed-optimization: constant << (b + signed_constant)

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112629 --- Comment #5 from Andrew Pinski --- (In reply to gooncreeper from comment #3) > This optimization could also be performed for unsigned integers if we know > they won't overflow in the optimization. Note it is not overflow, is wrap anyways.

[Bug middle-end/112629] Missed-optimization: constant << (b + signed_constant)

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112629 --- Comment #4 from Andrew Pinski --- Note we could do it even for unsigned if we know that (a+4) will not wrap. That is: ``` #include int optimized_shift(unsigned shift) { if ((shift < 0) | (shift > (unsigned)INT_MAX)) __builtin_unreachab

[Bug middle-end/112629] Missed-optimization: constant << (b + signed_constant)

2023-11-19 Thread goon.pri.low at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112629 --- Comment #3 from gooncreeper --- This optimization could also be performed for unsigned integers if we know they won't overflow in the optimization.

[Bug middle-end/112629] Missed-optimization: constant << (b + signed_constant)

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

[Bug middle-end/112629] Missed-optimization: constant << (b + signed_constant)

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

[Bug middle-end/112629] New: Missed-optimization: constant << (b + signed_constant)

2023-11-19 Thread goon.pri.low at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112629 Bug ID: 112629 Summary: Missed-optimization: constant << (b + signed_constant) Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Co

[Bug c/112571] [13/14 Regression] ICE with nested redefinition of enum

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112571 Andrew Pinski changed: What|Removed |Added Known to work||12.3.0 Status|UNCONFIRMED

[Bug c++/112619] [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57) since r14-5086-gae07265381d934

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112619 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/112619] [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57) since r14-5086-gae07265381d934

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112619 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0 CC|

[Bug tree-optimization/112618] [13/14 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529

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

[Bug ipa/112616] [11/12/13/14 Regression] wrong code at -O{s, 2, 3} on x86_64-linux-gnu

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112616 --- Comment #2 from Andrew Pinski --- This is like PR 108007 but unlike that one, -fno-tree-dce is not used.

[Bug ipa/112616] [11/12/13/14 Regression] wrong code at -O{s, 2, 3} on x86_64-linux-gnu

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

[Bug tree-optimization/112616] [11/12/13/14 Regression] wrong code at -O{s,2,3} on x86_64-linux-gnu

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112616 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code Summary|wrong cod

[Bug c++/112620] Changes to the referenced object in exception handler are lost after rethrow

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112620 --- Comment #2 from Andrew Pinski --- (In reply to Fedor Chelnokov from comment #0) > prints some not-null value in Clang and MSVC, which is correct according to > https://eel.is/c++draft/except.handle#15 Clang had a hack added to workaround t

[Bug c++/99858] Wrong throw-expression behaviour with reference to pointer

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99858 Andrew Pinski changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Comment

[Bug c++/112620] Changes to the referenced object in exception handler are lost after rethrow

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

[Bug tree-optimization/112628] `~a < -a` can be optimized to `a != 0` for unsigned types

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112628 --- Comment #2 from Andrew Pinski --- For signed, it is just true. That is: ``` int f(int a) { return (~a) < -a; } int f0(int a) { return (a) > ~(-a); } ``` Are the same. In fact we can optimize even more: ``` int feq(int a) { return (~a

[Bug target/89316] ICE with -mforce-indirect-call and -fsplit-stack

2023-11-19 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89316 Uroš Bizjak changed: What|Removed |Added Attachment #56637|0 |1 is obsolete|

[Bug target/110184] [x86] Missed optimisation: atomic operations should use PF, ZF and SF

2023-11-19 Thread securesneakers at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110184 --- Comment #3 from Ivan Bodrov --- Created attachment 56646 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56646&action=edit Fails to apply optimization for __atomic_fetch_and ZF-flag with separate literals

[Bug target/110184] [x86] Missed optimisation: atomic operations should use PF, ZF and SF

2023-11-19 Thread securesneakers at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110184 Ivan Bodrov changed: What|Removed |Added CC||securesneakers at gmail dot com --- Comme

[Bug tree-optimization/112628] `~a < -a` can be optimized to `a != 0` for unsigned types

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

[Bug tree-optimization/112628] New: `~a < -a` can be optimized to `a != 0` for unsigned types

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112628 Bug ID: 112628 Summary: `~a < -a` can be optimized to `a != 0` for unsigned types Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization,

[Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)

2023-11-19 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112617 John David Anglin changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/112627] New: `(a + c) - b == c` is not optimized to `a == b`

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112627 Bug ID: 112627 Summary: `(a + c) - b == c` is not optimized to `a == b` Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancemen

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #8 from Sam James --- (In reply to David Edelsohn from comment #4) > The lack of this feature is motivating CPython to rely on LLVM for its JIT > in future releases. Do you have something I can read up on for this part? It's the firs

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 Andrew Pinski changed: What|Removed |Added See Also||https://github.com/llvm/llv

[Bug tree-optimization/112324] phiopt fail to recog if (b < 0) max = MAX(-b, max); else max = MAX (b, max) into max = MAX (ABS(b), max)

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112324 --- Comment #8 from Andrew Pinski --- (In reply to Sam James from comment #6) > Someone filed a bug for LLVM for x <= abs(x) being always true > (https://github.com/llvm/llvm-project/issues/72653) and it looks like we're > missing that too. Not

[Bug tree-optimization/112626] `ABS(a) CMP a` can be optimized

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112626 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-11-19 Assignee|unassigne

[Bug tree-optimization/112626] New: `ABS(a) CMP a` can be optimized

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112626 Bug ID: 112626 Summary: `ABS(a) CMP a` can be optimized Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Prio

[Bug middle-end/112619] [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57)

2023-11-19 Thread kocelfc at tutanota dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112619 Kostadin Shishmanov changed: What|Removed |Added CC||jason at redhat dot com --- Comme

[Bug fortran/112625] New: Segmentation fault in getter function of unlimited polymorphic object in nested container / wrapper object

2023-11-19 Thread michail.stamatakis at chem dot ox.ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112625 Bug ID: 112625 Summary: Segmentation fault in getter function of unlimited polymorphic object in nested container / wrapper object Product: gcc Version: 13.2.0

[Bug c++/112624] New: Internal compiler error when compiling a module

2023-11-19 Thread amaikinono at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112624 Bug ID: 112624 Summary: Internal compiler error when compiling a module Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug tree-optimization/112324] phiopt fail to recog if (b < 0) max = MAX(-b, max); else max = MAX (b, max) into max = MAX (ABS(b), max)

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112324 --- Comment #7 from Andrew Pinski --- (In reply to Sam James from comment #6) > Someone filed a bug for LLVM for x <= abs(x) being always true > (https://github.com/llvm/llvm-project/issues/72653) and it looks like we're > missing that too. Not

[Bug target/112623] New: [14 Regression] ICE: in emit_move_insn, at expr.cc:4249 with -O -mavx512vl -mavx512fp16 on vector conversion

2023-11-19 Thread zsojka at seznam dot cz via Gcc-bugs
pported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231119 (experimental) (GCC)

[Bug c/112622] [14 Regression] ICE: tree check: expected none of vector_type, have vector_type in convert_to_real_1, at convert.cc:295 with invalid cast

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112622 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug c/112622] New: [14 Regression] ICE: tree check: expected none of vector_type, have vector_type in convert_to_real_1, at convert.cc:295 with invalid cast

2023-11-19 Thread zsojka at seznam dot cz via Gcc-bugs
Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231119 (experimental) (GCC)

[Bug tree-optimization/112324] phiopt fail to recog if (b < 0) max = MAX(-b, max); else max = MAX (b, max) into max = MAX (ABS(b), max)

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112324 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #6 fr

[Bug c++/112621] New: g++ error: "references internal linkage entity" when compiling a module interface

2023-11-19 Thread amaikinono at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112621 Bug ID: 112621 Summary: g++ error: "references internal linkage entity" when compiling a module interface Product: gcc Version: 13.2.1 Status: UNCONFIRMED Seve

[Bug c++/112620] New: Changes to the referenced object in exception handler are lost after rethrow

2023-11-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112620 Bug ID: 112620 Summary: Changes to the referenced object in exception handler are lost after rethrow Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity:

[Bug libstdc++/110287] _M_check_len is expensive

2023-11-19 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110287 --- Comment #9 from Jan Hubicka --- This is _M_realloc insert at release_ssa time: eleased 63 names, 165.79%, removed 63 holes void std::vector::_M_realloc_insert (struct vector * const this, struct iterator __position, const struct pair_t & __

[Bug middle-end/109849] suboptimal code for vector walking loop

2023-11-19 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109849 --- Comment #21 from Jan Hubicka --- Patch https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637265.html gets us closer to inlining _M_realloc_insert at -O3 (3 insns away) Patch https://gcc.gnu.org/pipermail/gcc-patches/2023-November/6369

[Bug libstdc++/110287] _M_check_len is expensive

2023-11-19 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110287 --- Comment #8 from Jan Hubicka --- With return value range propagation https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637265.html reduces --param max-inline-insns-auto needed for _M_realloc_insert to be inlined on my testcase from 39 t

[Bug middle-end/112619] [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57)

2023-11-19 Thread kocelfc at tutanota dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112619 Kostadin Shishmanov changed: What|Removed |Added CC||kocelfc at tutanota dot com --- C

[Bug middle-end/112619] New: [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57)

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112619 Bug ID: 112619 Summary: [14 regression] ICE when building libcrafter (tree check: expected statement_list, have modify_expr in tsi_start, at tree-iterator.h:57) Product: gc

[Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529

2023-11-19 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618 Bug ID: 112618 Summary: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112617 --- Comment #3 from Sam James --- Created attachment 56639 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56639&action=edit reduced.i

[Bug middle-end/112572] [14 regression] LLVM miscompiled since r14-5355-g3cd3a09b3f91a1

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112572 --- Comment #27 from Sam James --- (In reply to Andrew Pinski from comment #18) > This fixes the issue for me: > ``` > diff --git a/gcc/compare-elim.cc b/gcc/compare-elim.cc > [...] This solves both pipewire (unreported, was working on reducing

[Bug middle-end/112572] [14 regression] LLVM miscompiled since r14-5355-g3cd3a09b3f91a1

2023-11-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112572 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Commen

[Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112617 --- Comment #2 from Sam James --- Reducing now. I won't bisect it proactively unless someone asks, given I assume it's r14-5538-gd2934eb6ae92471484469d8ddd039eb34ef400b1.

[Bug target/112617] [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112617 --- Comment #1 from Sam James --- 'gcc -c btrfs-util.c.i -O1 -fno-omit-frame-pointer' is enough for me to hit it.

[Bug target/112617] New: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839)

2023-11-19 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112617 Bug ID: 112617 Summary: [14 regression] ICE when building systemd on HPPA (internal compiler error: in find_reloads, at reload.cc:3839) Product: gcc Version: 14.

[Bug rtl-optimization/111554] [12/13/14 regression] Timeout with with "-O3 -fno-dse -fno-inline -fno-store-merging -fno-toplevel-reorder -fno-tree-dce -fno-tree-dse" since r12-2097-g9f34b780b0461e

2023-11-19 Thread mkuvyrkov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111554 Maxim Kuvyrkov changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #10 from Maxim Ku