[Bug target/97387] we are near 2021, add carry intrinsic still does the wrong thing and generates silly code.

2020-10-14 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97387 --- Comment #13 from fdlbxtqi --- https://godbolt.org/z/fqGrz1 After this patch, the assembly generated is much better now. However, it still contains many optimization problems. The problem is the code like this. Let's just walk through the a

[Bug target/97387] we are near 2021, add carry intrinsic still does the wrong thing and generates silly code.

2020-10-14 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97387 --- Comment #14 from fdlbxtqi --- (In reply to fdlbxtqi from comment #13) > https://godbolt.org/z/fqGrz1 > > After this patch, the assembly generated is much better now. However, it > still contains many optimization problems. > > The problem i

[Bug c++/97430] New: internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884

2020-10-14 Thread jfrech.bugzilla at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97430 Bug ID: 97430 Summary: internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/97430] [10/11 Regression] internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884

2020-10-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97430 Marek Polacek changed: What|Removed |Added Summary|internal compiler error: in |[10/11 Regression] internal

[Bug target/97431] New: [SH] Python crashes with 'Segmentation fault with -finline-small-functions

2020-10-14 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97431 Bug ID: 97431 Summary: [SH] Python crashes with 'Segmentation fault with -finline-small-functions Product: gcc Version: 10.2.0 URL: https://buildd.debian.org/status/fe

[Bug c++/97432] New: Casting away constness in the drafts [conv.qual] a cv-decomposition exists in the following examples but fails in gcc

2020-10-14 Thread peifeng2005 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97432 Bug ID: 97432 Summary: Casting away constness in the drafts [conv.qual] a cv-decomposition exists in the following examples but fails in gcc Product: gcc Version:

[Bug c++/97432] Casting away constness in the drafts [conv.qual] a cv-decomposition exists in the following examples but fails in gcc

2020-10-14 Thread peifeng2005 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97432 --- Comment #1 from Ray Zhang --- Providing more context with the first example (also applies for the rest): 1) // pointer to array - works in clang (trunk), // works in gcc (trunk) reinterpret_cast(x); T1: const pointer to const point

[Bug c++/97433] New: C++20 Coroutines, Unexpected reordering of await_resume, return_value and yield_value

2020-10-14 Thread davidledger at live dot com.au via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97433 Bug ID: 97433 Summary: C++20 Coroutines, Unexpected reordering of await_resume, return_value and yield_value Product: gcc Version: 11.0 Status: UNCONFIRMED Seve

[Bug target/97431] [SH] Python crashes with 'Segmentation fault with -finline-small-functions

2020-10-14 Thread bugdal at aerifal dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97431 --- Comment #1 from Rich Felker --- Do you have a complete disassembly of the function it crashed in and register dump at the point of crash? That would help.

[Bug c/97434] New: Missed dead code optimization from data flow analysis

2020-10-14 Thread jwerner at chromium dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97434 Bug ID: 97434 Summary: Missed dead code optimization from data flow analysis Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug c++/97430] [10/11 Regression] internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884

2020-10-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97430 --- Comment #2 from Marek Polacek --- A test without a lambda that ICEs with -std=c++14 too: enum E : int { F }; struct X { E e{F}; }; constexpr X x[1]; auto foo () { return x[0].e; } Note that we don't ICE if the X's member is changed to

[Bug target/97431] [SH] Python crashes with 'Segmentation fault with -finline-small-functions

2020-10-14 Thread ysato at users dot sourceforge.jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97431 --- Comment #2 from Yoshinori Sato --- Since 0x296318e8 is data, we need to investigate where we jumped. The backtrace looks normal, so I think you're getting anomalous jumps when optimizing long_richcompare.

[Bug c++/97430] [10/11 Regression] internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884

2020-10-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97430 --- Comment #3 from Marek Polacek --- And that also means that this: enum E : int { F }; struct X { E e{F}; }; constexpr X x[1]{}; constexpr auto foo () { return x[0].e; } constexpr auto a = foo (); started to ICE earlier, since r10-6437

[Bug c++/97430] [10/11 Regression] internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884

2020-10-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97430 --- Comment #4 from Marek Polacek --- This ought to fix it, though it's completely untested: --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -3661,6 +3661,10 @@ cxx_eval_array_reference (const constexpr_ctx *ctx, tree t, { tree

[Bug c++/97430] [10/11 Regression] internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:3884

2020-10-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97430 --- Comment #5 from Marek Polacek --- ...which should also fix Bug 96241 so these in fact are duplicates.

[Bug tree-optimization/97424] Warn on invalid shift amount after inlining

2020-10-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97424 Richard Biener changed: What|Removed |Added Severity|normal |enhancement Version|unknown

[Bug testsuite/97426] [11 regression] new test case gcc.dg/ipa/modref-1.c fails

2020-10-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97426 Richard Biener changed: What|Removed |Added Target Milestone|--- |11.0

[Bug c++/97435] New: Lifetime of temporaries not correctly extending when optiimzation are enabled

2020-10-14 Thread chris at chrissavoie dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97435 Bug ID: 97435 Summary: Lifetime of temporaries not correctly extending when optiimzation are enabled Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/97428] -O3 is great for basic AoSoA packing of complex arrays, but horrible one step above the basic

2020-10-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97428 Richard Biener changed: What|Removed |Added Last reconfirmed||2020-10-15 Keywords|

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-14 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 Alan Modra changed: What|Removed |Added Target||powerpc64le-linux, |

[Bug fortran/97408] Handle ac-do-variable KIND argument to intrinsics

2020-10-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97408 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org Keyw

<    1   2