[Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208 --- Comment #33 from Jakub Jelinek --- It regresses g++.dg/coroutines/torture/co-await-16-template-traits.C g++.dg/cpp0x/pr89403.C g++.dg/tree-ssa/pr46228.C g++.dg/torture/pr104601.C g++.dg/torture/pr89303.C g++.dg/torture/pr91606.C on

[Bug c++/114050] Inconsistency in double/float constant evaluation between 32 and 64 bit

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114050 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208 --- Comment #32 from Jakub Jelinek --- Created attachment 57963 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57963=edit gcc14-pr113208.patch Ah, I shouldn't call expand_or_defer* in that function, that has been called already earlier

[Bug sanitizer/114743] ICE in build_check_stmt at asan.cc:2707 while compiling gcc.dg/ubsan/pr112709-2.c with -fsanitize=address

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
dot gnu.org |jakub at gcc dot gnu.org Last reconfirmed||2024-04-16 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Jakub Jelinek --- Created attachment 57962 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57962=edit gc

[Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208 --- Comment #31 from Jakub Jelinek --- Created attachment 57960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57960=edit gcc14-pr113208.patch Here is my attempt to optimize it in the C++ FE. The ICE is gone and for pr113208_0.C compiled

[Bug c++/114740] i686-linux-gnu-g++ does not interpret floating point literals as double

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114740 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug other/114738] [14 Regression] Default DOCUMENTATION_ROOT_URL vs. release branches

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114738 Jakub Jelinek changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org Target

[Bug other/114738] New: [14 Regression] Default DOCUMENTATION_ROOT_URL vs. release branches

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- gcc/configure.ac uses DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/; as the default documentation root. That is

[Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208 --- Comment #29 from Jakub Jelinek --- Looking at t1 (i.e. the reduced testcase with constexpr), the difference with -std=c++20 -O1 -fkeep-inline-functions is that in r14-5978 we used to emit _ZN6vectorI12QualityValueEC2ERKS1_ in

[Bug c++/114706] ICE - std::bit_cast in consteval function involving array of union

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114706 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/114706] ICE - std::bit_cast in consteval function involving array of union

2024-04-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114706 --- Comment #4 from Jakub Jelinek --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:79ff53453e88e40c4f2ecf6f7f7409afc41b46fc commit r14-9987-g79ff53453e88e40c4f2ecf6f7f7409afc41b46fc Author: Jakub Jelinek Date:

[Bug other/89863] [meta-bug] Issues in gcc that other static analyzers (cppcheck, clang-static-analyzer, PVS-studio) find that gcc misses

2024-04-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89863 Bug 89863 depends on bug 114689, which changed state. Bug 114689 Summary: [14 Regression] libgcc/config/m68k/fpgnulib.c:305: Suspicious coding ? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114689 What|Removed

[Bug libgcc/114689] [14 Regression] libgcc/config/m68k/fpgnulib.c:305: Suspicious coding ?

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

[Bug c++/114706] ICE - std::bit_cast in consteval function involving array of union

2024-04-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114706 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/114635] OpenMP reductions fail dependency analysis

2024-04-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114635 --- Comment #16 from Jakub Jelinek --- (In reply to Richard Biener from comment #14) > I think > > if (safelen) > { > poly_uint64 val; > safelen = OMP_CLAUSE_SAFELEN_EXPR (safelen); > if (!poly_int_tree_p (safelen, )) >

[Bug tree-optimization/114635] OpenMP reductions fail dependency analysis

2024-04-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114635 --- Comment #13 from Jakub Jelinek --- (In reply to kugan from comment #12) > > Why? > > Then it just is INT_MAX value, which is a magic value that says that it is > > infinity. > > No need to say it is a poly_int infinity. > > For this test

[Bug tree-optimization/114635] OpenMP reductions fail dependency analysis

2024-04-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114635 --- Comment #11 from Jakub Jelinek --- (In reply to kugan from comment #9) > Looking at the options, looks to me that making loop->safelen a poly_in is > the way to go. (In reply to Jakub Jelinek from comment #4) > > The OpenMP safelen clause

