[Bug tree-optimization/87609] New: miscompilation with restrict and loop

2018-10-13 Thread comexk at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87609 Bug ID: 87609 Summary: miscompilation with restrict and loop Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimiza

[Bug target/87599] Broadcasting scalar to vector uses stack unnecessarily on x86

2018-10-13 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87599 --- Comment #6 from H.J. Lu --- (In reply to Alexander Monakov from comment #5) > I think we should use punpcklqdq here rather than movddup, because (at least > on Intel) it has same latency, and same-or-better throughput. It may be ok > to use m

[Bug rtl-optimization/87608] New: Very slow swap operations

2018-10-13 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87608 Bug ID: 87608 Summary: Very slow swap operations Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization

[Bug c++/87607] New: Cannot use fold expression in static_assert

2018-10-13 Thread havhoi92 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87607 Bug ID: 87607 Summary: Cannot use fold expression in static_assert Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug fortran/58786] module function with passed character array of explicit length causes an ICE

2018-10-13 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58786 --- Comment #5 from Tobias Burnus --- In trans-expr.c's gfc_get_interface_mapping_array(), we have: 3870 type = gfc_typenode_for_spec (&sym->ts); Unfortunately, in the failing case, one has: sym->ts.u.cl.backend_decl == NULL_TREE while in

[Bug fortran/58786] module function with passed character array of explicit length causes an ICE

2018-10-13 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58786 --- Comment #4 from Tobias Burnus --- (In reply to Jürgen Reuter from comment #2) > Tobias, after your fix as of today on PR58787, is that original issue also > fixed? No, I only moved things around to avoid crashing after an error occurred. Re

[Bug fortran/87606] New: Wrong array reference out of bounds warning

2018-10-13 Thread AstroFloyd at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87606 Bug ID: 87606 Summary: Wrong array reference out of bounds warning Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortr

[Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?

2018-10-13 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78351 --- Comment #22 from Jerry DeLisle --- Created attachment 44837 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44837&action=edit Preliminary Patch The attached patch appears to fix this. I am thinking about not doing the check if -std=f95,

[Bug tree-optimization/63537] [6 Regression] Missed optimization: Loop unrolling adds extra copy when returning aggregate

2018-10-13 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63537 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org S

[Bug rtl-optimization/71779] [6 regression] isl miscompiled with -mabi=ilp32

2018-10-13 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71779 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug target/77881] [6 Regression] Non-optimal signed comparison on x86_64 since r146817

2018-10-13 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77881 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug c++/87605] Ternary uses explicit copy constructor for lvalue-to-rvalue conversion

2018-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87605 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNC

[Bug target/86383] [9 Regression] arm-netbsdelf cross compiler fails in selftests

2018-10-13 Thread coypu at sdf dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86383 --- Comment #12 from coypu --- to clarify, I still had trouble building oabi, but it fails elsewhere now.

[Bug target/86383] [9 Regression] arm-netbsdelf cross compiler fails in selftests

2018-10-13 Thread coypu at sdf dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86383 --- Comment #11 from coypu --- That cross builds with trunk. For attempting to build oabi it wasn't enough to not specify target_cpu_cname=arm6, because the default cpu is still arm6. in gcc/config.gcc:3989 right now target_cpu_cn

[Bug target/86383] [9 Regression] arm-netbsdelf cross compiler fails in selftests

2018-10-13 Thread coypu at sdf dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86383 --- Comment #10 from coypu --- Created attachment 44836 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44836&action=edit netbsd eabi support

[Bug rtl-optimization/65135] [6 Regression] Performance regression in pic mode after r220674.

2018-10-13 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65135 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug fortran/87566] ICE with class(*) and select

2018-10-13 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87566 --- Comment #6 from Paul Thomas --- Created attachment 44835 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44835&action=edit Fix for the PR Hi Tobias, The problem that you found occurs in trans-expr.c (gfc_conv_class_to_class). Once foun

[Bug c++/87605] Ternary uses explicit copy constructor for lvalue-to-rvalue conversion

2018-10-13 Thread namark at disroot dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87605 --- Comment #2 from namark --- (In reply to Andrew Pinski from comment #1) > Except A() is a temp so it cannot be a lvalue. Not sure what you mean. As I understood 'a' is the lvalue, being converted to an rvalue by the ternary. I'm not very good

[Bug c++/87605] Ternary uses explicit copy constructor for lvalue-to-rvalue conversion

2018-10-13 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87605 --- Comment #1 from Andrew Pinski --- Except A() is a temp so it cannot be a lvalue.

[Bug c++/87605] New: Ternary uses explicit copy constructor for lvalue-to-rvalue conversion

2018-10-13 Thread namark at disroot dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87605 Bug ID: 87605 Summary: Ternary uses explicit copy constructor for lvalue-to-rvalue conversion Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/41178] Ambiguity checks for type-bound and interface operator calls

2018-10-13 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41178 Jürgen Reuter changed: What|Removed |Added CC||juergen.reuter at desy dot de --- Commen

[Bug fortran/54613] [F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=

2018-10-13 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54613 Thomas Koenig changed: What|Removed |Added Attachment #43200|0 |1 is obsolete|

[Bug libstdc++/87604] memmove without std::allocator

2018-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87604 --- Comment #1 from Jonathan Wakely --- We would just need to expose allocator_traits::__has_construct which already does the detection (and is how allocator_traits decides whether to use its default). As our std::allocator does still have a con

[Bug c++/87603] [C++17] noexcept isn't special cased for constant expressions anymore

2018-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87603 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/87604] memmove without std::allocator

2018-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87604 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

2018-10-13 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803 --- Comment #7 from Alexander Monakov --- Sorry, should have double-checked when commenting. I see RTL LIM simply considers all calls non-invariant in check_maybe_invariant. I wonder if it would make sense to represent tls abi calls as unspecs u

[Bug target/87599] Broadcasting scalar to vector uses stack unnecessarily on x86

2018-10-13 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87599 --- Comment #5 from Alexander Monakov --- I think we should use punpcklqdq here rather than movddup, because (at least on Intel) it has same latency, and same-or-better throughput. It may be ok to use movddup when broadcasting from a memory sourc

[Bug target/87599] Broadcasting scalar to vector uses stack unnecessarily on x86

2018-10-13 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87599 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

2018-10-13 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82803 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Comment

[Bug libstdc++/87604] New: memmove without std::allocator

2018-10-13 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87604 Bug ID: 87604 Summary: memmove without std::allocator Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority