[Bug fortran/93158] New: Coarray ICE when module and submodule are in separate files

2020-01-04 Thread damian at sourceryinstitute dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93158 Bug ID: 93158 Summary: Coarray ICE when module and submodule are in separate files Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Pri

[Bug target/93141] Missed optimization : Use of adc when checking overflow

2020-01-04 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141 --- Comment #7 from Madhur Chauhan --- As far as I can tell optimal asm generated should be like: mov-load from on array mul or preferably mulx with a memory source from the other array add + adc into 128-bit answer register adc reg, 0 to accum

[Bug target/93141] Missed optimization : Use of adc when checking overflow

2020-01-04 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141 --- Comment #6 from Madhur Chauhan --- As far as I can tell optimal asm generated should be like: mov-load from on array mul or preferably mulx with a memory source from the other array add + adc into 128-bit answer register adc reg, 0 to accum

[Bug target/93157] New: gcc should use -mabi=elfv2 on powerpc64-*-linux-*musl* target by default.

2020-01-04 Thread gyakovlev at gentoo dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93157 Bug ID: 93157 Summary: gcc should use -mabi=elfv2 on powerpc64-*-linux-*musl* target by default. Product: gcc Version: unknown Status: UNCONFIRMED Severity: nor

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #6 from Andrew Pinski --- (In reply to jim from comment #5) > (In reply to Andrew Pinski from comment #4) > > (In reply to jim from comment #3) > > > Hi Andrew, thank you for the prompt investigation. > > > I'm probably just being den

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread jim at meyering dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #5 from jim at meyering dot net --- (In reply to Andrew Pinski from comment #4) > (In reply to jim from comment #3) > > Hi Andrew, thank you for the prompt investigation. > > I'm probably just being dense, but how can the compiler ever

[Bug c++/93046] [10 Regression] ICE in cp_gimplify_init_expr

2020-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93046 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/93046] [10 Regression] ICE in cp_gimplify_init_expr

2020-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93046 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Sun Jan 5 00:49:14 2020 New Revision: 279884 URL: https://gcc.gnu.org/viewcvs?rev=279884&root=gcc&view=rev Log: PR c++/93046 * cp-gimplify.c (cp_gimplify_init_expr): Don'

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #4 from Andrew Pinski --- (In reply to jim from comment #3) > Hi Andrew, thank you for the prompt investigation. > I'm probably just being dense, but how can the compiler ever generate code > for that null_ptr function that results in

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread jim at meyering dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #3 from jim at meyering dot net --- Hi Andrew, thank you for the prompt investigation. I'm probably just being dense, but how can the compiler ever generate code for that null_ptr function that results in -1? Your comment shows you kn

[Bug c/92086] Provide way to avoid saving callee-saved registers in functions without callers

2020-01-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92086 --- Comment #7 from Segher Boessenkool --- This is related to the compiler saving the return address for noreturn sibcalls, like in void g(void) __attribute__((noreturn)); void f(void) { g(); } Maybe we should have an option like "-fimprove

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 --- Comment #2 from Andrew Pinski --- Note the best way to implement null_ptr really (without the need for the attribute is the following): /* Return NULL. Usual compilers are not able to infer something about the return value. */ static voi

[Bug tree-optimization/93156] abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/93156] New: abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa

2020-01-04 Thread jim at meyering dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93156 Bug ID: 93156 Summary: abused nonnull attribute evokes new segfault in gcc 10 since Nov 4 commit, 0fb958ab8aa Product: gcc Version: 10.0 Status: UNCONFIRMED Sev

[Bug tree-optimization/82224] Strict-aliasing not noticing valid aliasing of two unions with active members

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82224 --- Comment #13 from Andrew Pinski --- See http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_236.htm http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1409.htm

[Bug tree-optimization/45734] [DR 1116] Devirtualization results in wrong-code

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45734 Andrew Pinski changed: What|Removed |Added Status|SUSPENDED |RESOLVED Resolution|---

[Bug tree-optimization/45734] [DR 1116] Devirtualization results in wrong-code

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45734 Andrew Pinski changed: What|Removed |Added CC||ch3root at openwall dot com --- Comment

[Bug tree-optimization/93153] Wrong optimization while devirtualizing after placement new over local var

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93153 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/93155] Error when compiling Boost MP11 mp_similar

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93155 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFI

[Bug c++/93155] New: Error when compiling Boost MP11 mp_similar

2020-01-04 Thread tobias.loew at steag dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93155 Bug ID: 93155 Summary: Error when compiling Boost MP11 mp_similar Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/93152] Order of template args in decl makes derived_from expect wrong base / causes ICE

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152 DB changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill |

[Bug c++/93154] can't constrain captured functions to be invocable with lambda arg - unknown "constraints not satisfied"

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93154 --- Comment #2 from DB --- A reduced version, without a variadic pack of functions... ``` #include void f1(int) {} template auto make_lambda(F f) { return [f] requires std::invocable (Arg a)

[Bug c++/93154] can't constrain captured functions to be invocable with lambda arg - unknown "constraints not satisfied"

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93154 --- Comment #1 from DB --- > preprocessed source: Ah, whoops. It's not interesting anyway, but maybe I just don't remember how to do it right... I just passed `-E`.

