[Bug target/86591] [9 regression] gcc.target/powerpc/builtins-1.c fails starting with r261904

2018-07-19 Thread carll at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86591 --- Comment #1 from Carl Love --- The builtins-1.c test fails on AIX. Again looks like the count should be 1 not 7 for AIX and linux. There is an additional failure on AIX for test file altivec-1-runnable.c. Looks like the compiler options

[Bug libstdc++/86595] New: directory_entry::refresh(error_code&) should be noexcept.

2018-07-19 Thread eric at efcs dot ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86595 Bug ID: 86595 Summary: directory_entry::refresh(error_code&) should be noexcept. Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/84047] [6/7/8/9 Regression] missing -Warray-bounds on an out-of-bounds index into an array

2018-07-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84047 --- Comment #8 from Martin Sebor --- Author: msebor Date: Thu Jul 19 23:36:34 2018 New Revision: 262893 URL: https://gcc.gnu.org/viewcvs?rev=262893=gcc=rev Log: PR tree-optimization/84047 - missing -Warray-bounds on an out-of-bounds index into

[Bug tree-optimization/83776] [6/7/8/9 Regression] missing -Warray-bounds indexing past the end of a string literal

2018-07-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83776 --- Comment #6 from Martin Sebor --- Author: msebor Date: Thu Jul 19 23:36:34 2018 New Revision: 262893 URL: https://gcc.gnu.org/viewcvs?rev=262893=gcc=rev Log: PR tree-optimization/84047 - missing -Warray-bounds on an out-of-bounds index into

[Bug tree-optimization/83776] [6/7/8 Regression] missing -Warray-bounds indexing past the end of a string literal

2018-07-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83776 Martin Sebor changed: What|Removed |Added Summary|[6/7/8/9 Regression]|[6/7/8 Regression] missing

[Bug c++/86596] narrowing for template arugments not rejected

2018-07-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86596 --- Comment #1 from Andrew Pinski --- Most likely a dup of bug 57891.

[Bug c++/86598] New: Incorrect lexing of pp-numbers in C++11 due to hexfloat extension

2018-07-19 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86598 Bug ID: 86598 Summary: Incorrect lexing of pp-numbers in C++11 due to hexfloat extension Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

2018-07-19 Thread mattreecebentley at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471 --- Comment #23 from Matt Bentley --- > Actually, don't quote me on that - I may be thinking of the > 'reinterpret_cast<_Tp>(0)' - one of the two. Just to confirm, "reinterpret_cast(__first)" not required in this context, either

[Bug c++/86596] New: non-type template argument evaluates to an integer

2018-07-19 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86596 Bug ID: 86596 Summary: non-type template argument evaluates to an integer Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug fortran/86599] New: Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA

2018-07-19 Thread bugzilla-gcc at thewrittenword dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86599 Bug ID: 86599 Summary: Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/84047] [6/7/8 Regression] missing -Warray-bounds on an out-of-bounds index into an array

2018-07-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84047 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/86594] New: Crash on trying to capture 'this' in instantiation of generic lambda

2018-07-19 Thread zhonghao at pku dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86594 Bug ID: 86594 Summary: Crash on trying to capture 'this' in instantiation of generic lambda Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/86597] New: directory_entry::exist et al forget to clear the error_code.

2018-07-19 Thread eric at efcs dot ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86597 Bug ID: 86597 Summary: directory_entry::exist et al forget to clear the error_code. Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal

[Bug target/69401] gcc 5.3.0/6.1.0 on microblaze: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1027

2018-07-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69401 --- Comment #7 from Eric Gallager --- (In reply to Thomas Petazzoni from comment #6) > I see Eric Gallager added bug 68538 in the "See also" section. However, I > don't see how they can be related: 68538 has been fixed, and the fix was > only in