[Bug middle-end/114700] middle-end optimization generates causes -fsanitize=undefined not to happen in some cases

2024-04-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114700 --- Comment #18 from Jakub Jelinek --- (In reply to Hu Lin from comment #17) > (In reply to Jakub Jelinek from comment #16) > > (In reply to Hu Lin from comment #11) > > > I think it doesn't mean that's not a bug with -ftrapv, it should

[Bug libgcc/114689] [14 Regression] libgcc/config/m68k/fpgnulib.c:305: Suspicious coding ?

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114689 --- Comment #5 from Jakub Jelinek --- And does extern void g( int); void f( int mant, int sticky) { mant = mant >> 1 ; mant = mant >> 1 | (mant & 1); mant = mant >> 1 | (mant & 1) | (!!sticky); mant = !!sticky;

[Bug c++/114691] [11/12/13 Regression] Bogus ignoring loop annotation warning

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114691 Jakub Jelinek changed: What|Removed |Added Summary|[11/12/13/14 Regression]|[11/12/13 Regression] Bogus

[Bug c++/114426] [14 regression] ICE when building log4cxx on arm (cxx_eval_call_expression, at cp/constexpr.cc:3242) since r14-6507

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114426 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574 --- Comment #27 from Jakub Jelinek --- (In reply to uecker from comment #26) > Note that not updating the types seems wrong also pre C23. PR114493 could be > an example of this: > > typedef struct a a; > int c; > int f(a **); > struct

[Bug c++/114634] [11/12/13/14 Regression] Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute since r9-1745

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114634 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574 --- Comment #25 from Jakub Jelinek --- Created attachment 57935 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57935=edit gcc14-pr114574.patch What about this patch then? So far just make check-gcc -j32 checked (though in a version that

[Bug c++/114634] [11/12/13/14 Regression] Crash Issue Encountered in GCC Compilation of Template Code with Aligned Attribute since r9-1745

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
||jakub at gcc dot gnu.org Priority|P1 |P2 --- Comment #3 from Jakub Jelinek --- Started with r9-1745-gbffc62707f731f20ded6993e734a361945684955 I don't think 5+ years old ice-on-invalid-code should be P1.

[Bug target/114621] [11/12/13/14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn) with -O -fpie and _Thread_local with large offset

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114621 Jakub Jelinek changed: What|Removed |Added Priority|P1 |P2 --- Comment #6 from Jakub Jelinek

[Bug middle-end/114700] middle-end optimization generates wrong code with -fsanitize=undefined

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114700 --- Comment #16 from Jakub Jelinek --- (In reply to Hu Lin from comment #11) > I think it doesn't mean that's not a bug with -ftrapv, it should preserve > all overflow traps. Because it doesn't work, we use -fsanitize=undefined > instead of it.

[Bug libgcc/114689] [14 Regression] libgcc/config/m68k/fpgnulib.c:305: Suspicious coding ?

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114689 --- Comment #3 from Jakub Jelinek --- But guess that won't shut up cppcheck, I'd think it wants | (!!sticky) instead of | !!sticky. Haven't tried though.

[Bug middle-end/114700] middle-end optimization generates wrong code with -fsanitize=undefined

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114700 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/114426] [14 regression] ICE when building log4cxx on arm (cxx_eval_call_expression, at cp/constexpr.cc:3242) since r14-6507

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114426 --- Comment #11 from Jakub Jelinek --- Actually I had another look. Jason said in the c++: fix in-charge parm in constexpr mail back in December (as well as in the r14-6507 commit message): "Since a class with vbases can't have constexpr 'tors

[Bug sanitizer/114687] [13 Regression] ICE: in edge_before_returns_twice_call, at gimple-iterator.cc:981

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114687 Jakub Jelinek changed: What|Removed |Added Summary|[13/14 Regression] ICE: in |[13 Regression] ICE: in