[Bug c++/93154] New: can't constrain captured functions to be invocable with lambda arg - unknown "constraints not satisfied"

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93154 Bug ID: 93154 Summary: can't constrain captured functions to be invocable with lambda arg - unknown "constraints not satisfied" Product: gcc Version: 10.0 Status: UNCONFI

[Bug c++/93152] Order of template args in decl makes derived_from expect wrong base / causes ICE

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152 --- Comment #4 from DB --- Simplifying further, by getting rid of the Other structs/arguments, we get: ``` #include #include struct WeirdBase {}; struct WeirdSub: WeirdBase {}; template WeirdSub1> auto make_lambda() { return [](std:

[Bug c++/93152] Order of template args in decl makes derived_from expect wrong base / causes ICE

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152 --- Comment #3 from DB --- The pointer-to-member-function and template argument deduction through it is not required; rather, simply the presence of any other template argument in the 1st position is sufficient: ``` #include #include struct W

[Bug c++/93050] throw within constructor initialisation list causes invalid free in destructor

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93050 --- Comment #1 from DB --- This bug does not seem to occur with g++ (Debian 9.2.1-21) 9.2.1 20191130 so either it was fixed between 9.2.0 and 9.2.1, or something peculiar to MSYS2/MinGW64/Windows is causing it.

[Bug tree-optimization/93153] New: Wrong optimization while devirtualizing after placement new over local var

2020-01-04 Thread ch3root at openwall dot com
c -Wall -Wextra -O3 test.cc && ./a.out Y -- gcc x86-64 version: g++ (GCC) 10.0.0 20200104 (experimental) --

[Bug c++/93152] Order of template args in decl makes derived_from expect wrong base / causes ICE

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152 --- Comment #2 from DB --- another reduction: the Args... are not required in the templates (since the member function takes none), and the same failure/success patterns occur either way.

[Bug c++/93152] Order of template arguments in declaration makes std::derived_from fail due to expecting wrong base class

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152 --- Comment #1 from DB --- I believe this is also probably related to the fact that the WeirdSub1 template argument is coming via a pointer-to-member function, although I haven't 100% narrowed that down yet, I don't think. The mentioned ICE can

[Bug c++/93152] New: Order of template args in decl makes std::invocable fail

2020-01-04 Thread db0451 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152 Bug ID: 93152 Summary: Order of template args in decl makes std::invocable fail Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priori

[Bug c/92086] Provide way to avoid saving callee-saved registers in functions without callers

2020-01-04 Thread js at alien8 dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92086 Julian Stecklina changed: What|Removed |Added CC||js at alien8 dot de --- Comment #6 fr

[Bug fortran/44960] non-array used as an array, identified as an external function

2020-01-04 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44960 Thomas Koenig changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug libstdc++/93151] New: system_error header fails to compile with -D_XOPEN_SOURCE=600

2020-01-04 Thread karen.arutyunov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93151 Bug ID: 93151 Summary: system_error header fails to compile with -D_XOPEN_SOURCE=600 Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/91369] Implement P0784R7: constexpr new

2020-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91369 --- Comment #27 from Jakub Jelinek --- Created attachment 47590 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47590&action=edit gcc10-pr91369-2.patch Untested patch.

[Bug fortran/91640] [9/10 Regression] ICE: gimplification failed (contiguous expr)

2020-01-04 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91640 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|tkoenig at gcc do

[Bug c++/55004] [meta-bug] constexpr issues

2020-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 91369, which changed state. Bug 91369 Summary: Implement P0784R7: constexpr new https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91369 What|Removed |Added ---

[Bug c++/88323] implement C++20 language features.

2020-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88323 Bug 88323 depends on bug 91369, which changed state. Bug 91369 Summary: Implement P0784R7: constexpr new https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91369 What|Removed |Added ---

[Bug c++/91369] Implement P0784R7: constexpr new

2020-01-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91369 Jakub Jelinek changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug fortran/68950] [fortran] gfc_format_decoder cannot handle %qE

2020-01-04 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68950 --- Comment #14 from Tom de Vries --- (In reply to Tobias Burnus from comment #13) > I believe this has been fixed properly by the patch for PR fortran/79886 in > r246203 by adding the following to gcc/fortran/error.c's gfc_format_decoder: > >

[Bug tree-optimization/93150] New: (A&N) == CST1 &( ((A&M)==CST2) | ((A&O)==CST3) ) is not simplified

2020-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93150 Bug ID: 93150 Summary: (A&N) == CST1 &( ((A&M)==CST2) | ((A&O)==CST3) ) is not simplified Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: missed-optimi

[Bug target/87455] sse_packed_single_insn_optimal is suboptimal on Zen

2020-01-04 Thread fanael4 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87455 --- Comment #6 from Fanael --- Any hope of getting this fixed in GCC 10? It should just be a matter of removing Zen[12] from X86_TUNE_SSE_PACKED_SINGLE_INSN_OPTIMAL.

[Bug fortran/91640] [9/10 Regression] ICE: gimplification failed (contiguous expr)

2020-01-04 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91640 --- Comment #5 from Tobias Burnus --- Author: burnus Date: Sat Jan 4 08:19:51 2020 New Revision: 279879 URL: https://gcc.gnu.org/viewcvs?rev=279879&root=gcc&view=rev Log: Fortran] PR91640 – Fix call to contiguous dummy PR fortran/91640