[Bug fortran/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA

2018-07-19 Thread bugzilla-gcc at thewrittenword dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86599 --- Comment #1 from The Written Word --- I get a similar error with 8.1.0.

[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

2018-07-19 Thread mattreecebentley at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471 --- Comment #24 from Matt Bentley --- Ugh. I made a mistake. Clang only throws the warning when comparing NULL with 0 without reinterpret_cast/static_cast, not when comparing pointers in general.

[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

2018-07-19 Thread mattreecebentley at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471 --- Comment #22 from Matt Bentley --- (In reply to Jonathan Wakely from comment #21) > Surely static_cast is good enough, and doesn't rule out making the function > constexpr? It may well be, how does reinterpret_cast cause constexpr to fail,

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #15 from Paolo Carlini --- Tobias, I'm currently playing with something like the attached, which seems only moderately more complex and passes all my tests so far. If you have ways to further stress it, I would be glad to hear about

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #16 from Paolo Carlini --- Created attachment 44413 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44413=edit Only draft front-end changes, no testcases

[Bug target/86560] FAIL: c-c++-common/asan/swapcontext-test-1.c

2018-07-19 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86560 --- Comment #3 from hjl at gcc dot gnu.org --- Author: hjl Date: Thu Jul 19 10:47:23 2018 New Revision: 262877 URL: https://gcc.gnu.org/viewcvs?rev=262877=gcc=rev Log: i386: Change indirect_return to function type attribute In struct

[Bug c++/58194] [DR 1344] default argument for constructor outside of class

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58194 Jonathan Wakely changed: What|Removed |Added CC||zhonghao at pku dot org.cn ---

[Bug c++/86583] [DR 1854] exception specification of explicitly defaulted destructor does not match the calculated one

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86583 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |SUSPENDED Last reconfirmed|

[Bug c++/86556] , most vexing parse, and diagnostic output

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86556 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/25814] Request for warning for parser ambiguity of function declarations and variable declarations with initializations

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814 Jonathan Wakely changed: What|Removed |Added CC||nightstrike at gmail dot com ---

[Bug c++/86569] [6/7/8/9 Regression] -Wnonnull-compare affects code generation since r233684

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86569 --- Comment #4 from Jakub Jelinek --- Created attachment 44408 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44408=edit gcc9-pr86569.patch Untested fix.

[Bug tree-optimization/86526] [9 Regression] ICE in builtin_memcpy_read_str, at builtins.c:3017

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86526 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/86255] addition of default argument on redeclaration makes this constructor a default constructor

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86255 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Version|unknown

[Bug c++/86574] ICE on std::prev with ranges::view::transform

2018-07-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86574 --- Comment #3 from Marek Polacek --- Why couldn't you? Just use -save-temps.

[Bug c++/86524] [8/9 Regression] std::less with pointer arguments not usable in static_assert in constexpr function

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86524 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/86586] New: [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 Bug ID: 86586 Summary: [6/7/8/9 Regression] -Wsign-compare affects code generation Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/86587] New: Derived-type with attributes BIND(C) and PRIVATE raises an error but standard accepts it

2018-07-19 Thread valentin.clement at env dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86587 Bug ID: 86587 Summary: Derived-type with attributes BIND(C) and PRIVATE raises an error but standard accepts it Product: gcc Version: 8.1.0 Status: UNCONFIRMED

[Bug c++/58194] [DR 1344] default argument for constructor outside of class

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58194 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2013-08-19 00:00:00 |2018-7-19 --- Comment #4 from

[Bug tree-optimization/86544] Popcount detection generates different code on C and C++

2018-07-19 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86544 ktkachov at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug target/72802] powerpc64le: -mcpu=power9 emits lxssp instruction with offset that isn't a multiple of 4

2018-07-19 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72802 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #11

[Bug debug/86585] [9 Regression] ICE in gen_member_die, at dwarf2out.c:24935

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86585 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned

[Bug c++/86524] [8/9 Regression] std::less with pointer arguments not usable in static_assert in constexpr function

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86524 --- Comment #5 from Jakub Jelinek --- Similarly, when changing: - static_assert (!foo (, )); + constexpr bool y = foo (, ); + static_assert (!y); I think the problem is that finish_static_assert evaluates the condition using

[Bug debug/86585] [9 Regression] ICE in gen_member_die, at dwarf2out.c:24935

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86585 --- Comment #2 from Richard Biener --- So the issue is that for 1.ii we do _not_ emit debug information for namespace Inkscape { class a; } but we _do_ stream its NAMESPACE_DECL which then gets tree-merged with the NAMESPACE_DECL from 2.ii

[Bug c++/86581] constexpr variable is not checked

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

[Bug target/86560] FAIL: c-c++-common/asan/swapcontext-test-1.c

2018-07-19 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86560 --- Comment #4 from hjl at gcc dot gnu.org --- Author: hjl Date: Thu Jul 19 12:00:59 2018 New Revision: 262878 URL: https://gcc.gnu.org/viewcvs?rev=262878=gcc=rev Log: i386: Test __has_attribute (__indirect_return__) The new indirect_return

[Bug tree-optimization/86570] Conditional statement doesn't trigger sincos transform (with -ffast-math)