[Bug libgcc/114689] [14 Regression] libgcc/config/m68k/fpgnulib.c:305: Suspicious coding ?

2024-04-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114689 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug sanitizer/114687] [13/14 Regression] ICE: in edge_before_returns_twice_call, at gimple-iterator.cc:981

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Created attachment 57929 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57929=edit gcc14-pr114687.patch Untested fix. The tree-cfg.cc verification that ECF_RETURNS_TWICE call is the first in bb app

[Bug sanitizer/114687] [13/14 Regression] ICE: in edge_before_returns_twice_call, at gimple-iterator.cc:981

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114687 --- Comment #2 from Jakub Jelinek --- Saying a function is valid code in this case is difficult, claiming that a noreturn function is pure or returns_twice is wrong, it isn't pure, nor returns_twice, as it never returns.

[Bug target/114676] [12/13/14 Regression] DSE removes assignment that is used later

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114676 --- Comment #10 from Jakub Jelinek --- I admit I haven't studied what exactly pytorch does there.

[Bug target/114676] [12/13/14 Regression] DSE removes assignment that is used later

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114676 --- Comment #9 from Jakub Jelinek --- It depends on what the vec_xl*/vec_xst* documentation requires/user expect. If the expectation is that the loads/stores should alias the scalar pointee of the pointer type passed to those intrinsics, then

[Bug libstdc++/114692] [14 Regression] Symbol versioning problem in GCC 14 libstdc++.so.6

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114692 --- Comment #8 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #7) > (In reply to Jonathan Wakely from comment #4) > > This were added by r13-7320-g0d5a359140503d which is in 13.2 :-( > > Oops, guess too late then for those.

[Bug libstdc++/114692] [14 Regression] Symbol versioning problem in GCC 14 libstdc++.so.6

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114692 --- Comment #7 from Jakub Jelinek --- (In reply to Jonathan Wakely from comment #4) > This were added by r13-7320-g0d5a359140503d which is in 13.2 :-( Oops, guess too late then for those. We'll need to consider 13.2 as a fuzzy snapshot in

[Bug libstdc++/114692] [14 Regression] Symbol versioning problem in GCC 14 libstdc++.so.6

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114692 --- Comment #3 from Jakub Jelinek --- (In reply to Jonathan Wakely from comment #1) > --- a/libstdc++-v3/config/abi/pre/gnu.ver > +++ b/libstdc++-v3/config/abi/pre/gnu.ver > @@ -2521,9 +2521,12 @@ GLIBCXX_3.4.31 { > GLIBCXX_3.4.32 { >

[Bug libstdc++/114692] [14 Regression] Symbol versioning problem in GCC 14 libstdc++.so.6

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114692 --- Comment #2 from Jakub Jelinek --- Created attachment 57927 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57927=edit gcc14-libstdc++-baseline-updates.patch This was what I've been preparing before noticing this issue. If we change

[Bug libstdc++/114692] [14 Regression] Symbol versioning problem in GCC 14 libstdc++.so.6

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114692 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |14.0 CC|

[Bug libstdc++/114692] New: [14 Regression] Symbol versioning problem in GCC 14 libstdc++.so.6

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- I was just updating libstdc++ baseline_symbols.txt files from latest Fedora, but seems we have a major issue. While