2018-07-19 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86570 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- AFAIU, the underlying issue doesn't seem particular to float. For example, there's a similar missed optimization with divmod transform: unsigned f(unsigned x, unsigned y, unsigned a,

[Bug rtl-optimization/85805] [7/8/9 Regression] Wrong code for 64 bit comparisons on avr-gcc

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 Richard Biener changed: What|Removed |Added Priority|P3 |P2 CC|

[Bug c++/86569] [6/7/8/9 Regression] -Wnonnull-compare affects code generation since r233684

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86569 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/86524] [8/9 Regression] std::less with pointer arguments not usable in static_assert in constexpr function

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86524 --- Comment #4 from Jakub Jelinek --- It works with if constexpr (__builtin_constant_p (x < y)) return x < y;

[Bug debug/86585] [9 Regression] ICE in gen_member_die, at dwarf2out.c:24935

2018-07-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86585 Martin Liška changed: What|Removed |Added Last reconfirmed||2018-7-19 Known to work|

[Bug debug/86585] New: [9 Regression] ICE in gen_member_die, at dwarf2out.c:24935

2018-07-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86585 Bug ID: 86585 Summary: [9 Regression] ICE in gen_member_die, at dwarf2out.c:24935 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code

[Bug tree-optimization/86573] Failure to optimise passing simple values to inlined function

2018-07-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573 --- Comment #7 from Marc Glisse --- The real difference in -std=c++17 is _GLIBCXX_EXTERN_TEMPLATE. With -std=c++14, we have many extern templates which the compiler almost never inlines. This leaves existing inline functions small enough to be

[Bug c++/86580] No warning for default arguments

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86580 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/86255] addition of default argument on redeclaration makes this constructor a default constructor

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86255 --- Comment #2 from Jonathan Wakely --- *** Bug 86580 has been marked as a duplicate of this bug. ***

[Bug c++/86250] addition of default argument on redeclaration makes this constructor a default constructor

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86250 --- Comment #2 from Jonathan Wakely --- Actually three times, PR 86580 too.

[Bug c++/86469] Dwarf Error: Offset (1678049557) greater than or equal to .debug_str size (5846).

2018-07-19 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469 --- Comment #16 from rguenther at suse dot de --- On Wed, 18 Jul 2018, jg at jguk dot org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469 > > --- Comment #15 from Jonny Grant --- > Hi Richard > > I cannot reproduce DWARF errors

[Bug c++/86569] -Wnonnull-compare affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86569 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c/86584] New: Incorrect -Wsequence-point warning on structure member

2018-07-19 Thread rusty at rustcorp dot com.au
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86584 Bug ID: 86584 Summary: Incorrect -Wsequence-point warning on structure member Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/86573] Failure to optimise passing simple values to inlined function

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573 --- Comment #4 from Richard Biener --- Note we only manage to optimize it with the C++11 std::string.

[Bug c++/86250] addition of default argument on redeclaration makes this constructor a default constructor

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86250 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/86575] [7/8/9 Regression] -Wimplicit-fallthrough affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86575 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |7.4

[Bug c++/86255] addition of default argument on redeclaration makes this constructor a default constructor

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86255 --- Comment #1 from Jonathan Wakely --- *** Bug 86250 has been marked as a duplicate of this bug. ***

[Bug debug/86582] [debug] vla size reported as 0 at Og

2018-07-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86582 --- Comment #1 from Tom de Vries --- (In reply to Tom de Vries from comment #0) > By modifying main to return i, I get in addition: > ... > .uleb128 0x7# (DIE (0x77) DW_TAG_call_site_parameter) > .uleb128 0x1#

[Bug target/86557] missed vectorization with std::vector compared to icc 18

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86557 Richard Biener changed: What|Removed |Added Status|ASSIGNED|NEW

[Bug tree-optimization/86572] unsafe strlen folding of const arguments with non-const offset

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86572 --- Comment #2 from Richard Biener --- When we can detect undefined behavior we should try to behave as the user intended. For example for MEM[p_1 + 4, int] = 0; MEM[p_1, double *] = 1.; x_2 = MEM[p_1 + 4, int]; we see a must-alias and

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-07-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 Martin Liška changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug tree-optimization/86570] Conditional statement doesn't trigger sincos transform (with -ffast-math)

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86570 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment

[Bug tree-optimization/86573] Failure to optimise passing simple values to inlined function

2018-07-19 Thread s_gccbugzilla at nedprod dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573 --- Comment #5 from Niall Douglas --- Thanks for the rapid feedback. Very very interesting that -std=c++17 causes spew for the copy case https://godbolt.org/g/Xnrgg2, yet -std=c++14 or -std=c++11 does not. Is the -std=c++17 case worth opening a

[Bug middle-end/86575] -Wimplicit-fallthrough affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86575 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/86573] Failure to optimise passing simple values to inlined function

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573 --- Comment #6 from Richard Biener --- (In reply to Niall Douglas from comment #5) > Thanks for the rapid feedback. Very very interesting that -std=c++17 causes > spew for the copy case https://godbolt.org/g/Xnrgg2, yet -std=c++14 or >

[Bug target/86538] GCC should define a macro to specify if LSE is enabled or not

2018-07-19 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86538 Richard Earnshaw changed: What|Removed |Added Resolution|FIXED |WONTFIX

[Bug target/86538] GCC should define a macro to specify if LSE is enabled or not

2018-07-19 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86538 Richard Earnshaw changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/86575] -Wimplicit-fallthrough affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86575 Jakub Jelinek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug tree-optimization/80155] [7/8/9 regression] Performance regression with code hoisting enabled

2018-07-19 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80155 --- Comment #38 from prathamesh3492 at gcc dot gnu.org --- Hi, The issue can be reproduced exactly, with pr77445-2.c. I am testing with making is_digit() noinline. * Reordering SINK before PRE SPEC2006 data for building SPEC2006 with sink

[Bug c++/86569] -Wnonnull-compare affects code generation

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86569 --- Comment #2 from Richard Biener --- Can you link all the issues you find to a meta-bug (just use the one that says we want to disable -Wall in stage3?)

[Bug debug/78685] -Og generates too many ""s

2018-07-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685 --- Comment #14 from Tom de Vries --- *** Bug 86582 has been marked as a duplicate of this bug. ***

[Bug debug/86582] [debug] vla size reported as 0 at Og

2018-07-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86582 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/86040] [avr]: RAMPZ is not always cleared after loading __flashN data

2018-07-19 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86040 --- Comment #3 from Georg-Johann Lay --- ...and here is code that triggers the wrong path of the 2-byte case: typedef struct S { const __flash2 struct S *p; struct S *q; } S; const __flash2 S* func2 (const S *s) { return

[Bug c++/86574] ICE on std::prev with ranges::view::transform

2018-07-19 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86574 --- Comment #2 from tower120 --- I can't provide a preprocessed source file, but "range/v3/view/transform.hpp" source is here: https://github.com/ericniebler/range-v3

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #12 from Paolo Carlini --- Umpf. Unfortunately this doesn't work because the second time we see rot90 duplicate_decls smashes together the first two declarations and we end up with a friend declaration which has the defaults and as

[Bug c++/86590] New: Codegen regression when passing std::string by value in C++ 17 and C++ 20

2018-07-19 Thread s_gccbugzilla at nedprod dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590 Bug ID: 86590 Summary: Codegen regression when passing std::string by value in C++ 17 and C++ 20 Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity:

[Bug c++/86590] Codegen regression when passing std::string by value in C++ 17 and C++ 20

2018-07-19 Thread s_gccbugzilla at nedprod dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590 --- Comment #1 from Niall Douglas --- Quoting from bug 86573 regarding this bug: > The real difference in -std=c++17 is _GLIBCXX_EXTERN_TEMPLATE. With > -std=c++14, we have many extern templates which the compiler almost never > inlines. This

[Bug tree-optimization/86573] Failure to optimise passing simple values to inlined function

2018-07-19 Thread s_gccbugzilla at nedprod dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86573 --- Comment #8 from Niall Douglas --- Added revised bug to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590

[Bug c++/25814] Request for warning for parser ambiguity of function declarations and variable declarations with initializations

2018-07-19 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org

[Bug c++/86588] New: peculiar build issue using range-v3

2018-07-19 Thread h2+bugs at fsfe dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86588 Bug ID: 86588 Summary: peculiar build issue using range-v3 Product: gcc Version: 7.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 --- Comment #5 from Jakub Jelinek --- That is the costly variant, the already slow C++ FE will need to compute and instantiate a lot of things that aren't really needed.

[Bug rtl-optimization/85805] [7/8/9 Regression] Wrong code for 64 bit comparisons on avr-gcc