[Bug c++/114691] [11/12/13/14 Regression] Bogus ignoring loop annotation warning

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114691 Bug 114691 depends on bug 114409, which changed state. Bug 114409 Summary: [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8

[Bug c++/114409] [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8

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

[Bug c++/114409] [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409 --- Comment #18 from Jakub Jelinek --- The P1 bug has been fixed, I've moved the rest to PR114691.

[Bug c++/114691] [11/12/13/14 Regression] Bogus ignoring loop annotation warning

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
|P2 Ever confirmed|0 |1 Last reconfirmed||2024-04-11 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Target Milestone|--- |11.5 --- Comment #1 from Jakub

[Bug c++/114691] New: [11/12/13/14 Regression] Bogus ignoring loop annotation warning

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, jason at gcc dot gnu.org, pinskia at gcc dot gnu.org, ppalka

[Bug middle-end/110027] [11/12/13 regression] Stack objects with extended alignments (vectors etc) misaligned on detect_stack_use_after_return

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

[Bug middle-end/110027] [11/12/13/14 regression] Stack objects with extended alignments (vectors etc) misaligned on detect_stack_use_after_return

2024-04-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027 --- Comment #20 from Jakub Jelinek --- (In reply to Hongtao Liu from comment #19) > (In reply to Jakub Jelinek from comment #17) > > Both of the posted patches are incorrect, this needs to be fixed in > > asan_emit_stack_protection, account for

[Bug libstdc++/77776] C++17 std::hypot implementation is poor

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 --- Comment #28 from Jakub Jelinek --- As long as the scale is a power of two or 1.0 / power of two, I don't see why any version wouldn't be inaccurate.

[Bug rtl-optimization/101523] Huge number of combine attempts

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101523 --- Comment #58 from Jakub Jelinek --- (In reply to Segher Boessenkool from comment #57) > (In reply to Richard Biener from comment #56) > > The fix was reverted but will be re-instantiated for GCC 15 by me. > > And I still protest. > >

[Bug target/114676] [12/13/14 Regression] DSE removes assignment that is used later

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
, ||jakub at gcc dot gnu.org, ||krebbel at gcc dot gnu.org --- Comment #6 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #1) > /* Build a vector type with the alignment of the tar

[Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208 --- Comment #24 from Jakub Jelinek --- As documented in https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling-special-ctor-dtor C2 is base object constructor (C1 is complete object constructor, C3 is allocating complete constructor). C5

[Bug c++/114409] [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409 --- Comment #16 from Jakub Jelinek --- Created attachment 57918 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57918=edit gcc14-pr114409-2.patch Another possible untested fix.

[Bug c++/114409] [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #15 from Jakub Jelinek --- Created attachment 57917 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57917=edit gcc14-pr114409-1.patch One possible untested fix.

[Bug c++/114409] [14 Regression] ICE after adding novector pragmas (internal compiler error: in tsubst_expr, at cp/pt.cc:21794) since r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409 --- Comment #14 from Jakub Jelinek --- I had another look at this. The reason why this works without the pragmas (i.e. without ANNOTATE_EXPRs) is that the WHILE_COND/FOR_COND are handled not by tsubst_expr but tsubst_stmt: case FOR_STMT:

[Bug middle-end/110027] [11/12/13/14 regression] Stack objects with extended alignments (vectors etc) misaligned on detect_stack_use_after_return

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027 --- Comment #18 from Jakub Jelinek --- Created attachment 57915 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57915=edit gcc14-pr110027.patch So far lightly tested patch (make check-gcc check-g++ RUNTESTFLAGS=asan.exp on x86_64-linux

[Bug c++/94404] [meta-bug] C++ core issues

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 114462, which changed state. Bug 114462 Summary: [C++26] P2809R3 - Trivial infinite loops are not undefined behavior https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114462 What|Removed

[Bug c++/114462] [C++26] P2809R3 - Trivial infinite loops are not undefined behavior

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

[Bug c++/110338] Implement C++26 language features

2024-04-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110338 Bug 110338 depends on bug 114462, which changed state. Bug 114462 Summary: [C++26] P2809R3 - Trivial infinite loops are not undefined behavior https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114462 What|Removed

[Bug target/110027] [11/12/13/14 regression] Stack objects with extended alignments (vectors etc) misaligned on detect_stack_use_after_return

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/114660] Exponentiating by squaring not performed for x * y * y * y * y

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114660 --- Comment #4 from Jakub Jelinek --- I think we've been discussing an idea of turning on flag_wrapv very late among the GIMPLE passes and reassociate again. Because RTL also kind of assumes flag_wrapv, there is no difference between

[Bug driver/114658] branch "releases/gcc-13" builds "gcc version 14.0.1 (experimental)"

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114658 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug target/114656] ~5% slowdown of 538.imagick_r on aarch64

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114656 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c/114657] Invalid type conversion from some _BitInt bit-fields

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114657 --- Comment #2 from Jakub Jelinek --- In particular, 6.5.1.1/2 says "The type of the controlling expression is the type of the expression as if it had undergone an lvalue conversion, array to pointer conversion, or function to pointer

[Bug c/114657] Invalid type conversion from some _BitInt bit-fields

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114657 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug analyzer/114472] [14 Regression] ICE: in falls_short_of_p, at analyzer/store.cc:365 (in exceeds_p, at analyzer/store.cc:342) with -fanalyzer

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114472 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c/52534] gcc doesn't detect incorrect expression in call to va_start

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52534 --- Comment #5 from Jakub Jelinek --- Note, if we warn, we shouldn't warn for C23 or later, because one can pass anything there, like 3 arguments, or that (unsigned int)n_args, or just one, etc. And __builtin_va_start (ap, 0) is what is used

[Bug target/114576] [14 regression] VEX-prefixed AES instruction without AVX enabled

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114576 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/114580] Bogus warning on if constexpr

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114580 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/114628] ICE with _BitInt returns_twice (and computed gotos) with -g and optimization