2018-07-19 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 --- Comment #7 from Segher Boessenkool --- I suspect this is because we have hard regs here, not pseudos. Not a good idea in general, which is why other targets don't do this. Perhaps it is a mode mixup in the known value tracking? Confirmed.

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 --- Comment #7 from Alexander Monakov --- Another possible compromise is to add 'bool for_warnings = false' argument to maybe_constant_value, store it along with the reduced tree in cv_cache (perhaps even by setting a flag on the tree itself?),

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 --- Comment #3 from Richard Biener --- Like with diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 1335da5e9bc..aaa56697f29 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -5322,7 +5322,6 @@ cp_build_binary_op (location_t location,

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 --- Comment #6 from Jakub Jelinek --- That said, if the -W* does't affect code generation goal is very important and we don't find any other way, perhaps the price to pay for that is acceptable. Even the PR86569 patch isn't without cost (in

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/83009] gcc.target/aarch64/store_v2vec_lanes.c fails with -mabi=ilp32

2018-07-19 Thread avieira at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83009 --- Comment #11 from avieira at gcc dot gnu.org --- Author: avieira Date: Thu Jul 19 14:03:21 2018 New Revision: 262881 URL: https://gcc.gnu.org/viewcvs?rev=262881=gcc=rev Log: [AArch64][PATCH 2/2] PR target/83009: Relax strict address checking

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 --- Comment #4 from Richard Biener --- cp_fully_fold smells like it could have side-effects as well, of course. Yeah, it calls maybe_constant_value as well ;)

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Tobias Burnus changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/86586] [6/7/8/9 Regression] -Wsign-compare affects code generation

2018-07-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 --- Comment #2 from Richard Biener --- (In reply to Jakub Jelinek from comment #1) > Yeah, I think it is a dup. There are many other cases where we call > maybe_constant_value for some warning only, and we assume it is a safe thing > to do. >

[Bug c++/86588] peculiar build issue using range-v3

2018-07-19 Thread h2+bugs at fsfe dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86588 --- Comment #1 from Hannes Hauswedell --- Created attachment 44410 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44410=edit intermediate file build with -std=c++17 -fconcepts

[Bug sanitizer/81923] [ASAN] gcc emites wrong odr asan instrumentation for glibc

2018-07-19 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81923 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #12

[Bug c++/86574] ICE on std::prev with ranges::view::transform

2018-07-19 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86574 --- Comment #4 from tower120 --- Because I don't have gcc 9 locally installed. I saw that ICE on https://wandbox.org/permlink/bPT0llOGPqouv3CM Error message says to report - I'm reporting.

[Bug c++/85558] ICE in make_rtl_for_nonlocal_decl when using static member of template class

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85558 Paolo Carlini changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #3 from

[Bug target/86589] New: [8 regression] gcc.target/powerpc/altivec-7-le.c and gcc.target/powerpc/vsx-7-be.c fail starting with r262440

2018-07-19 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86589 Bug ID: 86589 Summary: [8 regression] gcc.target/powerpc/altivec-7-le.c and gcc.target/powerpc/vsx-7-be.c fail starting with r262440 Product: gcc Version: 8.1.1

[Bug target/86591] New: [9 regression] gcc.target/powerpc/builtins-1.c fails starting with r261904

2018-07-19 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86591 Bug ID: 86591 Summary: [9 regression] gcc.target/powerpc/builtins-1.c fails starting with r261904 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity:

[Bug bootstrap/86518] Strengthen bootstrap comparison by not enabling warnings at stage3

2018-07-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86518 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/86590] Codegen regression when passing std::string by value in C++ 17 and C++ 20

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590 --- Comment #3 from Jonathan Wakely --- (In reply to Niall Douglas from comment #0) > I think it should also work by value, like it > did in C++ 11 and C++ 14. Alternatively, if the request is for better inlining when there are no explicit

[Bug c++/86590] Codegen regression when passing std::string by value in C++ 17 and C++ 20

2018-07-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86590 --- Comment #2 from Jonathan Wakely --- As Marc said, the only difference is the explicit instantiation declarations. You'll get the same in C++14 if you disable them: #include #undef _GLIBCXX_EXTERN_TEMPLATE #include // ... They're only

[Bug target/86592] New: [9 regression] gcc.target/powerpc/p8-vec-xl-xst-v2.c fails starting with r261510

2018-07-19 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86592 Bug ID: 86592 Summary: [9 regression] gcc.target/powerpc/p8-vec-xl-xst-v2.c fails starting with r261510 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity:

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()

2018-07-19 Thread alex_y_xu at yahoo dot ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 --- Comment #17 from alex_y_xu at yahoo dot ca --- seems like this should be RESOLVED FIXED?

  1   2   >