2024-04-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114628 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/114621] [11/12/13/14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn) with -O -fpie and _Thread_local with large offset

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114621 --- Comment #5 from Jakub Jelinek --- While for the local exec we happily use something like movq%fs:0, %rax movabsq $b@tpoff+34359738367, %rdx addq%rdx, %rax movzbl (%rax), %eax we normally use

[Bug target/114621] [11/12/13/14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn) with -O -fpie and _Thread_local with large offset

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114621 --- Comment #4 from Jakub Jelinek --- char a; __thread char b[0x8L]; int foo (void) { return b[0x7L]; } ICEs similarly with -O0 -fpie.

[Bug ipa/113359] [13 Regression] LTO miscompilation of ceph on aarch64 and x86_64

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113359 Jakub Jelinek changed: What|Removed |Added Summary|[13/14 Regression] LTO |[13 Regression] LTO

[Bug target/114591] [12/13/14 Regression] register allocators introduce an extra load operation since gcc-12

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114591 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug target/114605] [14 Regression] wrong code with -march=z13 -O0 since r14-5831

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

[Bug middle-end/114628] ICE with _BitInt returns_twice (and computed gotos) with -g and optimization

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114628 --- Comment #3 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #1) > Note we get 2 difference ICEs depending on if `#if ` is 1 or 0. > It seems like it would be useful if some more torture tests for _BitInt were > included so

[Bug middle-end/114628] ICE with _BitInt returns_twice (and computed gotos) with -g and optimization

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jakub at gcc dot gnu.org CC||jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 57903 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57903=edit gcc14-pr114628.patch Untested fix.

[Bug tree-optimization/114635] OpenMP reductions fail dependency analysis

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114635 --- Comment #5 from Jakub Jelinek --- (In reply to Richard Biener from comment #3) > As for the dependence analysis itself - the issue is that the D.5606[_33] > style accesses have no access functions - I'm not sure how they evolve, > but I see

[Bug tree-optimization/114635] OpenMP reductions fail dependency analysis

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114635 --- Comment #4 from Jakub Jelinek --- The OpenMP safelen clause argument is a scalar integer, so using poly_int for something that must be an int doesn't make sense. Though, the above testcase actually doesn't use safelen clause, so safelen is

[Bug libquadmath/114623] sqrtq and std::numeric_limits<__float128>::max()

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114623 --- Comment #7 from Jakub Jelinek --- Created attachment 57900 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57900=edit gcc14-pr114623.patch Anyway, here is an untested patch to use soft-fp implementation for sqrtq for the positive

[Bug libquadmath/114623] sqrtq and std::numeric_limits<__float128>::max()

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114623 --- Comment #6 from Jakub Jelinek --- (In reply to g.peterhoff from comment #4) > That is precisely the design error of C/C++/etc. There should be no > float/double/long double/__float128/etc, but *only* floatN_t. If you don't want to use

[Bug libquadmath/114623] sqrtq and std::numeric_limits<__float128>::max()

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114623 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug target/114621] [11/12/13/14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn) with -O -fpie and _Thread_local with large offset

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114621 Jakub Jelinek changed: What|Removed |Added CC||uros at gcc dot gnu.org --- Comment #3

[Bug target/114621] [11/12/13/14 Regression] ICE: in extract_insn, at recog.cc:2812 (unrecognizable insn) with -O -fpie and _Thread_local with large offset

2024-04-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114621 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug preprocessor/87299] #pragma GCC target behaves differently when using -save-temps

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87299 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #9

[Bug tree-optimization/112723] [11/12/13/14 Regression] Missed optimization for invariants 'c+c' when c += -2147483647-1 and c is a global variable

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112723 --- Comment #7 from Jakub Jelinek --- Ah, with -fwrapv. Without -fwrapv the testcase invokes UB always, either the first c + c overflows or the second one, or the c += -2147483647 - 1; overflows.

[Bug tree-optimization/112723] [11/12/13/14 Regression] Missed optimization for invariants 'c+c' when c += -2147483647-1 and c is a global variable

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112723 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug target/114605] [14 Regression] wrong code with -march=z13 -O0 since r14-5831

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114605 --- Comment #2 from Jakub Jelinek --- Created attachment 57889 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57889=edit gcc14-pr114605.patch Untested fix.

[Bug target/114605] [14 Regression] wrong code with -march=z13 -O0 since r14-5831

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek --- This is a clear bug in s390_const_int_pool_entry_p. It just uses get_pool_constant but ignores

[Bug target/114605] [14 Regression] wrong code with -march=z13 -O0 since r14-5831

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114605 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |14.0 Priority|P3

[Bug target/114605] New: [14 Regression] wrong code with -march=z13 -O0 since r14-5831

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r14-5831-gaae723d360ca26cd9fd0b039fb0a616bd0eae363 we miscompile the following testcase on s390x-linux with -O0 -march=z13: typedef

[Bug tree-optimization/114566] [11/12/13 Regression] Misaligned vmovaps when compiling with stack-protector-strong for znver4

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
|ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/114566] [11/12/13/14 Regression] Misaligned vmovaps when compiling with stack-protector-strong for znver4

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114566 --- Comment #16 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #15) > (In reply to Jakub Jelinek from comment #14) > > Marking for 14 as well because I believe the trunk commit just made it > > latent there rather than fixed. >

[Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574 --- Comment #22 from Jakub Jelinek --- BTW, wonder if it wouldn't be desirable to revert the PR114361 patch until this is sorted out, or at least limit the effects of that patch to flag_isoc23 and using multiple types with the same tag and same

[Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574 --- Comment #21 from Jakub Jelinek --- Why? That is already set by TYPE_CANONICAL (t) = *e; else { TYPE_CANONICAL (t) = t;

[Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574 --- Comment #19 from Jakub Jelinek --- (In reply to Martin Uecker from comment #18) > I am just looking at a version that would have changed the condition to: > > if (TYPE_MODE (t) == mode && TYPE_REF_CAN_ALIAS_ALL (t) == can_alias_all >

[Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763

2024-04-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114574 --- Comment #17 from Jakub Jelinek --- Some comments: + else +{ + TYPE_CANONICAL (t) = t; +} The formatting here is wrong, TYPE_CANONICAL is indented too much, but we also don't put a single statement between {}s, so just else

[Bug target/114566] [11/12/13/14 Regression] Misaligned vmovaps when compiling with stack-protector-strong for znver4

2024-04-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114566 Jakub Jelinek changed: What|Removed |Added CC||avieira at gcc dot gnu.org

  1   2   3   4   5   6   7   8   9   10   >