From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34759 invoked by alias); 10 Aug 2018 09:44:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 34592 invoked by uid 48); 10 Aug 2018 09:44:24 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/85559] [meta-bug] Improve conditional move Date: Fri, 10 Aug 2018 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00774.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85559 Bug 85559 depends on bug 83610, which changed state. Bug 83610 Summary: Come up with __builtin_expect_with_probabilty https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83610 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-612483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:44:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33913 invoked by alias); 10 Aug 2018 09:44:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33870 invoked by uid 55); 10 Aug 2018 09:44:12 -0000 From: "richard.earnshaw at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/86904] Column numbers ignore tab characters Date: Fri, 10 Aug 2018 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: richard.earnshaw at arm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00772.txt.bz2 Content-length: 6332 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86904 --- Comment #1 from richard.earnshaw at arm dot com --- On 09/08/18 21:08, dmalcolm at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86904 >=20 > Bug ID: 86904 > Summary: Column numbers ignore tab characters > Product: gcc > Version: unknown > Status: UNCONFIRMED > Keywords: diagnostic > Severity: normal > Priority: P3 > Component: other > Assignee: unassigned at gcc dot gnu.org > Reporter: dmalcolm at gcc dot gnu.org > Target Milestone: --- >=20 > As noted in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D19165#c21 : >=20 > /* Both gcc and emacs number source *lines* starting at 1, but > they have differing conventions for *columns*. >=20 > GCC uses a 1-based convention for source columns, > whereas Emacs's M-x column-number-mode uses a 0-based convention. >=20 > For example, an error in the initial, left-hand > column of source line 3 is reported by GCC as: >=20 > some-file.c:3:1: error: ...etc... >=20 > On navigating to the location of that error in Emacs > (e.g. via "next-error"), > the locus is reported in the Mode Line > (assuming M-x column-number-mode) as: >=20 > some-file.c 10% (3, 0) >=20 > i.e. "3:1:" in GCC corresponds to "(3, 0)" in Emacs. */ >=20 > In terms of 0 vs 1, GCC complies with the GNU standards here: > https://www.gnu.org/prep/standards/html_node/Errors.html >=20 > However our "column numbers" are also simply a 1-based byte-count, so a t= ab > character is treated by us as simply an increment of 1 right now. >=20 > (see also PR 49973, which covers the case of multibyte characters). >=20 > It turns out that we convert tab characters to *single* space characters = when > printing source code. >=20 > This behavior has been present since Manu first implemented > -fdiagnostics-show-caret in r186305 (aka > 5a9830842f69ebb059061e26f8b0699cbd85121e, PR 24985), where it was this lo= gic > (there in diagnostic.c's diagnostic_show_locus): > char c =3D *line =3D=3D '\t' ? ' ' : *line; > pp_character (context->printer, c); >=20 > (that logic is now in diagnostic-show-locus.c in layout::print_source_lin= e) >=20 > This is arguably a bug, but it's intimately linked to the way in which we= track > "column numbers". >=20 > Our "column numbers" are currently simply a 1-based byte-count, I believe= , so a > tab character is treated by us as simply an increment of 1 right now. >=20 > There are similar issues with encodings that aren't 1 byte per character = (e.g. > non-ASCII unicode characters), which are being tracked in PR 49973. >=20 > Presumably, when we print source lines containing tab characters, we shou= ld > emit a number of spaces to reach a tab stop. >=20 > Consider a diagnostic with a multiline range covering the > following source (and beyond): >=20 > indent: 6 (tabs: 0, spaces: 6) > indent: 7 (tabs: 0, spaces: 7) > indent: 8 (tabs: 1, spaces: 0) > indent: 9 (tabs: 1, spaces: 1) >=20 > i.e.: >=20 > " indent: 6 (tabs: 0, spaces: 6)\n" > " indent: 7 (tabs: 0, spaces: 7)\n" > "\tindent: 8 (tabs: 1, spaces: 0)\n" > "\t indent: 9 (tabs: 1, spaces: 1)\n" >=20 > Currently diagnostic_show_locus prints: >=20 > indent: 6 (tabs: 0, spaces: 6) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > indent: 7 (tabs: 0, spaces: 7) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > indent: 8 (tabs: 1, spaces: 0) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > indent: 9 (tabs: 1, spaces: 1) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > i.e: > " indent: 6 (tabs: 0, spaces: 6)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" > " indent: 7 (tabs: 0, spaces: 7)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" > " indent: 8 (tabs: 1, spaces: 0)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" > " indent: 9 (tabs: 1, spaces: 1)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" >=20 > which misrepresents the indentation of the user's code. >=20 > It should respect tabstops, and print: >=20 > indent: 6 (tabs: 0, spaces: 6) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > indent: 7 (tabs: 0, spaces: 7) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > indent: 8 (tabs: 1, spaces: 0) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > indent: 9 (tabs: 1, spaces: 1) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > i.e.: >=20 > " indent: 6 (tabs: 0, spaces: 6)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" > " indent: 7 (tabs: 0, spaces: 7)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" > " indent: 8 (tabs: 1, spaces: 0)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" > " indent: 9 (tabs: 1, spaces: 1)\n" > " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" >=20 > We should also handle erroneous leading spaces before a tab, so that e.g. >=20 > " \tfoo" >=20 > should be printed as if it were: >=20 > "\tfoo" >=20 > (given that that's what the user's editor is probably printing it as). >=20 > Similarly, we should presumably print "8" for the column number for the '= f' of > "foo". However, IDEs are expecting GCC's existing behavior, so we should > probably add a command-line option for controlling this. >=20 > Adding a left margin with line numbers (as of r263450) doesn't change thi= s bug, > but makes fixing it slightly more complicated. >=20 > Maybe: > -fdiagnostics-x-coord=3Dbytes : count of bytes > -fdiagnostics-x-coord=3Dcharacters : count of characters (not special-c= asing > tab) > -fdiagnostics-x-coord=3Dcolumns : count of columns: as per characters, = but with > tabs doing tabstops how about -fdiagnostics-x-coord=3Dvisual-[n] Where n is the size of a hard tab? Some folks change the tab stop to 4, for example. Or maybe ...coord=3Dtab[-n], where -n defaults to "-8". R. > (currently we use "bytes" Not sure if we need "characters") >=20 > I'm thinking that internally, we should continue to track byte offsets, b= ut > make the option affect the presentation of the number in diagnostics*.c. >=20 > (should it affect -fdiagnostics-parseable-fixits ? > see also the Emacs RFE for parseable fixits: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25987 ) > >>From gcc-bugs-return-612486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:44:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36152 invoked by alias); 10 Aug 2018 09:44:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36101 invoked by uid 48); 10 Aug 2018 09:44:51 -0000 From: "fro0m.spam at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] New: static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Fri, 10 Aug 2018 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fro0m.spam at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00775.txt.bz2 Content-length: 1380 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 Bug ID: 86908 Summary: static_cast(&derivedClassO bject)->virtualMehod() calls base version of virtualMethod() Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fro0m.spam at gmail dot com Target Milestone: --- #include #include #include #include class BaseStrategy{ public: virtual void doIt() { printf("base do it\n"); }; }; class AStrategy : public BaseStrategy=20 { public: void doIt() { printf("A do it\n"); }; }; class BStrategy : public BaseStrategy=20 { public: void doIt() { printf("B do it\n"); }; }; int main()=20 { BaseStrategy strategy; BaseStrategy* strategyPtr =3D &strategy; strategyPtr->doIt(); new(&strategy) AStrategy; static_cast(&strategy)->doIt(); strategyPtr->doIt(); } Output in gcc 4.9 and gcc 9.0 is base do it base do it A do it the right output must be (according to standard and behavior of MSVC 2015 a= nd clang 6) is base do it A do it A do it >>From gcc-bugs-return-612484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:44:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34635 invoked by alias); 10 Aug 2018 09:44:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34569 invoked by uid 48); 10 Aug 2018 09:44:23 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/83610] Come up with __builtin_expect_with_probabilty Date: Fri, 10 Aug 2018 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00773.txt.bz2 Content-length: 439 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83610 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #8 from Martin Li=C5=A1ka --- Implemented. >>From gcc-bugs-return-612487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:06:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121844 invoked by alias); 10 Aug 2018 10:06:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121786 invoked by uid 48); 10 Aug 2018 10:06:28 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error Date: Fri, 10 Aug 2018 10:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00776.txt.bz2 Content-length: 893 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86900 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW CC| |hubicka at gcc dot gnu.org Target Milestone|--- |8.3 Summary|-gdwarf-5 -O2 |[8/9 Regression] -gdwarf-5 |-ffunction-sections =3D |-O2 -ffunction-sections = =3D |assembler error |assembler error --- Comment #3 from Martin Li=C5=A1ka --- Minimal test-case: $ cat pr86900.cpp class a; class b { public: b(a); }; class a { public: a(int); ~a(); }; void c(int f) { a d(0); b e(d); } Started with r249885. >>From gcc-bugs-return-612489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:14:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3889 invoked by alias); 10 Aug 2018 10:14:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3787 invoked by uid 48); 10 Aug 2018 10:14:45 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction Date: Fri, 10 Aug 2018 10:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00778.txt.bz2 Content-length: 470 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82418 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #9 from Alexander Monakov --- Fixed for gcc-9, thanks for the report. >>From gcc-bugs-return-612488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:14:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2714 invoked by alias); 10 Aug 2018 10:14:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2631 invoked by uid 55); 10 Aug 2018 10:14:10 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction Date: Fri, 10 Aug 2018 10:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00777.txt.bz2 Content-length: 678 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82418 --- Comment #8 from Alexander Monakov --- Author: amonakov Date: Fri Aug 10 10:13:37 2018 New Revision: 263467 URL: https://gcc.gnu.org/viewcvs?rev=3D263467&root=3Dgcc&view=3Drev Log: i386: do not use SImode mul-highpart on 64-bit (PR 82418) PR target/82418 * config/i386/i386.md (mul3_highpart): Use DWIH mode itera= tor instead of SWI48. testsuite/ * gcc.target/i386/pr82418.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/pr82418.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.md trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:18:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8411 invoked by alias); 10 Aug 2018 10:18:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8296 invoked by uid 48); 10 Aug 2018 10:18:51 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Fri, 10 Aug 2018 10:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00779.txt.bz2 Content-length: 707 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely --- No, your program has undefined behaviour. To make it valid you either need = to use std::launder, or use the pointer that is returned by the placement new. The compiler is allowed to assume that the dynamic type of &strategy does n= ot change (that's why you need to use std::launder). >>From gcc-bugs-return-612491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:20:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14776 invoked by alias); 10 Aug 2018 10:20:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11688 invoked by uid 48); 10 Aug 2018 10:20:53 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Fri, 10 Aug 2018 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00780.txt.bz2 Content-length: 289 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 --- Comment #2 from Jonathan Wakely --- This makes the program correct: strategyPtr =3D new(&strategy) AStrategy; static_cast(std::launder(&strategy))->doIt(); strategyPtr->doIt(); >>From gcc-bugs-return-612492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:42:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110052 invoked by alias); 10 Aug 2018 10:42:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109986 invoked by uid 48); 10 Aug 2018 10:41:56 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/86904] Column numbers ignore tab characters Date: Fri, 10 Aug 2018 10:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00781.txt.bz2 Content-length: 932 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86904 --- Comment #2 from David Malcolm --- (In reply to richard.earnshaw from comment #1) > On 09/08/18 21:08, dmalcolm at gcc dot gnu.org wrote: [...snip...] > > Maybe: > > -fdiagnostics-x-coord=3Dbytes : count of bytes > > -fdiagnostics-x-coord=3Dcharacters : count of characters (not special= -casing > > tab) > > -fdiagnostics-x-coord=3Dcolumns : count of columns: as per characters= , but with > > tabs doing tabstops >=20 > how about -fdiagnostics-x-coord=3Dvisual-[n] >=20 > Where n is the size of a hard tab? Some folks change the tab stop to 4, > for example. Or maybe ...coord=3Dtab[-n], where -n defaults to "-8". The C family of frontends already has: -ftabstop=3D Distance between tab stops for column reporting. which IIRC is currently only used by -Wmisleading-indentation. I guess it could be moved to common.opt. >>From gcc-bugs-return-612493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:46:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5111 invoked by alias); 10 Aug 2018 10:46:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4796 invoked by uid 48); 10 Aug 2018 10:45:56 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86843] Allow separating debug mode into ABI-changing part and rest Date: Fri, 10 Aug 2018 10:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00782.txt.bz2 Content-length: 1917 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86843 --- Comment #2 from Jonathan Wakely --- Hmm, many of the checks in algorithms rely on the fact that the iterators a= re Debug Mode iterators (e.g. to check that the end iterator is reachable from= the begin one, or that the iterators are not singular). That means the checks a= re not possible without using the Debug Mode containers, which means ABI chang= es. These don't depend on debug mode iterators: // Verify that [_First, _Last) forms a non-empty iterator range. #define __glibcxx_check_non_empty_range(_First,_Last) \ // Verify that the subscript _N is less than the container's size. #define __glibcxx_check_subscript(_N) \ // Verify that the bucket _N is less than the container's buckets count. #define __glibcxx_check_bucket_index(_N) \ _GLIBCXX_DEBUG_VERIFY(_N < this->bucket_count(), \ // Verify that the container is nonempty #define __glibcxx_check_nonempty() \ _GLIBCXX_DEBUG_VERIFY(! this->empty(), \ // Verify that load factor is positive #define __glibcxx_check_max_load_factor(_F) \ _GLIBCXX_DEBUG_VERIFY(_F > 0.0f, \ #define __glibcxx_check_equal_allocs(_This, _Other) \ _GLIBCXX_DEBUG_VERIFY(_This.get_allocator() =3D=3D _Other.get_allocator(), = \ // Verify that a predicate is irreflexive #define __glibcxx_check_irreflexive(_First,_Last) \ _GLIBCXX_DEBUG_VERIFY(_First =3D=3D _Last || !(*_First < *_First), = \ It looks like the is_sorted and is_partitioned and is_heap checks could be enabled too (and they're definitely not OK for _GLIBCXX_ASSERTIONS because = they change the algorithmic complexity). >>From gcc-bugs-return-612494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:50:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13744 invoked by alias); 10 Aug 2018 10:50:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13689 invoked by uid 48); 10 Aug 2018 10:50:11 -0000 From: "antoshkka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86909] New: Missing common subexpression elimination for types other than int Date: Fri, 10 Aug 2018 10:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: antoshkka at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00783.txt.bz2 Content-length: 2428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86909 Bug ID: 86909 Summary: Missing common subexpression elimination for types other than int Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: antoshkka at gmail dot com Target Milestone: --- Consider the following minimized example of the std::variant visitation: using size_t =3D unsigned long long; struct A {}; static const size_t variant_npos =3D -1; struct variant { A a; using __index_type =3D unsigned char; // !!!! __index_type _M_index; size_t index() const noexcept { return (_M_index =3D=3D __index_type(variant_npos) ? variant_np= os : _M_index); } }; template static A* get_if(variant* __ptr) noexcept { return (__ptr->index() =3D=3D _Np ? &__ptr->a : nullptr); } A* foo(variant& in) { int i =3D in.index(); if (i=3D=3D0) return get_if<0>(&in); if (i=3D=3D1) return get_if<1>(&in); if (i=3D=3D2) return get_if<2>(&in); if (i=3D=3D3) return get_if<3>(&in); if (i=3D=3D4) return get_if<4>(&in); if (i=3D=3D5) return get_if<5>(&in); if (i=3D=3D6) return get_if<6>(&in); return get_if<7>(&in); } GCC generates assembly with multiple comparisons: foo(variant&): <...> cmp ecx, 1 je .L4 cmp ecx, 2 je .L4 cmp ecx, 3 je .L4 cmp ecx, 4 je .L4 cmp ecx, 5 je .L4 cmp ecx, 6 je .L4 cmp dl, 7 je .L4 Clang eliminates the subexpressions: foo(variant&): # @foo(variant&) movzx ecx, byte ptr [rdi + 1] cmp cl, -1 mov edx, -1 cmovne edx, ecx cmp edx, 7 jb .LBB0_2 mov dl, 7 .LBB0_2: xor eax, eax cmp cl, dl cmove rax, rdi ret Note that if we change `__index_type` to `int` then GCC generates great assembly: foo(variant&): mov edx, DWORD PTR [rdi+4] xor eax, eax cmp edx, -1 je .L1 cmp edx, 7 cmovbe rax, rdi .L1: ret >>From gcc-bugs-return-612495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 10:53:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17209 invoked by alias); 10 Aug 2018 10:53:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17146 invoked by uid 48); 10 Aug 2018 10:53:06 -0000 From: "antoshkka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86909] Missing common subexpression elimination for types other than int Date: Fri, 10 Aug 2018 10:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: antoshkka at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00784.txt.bz2 Content-length: 1054 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86909 --- Comment #1 from Antony Polukhin --- Another std::variant related example where GCC fails to eliminate subexpressions and generates 6 times bigger assembly: using size_t =3D unsigned long long; struct A {} a; static const size_t variant_npos =3D -1; struct variant { using __index_type =3D unsigned char; // !!!! O_O !!!!!! __index_type _M_index; size_t index() const noexcept { return (_M_index =3D=3D __index_type(variant_npos) ? variant_np= os : _M_index); } }; template static A* get_if(variant* __ptr) noexcept { return (__ptr->index() =3D=3D _Np ? &a : nullptr); } A* foo(int i, variant& in) { if (i=3D=3D0) return get_if<0>(&in); if (i=3D=3D1) return get_if<1>(&in); if (i=3D=3D2) return get_if<2>(&in); if (i=3D=3D3) return get_if<3>(&in); if (i=3D=3D4) return get_if<4>(&in); if (i=3D=3D5) return get_if<5>(&in); if (i=3D=3D6) return get_if<6>(&in); return get_if<7>(&in); } >>From gcc-bugs-return-612496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 11:06:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16478 invoked by alias); 10 Aug 2018 11:06:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16399 invoked by uid 48); 10 Aug 2018 11:06:44 -0000 From: "ssh at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] New: std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Fri, 10 Aug 2018 11:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssh at pobox dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00785.txt.bz2 Content-length: 1852 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 Bug ID: 86910 Summary: std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: ssh at pobox dot com Target Milestone: --- std::filesystem::create_directories should create all directories that don't exists in the given path. It is not an error if some of the directories exi= st. But they must be directories to fulfil the postcondition.=20 The current implementation doens't signal an error if it didn't create the directory because a file existed with the same name, so the given postcondi= tion is_directory(p) is violated but no error occurs. //create_directories.cpp #include #include #include #include namespace fs =3D std::filesystem; int main() { fs::path p("testxyz"); if(!fs::exists(p)) { std::ofstream file(p); file.close(); } std::error_code ec; if(fs::create_directories(p, ec)) std::cout << "created" << std::endl; else std::cout << "didn't create" << std::endl; if(!fs::is_directory(p)) std::cerr << "postcondition failed!" << std::endl; std::cerr << "error code " << (ec?"set":"not set") << std::endl; fs::remove(p); } Compiled on Ubuntu 18.04 with g++-8 -std=3Dc++17 -o create_dirs create_directories.cpp -lstdc++fs The expected output would be: didn't create postcondition failed! error code set but current code gives: didn't create postcondition failed! error code not set The interface without ec should throw, but doesn't. >>From gcc-bugs-return-612497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 11:15:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87618 invoked by alias); 10 Aug 2018 11:15:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87293 invoked by uid 48); 10 Aug 2018 11:15:24 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Fri, 10 Aug 2018 11:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00786.txt.bz2 Content-length: 555 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-10 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Please provide the output of 'gcc -v' as requested by https://gcc.gnu.org/b= ugs/ >>From gcc-bugs-return-612498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 11:17:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90357 invoked by alias); 10 Aug 2018 11:17:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90302 invoked by uid 48); 10 Aug 2018 11:17:48 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Fri, 10 Aug 2018 11:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00787.txt.bz2 Content-length: 724 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 --- Comment #2 from Jonathan Wakely --- (In reply to Steffen Schuemann from comment #0) > std::filesystem::create_directories should create all directories that do= n't > exists in the given path. It is not an error if some of the directories > exist. But they must be directories to fulfil the postcondition.=20 >=20 > The current implementation doens't signal an error if it didn't create the > directory because a file existed with the same name, so the given > postcondition is_directory(p) is violated but no error occurs. That is the correct behaviour: https://cplusplus.github.io/LWG/lwg-defects.html#2935 I don't think this is a bug. >>From gcc-bugs-return-612499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 11:36:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117637 invoked by alias); 10 Aug 2018 11:36:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117579 invoked by uid 48); 10 Aug 2018 11:36:33 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from ', ...)>' to non-scalar type 'std::function' requested Date: Fri, 10 Aug 2018 11:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00788.txt.bz2 Content-length: 452 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86728 Jason Merrill changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gn= u.org >>From gcc-bugs-return-612500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 12:12:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90694 invoked by alias); 10 Aug 2018 12:12:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90576 invoked by uid 48); 10 Aug 2018 12:12:02 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Fri, 10 Aug 2018 12:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00789.txt.bz2 Content-length: 191 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 --- Comment #7 from Segher Boessenkool --- Something wrong with that tarball then, maybe? Please try trunk. >>From gcc-bugs-return-612501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 12:21:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19210 invoked by alias); 10 Aug 2018 12:21:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19133 invoked by uid 48); 10 Aug 2018 12:21:37 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86911] New: [9 Regression] ICE in gcc/c-family/c-indentation.c:403 Date: Fri, 10 Aug 2018 12:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00790.txt.bz2 Content-length: 7706 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86911 Bug ID: 86911 Summary: [9 Regression] ICE in gcc/c-family/c-indentation.c:403 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: dmalcolm at gcc dot gnu.org Target Milestone: --- It's a recent regression that I see on Inkscape: $ abuild@marxinbox:~/rpmbuild/BUILD/inkscape-0.92.3/build/src> cd /home/abuild/rpmbuild/BUILD/inkscape-0.92.3/build/src && /usr/bin/c++=20 -DHAVE_CAIRO_PDF=3D1 -DHAVE_CONFIG_H -DHAVE_POTRACE -DHAVE_TR1_UNORDERED_SET -DORBIT2=3D1 -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_MESH -DWITH_SVG2 -D_FORTIFY_SOURCE=3D2 -Dinkscape_base_EXPORTS -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3/build/src -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3/src -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3 -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3/build/include -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/libdrm -isystem /usr/include/libpng16 -isystem /usr/include/harfbuzz -isystem /usr/include/fribidi -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/gc -isystem /usr/include/poppler -isystem /usr/include/libwpg-= 0.3 -isystem /usr/include/librevenge-0.0 -isystem /usr/include/libvisio-0.1 -isystem /usr/include/libcdr-0.1 -isystem /usr/include/gtkmm-2.4 -isystem /usr/lib64/gtkmm-2.4/include -isystem /usr/include/atkmm-1.6 -isystem /usr/include/gtk-unix-print-2.0 -isystem /usr/include/gtk-2.0 -isystem /usr/include/gdkmm-2.4 -isystem /usr/lib64/gdkmm-2.4/include -isystem /usr/include/giomm-2.4 -isystem /usr/lib64/giomm-2.4/include -isystem /usr/include/pangomm-1.4 -isystem /usr/lib64/pangomm-1.4/include -isystem /usr/include/glibmm-2.4 -isystem /usr/lib64/glibmm-2.4/include -isystem /usr/include/cairomm-1.0 -isystem /usr/lib64/cairomm-1.0/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib64/sigc++-2.0/include -isystem /usr/lib64/gtk-2.0/include -isystem /usr/include/atk-1.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gtkspell-2.0 -isystem /usr/include/libxml2 -DNDEBUG -D_FORTIFY_SOURCE=3D2 -O2 -Wall -fasynchronous-unwind-tables -fmessage-length=3D0 -fopenmp -fstack-clash-protection -fstack-protector-strong -funwind-tables -g -grecord-gcc-switches -pthread -O2 -g -DNDEBUG -fPIC -pthread -UWITH_LPET= OOL -ULPE_ENABLE_TEST_EFFECTS -pthread -fPIC -o CMakeFiles/inkscape_base.dir/ui/view/view.cpp.o -c /tmp/ice.ii abuild@marxinbox:~/rpmbuild/BUILD/inkscape-0.92.3/build/src> cd /home/abuild/rpmbuild/BUILD/inkscape-0.92.3/build/src && /usr/bin/c++=20 -DHAVE_CAIRO_PDF=3D1 -DHAVE_CONFIG_H -DHAVE_POTRACE -DHAVE_TR1_UNORDERED_SET -DORBIT2=3D1 -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_MESH -DWITH_SVG2 -D_FORTIFY_SOURCE=3D2 -Dinkscape_base_EXPORTS -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3/build/src -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3/src -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3 -I/home/abuild/rpmbuild/BUILD/inkscape-0.92.3/build/include -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/libdrm -isystem /usr/include/libpng16 -isystem /usr/include/harfbuzz -isystem /usr/include/fribidi -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/gc -isystem /usr/include/poppler -isystem /usr/include/libwpg-= 0.3 -isystem /usr/include/librevenge-0.0 -isystem /usr/include/libvisio-0.1 -isystem /usr/include/libcdr-0.1 -isystem /usr/include/gtkmm-2.4 -isystem /usr/lib64/gtkmm-2.4/include -isystem /usr/include/atkmm-1.6 -isystem /usr/include/gtk-unix-print-2.0 -isystem /usr/include/gtk-2.0 -isystem /usr/include/gdkmm-2.4 -isystem /usr/lib64/gdkmm-2.4/include -isystem /usr/include/giomm-2.4 -isystem /usr/lib64/giomm-2.4/include -isystem /usr/include/pangomm-1.4 -isystem /usr/lib64/pangomm-1.4/include -isystem /usr/include/glibmm-2.4 -isystem /usr/lib64/glibmm-2.4/include -isystem /usr/include/cairomm-1.0 -isystem /usr/lib64/cairomm-1.0/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib64/sigc++-2.0/include -isystem /usr/lib64/gtk-2.0/include -isystem /usr/include/atk-1.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gtkspell-2.0 -isystem /usr/include/libxml2 -DNDEBUG -D_FORTIFY_SOURCE=3D2 -O2 -Wall -fasynchronous-unwind-tables -fmessage-length=3D0 -fopenmp -fstack-clash-protection -fstack-protector-strong -funwind-tables -g -grecord-gcc-switches -pthread -O2 -g -DNDEBUG -fPIC -pthread -UWITH_LPET= OOL -ULPE_ENABLE_TEST_EFFECTS -pthread -fPIC -o CMakeFiles/inkscape_base.dir/ui/view/view.cpp.o -c /home/abuild/rpmbuild/BUILD/inkscape-0.92.3/src/ui/view/view.cpp=20=20=20= =20=20=20 In file included from /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:20, from /usr/include/boost/ptr_container/ptr_list.hpp:19, from /home/abuild/rpmbuild/BUILD/inkscape-0.92.3/src/document.h:28, from /home/abuild/rpmbuild/BUILD/inkscape-0.92.3/src/ui/view/view.cpp:18: /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp: In me= mber function 'void boost::ptr_container_detail::reversible_ptr_container::constructor_impl(I, I, std::forward_iterator_tag)': /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:316:23: internal compiler error: in operator[], at input.h:62 316 | if( first =3D=3D last ) | ^ 0x68cee6 get_visual_column ../../gcc/input.h:62 0xf56fe6 should_warn_for_misleading_indentation ../../gcc/c-family/c-indentation.c:403 0xf56fe6 warn_for_misleading_indentation(token_indent_info const&, token_indent_info const&, token_indent_info const&) ../../gcc/c-family/c-indentation.c:601 0xed544f cp_parser_implicitly_scoped_statement ../../gcc/cp/parser.c:12668 0xed0ee6 cp_parser_selection_statement ../../gcc/cp/parser.c:11466 0xed0ee6 cp_parser_statement ../../gcc/cp/parser.c:10834 0xed0829 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:11292 0xed0829 cp_parser_compound_statement ../../gcc/cp/parser.c:11246 0xed01e0 cp_parser_function_body ../../gcc/cp/parser.c:21923 0xed01e0 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:21960 0xed00fc cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:26975 0xed41be cp_parser_late_parsing_for_member ../../gcc/cp/parser.c:27855 0x61f886 cp_parser_class_specifier_1 ../../gcc/cp/parser.c:22895 0xebb6bf cp_parser_class_specifier ../../gcc/cp/parser.c:22925 0xebb6bf cp_parser_type_specifier ../../gcc/cp/parser.c:16906 0xebb6bf cp_parser_decl_specifier_seq ../../gcc/cp/parser.c:13747 0xec4e33 cp_parser_single_declaration ../../gcc/cp/parser.c:27341 0xec4730 cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:27033 0xebca4d cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:27270 0xebca4d cp_parser_template_declaration_after_export ../../gcc/cp/parser.c:27289 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Unfortunately creating a pre-processed file hides the issue. Any possible h= int how to isolate that? >>From gcc-bugs-return-612502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 12:23:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72788 invoked by alias); 10 Aug 2018 12:23:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68641 invoked by uid 48); 10 Aug 2018 12:23:13 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Fri, 10 Aug 2018 12:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00791.txt.bz2 Content-length: 312 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 --- Comment #8 from Martin Li=C5=A1ka --- (In reply to Segher Boessenkool from comment #7) > Something wrong with that tarball then, maybe? Please try trunk. I see it day by day on my periodic tester machine that pulls GCC tip. >>From gcc-bugs-return-612503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 12:29:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45324 invoked by alias); 10 Aug 2018 12:29:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45255 invoked by uid 48); 10 Aug 2018 12:29:25 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86896] invalid vmovdqa64 instruction for KNL emitted Date: Fri, 10 Aug 2018 12:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00792.txt.bz2 Content-length: 5113 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86896 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |hjl.tools at gmail dot com, | |hubicka at gcc dot gnu.org, | |jakub at gcc dot gnu.org, | |uros at gcc dot gnu.org Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org --- Comment #3 from Martin Li=C5=A1ka --- So it's hard to isolate self-contained test-case, but we really generate: vmovdqa64 %xmm16, %xmm4 I'm not i386 expert, but according to this: https://hjlebbink.github.io/x86doc/html/MOVDQA,VMOVDQA32_64.html +-----------------------------------------------------------+--------+-----= -------------------+--------------------+----------------------------------= -----------------------------------------------+ | Opcode/Instruction | Op/En | 64/32 bit Mode Support | CPUID Feature Flag |=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Description | +-----------------------------------------------------------+--------+-----= -------------------+--------------------+----------------------------------= -----------------------------------------------+ | EVEX.128.66.0F.W1 6F /r VMOVDQA64 xmm1 {k1}{z}, xmm2/m128 | FVM-RM | V/V= =20=20=20=20=20 | AVX512VL AVX512F | Move aligned quadword integer values f= rom xmm2/m128 to xmm1 using writemask k1. | +-----------------------------------------------------------+--------+-----= -------------------+--------------------+----------------------------------= -----------------------------------------------+ The instruction requires AVX512VL flags, but we don't require it: 953 (define_insn "mov_internal" 954 [(set (match_operand:VMOVE 0 "nonimmediate_operand" 955 "=3Dv,v ,v ,m") 956 (match_operand:VMOVE 1 "nonimmediate_or_sse_const_operand" 957 " C,BC,vm,v"))] 958 "TARGET_SSE 959 && (register_operand (operands[0], mode) 960 || register_operand (operands[1], mode))" 961 { 962 switch (get_attr_type (insn)) 963 { 964 case TYPE_SSELOG1: 965 return standard_sse_constant_opcode (insn, operands); 966=20=20 967 case TYPE_SSEMOV: 968 /* There is no evex-encoded vmov* for sizes smaller than 64-b= ytes 969 in avx512f, so we need to use workarounds, to access sse registers 970 16-31, which are evex-only. In avx512vl we don't need workarounds. */ 971 if (TARGET_AVX512F && < 64 && !TARGET_AVX512VL // <------------- 972 && (EXT_REX_SSE_REG_P (operands[0]) 973 || EXT_REX_SSE_REG_P (operands[1]))) 974 { 975 if (memory_operand (operands[0], mode)) 976 { 977 if ( =3D=3D 32) 978 return "vextract64x4\t{$0x0, %g1, %0|%= 0, %g1, 0x0}"; 979 else if ( =3D=3D 16) 980 return "vextract32x4\t{$0x0, %g1, %0|%= 0, %g1, 0x0}"; 981 else 982 gcc_unreachable (); 983 } 984 else if (memory_operand (operands[1], mode)) 985 { 986 if ( =3D=3D 32) 987 return "vbroadcast64x4\t{%1, %g0|%g0, %1}"; 988 else if ( =3D=3D 16) 989 return "vbroadcast32x4\t{%1, %g0|%g0, %1}"; 990 else 991 gcc_unreachable (); 992 } 993 else 994 /* Reg -> reg move is always aligned. Just use wider m= ove. */ 995 switch (get_attr_mode (insn)) 996 { 997 case MODE_V8SF: 998 case MODE_V4SF: 999 return "vmovaps\t{%g1, %g0|%g0, %g1}"; 1000 case MODE_V4DF: 1001 case MODE_V2DF: 1002 return "vmovapd\t{%g1, %g0|%g0, %g1}"; 1003 case MODE_OI: 1004 case MODE_TI: 1005 return "vmovdqa64\t{%g1, %g0|%g0, %g1}"; 1006 default: 1007 gcc_unreachable (); 1008 } Adding to CC port maintainers. --- Comment #4 from Jan Hubicka --- Yep, it seems that we are missing TARGET_AVX512VL check here. I am also not very familiar with avx512 ISA extension. Hj, would it be possible for you to check if we have more missing tests here? >>From gcc-bugs-return-612504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 12:42:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71670 invoked by alias); 10 Aug 2018 12:42:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71622 invoked by uid 48); 10 Aug 2018 12:42:45 -0000 From: "antoshkka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86912] New: Function pointer imposes an optimization barrier Date: Fri, 10 Aug 2018 12:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: antoshkka at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00793.txt.bz2 Content-length: 2305 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86912 Bug ID: 86912 Summary: Function pointer imposes an optimization barrier Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: antoshkka at gmail dot com Target Milestone: --- Consider the following minimized example of std::variant visitation: struct A {}; struct B : A {}; struct C : A {}; struct D : A {}; struct E : A {}; struct X : A {}; template struct helper { static A& call(void* value) { return *static_cast(value); } }; A& get_base(int index, void* value) { using f_ptr =3D A&(*)(void*); constexpr f_ptr visitors[] =3D { helper::call, helper::call, helper::call, helper::call, helper::call, helper::call, }; return visitors[index](value); } For the above code GCC generates very suboptimal assembly that fills an arr= ay with pointers and does the jmp: <...> get_base(int, void*): mov QWORD PTR [rsp-56], OFFSET FLAT:(anonymous namespace)::helper::call(void*) movsx rax, edi mov rdi, rsi mov QWORD PTR [rsp-48], OFFSET FLAT:(anonymous namespace)::helper::call(void*) mov QWORD PTR [rsp-40], OFFSET FLAT:(anonymous namespace)::helper::call(void*) mov QWORD PTR [rsp-32], OFFSET FLAT:(anonymous namespace)::helper::call(void*) mov QWORD PTR [rsp-24], OFFSET FLAT:(anonymous namespace)::helper::call(void*) mov QWORD PTR [rsp-16], OFFSET FLAT:(anonymous namespace)::helper::call(void*) mov rax, QWORD PTR [rsp-56+rax*8] jmp rax Optimal assembly should be the following: get_base(int, void*): mov rax, rsi ret If we rewrite `get_base` to avoid calls by function pointer, the assembly becomes optimal: A& get_base(int index, void* value) { if (index =3D=3D 0) return helper::call(value); if (index =3D=3D 1) return helper::call(value); if (index =3D=3D 2) return helper::call(value); if (index =3D=3D 3) return helper::call(value); if (index =3D=3D 4) return helper::call(value); if (index =3D=3D 5) return helper::call(value); } >>From gcc-bugs-return-612505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:14:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9308 invoked by alias); 10 Aug 2018 13:14:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9269 invoked by uid 48); 10 Aug 2018 13:14:51 -0000 From: "fro0m.spam at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Fri, 10 Aug 2018 13:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fro0m.spam at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status version resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00794.txt.bz2 Content-length: 1158 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 Kostya Frumkin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Version|unknown |9.0 Resolution|INVALID |--- --- Comment #3 from Kostya Frumkin --- (In reply to Jonathan Wakely from comment #1) > No, your program has undefined behaviour. To make it valid you either need > to use std::launder, or use the pointer that is returned by the placement > new. >=20 > The compiler is allowed to assume that the dynamic type of &strategy does > not change (that's why you need to use std::launder). Hi, for example msvc2013 calls base class's virtual method when msvc2015 ca= lls derived class's virtual method. This is developer's mistake which can be predicted by compiler. Few develop= ers know about this behavior. It'd be awesome to see the correct behavior or at least warning that base method is being used after placement new. >>From gcc-bugs-return-612506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:16:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31583 invoked by alias); 10 Aug 2018 13:16:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31535 invoked by uid 48); 10 Aug 2018 13:16:42 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86911] [9 Regression] ICE in gcc/c-family/c-indentation.c:403 Date: Fri, 10 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00795.txt.bz2 Content-length: 488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86911 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D70693 --- Comment #1 from David Malcolm --- Possibly a dup of PR 70693 >>From gcc-bugs-return-612507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:19:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34597 invoked by alias); 10 Aug 2018 13:19:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34495 invoked by uid 48); 10 Aug 2018 13:19:07 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86133] powerpc (-mcpu=8548) internal compiler error for double variables Date: Fri, 10 Aug 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00796.txt.bz2 Content-length: 600 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86133 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc |powerpcspe-*-* CC| |segher at gcc dot gnu.org --- Comment #3 from Segher Boessenkool --- This does not happen on trunk, for powerpc-* (-mspe does not exist). Witho= ut -mno-spe it does not ICE, either. Changing target to powerpcspe. >>From gcc-bugs-return-612508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:28:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62257 invoked by alias); 10 Aug 2018 13:28:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62202 invoked by uid 48); 10 Aug 2018 13:28:38 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86911] [9 Regression] ICE in gcc/c-family/c-indentation.c:403 Date: Fri, 10 Aug 2018 13:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00797.txt.bz2 Content-length: 774 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86911 --- Comment #2 from Martin Li=C5=A1ka --- Sounds very probable, this is what I see in GDB: $ Breakpoint 1, get_visual_column (exploc=3D..., loc=3D2147489278, out=3D0x7fffffffca24, first_nws=3D0x0) at /home/marxin/Programming/gcc2/gcc/c-family/c-indentation.c:79 79 in /home/marxin/Programming/gcc2/gcc/c-family/c-indentation.c (gdb) p line $3 =3D {m_ptr =3D 0x7ffff5ebde79 " {\n while (__first !=3D __last && !__pred(__first))\n\t++__first;\n return __first;\n }\n\n /// This= is an overload used by find algos for the RAI case.\n template>From gcc-bugs-return-612509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:34:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92489 invoked by alias); 10 Aug 2018 13:34:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92414 invoked by uid 48); 10 Aug 2018 13:34:00 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Fri, 10 Aug 2018 13:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00798.txt.bz2 Content-length: 475 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #9 from Segher Boessenkool --- I found the problem. You need -mno-fprnd to reproduce this. Somehow you get this by default. Confirmed. >>From gcc-bugs-return-612510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:36:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100652 invoked by alias); 10 Aug 2018 13:36:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100575 invoked by uid 48); 10 Aug 2018 13:36:53 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Fri, 10 Aug 2018 13:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00799.txt.bz2 Content-length: 459 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 --- Comment #10 from Segher Boessenkool --- Also happens on native builds: ~/build/tot/gcc/f951 -quiet -Wall -W -O2 bounds_check_19.f90 -mabi=3Delfv2 -mlittle -mno-fprnd Error: unrecognizable insn: (insn 79 78 80 6 (set (reg:DI 175) (unspec:DI [ (reg:SF 176) ] UNSPEC_FCTID)) "bounds_check_19.f90":22 -1 (nil)) during RTL pass: vregs >>From gcc-bugs-return-612511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 13:54:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1225 invoked by alias); 10 Aug 2018 13:54:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1153 invoked by uid 48); 10 Aug 2018 13:54:27 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85640] [8/9 Regression] Code size regression vs 7.3.1 Date: Fri, 10 Aug 2018 13:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00800.txt.bz2 Content-length: 1418 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85640 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-10 CC| |amonakov at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Alexander Monakov --- This is interesting. First scev-cprop emits computation of final value of '= buf' before the inner loop. Then ivopts emits the same, but *after* the loop. In gcc-8, ivopts uses a slightly more efficient form though, so dom3 fails to unify the two, and we end up with redundant computations. Previously two fi= nal value computations were identical and dom3 managed to clean up. Final value replacement is unnecessary in this case, 'buf' remains used in = the loop and the final value is non-constant so doesn't lead to further simplification. I believe we should try to throttle down scev-cprop (especi= ally for -Os, but likely for -O2 as well). Emitting final value in the loop preheader instead of after exit may also be useful as it may reduce the amount of variables that live across the loop. (-fno-tree-scev-cprop leads to good code on the testcase) >>From gcc-bugs-return-612512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 14:09:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48936 invoked by alias); 10 Aug 2018 14:09:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36466 invoked by uid 55); 10 Aug 2018 14:09:25 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57160] short-circuit IF only with -ffrontend-optimize Date: Fri, 10 Aug 2018 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: enhancement X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00801.txt.bz2 Content-length: 1565 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57160 --- Comment #14 from janus at gcc dot gnu.org --- Author: janus Date: Fri Aug 10 14:08:53 2018 New Revision: 263471 URL: https://gcc.gnu.org/viewcvs?rev=3D263471&root=3Dgcc&view=3Drev Log: 2018-08-10 Janus Weil PR fortran/57160 * invoke.texi (frontend-optimize): Mention short-circuiting. * options.c (gfc_post_options): Disable -ffrontend-optimize with -O= g. * resolve.c (resolve_operator): Warn about short-circuiting only wi= th -ffrontend-optimize. * trans-expr.c (gfc_conv_expr_op): Use short-circuiting operators o= nly with -ffrontend-optimize. Without that flag, make sure that both operands are evaluated. 2018-08-10 Janus Weil PR fortran/57160 * gfortran.dg/actual_pointer_function_1.f90: Fix invalid test case. * gfortran.dg/inline_matmul_23.f90: Add option "-ffrontend-optimize= ". * gfortran.dg/short_circuiting_2.f90: New test case. * gfortran.dg/short_circuiting_3.f90: New test case. Added: trunk/gcc/testsuite/gfortran.dg/short_circuiting_2.f90 trunk/gcc/testsuite/gfortran.dg/short_circuiting_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/invoke.texi trunk/gcc/fortran/options.c trunk/gcc/fortran/resolve.c trunk/gcc/fortran/trans-expr.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/actual_pointer_function_1.f90 trunk/gcc/testsuite/gfortran.dg/inline_matmul_23.f90 >>From gcc-bugs-return-612513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 14:27:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113628 invoked by alias); 10 Aug 2018 14:27:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113569 invoked by uid 48); 10 Aug 2018 14:26:57 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Fri, 10 Aug 2018 14:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00802.txt.bz2 Content-length: 538 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Target|ppc64le-linux-gnu |powerpc*-*-* Host|x86_64-pc-linux-gnu | --- Comment #11 from Segher Boessenkool --- So it seems ppc64le-linux is NOT equivalent to powerpc64le-linux: it fails here, without the -mno-fprnd flag. >>From gcc-bugs-return-612514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 14:35:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67777 invoked by alias); 10 Aug 2018 14:35:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67709 invoked by uid 48); 10 Aug 2018 14:35:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Fri, 10 Aug 2018 14:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00803.txt.bz2 Content-length: 740 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 --- Comment #4 from Jonathan Wakely --- (In reply to Kostya Frumkin from comment #3) > Hi, for example msvc2013 calls base class's virtual method when msvc2015 > calls derived class's virtual method. It's undefined behaviour. Anything can happen. > This is developer's mistake which can be predicted by compiler. Few > developers know about this behavior. Using placement new to replace a polymorphic type is not a common idiom, I don't think it's worth adding a warning about it. Just don't do it. > It'd be awesome to see the correct behavior or at least warning that base > method is being used after placement new. GCC's behaviour is already correct. >>From gcc-bugs-return-612515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 15:07:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45538 invoked by alias); 10 Aug 2018 15:07:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45423 invoked by uid 48); 10 Aug 2018 15:07:01 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Fri, 10 Aug 2018 15:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00804.txt.bz2 Content-length: 236 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 --- Comment #12 from Segher Boessenkool --- So, ignoring all the configury stuff: the problem is that TARGET_VSX does not imply TARGET_FPRND. It should. >>From gcc-bugs-return-612516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 17:47:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34831 invoked by alias); 10 Aug 2018 17:47:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34795 invoked by uid 48); 10 Aug 2018 17:47:07 -0000 From: "fro0m.spam at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Fri, 10 Aug 2018 17:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fro0m.spam at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00805.txt.bz2 Content-length: 944 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 --- Comment #5 from Kostya Frumkin --- (In reply to Jonathan Wakely from comment #4) > (In reply to Kostya Frumkin from comment #3) > > Hi, for example msvc2013 calls base class's virtual method when msvc2015 > > calls derived class's virtual method. >=20 > It's undefined behaviour. Anything can happen. >=20 > > This is developer's mistake which can be predicted by compiler. Few > > developers know about this behavior. >=20 > Using placement new to replace a polymorphic type is not a common idiom, I > don't think it's worth adding a warning about it. Just don't do it. >=20 > > It'd be awesome to see the correct behavior or at least warning that ba= se > > method is being used after placement new. >=20 > GCC's behaviour is already correct. It is best way to get away with heap allocation in many cases. Let's make a warning about undefined behavior. >>From gcc-bugs-return-612517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 18:03:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94735 invoked by alias); 10 Aug 2018 18:03:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85804 invoked by uid 48); 10 Aug 2018 18:03:06 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Fri, 10 Aug 2018 18:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00806.txt.bz2 Content-length: 202 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #6 from Segher Boessenkool --- So, what is happening at all? What is different during/after combine, etc.? >>From gcc-bugs-return-612518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 18:32:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31614 invoked by alias); 10 Aug 2018 18:32:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31549 invoked by uid 48); 10 Aug 2018 18:32:41 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86131] powerpc: gcc uses costly multiply instead of shift left Date: Fri, 10 Aug 2018 18:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00807.txt.bz2 Content-length: 525 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86131 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org --- Comment #1 from Segher Boessenkool --- A multiply is cost 2 for mpccore. Expand creates a single "mulli ..,-8" for this. And no other RTL pass will break this apart again. >>From gcc-bugs-return-612519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 19:30:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42787 invoked by alias); 10 Aug 2018 19:30:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42722 invoked by uid 48); 10 Aug 2018 19:30:51 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68210] nothrow operator fails to call default new Date: Fri, 10 Aug 2018 19:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00808.txt.bz2 Content-length: 1558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68210 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 --- Comment #4 from Jonathan Wakely --- (In reply to Martin Sebor from comment #0) > assert (0 =3D=3D p); > assert (2 =3D=3D new_handler_called); > assert (bad_alloc_thrown); I think this test case is wrong. The new handler is set, so we never get to: else { bad_alloc_thrown =3D true; throw MyBadAlloc (); } So bad_alloc_throw is never set. I'm using this instead, which passes with my fixed libstdc++ and with libc+= +: int main () { new_called =3D 0; void *p =3D operator new (1, std::nothrow); VERIFY (p !=3D 0); VERIFY (1 =3D=3D new_called); std::set_new_handler (new_handler); new_fail =3D true; try { p =3D operator new (1, std::nothrow); } catch (...) { VERIFY (!"nothrow operator new threw"); } VERIFY (0 =3D=3D p); VERIFY (2 =3D=3D new_handler_called); VERIFY (!bad_alloc_thrown); std::set_new_handler (0); new_fail =3D true; new_handler_called =3D 0; try { p =3D operator new (1, std::nothrow); } catch (...) { VERIFY (!"nothrow operator new threw"); } VERIFY (0 =3D=3D p); VERIFY (0 =3D=3D new_handler_called); VERIFY (bad_alloc_thrown); } >>From gcc-bugs-return-612520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 19:35:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46269 invoked by alias); 10 Aug 2018 19:35:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46184 invoked by uid 48); 10 Aug 2018 19:35:41 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68210] nothrow operator fails to call default new Date: Fri, 10 Aug 2018 19:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00809.txt.bz2 Content-length: 822 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68210 --- Comment #5 from Jonathan Wakely --- Or maybe: int main () { void *p =3D operator new (1, std::nothrow); VERIFY (p !=3D 0); VERIFY (1 =3D=3D new_called); VERIFY (0 =3D=3D new_handler_called); VERIFY (!bad_alloc_thrown); operator delete(p); new_fail =3D true; p =3D operator new (1, std::nothrow); VERIFY (0 =3D=3D p); VERIFY (2 =3D=3D new_called); VERIFY (0 =3D=3D new_handler_called); VERIFY (bad_alloc_thrown); new_fail =3D true; bad_alloc_thrown =3D false; std::set_new_handler (new_handler); p =3D operator new (1, std::nothrow); VERIFY (0 =3D=3D p); VERIFY (3 =3D=3D new_called); VERIFY (2 =3D=3D new_handler_called); VERIFY (!bad_alloc_thrown); } >>From gcc-bugs-return-612521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:14:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32985 invoked by alias); 10 Aug 2018 20:14:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32927 invoked by uid 55); 10 Aug 2018 20:14:48 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86197] POWERPC: float128 parameter passing Date: Fri, 10 Aug 2018 20:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00810.txt.bz2 Content-length: 683 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86197 --- Comment #6 from Segher Boessenkool --- Author: segher Date: Fri Aug 10 20:14:11 2018 New Revision: 263477 URL: https://gcc.gnu.org/viewcvs?rev=3D263477&root=3Dgcc&view=3Drev Log: Backport from mainline 2018-06-19 Segher Boessenkool PR target/86197 * config/rs6000/rs6000.md (rs6000_discover_homogeneous_aggregate): = An ieee128 argument takes up only one (vector) register, not two (floa= ting point) registers. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/rs6000/rs6000.c >>From gcc-bugs-return-612523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:21:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47128 invoked by alias); 10 Aug 2018 20:21:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47034 invoked by uid 48); 10 Aug 2018 20:21:37 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57160] short-circuit IF only with -ffrontend-optimize Date: Fri, 10 Aug 2018 20:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: enhancement X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status see_also resolution assigned_to target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00812.txt.bz2 Content-length: 884 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57160 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D58224 Resolution|--- |FIXED Assignee|tkoenig at gcc dot gnu.org |janus at gcc dot gn= u.org Target Milestone|--- |9.0 --- Comment #15 from janus at gcc dot gnu.org --- The issue is fixed with r263471. As a follow up, the -fcheck diagnostics should be improved (see e.g. PR 582= 24), so that cases like the one in comment #0 give a proper runtime error instea= d of a segfault. >>From gcc-bugs-return-612522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:21:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46060 invoked by alias); 10 Aug 2018 20:21:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45702 invoked by uid 55); 10 Aug 2018 20:21:05 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68210] nothrow operator fails to call default new Date: Fri, 10 Aug 2018 20:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00811.txt.bz2 Content-length: 2861 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68210 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Fri Aug 10 20:20:27 2018 New Revision: 263478 URL: https://gcc.gnu.org/viewcvs?rev=3D263478&root=3Dgcc&view=3Drev Log: PR libstdc++/68210 adjust operator new and delete for LWG 206 Ensure that nothrow versions of new and delete call the ordinary versions of new or delete, instead of calling malloc or free directly. These files are all compiled with -std=3Dgnu++14 so can use noexcept and nullptr to make the code more readable. PR libstdc++/68210 * doc/xml/manual/intro.xml: Document LWG 206 change. * libsupc++/del_op.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept. * libsupc++/del_opa.cc: Likewise. * libsupc++/del_opant.cc: Likewise. * libsupc++/del_opnt.cc: Likewise. Call operator delete(ptr) instead of free(ptr). * libsupc++/del_ops.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept. * libsupc++/del_opsa.cc: Likewise. * libsupc++/del_opva.cc: Likewise. * libsupc++/del_opvant.cc: Likewise. * libsupc++/del_opvnt.cc: Likewise. Call operator delete[](ptr) instead of operator delete(ptr). * libsupc++/del_opvs.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcep= t. * libsupc++/del_opvsa.cc: Likewise. * libsupc++/new_op.cc: Use __builtin_expect in check for zero size. * libsupc++/new_opa.cc: Use nullptr instead of literal 0. * libsupc++/new_opant.cc: Likewise. Replace _GLIBCXX_USE_NOEXCEPT with noexcept. * libsupc++/new_opnt.cc: Likewise. Call operator new(sz) instead of malloc(sz). * libsupc++/new_opvant.cc: Use nullptr and noexcept. * libsupc++/new_opvnt.cc: Likewise. Call operator new[](sz) instead= of operator new(sz, nothrow). * testsuite/18_support/new_nothrow.cc: New test. Added: trunk/libstdc++-v3/testsuite/18_support/new_nothrow.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/doc/xml/manual/intro.xml trunk/libstdc++-v3/libsupc++/del_op.cc trunk/libstdc++-v3/libsupc++/del_opa.cc trunk/libstdc++-v3/libsupc++/del_opant.cc trunk/libstdc++-v3/libsupc++/del_opnt.cc trunk/libstdc++-v3/libsupc++/del_ops.cc trunk/libstdc++-v3/libsupc++/del_opsa.cc trunk/libstdc++-v3/libsupc++/del_opva.cc trunk/libstdc++-v3/libsupc++/del_opvant.cc trunk/libstdc++-v3/libsupc++/del_opvnt.cc trunk/libstdc++-v3/libsupc++/del_opvs.cc trunk/libstdc++-v3/libsupc++/del_opvsa.cc trunk/libstdc++-v3/libsupc++/new_op.cc trunk/libstdc++-v3/libsupc++/new_opa.cc trunk/libstdc++-v3/libsupc++/new_opant.cc trunk/libstdc++-v3/libsupc++/new_opnt.cc trunk/libstdc++-v3/libsupc++/new_opvant.cc trunk/libstdc++-v3/libsupc++/new_opvnt.cc >>From gcc-bugs-return-612524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:21:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47454 invoked by alias); 10 Aug 2018 20:21:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47074 invoked by uid 48); 10 Aug 2018 20:21:39 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84094] several correctness issues in gfortran.dg Date: Fri, 10 Aug 2018 20:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00813.txt.bz2 Content-length: 472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84094 Bug 84094 depends on bug 57160, which changed state. Bug 57160 Summary: short-circuit IF only with -ffrontend-optimize https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57160 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-612525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:46:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107756 invoked by alias); 10 Aug 2018 20:46:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107718 invoked by uid 55); 10 Aug 2018 20:46:45 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86197] POWERPC: float128 parameter passing Date: Fri, 10 Aug 2018 20:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00814.txt.bz2 Content-length: 683 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86197 --- Comment #7 from Segher Boessenkool --- Author: segher Date: Fri Aug 10 20:46:04 2018 New Revision: 263479 URL: https://gcc.gnu.org/viewcvs?rev=3D263479&root=3Dgcc&view=3Drev Log: Backport from mainline 2018-06-19 Segher Boessenkool PR target/86197 * config/rs6000/rs6000.md (rs6000_discover_homogeneous_aggregate): = An ieee128 argument takes up only one (vector) register, not two (floa= ting point) registers. Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/rs6000/rs6000.c >>From gcc-bugs-return-612526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:49:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112861 invoked by alias); 10 Aug 2018 20:48:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 112689 invoked by uid 48); 10 Aug 2018 20:48:32 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86197] POWERPC: float128 parameter passing Date: Fri, 10 Aug 2018 20:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00815.txt.bz2 Content-length: 446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86197 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #8 from Segher Boessenkool --- Fixed everywhere. >>From gcc-bugs-return-612527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 20:54:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119812 invoked by alias); 10 Aug 2018 20:54:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119787 invoked by uid 48); 10 Aug 2018 20:54:16 -0000 From: "yavor at gnu dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc/86913] New: Sending a nil message using a method signature returning a struct corrupts the stack Date: Fri, 10 Aug 2018 20:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yavor at gnu dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00816.txt.bz2 Content-length: 2678 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86913 Bug ID: 86913 Summary: Sending a nil message using a method signature returning a struct corrupts the stack Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc Assignee: unassigned at gcc dot gnu.org Reporter: yavor at gnu dot org Target Milestone: --- Created attachment 44524 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44524&action=3Dedit Preprocessed source of the test program Josh Freeman discovered that sending a nil message using a method signature that returns a structure results in: 1. Garbage values in the returned structure's members (affects: x86/x86_64, with and without optimization) 2. A corrupted stack (affects: x86 with -O1 or -O2) After some investigation, I can confirm that this bug was fixed in April 20= 13 (r198140, PR target/57018). But the change was reverted in November 2013 as part of a fix for PR target/57293 (r205498). AFAICT all compiler versions = are affected, except 4.8 (the fix was backported to the gcc-4_8-branch in May 2013). Minimized test program based on Josh's test program for GNUstep: ... #include #import int printf (const char *, ...); struct Size { float w; float h; }; static const struct Size ZeroSize =3D {0.0, 0.0}; @interface NilMsgCheck : Object + (id) new; - (struct Size) nmcZeroSize; - (void) nmcSendNilMsg; @end @implementation NilMsgCheck + (id) new { return class_createInstance (self, 0); } - (struct Size) nmcZeroSize { return ZeroSize; } - (void) nmcSendNilMsg { struct Size size =3D [self nmcZeroSize]; printf ("[self nmcZeroSize] returned: w =3D %f; h =3D %f\n", size.w, si= ze.h); size =3D [nil nmcZeroSize]; printf ("[nil nmcZeroSize] returned: w =3D %f; h =3D %f\n", size.w, siz= e.h); } @end int main (void) { NilMsgCheck *object =3D [NilMsgCheck new]; [object nmcSendNilMsg]; return 0; } ... On x86_64-linux-gnu, it prints: [self nmcZeroSize] returned: w =3D 0.000000; h =3D 0.000000 [nil nmcZeroSize] returned: w =3D -nan; h =3D 0.000000 On x86-linux-gnu (with optimization) it segfaults (or, if built with -fstack-protector-strong it aborts with "stack smashing detected"). $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/home/yavor/libexec/gcc/i686-pc-linux-gnu/8.2.0/lto-w= rapper Target: i686-pc-linux-gnu Configured with: ./configure --prefix=3D/home/yavor --disable-nls --disable-multilib --enable-languages=3Dc,objc Thread model: posix gcc version 8.2.0 (GCC) >>From gcc-bugs-return-612528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 21:24:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56950 invoked by alias); 10 Aug 2018 21:24:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56404 invoked by uid 48); 10 Aug 2018 21:24:35 -0000 From: "even.rouault at spatialys dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86914] New: gcc 8.1 -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Date: Fri, 10 Aug 2018 21:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: even.rouault at spatialys dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00817.txt.bz2 Content-length: 1534 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86914 Bug ID: 86914 Summary: gcc 8.1 -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: even.rouault at spatialys dot com Target Milestone: --- The following code {{{ #include struct s { int i; char c[1]; }; size_t foo(struct s* p) { return strlen(p->c+1); } }}} compiled with gcc 8.1 -O2 generates the following code {{{ 0000000000000000 : 0: 31 c0 xor %eax,%eax 2: c3 retq=20=20=20 }}} returning 0 Previous gcc versions generate the "correct" code {{{ 0000000000000000 : 0: 48 83 c7 05 add $0x5,%rdi 4: e9 00 00 00 00 jmpq 9 5: R_X86_64_PC32=20= =20=20=20=20=20=20 strlen-0x4 }}} According to https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html , """Altho= ugh using one-element arrays this way is discouraged, GCC handles accesses to trailing one-element array members analogously to zero-length arrays. """ If modifying c[1] to be c[0], gcc 8.1 -O2 generates the correct code. If changing strlen(p->c+1) to strlen(p->c), the correct code is although gener= ated So it looks to be a too agressive optimization. >>From gcc-bugs-return-612529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 21:48:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85121 invoked by alias); 10 Aug 2018 21:48:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84966 invoked by uid 48); 10 Aug 2018 21:48:39 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68210] nothrow operator fails to call default new Date: Fri, 10 Aug 2018 21:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00818.txt.bz2 Content-length: 435 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68210 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Jonathan Wakely --- Fixed for gcc 9. >>From gcc-bugs-return-612530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 00:15:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14650 invoked by alias); 11 Aug 2018 00:15:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14607 invoked by uid 48); 11 Aug 2018 00:14:57 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86915] New: Segmentation fault for an array of auto in template parameter Date: Sat, 11 Aug 2018 00:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00819.txt.bz2 Content-length: 683 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86915 Bug ID: 86915 Summary: Segmentation fault for an array of auto in template parameter Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /********** BEGIN SOURCE **********/ template struct S; /*********** END SOURCE ***********/ ' Segmentation fault 1 | template struct S; | ^ Tested with 9.0.0 20180809 (experimental) >>From gcc-bugs-return-612531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 05:41:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89490 invoked by alias); 11 Aug 2018 05:41:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87164 invoked by uid 48); 11 Aug 2018 05:41:22 -0000 From: "ssh at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Sat, 11 Aug 2018 05:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssh at pobox dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00820.txt.bz2 Content-length: 3927 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 --- Comment #3 from Steffen Schuemann --- Sorry, g++-8 -v: Using built-in specs. COLLECT_GCC=3Dg++-8 COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 8-20180414-1ubuntu2' --with-bugurl=3Dfile:///usr/share/doc/gcc-8/README.Bugs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --with-as=3D/usr/bin/x86_64-linux-gnu-as --with-ld=3D/usr/bin/x86_64-linux-gnu-ld --program-suffix=3D-8 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 8.0.1 20180414 (experimental) [trunk revision 259383] (Ubuntu 8-20180414-1ubuntu2)=20 I see, that LWG defect 2935 addresses this question. But first, my understanding is a defect in WP status is still not part of the standard, s= o it might become part of some C++20 or some TC, but it currently doesn't seem t= o be part of C++17 (selected by -std=3Dc++17). I might be wrong with that. And second, I still I don't really see how this is expected to be used by t= he developers usinf std::fs. Without that postcondition you have to do a check= for the directory before using that it, so the "spared" call was simply moved to the user code. Not testing could lead to harder to track down bugs later on= in a different domain of the software.=20 And third, as testing for existence and type can be done with one call, I d= on't see the issue raised in the defect about additional system calls in the implementation on Windows and POSIX. I found this issue while implementing a closely C++17 compatible filesystem for C++11/14 level compilers on Windows= and POSIX and simply ran my (still growing) test suite against GCCs std::fs whe= re that case failed, so I thought I just report it. ;-) I didn't need any extra system calls to detect that situation in my (wip) implementation. So I just looked into https://github.com/gcc-mirror/gcc/blob/a2809afdf9560accb06cdb595ce20e32f652= a75c/libstdc%2B%2B-v3/src/filesystem/std-ops.cc#L652-L665 and when the fs::file_status result of the fs::status(pp, ec) call tracking= the file_type::not_found elements would have been keept, the fs::is_directory(s)-call on that last file_status would have been free of a= ny additional system calls. Well, this might not be the place to discuss the LWG decision, it just does= n't look like a helpfull one to me, and it feels like beeing taken based on a f= alse assumtion about the implementation, so it hurts and it converts a supposed system call actually not needed to a definitive system call on the user sid= e. I guess I stick to the current C++17 descritpion and keep the error reporti= ng, as it seems the way to go for me, and it's still good to know I need to take care on other implementations, but as I would use the compiler given std::fs whereever I can (I just don't allways have it), I sure would prefer it to follow the original wording. Thank you for pointing me on that LWG defect! >>From gcc-bugs-return-612532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 07:46:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110499 invoked by alias); 11 Aug 2018 07:46:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110458 invoked by uid 48); 11 Aug 2018 07:46:51 -0000 From: "rogermc at iinet dot net.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/86916] New: 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access Date: Sat, 11 Aug 2018 07:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rogermc at iinet dot net.au X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00821.txt.bz2 Content-length: 2124 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86916 Bug ID: 86916 Summary: 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: rogermc at iinet dot net.au Target Milestone: --- Created attachment 44525 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44525&action=3Dedit Requested files Command (via GPS): gprbuild -d -P/Ada_Source/OglAda_Examples/ogl_dev/22_loading_test/loader_test.gpr -XMode=3Ddebug -XLibrary_Type=3Dstatic -XAuto_Exceptions=3Denabled -XWindowing_System=3Dquartz -XGLFW_Version=3D3 -s --config=3D/Ada_Source/de= fault.cgpr compilation abandoned gprbuild: *** compilation phase failed [2018-08-11 17:27:28] process exited with status 4, 93% (117/125), elapsed time: 28.32s +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ | 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access | | Error detected at animation.adb:61:16 | | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ List of files compilation abandoned gprbuild: *** compilation phase failed [2018-08-11 17:27:28] process exited with status 4, 93% (117/125), elapsed time: 28.32s >>From gcc-bugs-return-612533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 08:26:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40088 invoked by alias); 11 Aug 2018 08:26:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40041 invoked by uid 48); 11 Aug 2018 08:26:18 -0000 From: "ssh at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Sat, 11 Aug 2018 08:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssh at pobox dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00822.txt.bz2 Content-length: 514 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 --- Comment #4 from Steffen Schuemann --- I just realised, if I'm all wrong, and not handling this as an error is the= way to go, as described in LWG-defect-#2935, create_directory() would violate t= he new behaviour described in 2935, as it passes my unit tests so it throws an exception if a file with that name exists. One way or the other, something doesn't match (also verified on g++ 8.1.0 on macOS and by looking into the code). >>From gcc-bugs-return-612534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 10:42:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122317 invoked by alias); 11 Aug 2018 10:42:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122167 invoked by uid 48); 11 Aug 2018 10:42:11 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86858] [9 Regression] GCC ICE at -O3 in as_a, at is-a.h:197 Date: Sat, 11 Aug 2018 10:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00823.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86858 rsandifo at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from rsandifo at gcc dot gnu.org --- Fixed. Thanks for the bug report. >>From gcc-bugs-return-612535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 10:47:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127984 invoked by alias); 11 Aug 2018 10:47:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127925 invoked by uid 55); 11 Aug 2018 10:47:36 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from ', ...)>' to non-scalar type 'std::function' requested Date: Sat, 11 Aug 2018 10:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00824.txt.bz2 Content-length: 575 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86728 --- Comment #3 from Jason Merrill --- Author: jason Date: Sat Aug 11 10:47:03 2018 New Revision: 263484 URL: https://gcc.gnu.org/viewcvs?rev=3D263484&root=3Dgcc&view=3Drev Log: PR c++/86728 - C variadic generic lambda. * parser.c (cp_parser_parameter_declaration): Don't turn 'auto' into a pack if it's followed by a declarator-id. Added: trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic19.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c >>From gcc-bugs-return-612536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 10:55:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2029 invoked by alias); 11 Aug 2018 10:55:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1918 invoked by uid 48); 11 Aug 2018 10:55:49 -0000 From: "uecker at eecs dot berkeley.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86884] aggressive loop optimization and effective type Date: Sat, 11 Aug 2018 10:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: uecker at eecs dot berkeley.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00825.txt.bz2 Content-length: 2022 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86884 Martin Uecker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uecker at eecs dot berkele= y.edu --- Comment #1 from Martin Uecker --- Here are some additional comments, which may help to analyze this (or not).= =20 The optimization also works without struct Y, the initialization, and the memcpy in which case the example is not undefined by itself (see case 1 bel= ow). =46rom a C language point of view (I can't comment about GIMPLE), the optimization seems legal as from the access p->c one can infer the effective type. In case 3, one cannot infer the effective type and gcc also does not optimize this case. Case 2 is interesting. I think using p->c to construct a pointer to c implies that the storage at p must have correct effective type, but I am not entirely sure. For strlen, case 1 and case 2 are optimized, but not case 3. (tested with gcc from recent git).=20 #include #include #include struct X { int i; char c[4]; int j;}; void f(struct X *p) { int n =3D 0; #if 1 // case 1 while (p->c[n]) // uncond. abort ++n; #else #if 1 // case 2 char* pc =3D p->c; // no uncond. abort #else // case 3 char* pc =3D (char*)p + offsetof(struct X, c); // no uncond. abort #endif while (pc[n]) ++n; #endif if (n < 7) abort(); } void g(struct X *p) { int n =3D 0; #if 1 // case 1 n =3D strlen(p->c); // uncond. abort #else #if 1 // case 2 char* pc =3D p->c; // uncond. abort #else // case 3 char* pc =3D (char*)p + offsetof(struct X, c); // no uncond. abort #endif n =3D strlen(pc); #endif if (n < 7) abort(); } >>From gcc-bugs-return-612538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 11:02:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8246 invoked by alias); 11 Aug 2018 11:02:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8198 invoked by uid 55); 11 Aug 2018 11:02:55 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from ', ...)>' to non-scalar type 'std::function' requested Date: Sat, 11 Aug 2018 11:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00827.txt.bz2 Content-length: 629 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86728 --- Comment #5 from Jason Merrill --- Author: jason Date: Sat Aug 11 11:02:22 2018 New Revision: 263486 URL: https://gcc.gnu.org/viewcvs?rev=3D263486&root=3Dgcc&view=3Drev Log: PR c++/86728 - C variadic generic lambda. * parser.c (cp_parser_parameter_declaration): Don't turn 'auto' into a pack if it's followed by a declarator-id. Added: =20=20=20 branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic19.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/parser.c >>From gcc-bugs-return-612537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 11:02:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7331 invoked by alias); 11 Aug 2018 11:02:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6947 invoked by uid 55); 11 Aug 2018 11:02:21 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from ', ...)>' to non-scalar type 'std::function' requested Date: Sat, 11 Aug 2018 11:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00826.txt.bz2 Content-length: 629 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86728 --- Comment #4 from Jason Merrill --- Author: jason Date: Sat Aug 11 11:01:49 2018 New Revision: 263485 URL: https://gcc.gnu.org/viewcvs?rev=3D263485&root=3Dgcc&view=3Drev Log: PR c++/86728 - C variadic generic lambda. * parser.c (cp_parser_parameter_declaration): Don't turn 'auto' into a pack if it's followed by a declarator-id. Added: =20=20=20 branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic19.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/parser.c >>From gcc-bugs-return-612539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 11:03:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9368 invoked by alias); 11 Aug 2018 11:03:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9307 invoked by uid 48); 11 Aug 2018 11:03:32 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from ', ...)>' to non-scalar type 'std::function' requested Date: Sat, 11 Aug 2018 11:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00828.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86728 Jason Merrill changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Jason Merrill --- Fixed. >>From gcc-bugs-return-612540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 11:29:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32985 invoked by alias); 11 Aug 2018 11:29:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32920 invoked by uid 55); 11 Aug 2018 11:29:44 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86835] [8/9 Regression] Bogus "is used uninitialized" warning with -ffast-math Date: Sat, 11 Aug 2018 11:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00829.txt.bz2 Content-length: 674 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86835 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Sat Aug 11 11:29:12 2018 New Revision: 263487 URL: https://gcc.gnu.org/viewcvs?rev=3D263487&root=3Dgcc&view=3Drev Log: PR tree-optimization/86835 * tree-ssa-math-opts.c (insert_reciprocals): Even when inserting new_stmt after def_gsi, make sure to insert new_square_stmt after that stmt, not 2 stmts before it. * gcc.dg/pr86835.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr86835.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-math-opts.c >>From gcc-bugs-return-612541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 12:05:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49242 invoked by alias); 11 Aug 2018 12:05:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49185 invoked by uid 48); 11 Aug 2018 12:05:31 -0000 From: "even.rouault at spatialys dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86914] gcc 8.1 -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Date: Sat, 11 Aug 2018 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: even.rouault at spatialys dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00830.txt.bz2 Content-length: 262 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86914 --- Comment #1 from Even Rouault --- Interstingly with gcc 8.2, char c[0] doesn't generate the appropriate code.= The only way of making it work is to use char c[] syntax >>From gcc-bugs-return-612542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 12:16:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63362 invoked by alias); 11 Aug 2018 12:16:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63269 invoked by uid 48); 11 Aug 2018 12:16:00 -0000 From: "rogermc at iinet dot net.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/86916] 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access Date: Sat, 11 Aug 2018 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rogermc at iinet dot net.au X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00831.txt.bz2 Content-length: 732 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86916 --- Comment #1 from Roger Mc Murtrie --- I am also getting this problem with gcc 6.1.0 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ | 6.1.0 (x86_64-apple-darwin15) GCC error: | | in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:3011 | | Error detected at assimp_texture.ads:65:34=20=20=20 As I have used gcc 6.1.0 with getting this error in the past I'm wondering = if it has something to do with OSX. Mac mini (Mid 2011) OSX 10.13.6 Xcode 9.4.1 >>From gcc-bugs-return-612543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 12:21:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76728 invoked by alias); 11 Aug 2018 12:21:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76700 invoked by uid 48); 11 Aug 2018 12:21:40 -0000 From: "rogermc at iinet dot net.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/86916] 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access Date: Sat, 11 Aug 2018 12:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rogermc at iinet dot net.au X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00832.txt.bz2 Content-length: 259 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86916 --- Comment #2 from Roger Mc Murtrie --- Correction "As I have used gcc 6.1.0 with getting this error" should have been: "As I have used gcc 6.1.0 WITHOUT getting this error" >>From gcc-bugs-return-612544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 14:48:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5946 invoked by alias); 11 Aug 2018 14:48:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5766 invoked by uid 48); 11 Aug 2018 14:47:59 -0000 From: "hans.buchmann at fhnw dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86917] New: ICE in verify_ctor_sanity, at cp/constexpr.c:2798 Date: Sat, 11 Aug 2018 14:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hans.buchmann at fhnw dot ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00833.txt.bz2 Content-length: 2592 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86917 Bug ID: 86917 Summary: ICE in verify_ctor_sanity, at cp/constexpr.c:2798 Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hans.buchmann at fhnw dot ch Target Milestone: --- Created attachment 44526 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44526&action=3Dedit The Bug Compiling the (wrong) code ------8<------8<------8<------8<------8<------8<------8<------ struct Byte { constexpr Byte():c(0){} static const Byte Zero; unsigned c;=20 }; struct Word { typedef Byte W[4]; constexpr Word():w({Byte::Zero,Byte::Zero,Byte::Zero,Byte::Zero}){} W w;=20 }; struct AES256 { AES256(); Word w[60]; }; AES256::AES256() { }=20 ------8<------8<------8<------8<------8<------8<------8<------ with=20 g++ -c -o bug.o bug.cc results in: ------8<------8<------8<------8<------8<------8<------8<------ bug.cc: In constructor \u2018AES256::AES256()\u2019: bug.cc:21:16: in \u2018constexpr\u2019 expansion of \u2018Word()\u2019 bug.cc:21:16: internal compiler error: in verify_ctor_sanity, at cp/constexpr.c:2798 AES256::AES256() ^ Please submit a full bug report, with preprocessed source if appropriate. ------8<------8<------8<------8<------8<------8<------8<------ g++ -v ------8<------8<------8<------8<------8<------8<------8<------ Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib \ --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo \ --with-bugurl=3Dhttps://bugs.archlinux.org/ \ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ \ --enable-shared --enable-threads=3Dposix --enable-libmpx \ --with-system-zlib --with-isl --enable-__cxa_atexit \ --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-p= ch \ --disable-libssp --enable-gnu-unique-object --enable-linker-build-id \ --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu\ --enable-gnu-indirect-function --enable-multilib --disable-werror \ --enable-checking=3Drelease --enable-default-pie --enable-default-ssp --enable-cet=3Dauto Thread model: posix gcc version 8.2.0 (GCC) ------8<------8<------8<------8<------8<------8<------8<------ Sincerely Hans Buchmann >>From gcc-bugs-return-612545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 14:55:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11323 invoked by alias); 11 Aug 2018 14:55:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11284 invoked by uid 48); 11 Aug 2018 14:55:07 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86917] [6/7/8/9 Regression] ICE in verify_ctor_sanity, at cp/constexpr.c:2798 Date: Sat, 11 Aug 2018 14:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00834.txt.bz2 Content-length: 882 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86917 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-11 CC| |mpolacek at gcc dot gnu.org Summary|ICE in verify_ctor_sanity, |[6/7/8/9 Regression] ICE |at cp/constexpr.c:2798 |in verify_ctor_sanity, at | |cp/constexpr.c:2798 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed, thanks for reporting. G++ 5 works. >>From gcc-bugs-return-612546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 14:57:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12761 invoked by alias); 11 Aug 2018 14:57:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12725 invoked by uid 48); 11 Aug 2018 14:57:44 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86917] [6/7/8/9 Regression] ICE in verify_ctor_sanity, at cp/constexpr.c:2798 Date: Sat, 11 Aug 2018 14:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00835.txt.bz2 Content-length: 179 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86917 --- Comment #2 from Marek Polacek --- Started with Merge C++ delayed folding branch., r230365. >>From gcc-bugs-return-612547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 15:09:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26966 invoked by alias); 11 Aug 2018 15:09:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26875 invoked by uid 48); 11 Aug 2018 15:09:38 -0000 From: "staticfloat at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/81033] [8/9 Regression] there are cases where ld64 is not able to determine correct atom boundaries from the output GCC currently produces Date: Sat, 11 Aug 2018 15:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: build, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: staticfloat at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00836.txt.bz2 Content-length: 530 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81033 Elliot Saba changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |staticfloat at gmail dot c= om --- Comment #41 from Elliot Saba --- Has there been any progress on this? We are running into this while trying= to cross-compile GCC for Darwin. Has this been fixed in 8.3.0? >>From gcc-bugs-return-612548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 15:10:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28004 invoked by alias); 11 Aug 2018 15:10:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27973 invoked by uid 48); 11 Aug 2018 15:10:25 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86915] Segmentation fault for an array of auto in template parameter Date: Sat, 11 Aug 2018 15:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00837.txt.bz2 Content-length: 662 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86915 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-11 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed, doesn't seem like a regression. >>From gcc-bugs-return-612549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 15:48:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1401 invoked by alias); 11 Aug 2018 15:48:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1259 invoked by uid 48); 11 Aug 2018 15:48:46 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86915] Segmentation fault for an array of auto in template parameter Date: Sat, 11 Aug 2018 15:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00838.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86915 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-612550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 16:44:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125309 invoked by alias); 11 Aug 2018 16:44:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125260 invoked by uid 48); 11 Aug 2018 16:44:20 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86835] [8 Regression] Bogus "is used uninitialized" warning with -ffast-math Date: Sat, 11 Aug 2018 16:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00839.txt.bz2 Content-length: 547 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86835 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[8/9 Regression] Bogus "is |[8 Regression] Bogus "is |used uninitialized" warning |used uninitialized" warning |with -ffast-math |with -ffast-math --- Comment #6 from Jakub Jelinek --- Fixed on the trunk so far. >>From gcc-bugs-return-612551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 17:58:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66899 invoked by alias); 11 Aug 2018 17:58:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66869 invoked by uid 48); 11 Aug 2018 17:58:22 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86914] [8/9 Regression] -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Date: Sat, 11 Aug 2018 17:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00840.txt.bz2 Content-length: 1834 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86914 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-11 CC| |law at redhat dot com, | |msebor at gcc dot gnu.org Summary|gcc 8.1 -O2 generates wrong |[8/9 Regression] -O2 |code with strlen() of |generates wrong code with |pointers within one-element |strlen() of pointers within |arrays of structures |one-element arrays of | |structures Ever confirmed|0 |1 Known to fail| |8.2.0, 9.0 --- Comment #2 from Martin Sebor --- Confirmed. Most likely caused by r255790. The strlen pass sees: _1 =3D &MEM[(void *)p_3(D) + 5B]; _2 =3D __builtin_strlen (_1); The code in maybe_set_strlen_range() tries to avoid using the size of the l= ast member array (GCC treats all such arrays as flexible array members) by chec= king the result of array_at_struct_end_p() but the function doesn't handle MEM_R= EF and returns false. The optimization is disabled if the array is a bona fide C11 flexible array member because the size of such an array is unknown. Enhancing array_at_struct_end_p() to deal with MEM_REF or adding an array_not_at_struct_end_p() that returns a conservative result would fix th= is but the strlen range optimization will likely be disabled regardless. >>From gcc-bugs-return-612552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 17:58:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67760 invoked by alias); 11 Aug 2018 17:58:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67715 invoked by uid 48); 11 Aug 2018 17:58:50 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86914] [8/9 Regression] -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Date: Sat, 11 Aug 2018 17:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00841.txt.bz2 Content-length: 381 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86914 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Martin Sebor --- Let me handle this. >>From gcc-bugs-return-612553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:13:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98209 invoked by alias); 11 Aug 2018 19:13:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98111 invoked by uid 48); 11 Aug 2018 19:13:30 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/78917] missing -Wnonnull passing null to a nonnull function Date: Sat, 11 Aug 2018 19:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00842.txt.bz2 Content-length: 469 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78917 --- Comment #2 from Martin Sebor --- Another test case: $ cat f.c && gcc -O2 -S -Wall -Wextra f.c int f (int i) { const char * p =3D __builtin_strchr (i ? "123" : "456", '2'); return __builtin_strlen (p); } The strlen argument is a phi with a null operand so that should make it eas= y to detect: # prephitmp_11 =3D PHI <_10(3), 0B(2)> _1 =3D __builtin_strlen (prephitmp_11); >>From gcc-bugs-return-612554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:31:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109850 invoked by alias); 11 Aug 2018 19:31:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109790 invoked by uid 48); 11 Aug 2018 19:31:32 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sat, 11 Aug 2018 19:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00843.txt.bz2 Content-length: 274 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #1 from Jonathan Wakely --- Does hppa64 really not have native atomic ops for sizeof(void*) ? I guess we need to use a mutex here, as I don't want libstdc++ to depend on libatomic. >>From gcc-bugs-return-612555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:32:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111160 invoked by alias); 11 Aug 2018 19:32:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110912 invoked by uid 48); 11 Aug 2018 19:32:12 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/80334] [5 Regression] Segfault when taking address of copy of unaligned struct Date: Sat, 11 Aug 2018 19:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00844.txt.bz2 Content-length: 828 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80334 Alexandre Oliva changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at gcc dot gnu.org --- Comment #11 from Alexandre Oliva --- FWIW, this testcase still fails with unaligned accesses in the trunk: #ifndef T # define T long #endif #ifndef R # define R "r" #endif typedef T A; // #define T to long or __int128 struct B { char d; A c; } __attribute__((packed)); B b[50]; // many elements to avoid loop unrolling int main () { for (int i =3D 0; i < sizeof(b) / sizeof(*b); i++) { asm ("" : "+" R (b[i].unpacked)); // #define R to "r" on ppc or "x" on x86_64 } } >>From gcc-bugs-return-612556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:36:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118909 invoked by alias); 11 Aug 2018 19:36:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118811 invoked by uid 48); 11 Aug 2018 19:36:00 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/80334] [5 Regression] Segfault when taking address of copy of unaligned struct Date: Sat, 11 Aug 2018 19:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00845.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80334 --- Comment #12 from Alexandre Oliva --- Created attachment 44527 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44527&action=3Dedit candidate patch to fix the error noted in comment 11 This patch fixes the unaligned accesses in the testcase in comment 11. I haven't yet tested it otherwise. >>From gcc-bugs-return-612557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:43:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122968 invoked by alias); 11 Aug 2018 19:43:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122908 invoked by uid 48); 11 Aug 2018 19:43:24 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85704] [8/9 Regression] cc1 run out of memory when it compile Date: Sat, 11 Aug 2018 19:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00846.txt.bz2 Content-length: 424 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85704 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #11 from Jakub Jelinek --- Fixed. >>From gcc-bugs-return-612558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:44:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124487 invoked by alias); 11 Aug 2018 19:44:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124413 invoked by uid 48); 11 Aug 2018 19:44:45 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86627] [6/7 Regression] Signed 128-bit division by 2 no longer expanded to RTL Date: Sat, 11 Aug 2018 19:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00847.txt.bz2 Content-length: 539 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86627 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[6/7/8/9 Regression] Signed |[6/7 Regression] Signed |128-bit division by 2 no |128-bit division by 2 no |longer expanded to RTL |longer expanded to RTL --- Comment #10 from Jakub Jelinek --- Fixed for 8.3+. >>From gcc-bugs-return-612560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:45:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125914 invoked by alias); 11 Aug 2018 19:45:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125570 invoked by uid 48); 11 Aug 2018 19:45:24 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86738] [8 Regression] gcc 8.2: Internal compiler error memcpy Date: Sat, 11 Aug 2018 19:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00849.txt.bz2 Content-length: 532 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86738 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[8/9 Regression] gcc 8.2: |[8 Regression] gcc 8.2: |Internal compiler error |Internal compiler error |memcpy |memcpy --- Comment #6 from Jakub Jelinek --- Fixed on the trunk so far. >>From gcc-bugs-return-612559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:45:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125905 invoked by alias); 11 Aug 2018 19:45:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125562 invoked by uid 48); 11 Aug 2018 19:45:24 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sat, 11 Aug 2018 19:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00848.txt.bz2 Content-length: 431 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Target Milestone|--- |9.0 >>From gcc-bugs-return-612561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 19:46:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127283 invoked by alias); 11 Aug 2018 19:46:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126945 invoked by uid 48); 11 Aug 2018 19:45:57 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86569] [6/7/8 Regression] -Wnonnull-compare affects code generation since r233684 Date: Sat, 11 Aug 2018 19:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00850.txt.bz2 Content-length: 601 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86569 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[6/7/8/9 Regression] |[6/7/8 Regression] |-Wnonnull-compare affects |-Wnonnull-compare affects |code generation since |code generation since |r233684 |r233684 --- Comment #6 from Jakub Jelinek --- Fixed on the trunk so far. >>From gcc-bugs-return-612563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:02:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7972 invoked by alias); 11 Aug 2018 20:02:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7931 invoked by uid 55); 11 Aug 2018 20:02:38 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sat, 11 Aug 2018 20:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00852.txt.bz2 Content-length: 667 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #2 from dave.anglin at bell dot net --- On 2018-08-11 3:31 PM, redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 > > --- Comment #1 from Jonathan Wakely --- > Does hppa64 really not have native atomic ops for sizeof(void*) ? Sadly, it lacks an atomic compare and exchange operation.=C2=A0 The mutex=20 support might have some form of kernel support but I don't know what it is. I've been working on atomic load and store support. > > I guess we need to use a mutex here, as I don't want libstdc++ to depend = on > libatomic. > Yes. Dave >>From gcc-bugs-return-612562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:02:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7187 invoked by alias); 11 Aug 2018 20:02:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7167 invoked by uid 48); 11 Aug 2018 20:02:22 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86918] New: internal compiler error: unexpected expression 'v' of kind template_parm_index Date: Sat, 11 Aug 2018 20:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00851.txt.bz2 Content-length: 1018 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86918 Bug ID: 86918 Summary: internal compiler error: unexpected expression 'v' of kind template_parm_index Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /****************** BEGIN SOURCE ******************/ template struct S { template struct X; }; template<> template struct S::X {=20 static constexpr bool value =3D v; }; static_assert(S::X::value); /******************* END SOURCE *******************/ : In instantiation of 'struct S::X': :13:30: required from here :9:18: internal compiler error: unexpected expression 'v' of kind template_parm_index 9 | struct S::X { | ^ >>From gcc-bugs-return-612564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:08:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10957 invoked by alias); 11 Aug 2018 20:08:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10910 invoked by uid 48); 11 Aug 2018 20:08:06 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sat, 11 Aug 2018 20:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00853.txt.bz2 Content-length: 212 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #3 from Jonathan Wakely --- N.B. this doesn't need compare and exchange, just exchange. I'll fix this early next week. >>From gcc-bugs-return-612565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:13:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13911 invoked by alias); 11 Aug 2018 20:13:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13842 invoked by uid 48); 11 Aug 2018 20:13:54 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 20:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00854.txt.bz2 Content-length: 852 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 John David Anglin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |danglin at gcc dot gnu.org --- Comment #9 from John David Anglin --- I don't have a 11.31 system, so you will probably have to work out and test= the fix. The hpux_long_double hack does two things. It comments out the _LONG_DOUBLE define and changes "long_double" to "long double". Steve Ellcey disabled it for 11.31 and added the hpux_long_double_2 hack for 11.31. >>From the build error, it looks like 11.31 needs a hack to change "long_dou= ble" to "long double". It would help to see the uses of long_double in stdlib.h. >>From gcc-bugs-return-612566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:21:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105028 invoked by alias); 11 Aug 2018 20:21:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103408 invoked by uid 48); 11 Aug 2018 20:21:46 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86919] New: strlen of a multidimensional array element with non-constant offset not folded Date: Sat, 11 Aug 2018 20:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00855.txt.bz2 Content-length: 1919 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86919 Bug ID: 86919 Summary: strlen of a multidimensional array element with non-constant offset not folded Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC 9 folds the first of the strlen() calls below where the first index into the array is a literal constant into an efficient expression but it misses = the same opportunity in the second call where the index is a variable with a kn= own value. (GCC 8folds neither.) $ cat f.c && gcc -O2 -S -Wall -Wextra -Wnull-dereference -fdump-tree-optimized=3D/dev/stdout f.c const char b[][5] =3D { "123", "1234" }; int f (int j) { return __builtin_strlen (&b[0][j]); // folded to 3 - i } int g (int j) { int i =3D 0; return __builtin_strlen (&b[i][j]); // not folded } ;; Function f (f, funcdef_no=3D0, decl_uid=3D1906, cgraph_uid=3D1, symbol_o= rder=3D1) Removing basic block 5 f (int j) { unsigned int j.1_1; unsigned int _2; int iftmp.0_3; int iftmp.0_5; [local count: 1073741825]: if (j_4(D) <=3D 3) goto ; [50.00%] else goto ; [50.00%] [local count: 536870912]: j.1_1 =3D (unsigned int) j_4(D); _2 =3D 3 - j.1_1; iftmp.0_5 =3D (int) _2; [local count: 1073741825]: # iftmp.0_3 =3D PHI return iftmp.0_3; } ;; Function g (g, funcdef_no=3D1, decl_uid=3D1909, cgraph_uid=3D2, symbol_o= rder=3D2) g (int j) { const char * _1; long unsigned int _2; int _5; sizetype _6; [local count: 1073741825]: _6 =3D (sizetype) j_3(D); _1 =3D &b + _6; _2 =3D __builtin_strlen (_1); _5 =3D (int) _2; return _5; } >>From gcc-bugs-return-612567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:23:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116392 invoked by alias); 11 Aug 2018 20:23:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116349 invoked by uid 48); 11 Aug 2018 20:23:14 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86920] New: A matching template specialization is not selected Date: Sat, 11 Aug 2018 20:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00856.txt.bz2 Content-length: 948 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86920 Bug ID: 86920 Summary: A matching template specialization is not selected Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /****************** BEGIN SOURCE ******************/ template struct S { template struct X {=20 static constexpr bool value =3D false; }; }; template<> template struct S::X {=20 static constexpr bool value =3D true; }; static_assert(S::X::value); /******************* END SOURCE *******************/ EXPECTED: no errors ACTUAL: :15:15: error: static assertion failed 15 | static_assert(S::X::value); | ^~~~~~ >>From gcc-bugs-return-612569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:33:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123285 invoked by alias); 11 Aug 2018 20:33:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123241 invoked by uid 48); 11 Aug 2018 20:33:38 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Sat, 11 Aug 2018 20:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00858.txt.bz2 Content-length: 2953 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Jonathan Wakely --- (In reply to Steffen Schuemann from comment #3) > gcc version 8.0.1 20180414 (experimental) [trunk revision 259383] (Ubuntu > 8-20180414-1ubuntu2)=20 Why are you using a pre-release snapshot from 4 months ago when the 8.1 and= 8.2 releases have been made since then? > I see, that LWG defect 2935 addresses this question. But first, my > understanding is a defect in WP status is still not part of the standard,= so > it might become part of some C++20 or some TC, but it currently doesn't s= eem > to be part of C++17 (selected by -std=3Dc++17). I might be wrong with tha= t. It's a defect in C++17. We implement the fixes, not implement a standard th= at is known to be defective. Why would you want a pedantic adherence to a defective standard? Do you also want compiler bugs to go unfixed, because t= hey were present in past releases? :-) Anyway, the manual says what -std=3Dc++17 means: "The 2017 ISO C++ standard plus amendments." https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html > And second, I still I don't really see how this is expected to be used by > the developers usinf std::fs. Without that postcondition you have to do a > check for the directory before using that it, so the "spared" call was > simply moved to the user code. Not testing could lead to harder to track > down bugs later on in a different domain of the software.=20 Yes, I agree. I don't think pushing the is_directory check onto users is helpful, but that's what the Defect Report resolution says. I was discussin= g it recently with the developer of libc++'s std::filesystem implementation and I think we both fail to meet the spec for create_directory (as you noted in comment 4). I'm not sure what libc++ does for create_directories. I haven't changed create_directory, because I like its current behaviour. I haven't changed create_directories because it was accidentally already doing what 2935 wants, and intentionally changing to disagree with the spec seems wrong. i.e. inertia has won. > And third, as testing for existence and type can be done with one call, That's true for my implementation of create_directories, but not for create_directory, where you don't need to test for existence. You call mkdir and if it returns EEXIST you know it already exists. To see if it's a direc= tory requires another system call (which I currently do). I've now asked the standard committee to reconsider whether we made the rig= ht call on 2935. I'll confirm this, because whatever happens create_directory and create_directories should be consistent, so I'll need to change one of them. >>From gcc-bugs-return-612568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 20:33:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122478 invoked by alias); 11 Aug 2018 20:33:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122410 invoked by uid 48); 11 Aug 2018 20:33:08 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 20:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00857.txt.bz2 Content-length: 901 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #10 from The Written Word --- (In reply to John David Anglin from comment #9) > It would help to see the uses of long_double in stdlib.h. /usr/include/stdlib.h has: # ifndef _LONG_DOUBLE # define _LONG_DOUBLE # if !defined(__ia64) || !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STR= UCT) typedef struct { uint32_t word1, word2, word3, word4; } long_double; extern long_double strtold __((const char * __restrict, char ** __restrict)= ); # else /* !__ia64 || !_PROTOTYPES || _LONG_DOUBLE_STRUCT */ # ifdef _INCLUDE_HPUX_SOURCE typedef long double long_double; # endif /* _INCLUDE_HPUX_SOURCE */ extern long double strtold __((const char * __restrict, char ** __restrict)= ); # endif /* !__ia64 ||!_PROTOTYPES ||_LONG_DOUBLE_STRUCT */ #endif /* _LONG_DOUBLE */ >>From gcc-bugs-return-612570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:03:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13166 invoked by alias); 11 Aug 2018 21:03:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13121 invoked by uid 48); 11 Aug 2018 21:03:38 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86829] Missing sin(atan(x)) and cos(atan(x)) optimizations Date: Sat, 11 Aug 2018 21:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00859.txt.bz2 Content-length: 775 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86829 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #4 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Giuliano Belinassi from comment #3) > (In reply to Marc Glisse from comment #1) > >=20 > > Do you have a copyright assignment (https://gcc.gnu.org/contribute.html= ) ? >=20 > No. Sorry, but I think I may need help getting this right. Are there any > tips? https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_e= asy_steps >>From gcc-bugs-return-612571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:25:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61300 invoked by alias); 11 Aug 2018 21:25:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61229 invoked by uid 48); 11 Aug 2018 21:25:01 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 21:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00860.txt.bz2 Content-length: 266 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #11 from The Written Word --- Created attachment 44528 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44528&action=3Dedit stdlib.h long_double patch >>From gcc-bugs-return-612572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:25:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62037 invoked by alias); 11 Aug 2018 21:25:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62010 invoked by uid 48); 11 Aug 2018 21:25:25 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 21:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00861.txt.bz2 Content-length: 291 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #12 from The Written Word --- (In reply to The Written Word from comment #11) > Created attachment 44528 [details] > stdlib.h long_double patch My first attempt but it didn't work. >>From gcc-bugs-return-612573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:51:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25727 invoked by alias); 11 Aug 2018 21:51:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25698 invoked by uid 48); 11 Aug 2018 21:51:46 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 21:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00862.txt.bz2 Content-length: 1208 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #13 from The Written Word --- (In reply to The Written Word from comment #10) > (In reply to John David Anglin from comment #9) > > It would help to see the uses of long_double in stdlib.h. >=20 > /usr/include/stdlib.h has: >=20 > # ifndef _LONG_DOUBLE > # define _LONG_DOUBLE > # if !defined(__ia64) || !defined(_PROTOTYPES) || > defined(_LONG_DOUBLE_STRUCT) > typedef struct { > uint32_t word1, word2, word3, word4; > } long_double; > extern long_double strtold __((const char * __restrict, char ** __restric= t)); > # else /* !__ia64 || !_PROTOTYPES || _LONG_DOUBLE_STRUCT */ > # ifdef _INCLUDE_HPUX_SOURCE > typedef long double long_double; > # endif /* _INCLUDE_HPUX_SOURCE */ > extern long double strtold __((const char * __restrict, char ** __restric= t)); > # endif /* !__ia64 ||!_PROTOTYPES ||_LONG_DOUBLE_STRUCT */ > #endif /* _LONG_DOUBLE */ I think the problem on 11.31 is that the strtold() definition is in the abo= ve. We can't simply remove it all and change long_double->long double in the remainder of the file to get the function definition changed. >>From gcc-bugs-return-612574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:56:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34775 invoked by alias); 11 Aug 2018 21:56:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34715 invoked by uid 48); 11 Aug 2018 21:56:10 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 21:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00863.txt.bz2 Content-length: 1551 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #14 from The Written Word --- (In reply to The Written Word from comment #13) > (In reply to The Written Word from comment #10) > > (In reply to John David Anglin from comment #9) > > > It would help to see the uses of long_double in stdlib.h. > >=20 > > /usr/include/stdlib.h has: > >=20 > > # ifndef _LONG_DOUBLE > > # define _LONG_DOUBLE > > # if !defined(__ia64) || !defined(_PROTOTYPES) || > > defined(_LONG_DOUBLE_STRUCT) > > typedef struct { > > uint32_t word1, word2, word3, word4; > > } long_double; > > extern long_double strtold __((const char * __restrict, char ** __restr= ict)); > > # else /* !__ia64 || !_PROTOTYPES || _LONG_DOUBLE_STRUCT */ > > # ifdef _INCLUDE_HPUX_SOURCE > > typedef long double long_double; > > # endif /* _INCLUDE_HPUX_SOURCE */ > > extern long double strtold __((const char * __restrict, char ** __restr= ict)); > > # endif /* !__ia64 ||!_PROTOTYPES ||_LONG_DOUBLE_STRUCT */ > > #endif /* _LONG_DOUBLE */ >=20 > I think the problem on 11.31 is that the strtold() definition is in the > above. We can't simply remove it all and change long_double->long double = in > the remainder of the file to get the function definition changed. Hmm, maybe two new rules, the first to remove everything before "extern long double strtold" and change long_double->long double and the second to remove the two lines after "extern long double strtold". Let me try to come up with something. >>From gcc-bugs-return-612575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:58:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36012 invoked by alias); 11 Aug 2018 21:58:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35973 invoked by uid 55); 11 Aug 2018 21:58:19 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sat, 11 Aug 2018 21:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00864.txt.bz2 Content-length: 1466 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #15 from dave.anglin at bell dot net --- On 2018-08-11 5:51 PM, bugzilla-gcc at thewrittenword dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 > > --- Comment #13 from The Written Word --- > (In reply to The Written Word from comment #10) >> (In reply to John David Anglin from comment #9) >>> It would help to see the uses of long_double in stdlib.h. >> /usr/include/stdlib.h has: >> >> # ifndef _LONG_DOUBLE >> # define _LONG_DOUBLE >> # if !defined(__ia64) || !defined(_PROTOTYPES) || >> defined(_LONG_DOUBLE_STRUCT) >> typedef struct { >> uint32_t word1, word2, word3, word4; >> } long_double; >> extern long_double strtold __((const char * __restrict, char ** __restri= ct)); >> # else /* !__ia64 || !_PROTOTYPES || _LONG_DOUBLE_STRUCT */ >> # ifdef _INCLUDE_HPUX_SOURCE >> typedef long double long_double; >> # endif /* _INCLUDE_HPUX_SOURCE */ >> extern long double strtold __((const char * __restrict, char ** __restri= ct)); >> # endif /* !__ia64 ||!_PROTOTYPES ||_LONG_DOUBLE_STRUCT */ >> #endif /* _LONG_DOUBLE */ > I think the problem on 11.31 is that the strtold() definition is in the a= bove. > We can't simply remove it all and change long_double->long double in the > remainder of the file to get the function definition changed. You could replace the above with prototype for strtold(). >>From gcc-bugs-return-612576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 11 21:59:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43223 invoked by alias); 11 Aug 2018 21:59:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43176 invoked by uid 55); 11 Aug 2018 21:59:55 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sat, 11 Aug 2018 21:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00865.txt.bz2 Content-length: 388 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #4 from dave.anglin at bell dot net --- On 2018-08-11 4:08 PM, redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 > > --- Comment #3 from Jonathan Wakely --- > N.B. this doesn't need compare and exchange, just exchange. There also isn't exchange operation. :-( >>From gcc-bugs-return-612577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 00:03:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79981 invoked by alias); 12 Aug 2018 00:03:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79962 invoked by uid 48); 12 Aug 2018 00:03:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86920] A matching template specialization is not selected Date: Sun, 12 Aug 2018 00:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00866.txt.bz2 Content-length: 519 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86920 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-12 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Confirmed. Not a regression as far as I can tell. >>From gcc-bugs-return-612578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 00:04:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81030 invoked by alias); 12 Aug 2018 00:04:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80981 invoked by uid 48); 12 Aug 2018 00:04:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sun, 12 Aug 2018 00:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00867.txt.bz2 Content-length: 1187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #5 from Jonathan Wakely --- This should do it: --- a/libstdc++-v3/src/c++17/memory_resource.cc +++ b/libstdc++-v3/src/c++17/memory_resource.cc @@ -25,6 +25,7 @@ #include #include #include +#include namespace std _GLIBCXX_VISIBILITY(default) { @@ -81,7 +82,31 @@ namespace pmr constant_init newdel_res{}; constant_init null_res{}; +#if ATOMIC_POINTER_LOCK_FREE =3D=3D 2 constant_init> default_res{&newdel_res.obj}; +#else + struct locking_atomic + { + constexpr locking_atomic(memory_resource* r) : val(r) { } + mutex mx; + memory_resource* val; + + memory_resource* load() + { + lock_guard lock(mx); + return val; + } + + memory_resource* exchange(memory_resource* r) + { + lock_guard lock(mx); + auto prev =3D val; + val =3D r; + return prev; + } + }; + constant_init default_res{&newdel_res.obj}; +#endif } // namespace memory_resource* >>From gcc-bugs-return-612579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 00:16:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114859 invoked by alias); 12 Aug 2018 00:16:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114659 invoked by uid 55); 12 Aug 2018 00:16:15 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Sun, 12 Aug 2018 00:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00868.txt.bz2 Content-length: 233 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #6 from dave.anglin at bell dot net --- On 2018-08-11 8:04 PM, redi at gcc dot gnu.org wrote: > This should do it: I'll give it a test on my next build. Thanks, Dave >>From gcc-bugs-return-612580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 01:51:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35302 invoked by alias); 12 Aug 2018 01:50:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34268 invoked by uid 48); 12 Aug 2018 01:50:55 -0000 From: "rogermc at iinet dot net.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/86916] 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access Date: Sun, 12 Aug 2018 01:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rogermc at iinet dot net.au X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00869.txt.bz2 Content-length: 207 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86916 --- Comment #3 from Roger Mc Murtrie --- This problem doesn't occur for compile only. It occurs when I Build All from GPS >>From gcc-bugs-return-612581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 08:25:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61334 invoked by alias); 12 Aug 2018 08:25:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61278 invoked by uid 48); 12 Aug 2018 08:25:22 -0000 From: "yamirenk at ya dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] New: do not remove input in bash Date: Sun, 12 Aug 2018 08:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamirenk at ya dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00870.txt.bz2 Content-length: 523 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 Bug ID: 86921 Summary: do not remove input in bash Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yamirenk at ya dot ru Target Milestone: --- when the second line begins. symbols, entered in first line, does not remove(with backspace). for example: "cin >> init;" >>From gcc-bugs-return-612582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 10:55:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26745 invoked by alias); 12 Aug 2018 10:55:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26713 invoked by uid 55); 12 Aug 2018 10:55:45 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86906] erroneous name clash with renaming in use statement Date: Sun, 12 Aug 2018 10:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00871.txt.bz2 Content-length: 779 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86906 --- Comment #1 from Paul Thomas --- Author: pault Date: Sun Aug 12 10:55:13 2018 New Revision: 263494 URL: https://gcc.gnu.org/viewcvs?rev=3D263494&root=3Dgcc&view=3Drev Log: 2018-08-12 Paul Thomas PR fortran/86906 * resolve.c (resolve_fl_variable_derived): Check if the derived type is use associated before checking for the host association error. 2018-08-12 Paul Thomas PR fortran/86906 * gfortran.dg/use_rename_9.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/use_rename_9.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 10:56:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28261 invoked by alias); 12 Aug 2018 10:56:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28230 invoked by uid 48); 12 Aug 2018 10:56:42 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86906] erroneous name clash with renaming in use statement Date: Sun, 12 Aug 2018 10:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00872.txt.bz2 Content-length: 661 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86906 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-12 CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gn= u.org Ever confirmed|0 |1 --- Comment #2 from Paul Thomas --- I will commit to 8-branch as well. Paul >>From gcc-bugs-return-612584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 12:09:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44864 invoked by alias); 12 Aug 2018 12:09:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44798 invoked by uid 48); 12 Aug 2018 12:09:42 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sun, 12 Aug 2018 12:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00873.txt.bz2 Content-length: 266 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #16 from The Written Word --- Created attachment 44529 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44529&action=3Dedit stdlib.h long_double patch >>From gcc-bugs-return-612585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 12:10:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45685 invoked by alias); 12 Aug 2018 12:10:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45628 invoked by uid 48); 12 Aug 2018 12:10:07 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sun, 12 Aug 2018 12:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00874.txt.bz2 Content-length: 307 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #17 from The Written Word --- (In reply to The Written Word from comment #16) > Created attachment 44529 [details] > stdlib.h long_double patch This is the patch I came up with. What do you think? >>From gcc-bugs-return-612586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 12:46:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97763 invoked by alias); 12 Aug 2018 12:46:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97536 invoked by uid 55); 12 Aug 2018 12:45:44 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sun, 12 Aug 2018 12:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00875.txt.bz2 Content-length: 635 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #18 from dave.anglin at bell dot net --- On 2018-08-12 8:10 AM, bugzilla-gcc at thewrittenword dot com wrote: > This is the patch I came up with. What do you think? Did you check that "make check" in the fixincludes build directory works=20 and there are no issues left?=C2=A0 See README in fixincludes directory. If this works, please add a ChangeLog entry to the patch and send it to=20 gcc-patches. CC Bruce Korb and myself. It would be good if you could post test results for 11.31 to=20 gcc-testresults.=C2=A0 This will help find further problems. Thanks, Dave >>From gcc-bugs-return-612587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 12:53:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103868 invoked by alias); 12 Aug 2018 12:53:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103843 invoked by uid 48); 12 Aug 2018 12:53:51 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Sun, 12 Aug 2018 12:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00876.txt.bz2 Content-length: 880 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #19 from The Written Word --- (In reply to dave.anglin from comment #18) > On 2018-08-12 8:10 AM, bugzilla-gcc at thewrittenword dot com wrote: > > This is the patch I came up with. What do you think? > > Did you check that "make check" in the fixincludes build directory works= =20 > and there are no issues left?=C2=A0 See README in fixincludes directory. >=20 > If this works, please add a ChangeLog entry to the patch and send it to=20 > gcc-patches. > CC Bruce Korb and myself. >=20 > It would be good if you could post test results for 11.31 to=20 > gcc-testresults.=C2=A0 This will > help find further problems. Ok, will take care of all of the above. Found one issue in my patch which I= 'm testing now. Once I have something that passes the above, will submit. >>From gcc-bugs-return-612588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 13:39:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87337 invoked by alias); 12 Aug 2018 13:39:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87285 invoked by uid 48); 12 Aug 2018 13:39:14 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86918] internal compiler error: unexpected expression 'v' of kind template_parm_index Date: Sun, 12 Aug 2018 13:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00877.txt.bz2 Content-length: 600 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86918 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-12 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. Not a regression as far as I can see. >>From gcc-bugs-return-612589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 13:49:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99985 invoked by alias); 12 Aug 2018 13:49:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93499 invoked by uid 48); 12 Aug 2018 13:48:12 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86918] internal compiler error: unexpected expression 'v' of kind template_parm_index Date: Sun, 12 Aug 2018 13:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00878.txt.bz2 Content-length: 177 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86918 --- Comment #2 from Marek Polacek --- Started with r223304. With r223301, there's an error. >>From gcc-bugs-return-612590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 13:58:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104833 invoked by alias); 12 Aug 2018 13:58:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104794 invoked by uid 48); 12 Aug 2018 13:58:09 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86918] internal compiler error: unexpected expression 'v' of kind template_parm_index Date: Sun, 12 Aug 2018 13:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00879.txt.bz2 Content-length: 930 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86918 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code --- Comment #3 from Marek Polacek --- I guess invalid: $ clang++ -c 86918.C -std=3Dc++17 86918.C:8:15: error: non-type template parameter conflicts with previous non-type template parameter pack template ^ 86918.C:3:21: note: previous non-type template parameter pack declared here template ^ 86918.C:13:23: error: implicit instantiation of undefined template 'S::X' static_assert(S::X::value); ^ 86918.C:4:12: note: template is declared here struct X; ^ 2 errors generated. >>From gcc-bugs-return-612591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 15:02:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126511 invoked by alias); 12 Aug 2018 15:02:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126460 invoked by uid 48); 12 Aug 2018 15:02:28 -0000 From: "ssh at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Sun, 12 Aug 2018 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssh at pobox dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00880.txt.bz2 Content-length: 1737 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 --- Comment #6 from Steffen Schuemann --- Yeah, I totally understand, that if the behaviour of create_directories was= in conformance to the resolution to that defect, you don't feel like changing anything. And I definitely don't want to be pedantic. In the end, if this i= s, what is wanted, I have to accept the solution. Well, I might even feel pres= sed to adapt the behaviour of my own implementation to that. I guess, if I had = seen the defect report in advance, I might not even have bothered you with this, even if I would have felt bad about that decision. But I'm really grateful, that you did forward that question, thank you for trying. The GCC version I was using was simply the GCC8 that my Ubuntu 18.04 virtual machine had available. I didn't want to build my own GCC on that vm as I ha= ve some disk space issues. Before filing the issue, I double checked against t= he head of the source, to make sure it is nothing changed in a later version. I additionally tested against the g++ on my macOS that is the 8.1.0 from homebrew. And just for the fun of it, I used some time to double check the source of libc++ and compiled myself a clang-8 from HEAD to run my tests with that one too, and it is just the other way around: create_directories fails/throws w= hen a file with that name exists, and create_directory doesn't. :-) I guess there's some inconsistency too, but this is the wrong issue tracker= for that. In the end, I vote for consistency, either the more useful way with the postcondition, or the fixed way without. Whichever docs you use when calling them, they should behave consistently. Thanks again, for the help and work! >>From gcc-bugs-return-612592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 15:06:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129127 invoked by alias); 12 Aug 2018 15:06:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129063 invoked by uid 48); 12 Aug 2018 15:06:00 -0000 From: "bmerry at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86922] New: Invoking templated PTMF on subclass gives false strict-aliasing warning Date: Sun, 12 Aug 2018 15:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bmerry at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00881.txt.bz2 Content-length: 4438 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86922 Bug ID: 86922 Summary: Invoking templated PTMF on subclass gives false strict-aliasing warning Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bmerry at gmail dot com Target Milestone: --- When using a pointer-to-member-function which is a template parameter on an instance of a derived class, I get a warning about type-punned pointers breaking strict aliasing. Warning message and sample code are below. This doesn't seem to be a recent regression. I get essentially the same war= ning (modulo formatting) from 4.8.5, 7.3.0 and Ubuntu's pre-release 8.0.1 (all on Ubuntu 18.04, x86-64). The code: class A { public: int a; void foo() const; }; class B : public A {}; template class Wrapper { public: void operator()(const B &obj) const { return (obj.*Ptr)(); } }; void call() { Wrapper<&B::foo> wrapper; wrapper(B()); } Command line: g++ -c strict.cpp -Wall -O2 Output: with void (A::* Ptr)() const =3D &A::foo]=E2=80=99: strict.cpp:23:16: required from here strict.cpp:16:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] return (obj.*Ptr)(); ~~~~~~~~~~^~ gcc version info: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 7.3.0-16ub= untu3' --with-bugurl=3Dfile:///usr/share/doc/gcc-7/README.Bugs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --with-as=3D/usr/bin/x86_64-linux-gnu-as --with-ld=3D/usr/bin/x86_64-linux-gnu-ld --program-suffix=3D-7 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)=20 Alternate version info: Using built-in specs. COLLECT_GCC=3Dgcc-8 COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 8-20180414-1ubuntu2' --with-bugurl=3Dfile:///usr/share/doc/gcc-8/README.Bugs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --with-as=3D/usr/bin/x86_64-linux-gnu-as --with-ld=3D/usr/bin/x86_64-linux-gnu-ld --program-suffix=3D-8 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 8.0.1 20180414 (experimental) [trunk revision 259383] (Ubuntu 8-20180414-1ubuntu2) >>From gcc-bugs-return-612593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 15:14:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17076 invoked by alias); 12 Aug 2018 15:14:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17051 invoked by uid 48); 12 Aug 2018 15:14:38 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86472] allocatable array, bound-procedure, submodule Date: Sun, 12 Aug 2018 15:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00882.txt.bz2 Content-length: 923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86472 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #7 from Paul Thomas --- > Everything goes through without error. I thought "Such specifications have > no effect." was not clear. The uncharacteristic entities should not be > specified in the interface. Hi Jim, I thought the wording to be very strange as well. I wondered if it is just a convenience to allow copy and paste of all the specification statements int= o an interface. I have marked the PR as RESOLVED/INVALID - if you have any problems with th= at, remark it as WAITING. Thanks for the report by the way :-) Paul >>From gcc-bugs-return-612594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 15:36:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59334 invoked by alias); 12 Aug 2018 15:36:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59273 invoked by uid 55); 12 Aug 2018 15:36:25 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86906] erroneous name clash with renaming in use statement Date: Sun, 12 Aug 2018 15:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00883.txt.bz2 Content-length: 843 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86906 --- Comment #3 from Paul Thomas --- Author: pault Date: Sun Aug 12 15:35:53 2018 New Revision: 263498 URL: https://gcc.gnu.org/viewcvs?rev=3D263498&root=3Dgcc&view=3Drev Log: 2018-08-12 Paul Thomas PR fortran/86906 * resolve.c (resolve_fl_variable_derived): Check if the derived type is use associated before checking for the host association error. 2018-08-12 Paul Thomas PR fortran/86906 * gfortran.dg/use_rename_9.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/use_rename_9.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/resolve.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 15:39:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62251 invoked by alias); 12 Aug 2018 15:39:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62205 invoked by uid 48); 12 Aug 2018 15:39:36 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86906] erroneous name clash with renaming in use statement Date: Sun, 12 Aug 2018 15:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00884.txt.bz2 Content-length: 470 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86906 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Paul Thomas --- Fixed on trunk and 8-branch Thanks for the report. Paul >>From gcc-bugs-return-612596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 17:19:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96515 invoked by alias); 12 Aug 2018 17:19:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96449 invoked by uid 55); 12 Aug 2018 17:19:41 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66679] [OOP] ICE with class(*) and transfer Date: Sun, 12 Aug 2018 17:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: minor X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00885.txt.bz2 Content-length: 878 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66679 --- Comment #4 from Paul Thomas --- Author: pault Date: Sun Aug 12 17:19:09 2018 New Revision: 263499 URL: https://gcc.gnu.org/viewcvs?rev=3D263499&root=3Dgcc&view=3Drev Log: 2018-08-12 Paul Thomas PR fortran/66679 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Class array elements are returned as references to the data element. Get the class expression by stripping back the references. Use this for the element size. 2018-08-12 Paul Thomas PR fortran/66679 * gfortran.dg/transfer_class_3.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/transfer_class_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-intrinsic.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 17:20:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97760 invoked by alias); 12 Aug 2018 17:20:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97669 invoked by uid 48); 12 Aug 2018 17:20:45 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66679] [OOP] ICE with class(*) and transfer Date: Sun, 12 Aug 2018 17:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: minor X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00886.txt.bz2 Content-length: 509 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66679 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Paul Thomas --- Fixed on trunk. Thanks for the report and sorry for the long delay in committing the fix. Paul >>From gcc-bugs-return-612598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 17:20:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97827 invoked by alias); 12 Aug 2018 17:20:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97699 invoked by uid 48); 12 Aug 2018 17:20:45 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/31237] [meta-bug] TRANSFER intrinsic Date: Sun, 12 Aug 2018 17:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.3.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00887.txt.bz2 Content-length: 462 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D31237 Bug 31237 depends on bug 66679, which changed state. Bug 66679 Summary: [OOP] ICE with class(*) and transfer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66679 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-612599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 18:12:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56727 invoked by alias); 12 Aug 2018 18:12:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56671 invoked by uid 48); 12 Aug 2018 18:12:53 -0000 From: "nightstrike at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86923] New: Missed optimization performing consecutive integer sum, loop not removed Date: Sun, 12 Aug 2018 18:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nightstrike at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00888.txt.bz2 Content-length: 1050 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86923 Bug ID: 86923 Summary: Missed optimization performing consecutive integer sum, loop not removed Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- unsigned long f(unsigned int n) { unsigned long total =3D 0; for (unsigned int i =3D 0; i < n; ++i) total +=3D i; return total; } It may not be terribly useful to report this, as I can (and arguably should) write n(n-1)/2 manually, but clang does successfully transform this into: lea eax, [rdi - 1] add edi, -2 imul rdi, rax shr rdi add rdi, rax whereas GCC tries instead to vectorize and process the loop as written.=20 Obviously, O(1) is preferable to O(n) here. This applies to both C and C++. >>From gcc-bugs-return-612600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 18:18:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60035 invoked by alias); 12 Aug 2018 18:18:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60001 invoked by uid 48); 12 Aug 2018 18:18:35 -0000 From: "contact at ligh dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86924] New: tree-slp-vectorize may create unaligned memory access, causing segmentation fault Date: Sun, 12 Aug 2018 18:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: contact at ligh dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00889.txt.bz2 Content-length: 4033 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86924 Bug ID: 86924 Summary: tree-slp-vectorize may create unaligned memory access, causing segmentation fault Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: contact at ligh dot de Target Milestone: --- Compiler version: 8.2.0 for Windows 64 bit, as released in MSYS2 / MinGW64 Windows 7 SP1, 64 bit $ gcc -v Using built-in specs. COLLECT_GCC=3DH:\development\media-autobuild_suite-master\msys64\mingw64\bi= n\gcc.exe COLLECT_LTO_WRAPPER=3DH:/development/media-autobuild_suite-master/msys64/mi= ngw64/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-8.2.0/configure --prefix=3D/mingw64 --with-local-prefix=3D/mingw64/local --build=3Dx86_64-w64-mingw32 --host=3Dx86_64-w64-mingw32 --target=3Dx86_64-w64-mingw32 --with-native-system-header-dir=3D/mingw64/x86_64-w64-mingw32/include --libexecdir=3D/mingw64/lib --enable-bootstrap --with-arch=3Dx86-64 --with-tune=3Dgeneric --enable-languages=3Dada,c,lto,c++,objc,obj-c++,fortr= an --enable-shared --enable-static --enable-libatomic --enable-threads=3Dposix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=3Dyes --enable-libstdcxx-time=3Dyes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-che= ck --enable-lto --enable-libgomp --disable-multilib --enable-checking=3Drelease --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=3D/mingw64 --with-mpfr=3D/mingw64 --with-mpc=3D/mingw64 --with-isl=3D/mingw64 --with-pkgversion=3D'Rev1, Built by MSYS2 project' --with-bugurl=3Dhttps://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld Thread model: posix gcc version 8.2.0 (Rev1, Built by MSYS2 project) The AOMedia AV1 video encoder compiled with this version (but it is probably independent of the operating system) crashes while encoding. The following = bug report in the Chromium bug tracker analyzed the problem, especially comment= 7 went down to disassembly: https://bugs.chromium.org/p/aomedia/issues/detail?id=3D2055#c7 Summary by lupo...: +---- Bug appears in the compilation of https://aomedia.googlesource.com/aom/+/da17065690c185ae678d5db9466cf0a402ca= 6b6d/av1/encoder/encoder.c#3415 More precisely in the optimized and inlined lshift_bwd_ref_frames(cpi) insi= de update_reference_frames Disassembly listings to follow: cmake -G "MSYS Makefiles" -DCONFIG_LOWBITDEPTH=3D1 -DENABLE_DOCS=3D0 -DENABLE_TESTS=3Doff ../aom loc_4D5CD2: mov edx, [rcx+35624Ch] movdqa xmm3, xmmword ptr [rcx+478E38h] mov [rcx+356248h], edx mov edx, [rcx+356254h] movaps xmmword ptr [rcx+478E28h], xmm3 movdqa xmm3, xmmword ptr [rcx+478E58h] mov [rcx+35624Ch], edx movaps xmmword ptr [rcx+478E38h], xmm3 mov [rcx+356254h], r11d jmp loc_4D58A0 cmake -G "MSYS Makefiles" -DCONFIG_LOWBITDEPTH=3D1 -DENABLE_DOCS=3D0 -DENABLE_TESTS=3Doff -DAOM_EXTRA_C_FLAGS=3D"-fno-tree-slp-vectorize" -DAOM_EXTRA_CXX_FLAGS=3D"-fno-tree-slp-vectorize" ../aom loc_4D5DC2: mov edx, [rcx+35624Ch] movdqu xmm3, xmmword ptr [rcx+478E38h] movdqu xmm5, xmmword ptr [rcx+478E58h] mov [rcx+356248h], edx mov edx, [rcx+356254h] movups xmmword ptr [rcx+478E28h], xmm3 mov [rcx+35624Ch], edx movups xmmword ptr [rcx+478E38h], xmm5 mov [rcx+356254h], r11d jmp loc_4D5993 It all reduces to aligned vs unaligned memory access. By manually patching = the faulty executable, changing movdqa to movdqu and movaps to movups, I have b= een able to finish an encode without problems. +---- Please excuse not providing all the details you requested in the "Reporting Bugs" guide. But I believe the linked bug report in the Chromium tracker is verbose enough to understand the issue. >>From gcc-bugs-return-612601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 18:26:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64024 invoked by alias); 12 Aug 2018 18:26:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63968 invoked by uid 48); 12 Aug 2018 18:26:32 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86925] New: ice in get_predictor_value, at pre dict.c:2551 Date: Sun, 12 Aug 2018 18:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00890.txt.bz2 Content-length: 1298 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 Bug ID: 86925 Summary: ice in get_predictor_value, at pre dict.c:2551 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 44530 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44530&action=3Dedit C source code For the attached C code, compiled with flag -O2 and recent gcc trunk: ../results.263455/bin/gcc ../results.263471.ubsan/bin/gcc during GIMPLE pass: profile_estimate gstsystemclock.c: In function =E2=80=98gst_system_clock_id_wait_jitter_unlo= cked=E2=80=99: gstsystemclock.c:1026:1: internal compiler error: in get_predictor_value, at pre dict.c:2551 0x611f7d get_predictor_value ../../trunk/gcc/predict.c:2551 0x1bce7d3 tree_predict_by_opcode ../../trunk/gcc/predict.c:2586 0x1bce7d3 tree_estimate_probability_bb ../../trunk/gcc/predict.c:2969 0x1bffc99 tree_estimate_probability(bool) ../../trunk/gcc/predict.c:2997 So the problem seems to have started between revisions 263455 and 263471. I'll have a go at reducing the code. >>From gcc-bugs-return-612602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 18:32:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67079 invoked by alias); 12 Aug 2018 18:32:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67031 invoked by uid 48); 12 Aug 2018 18:32:36 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86925] ice in get_predictor_value, at predict.c:2551 Date: Sun, 12 Aug 2018 18:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00891.txt.bz2 Content-length: 457 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #1 from David Binderman --- Revision 263466 may well be the culprit. Adding marxin for their advice. >>From gcc-bugs-return-612603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 18:36:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69304 invoked by alias); 12 Aug 2018 18:36:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69257 invoked by uid 48); 12 Aug 2018 18:36:11 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86925] ice in get_predictor_value, at predict.c:2551 Date: Sun, 12 Aug 2018 18:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00892.txt.bz2 Content-length: 841 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 --- Comment #2 from David Binderman --- Reduced C code is: typedef enum { a } b; d() { b c; do if (__builtin_expect(({ int e; if (c =3D=3D a) e =3D 1; else e =3D 0; e; }), 0)) break; while (__builtin_expect(({ ({ f(); }); }), 0)); if (__builtin_expect(({ int e; if (c =3D=3D a) e =3D 1; else e =3D 0; e; }), 0)) g(); } >>From gcc-bugs-return-612604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 19:24:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104343 invoked by alias); 12 Aug 2018 19:24:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104258 invoked by uid 48); 12 Aug 2018 19:24:47 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86925] ice in get_predictor_value, at predict.c:2551 Date: Sun, 12 Aug 2018 19:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00893.txt.bz2 Content-length: 669 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-12 Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #3 from Martin Li=C5=A1ka --- Thanks for the report, I'm aware of it already by Jeff Law. I've got fix th= at I'll install tomorrow. >>From gcc-bugs-return-612606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 19:57:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1504 invoked by alias); 12 Aug 2018 19:57:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1291 invoked by uid 48); 12 Aug 2018 19:57:23 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95) Date: Sun, 12 Aug 2018 19:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: meta-bug, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00895.txt.bz2 Content-length: 488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D26163 Bug 26163 depends on bug 85160, which changed state. Bug 85160 Summary: GCC generates mvn/and instructions instead of bic on aar= ch64 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85160 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-612605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 19:57:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1349 invoked by alias); 12 Aug 2018 19:57:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1262 invoked by uid 48); 12 Aug 2018 19:57:23 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85160] GCC generates mvn/and instructions instead of bic on aarch64 Date: Sun, 12 Aug 2018 19:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00894.txt.bz2 Content-length: 456 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85160 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Segher Boessenkool --- This is fixed on trunk now. >>From gcc-bugs-return-612607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 20:49:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102853 invoked by alias); 12 Aug 2018 20:49:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102797 invoked by uid 48); 12 Aug 2018 20:49:02 -0000 From: "ensadc at mailnesia dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85457] enum and auto template parameter mixup Date: Sun, 12 Aug 2018 20:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: rejects-valid, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ensadc at mailnesia dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00896.txt.bz2 Content-length: 409 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85457 ensadc at mailnesia dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ensadc at mailnesia dot com --- Comment #1 from ensadc at mailnesia dot com --- This seems to have been fixed. Duplicate of bug 79092? >>From gcc-bugs-return-612609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 22:36:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37185 invoked by alias); 12 Aug 2018 22:35:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37148 invoked by uid 48); 12 Aug 2018 22:35:55 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Sun, 12 Aug 2018 22:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00898.txt.bz2 Content-length: 544 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-12 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- This is not a usable bug report. Please see https://gcc.gnu.org/bugs/ >>From gcc-bugs-return-612608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 22:35:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36343 invoked by alias); 12 Aug 2018 22:35:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36304 invoked by uid 48); 12 Aug 2018 22:35:15 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition. Date: Sun, 12 Aug 2018 22:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00897.txt.bz2 Content-length: 855 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86910 --- Comment #7 from Jonathan Wakely --- (In reply to Steffen Schuemann from comment #6) > And just for the fun of it, I used some time to double check the source of > libc++ and compiled myself a clang-8 from HEAD to run my tests with that = one > too, and it is just the other way around: create_directories fails/throws > when a file with that name exists, and create_directory doesn't. :-) Ha! > In the end, I vote for consistency, either the more useful way with the > postcondition, or the fixed way without. Whichever docs you use when call= ing > them, they should behave consistently. Yes, I definitely agree. Once the committee finishes discussing it and decides to either revisit the= DR, or reconfirm it's definitely what we want, then I'll change libstdc++. >>From gcc-bugs-return-612610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 22:37:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38766 invoked by alias); 12 Aug 2018 22:37:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38638 invoked by uid 48); 12 Aug 2018 22:37:55 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85457] enum and auto template parameter mixup Date: Sun, 12 Aug 2018 22:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: rejects-valid, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00899.txt.bz2 Content-length: 591 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85457 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #2 from Jonathan Wakely --- (In reply to ensadc from comment #1) > This seems to have been fixed. Duplicate of bug 79092? Yes, thanks *** This bug has been marked as a duplicate of bug 79092 *** >>From gcc-bugs-return-612611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 22:38:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38945 invoked by alias); 12 Aug 2018 22:38:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38715 invoked by uid 48); 12 Aug 2018 22:37:57 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/79092] template: type ignored if value already instantiated Date: Sun, 12 Aug 2018 22:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00900.txt.bz2 Content-length: 441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79092 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |info at thinkmeta dot de --- Comment #8 from Jonathan Wakely --- *** Bug 85457 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-612612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 23:31:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98941 invoked by alias); 12 Aug 2018 23:31:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98885 invoked by uid 48); 12 Aug 2018 23:31:31 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86926] New: [Regression] ICE for a recursive generic lambda Date: Sun, 12 Aug 2018 23:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00901.txt.bz2 Content-length: 1381 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86926 Bug ID: 86926 Summary: [Regression] ICE for a recursive generic lambda Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /************************* BEGIN SOURCE *************************/ int main() { constexpr auto f =3D [](auto self, auto n) { if(n < 2) return n; return self(self, n - 1) + self(self, n - 2); }; constexpr auto fibonacci =3D [=3D](auto n) { return f(f, n); }; static_assert(fibonacci(7) =3D=3D 13); } /************************** END SOURCE **************************/ Compile with -std=3Dc++17. EXPECTED: no errors. ACTUAL: : In instantiation of 'main():: [with auto:3 =3D in= t]': :11:30: required from here :9:54: internal compiler error: in build_over_call, at cp/call.c:82= 14 9 | constexpr auto fibonacci =3D [=3D](auto n) { return f(f, n); }; | ~^~~~~~ Tested with build 9.0.0 20180810 (experimental), appears to be a regression from GCC 8.2. For comparison, the code also successfully compiles with Clan= g. >>From gcc-bugs-return-612613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 23:41:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103689 invoked by alias); 12 Aug 2018 23:41:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103643 invoked by uid 48); 12 Aug 2018 23:41:39 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86926] [Regression] ICE for a recursive generic lambda Date: Sun, 12 Aug 2018 23:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00902.txt.bz2 Content-length: 210 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86926 --- Comment #1 from Vladimir Reshetnikov -= -- Note: the error disappears if the variable `f` is not declared `constexpr`. >>From gcc-bugs-return-612614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 23:45:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109333 invoked by alias); 12 Aug 2018 23:45:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109238 invoked by uid 48); 12 Aug 2018 23:45:47 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86926] [8/9 Regression] ICE for a recursive generic lambda Date: Sun, 12 Aug 2018 23:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00903.txt.bz2 Content-length: 778 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86926 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-12 CC| |mpolacek at gcc dot gnu.org Summary|[Regression] ICE for a |[8/9 Regression] ICE for a |recursive generic lambda |recursive generic lambda Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed. >>From gcc-bugs-return-612615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 12 23:48:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111313 invoked by alias); 12 Aug 2018 23:48:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111173 invoked by uid 48); 12 Aug 2018 23:48:32 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86926] [8/9 Regression] ICE for a recursive generic lambda Date: Sun, 12 Aug 2018 23:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00904.txt.bz2 Content-length: 144 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86926 --- Comment #3 from Marek Polacek --- Started with r261121. >>From gcc-bugs-return-612616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 01:21:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3588 invoked by alias); 13 Aug 2018 01:21:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3524 invoked by uid 48); 13 Aug 2018 01:21:22 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/78251] config/gettext.m4 and config/iconv.m4 contaminate CPPFLAGS Date: Mon, 13 Aug 2018 01:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00905.txt.bz2 Content-length: 859 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78251 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2017-07-20 00:00:00 |2018-8-12 CC| |jeremyhu at macports dot o= rg --- Comment #7 from Eric Gallager --- (In reply to Eric Gallager from comment #4) > (In reply to Mike Stump from comment #3) > > I've been avoiding this bug for years by just removing the unwind.h hea= der.=20 > > :-( >=20 > Confirming because I seem to remember solving a build issue like this in = the > past, too. Just happened to me again because MacPorts reinstalled libunwind-headers on= me even though I had deactivated it, reconfirming. >>From gcc-bugs-return-612617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 01:44:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16240 invoked by alias); 13 Aug 2018 01:44:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16208 invoked by uid 48); 13 Aug 2018 01:44:10 -0000 From: "helloqirun at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86927] New: Gcc miscompiles at -O3 on valid code Date: Mon, 13 Aug 2018 01:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: helloqirun at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00906.txt.bz2 Content-length: 1199 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86927 Bug ID: 86927 Summary: Gcc miscompiles at -O3 on valid code Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: helloqirun at gmail dot com Target Milestone: --- It appears to be a recent regression. And it happens at -O3 only. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-l= inux-gnu/9.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/home/absozero/trunk/root-gcc --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 9.0.0 20180812 (experimental) [trunk revision 263494] (GCC) $ gcc-trunk abc.c ; ./a.out $ gcc-trunk -O2 abc.c ; ./a.out $ gcc-trunk -O3 abc.c ; ./a.out Aborted (core dumped) $ cat abc.c int a[28]; int b; void abort(); int main() { a[4] =3D 1; int c =3D 1; for (; b < 8; b++) if (a[b]) c =3D 0; if (c) abort(); } >>From gcc-bugs-return-612618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 01:48:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31930 invoked by alias); 13 Aug 2018 01:48:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31674 invoked by uid 48); 13 Aug 2018 01:48:20 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/81718] g++ segfault in tsubst_copy_and_build when creating type alias Date: Mon, 13 Aug 2018 01:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00907.txt.bz2 Content-length: 347 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81718 --- Comment #2 from Eric Gallager --- (In reply to Eric Gallager from comment #1) >=20 > I would have to rebuild my gcc with debug info to get a better backtrace. So I tried doing that but it crashed my debugger; I might need to open a separate bug for that... >>From gcc-bugs-return-612619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 02:11:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45111 invoked by alias); 13 Aug 2018 02:11:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44110 invoked by uid 48); 13 Aug 2018 02:11:06 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/82798] Inconsistent descriptions for warning options in documentation Date: Mon, 13 Aug 2018 02:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00908.txt.bz2 Content-length: 531 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82798 --- Comment #3 from Eric Gallager --- (In reply to Julien =C3=89LIE from comment #2) > Other points: >=20 > 6/ -Wsuggest-final-types and -Wsuggest-final-methods should be mentioned = for > C++ (and maybe Objective-C++) only. >=20 > 7/ -Wc++11-compat and -Wc++14-compat are present in the -Wall list but > without the mention for C++ and Objective-C++. I believe it should be > mentioned. Yeah those points probably fit in with bug 71283 too... >>From gcc-bugs-return-612620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 02:35:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107419 invoked by alias); 13 Aug 2018 02:35:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107376 invoked by uid 48); 13 Aug 2018 02:35:17 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71424] std::initializer_list Date: Mon, 13 Aug 2018 02:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00909.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71424 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. >>From gcc-bugs-return-612621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 02:44:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111533 invoked by alias); 13 Aug 2018 02:44:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111502 invoked by uid 48); 13 Aug 2018 02:44:10 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86594] Crash on trying to capture 'this' in instantiation of generic lambda Date: Mon, 13 Aug 2018 02:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00910.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86594 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. >>From gcc-bugs-return-612622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 02:47:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9089 invoked by alias); 13 Aug 2018 02:47:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9030 invoked by uid 48); 13 Aug 2018 02:47:43 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug pch/61250] Random pch failures on x86_64-apple-darwin1(3|4). Date: Mon, 13 Aug 2018 02:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: pch X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00911.txt.bz2 Content-length: 1183 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61250 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at redhat dot com, | |per at bothner dot com --- Comment #20 from Eric Gallager --- (In reply to Jack Howarth from comment #16) > (In reply to howarth from comment #15) > > (In reply to howarth from comment #14) > > > Testing https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01334.html in c= ase > > > correction of the overflow tests eliminates this bug. > >=20 > > The proposed patch for correcting overflows doesn't eliminate this bug. >=20 > With Jan's patch the failure still appears as... >=20 > #0 0x00007fff96238286 in __pthread_kill () > #1 0x00007fff9488042f in pthread_kill () > #2 0x00007fff8e9c1b53 in abort () > #3 0x0000000100f32170 in linemap_lookup (set=3D0x10175e0f0, line=3D651) = at > ../../gcc-5-20150326/libcpp/line-map.c:806 Since the crash is in libcpp, cc-ing libcpp maintainers >>From gcc-bugs-return-612623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 02:58:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16525 invoked by alias); 13 Aug 2018 02:58:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16492 invoked by uid 48); 13 Aug 2018 02:58:50 -0000 From: "rogermc at iinet dot net.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/86916] 8.1.0 (x86_64-apple-darwin15) Constraint_Error erroneous memory access Date: Mon, 13 Aug 2018 02:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rogermc at iinet dot net.au X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00912.txt.bz2 Content-length: 923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86916 --- Comment #4 from Roger Mc Murtrie --- Simon Wright has determined the problem and notes that GNAT has=20 failed to recognise the actual problem. (https://groups.google.com/forum/#!topic/comp.lang.ada/MdywAlMPQms) The problem is in the packages Morph.Mesh_Morph_Value_Pointers,=20 Mesh_Morph_Weight_Pointers.=20 You say=20 package Mesh_Morph_Value_Pointers is new Interfaces.C.Pointers=20 (Interfaces.C.unsigned, API_Morph_Value, API_Morph_Values_Array,=20 API_Morph_Value'(others =3D> <>));=20 but=20 type API_Morph_Value is new Interfaces.C.unsigned;=20 so others =3D> <> isn't a legal expression for an API_Morph_Value; you=20 should say=20 API_Morph_Value'(0));=20 There is still a bug, which ought to be fixed, but it's that GNAT has=20 failed to recognise the actual problem and has got fatally confused. >>From gcc-bugs-return-612624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 03:01:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49664 invoked by alias); 13 Aug 2018 03:01:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49617 invoked by uid 48); 13 Aug 2018 03:01:42 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84353] [8/9 Regression] [graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:206 Date: Mon, 13 Aug 2018 03:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00913.txt.bz2 Content-length: 3880 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84353 --- Comment #8 from Arseny Solokha --- (In reply to Richard Biener from comment #5) > Getting more testcase for this is nice though. int dt (__int128 gg, int sn, int *b2) { int wt =3D 0, f4 =3D 0; while (wt < sn) { f4 =3D !!(gg * 2 + sn) + (double) b2[wt]; ++wt; } return f4; } % gcc-9.0.0-alpha20180805 -O2 -floop-nest-optimize -funswitch-loops -fwrapv -fno-tree-loop-im -c inkukbsw.c during GIMPLE pass: graphite inkukbsw.c: In function 'dt': inkukbsw.c:2:1: internal compiler error: in set_codegen_error, at graphite-isl-ast-to-gimple.c:205 dt (__int128 gg, int sn, int *b2) ^~ 0x736dc0 translate_isl_ast_to_gimple::set_codegen_error() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:205 0x736e51 translate_isl_ast_to_gimple::set_codegen_error() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= tree.h:3237 0x736e51 translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int(tree_node*, isl_ast_expr*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:308 0x14a98ae translate_isl_ast_to_gimple::binary_op_to_tree(tree_node*, isl_ast_expr*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:322 0x14a98ae translate_isl_ast_to_gimple::binary_op_to_tree(tree_node*, isl_ast_expr*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:322 0x14a98eb translate_isl_ast_to_gimple::binary_op_to_tree(tree_node*, isl_ast_expr*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:340 0x14aa1f4 translate_isl_ast_to_gimple::graphite_create_new_guard(edge_def*, isl_ast_expr*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:873 0x14ab797 translate_isl_ast_to_gimple::translate_isl_ast_node_if(loop*, isl_ast_node*, edge_def*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:892 0x14ab714 translate_isl_ast_to_gimple::translate_isl_ast_node_block(loop*, isl_ast_node*, edge_def*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:859 0x14abaf7 graphite_regenerate_ast_isl(scop*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite-isl-ast-to-gimple.c:1505 0x14a7dec graphite_transform_loops() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite.c:413 0x14a81e0 graphite_transforms =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite.c:475 0x14a81e0 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180805/work/gcc-9-20180805/gcc/= graphite.c:552 (r263320) >>From gcc-bugs-return-612625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 03:48:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77812 invoked by alias); 13 Aug 2018 03:48:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77790 invoked by uid 48); 13 Aug 2018 03:48:46 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86928] New: ICE in compute_live, at sel-sched.c:3097 Date: Mon, 13 Aug 2018 03:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00914.txt.bz2 Content-length: 3826 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86928 Bug ID: 86928 Summary: ICE in compute_live, at sel-sched.c:3097 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpc-*-linux-gnu, powerpcspe-*-linux-gnu gcc-9.0.0-alpha20180805 snapshot (r263320) ICEs when compiling the following snippet w/ -O2 (-O3, -Ofast) -fnon-call-exceptions -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling -fno-if-conversion -fno-tree-dce: int kn; void gd (short int sk) { char *as; while (sk < 1) { char *ci; if (*ci =3D=3D 0) *as +=3D ci; for (kn =3D 0; kn < 18; ++kn) { } ++sk; } } % powerpc-e300c3-linux-gnu-gcc-9.0.0-alpha20180805 -O2 -fnon-call-exceptions -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling -fno-if-conversion -fno-tree-dce -w -c opsr9okd.c during RTL pass: sched1 opsr9okd.c: In function 'gd': opsr9okd.c:21:1: internal compiler error: in compute_live, at sel-sched.c:3= 097 } ^ 0xbe0aa2 compute_live(rtx_insn*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:3097 0xbe0938 compute_live_after_bb =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:3074 0xbe0938 compute_live(rtx_insn*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:3131 0xbe4058 code_motion_path_driver =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:6660 0xbe524d move_op =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:6714 0xbe524d move_exprs_to_boundary =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:5237 0xbe524d schedule_expr_on_boundary =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:5450 0xbe92a8 fill_insns =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:5592 0xbeb0de schedule_on_fences =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:7366 0xbeb0de sel_sched_region_2 =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:7504 0xbec142 sel_sched_region_1 =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:7546 0xbed735 sel_sched_region(int) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:7647 0xbee079 run_selective_scheduling() =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sel-sched.c:7733 0xbc5db4 rest_of_handle_sched =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sched-rgn.c:3718 0xbc5db4 execute =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180805/wor= k/gcc-9-20180805/gcc/sched-rgn.c:3828 >>From gcc-bugs-return-612626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:14:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121946 invoked by alias); 13 Aug 2018 06:14:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121892 invoked by uid 48); 13 Aug 2018 06:13:59 -0000 From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86929] New: `-fstack-protector` results in wrong code Date: Mon, 13 Aug 2018 06:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00915.txt.bz2 Content-length: 1446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86929 Bug ID: 86929 Summary: `-fstack-protector` results in wrong code Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: lh_mouse at 126 dot com Target Milestone: --- Target: *-w64-mingw32 The following program: ``` void test(int n) { char str[50]; } int main(void) { test(42); } ``` , after being compiled with ``` x86_64-w64-mingw32-gcc -fstack-protector -O0 test.c ``` , results in assembly that references the FS segment register ``` test: pushq %rbp .seh_pushreg %rbp movq %rsp, %rbp .seh_setframe %rbp, 0 subq $96, %rsp .seh_stackalloc 96 .seh_endprologue movl %ecx, 16(%rbp) movq %fs:0, %rax ``` , which causes crashes on x64, as on Windows this not the correct way to reference native thread-local storage. At the moment, GCC should use emutls instead. Compiling this program with i686-w64-mingw32-gcc does not results in an immediate segment fault, but the assembly code still references the GS segm= ent register, so it is still wrong. Prior to GCC 8, stack protectors used static, non-thread-local pointers, wh= ich were subject to data races, but didn't result in segment fault for single-threaded programs. >>From gcc-bugs-return-612627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:27:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1622 invoked by alias); 13 Aug 2018 06:27:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1513 invoked by uid 48); 13 Aug 2018 06:27:51 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86929] `-fstack-protector` results in wrong code Date: Mon, 13 Aug 2018 06:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00916.txt.bz2 Content-length: 491 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86929 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Andrew Pinski --- dup. *** This bug has been marked as a duplicate of bug 86832 *** >>From gcc-bugs-return-612628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:27:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1646 invoked by alias); 13 Aug 2018 06:27:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1537 invoked by uid 48); 13 Aug 2018 06:27:52 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86832] GCC v8.2.0 tries to use native TLS with -fstack-protector-strong on Windows (mingw-w64) Date: Mon, 13 Aug 2018 06:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00917.txt.bz2 Content-length: 442 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86832 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lh_mouse at 126 dot com --- Comment #2 from Andrew Pinski --- *** Bug 86929 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-612629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:28:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3371 invoked by alias); 13 Aug 2018 06:28:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3111 invoked by uid 48); 13 Aug 2018 06:28:14 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85644] [8/9 Regression] -fstack-protector generates invalid read to %fs:0x0 on mac Date: Mon, 13 Aug 2018 06:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00918.txt.bz2 Content-length: 807 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85644 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 Summary|-fstack-protector generates |[8/9 Regression] |invalid read to %fs:0x0 on |-fstack-protector generates |mac |invalid read to %fs:0x0 on | |mac Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- =2E >>From gcc-bugs-return-612630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:28:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5550 invoked by alias); 13 Aug 2018 06:28:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5467 invoked by uid 48); 13 Aug 2018 06:28:37 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85644] [8/9 Regression] -fstack-protector generates invalid read to %fs:0x0 on mac Date: Mon, 13 Aug 2018 06:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00919.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85644 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.3 >>From gcc-bugs-return-612631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:29:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7925 invoked by alias); 13 Aug 2018 06:29:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7887 invoked by uid 48); 13 Aug 2018 06:29:11 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86832] [8/9 Regression] GCC v8.2.0 tries to use native TLS with -fstack-protector-strong on Windows (mingw-w64) Date: Mon, 13 Aug 2018 06:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on target_milestone short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00920.txt.bz2 Content-length: 938 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86832 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 Target Milestone|--- |8.3 Summary|GCC v8.2.0 tries to use |[8/9 Regression] GCC v8.2.0 |native TLS with |tries to use native TLS |-fstack-protector-strong on |with |Windows (mingw-w64) |-fstack-protector-strong on | |Windows (mingw-w64) Ever confirmed|0 |1 --- Comment #3 from Andrew Pinski --- =2E >>From gcc-bugs-return-612632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 06:43:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20288 invoked by alias); 13 Aug 2018 06:43:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20243 invoked by uid 48); 13 Aug 2018 06:43:20 -0000 From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86929] `-fstack-protector` results in wrong code Date: Mon, 13 Aug 2018 06:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00921.txt.bz2 Content-length: 220 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86929 --- Comment #2 from Liu Hao --- Oh didn't know it happens on macOS too. I didn't find the duplicate becaus= e I searched for 'mingw' only. >>From gcc-bugs-return-612633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 07:10:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84576 invoked by alias); 13 Aug 2018 07:10:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84503 invoked by uid 48); 13 Aug 2018 07:10:41 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86927] [8/9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 13 Aug 2018 07:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work version keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00922.txt.bz2 Content-length: 1256 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86927 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |7.3.0 Version|unknown |8.2.0 Keywords| |wrong-code Last reconfirmed| |2018-08-13 CC| |hubicka at gcc dot gnu.org, | |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Summary|Gcc miscompiles at -O3 on |[8/9 Regression] Gcc |valid code |miscompiles at -O3 on valid | |code Target Milestone|--- |8.3 Known to fail| |8.2.0, 9.0 --- Comment #1 from Martin Li=C5=A1ka --- I see it starting from r255268, but it's probably a latent issue. >>From gcc-bugs-return-612634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 07:12:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98117 invoked by alias); 13 Aug 2018 07:12:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98081 invoked by uid 48); 13 Aug 2018 07:12:23 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86925] ice in get_predictor_value, at predict.c:2551 Date: Mon, 13 Aug 2018 07:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component version target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00923.txt.bz2 Content-length: 415 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |tree-optimization Version|8.0 |9.0 Target Milestone|--- |9.0 >>From gcc-bugs-return-612635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 07:47:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19921 invoked by alias); 13 Aug 2018 07:47:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19873 invoked by uid 48); 13 Aug 2018 07:46:57 -0000 From: "janniksilvanus at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86930] New: g++ incorrectly complains about incomplete type in structured binding Date: Mon, 13 Aug 2018 07:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janniksilvanus at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00924.txt.bz2 Content-length: 1806 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86930 Bug ID: 86930 Summary: g++ incorrectly complains about incomplete type in structured binding Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: janniksilvanus at gmail dot com Target Milestone: --- : g++ --version g++ (SUSE Linux) 8.1.1 20180719 [gcc-8-branch revision 262874] Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. : cat incomplete_type.ii=20 template struct IndexPair { Index first; Index second; }; using UsedIndexPair =3D IndexPair; template void call_applier( UsedIndexPair const & indices, Applier && applier) { auto const [a, b] =3D indices; applier(a, b); } void instantiate() { call_applier( {0, 1}, [&](int, int){}); } : g++ --std=3Dc++1z incomplete_type.ii -c incomplete_type.ii: In function =E2=80=98void call_applier(const UsedIndexP= air&, Applier&&)=E2=80=99: incomplete_type.ii:14:15: warning: structured binding refers to incomplete class type =E2=80=98const IndexPair=E2=80=99 auto const [a, b] =3D indices; gcc-7.3.1 even crashes on this input: /opt/rh/devtoolset-7/root/usr/bin/g++ --std=3Dc++1z incomplete_type.ii -c incomplete_type.ii: In function =E2=80=98void call_applier(const UsedIndexP= air&, Applier&&)=E2=80=99: incomplete_type.ii:14:24: internal compiler error: Segmentation fault auto const [a, b] =3D indices; ^~~~~~~ >>From gcc-bugs-return-612636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 08:07:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38032 invoked by alias); 13 Aug 2018 08:07:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35751 invoked by uid 48); 13 Aug 2018 08:07:07 -0000 From: "janniksilvanus at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86931] New: constexpr variable initialization: internal compiler error: in reshape_init_r, at cp/decl.c:6042 Date: Mon, 13 Aug 2018 08:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janniksilvanus at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00925.txt.bz2 Content-length: 1535 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86931 Bug ID: 86931 Summary: constexpr variable initialization: internal compiler error: in reshape_init_r, at cp/decl.c:6042 Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: janniksilvanus at gmail dot com Target Milestone: --- : g++ --version g++ (SUSE Linux) 8.1.1 20180719 [gcc-8-branch revision 262874] Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. : cat internal_compiler_error.ii=20 template struct Array { T data[2]; }; template void test( Applier const &) { auto constexpr data =3D Array{0, 0}; } void instantiate() { test([](){}); } : g++ --std=3Dc++1z internal_compiler_error.ii -c internal_compiler_error.ii: In instantiation of =E2=80=98void test(const Ap= plier&) [with Applier =3D instantiate()::]=E2=80=99: internal_compiler_error.ii:15:15: required from here internal_compiler_error.ii:10:19: internal compiler error: in reshape_init_= r, at cp/decl.c:6152 auto constexpr data =3D Array{0, 0}; ^~~~ Note the similarity with https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D869= 30, may be related. >>From gcc-bugs-return-612637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 08:52:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93576 invoked by alias); 13 Aug 2018 08:52:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93310 invoked by uid 48); 13 Aug 2018 08:52:40 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86930] g++ incorrectly complains about incomplete type in structured binding Date: Mon, 13 Aug 2018 08:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00926.txt.bz2 Content-length: 462 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86930 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 Ever confirmed|0 |1 >>From gcc-bugs-return-612638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 08:59:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121822 invoked by alias); 13 Aug 2018 08:59:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116968 invoked by uid 48); 13 Aug 2018 08:59:22 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86922] Invoking templated PTMF on subclass gives false strict-aliasing warning Date: Mon, 13 Aug 2018 08:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00927.txt.bz2 Content-length: 402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86922 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 Ever confirmed|0 |1 >>From gcc-bugs-return-612639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 09:15:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44159 invoked by alias); 13 Aug 2018 09:15:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44111 invoked by uid 48); 13 Aug 2018 09:15:48 -0000 From: "zennehoy at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86932] New: [8 Regression] Empty non-type template parameter pack not considered for SFINAE. Date: Mon, 13 Aug 2018 09:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zennehoy at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00928.txt.bz2 Content-length: 953 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86932 Bug ID: 86932 Summary: [8 Regression] Empty non-type template parameter pack not considered for SFINAE. Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zennehoy at gmail dot com Target Milestone: --- The following code incorrectly compiles under GCC 8.1/8.2, but fails (as expected) with GCC 7.3 and other compilers: #include template>...> void f() {} int main() { f(); } The originating stackoverflow discussion about this issue can be found here: https://stackoverflow.com/q/51787713/694509 A working example can be found on godbolt: https://godbolt.org/g/Rb46qQ >>From gcc-bugs-return-612640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 09:31:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100341 invoked by alias); 13 Aug 2018 09:31:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100266 invoked by uid 48); 13 Aug 2018 09:31:03 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/85164] poly-int.h:845:5: runtime error: signed integer overflow Date: Mon, 13 Aug 2018 09:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00929.txt.bz2 Content-length: 751 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85164 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rsandifo at gcc dot gnu.org --- Comment #1 from David Binderman --- Still going wrong. Here is another test case: $ ~/gcc/results.263471.ubsan/bin/gcc -c -O2 bug456.c ../../trunk/gcc/poly-int.h:1941:12: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int'; cast to an unsigned type to negate this value to itself $ more bug456.c int a; long b; void c() { b =3D -9223372036854775807L - 1 - a; } $ >>From gcc-bugs-return-612641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 09:38:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110720 invoked by alias); 13 Aug 2018 09:38:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110673 invoked by uid 48); 13 Aug 2018 09:38:21 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Mon, 13 Aug 2018 09:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00930.txt.bz2 Content-length: 506 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 --- Comment #2 from Jonathan Wakely --- If you're saying that data read from the terminal by std::cin cannot be "un-read" by typing backspace, that's correct. That is not a GCC bug, it's = just how the OS works. In the default line-buffered mode, when you hit Enter the line is sent to t= he application. Typing backspace cannot undo that, the program has already read the data, and doesn't receive the backspace characters. >>From gcc-bugs-return-612642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 09:59:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85097 invoked by alias); 13 Aug 2018 09:59:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85066 invoked by uid 48); 13 Aug 2018 09:59:37 -0000 From: "zennehoy at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86932] [8 Regression] Empty non-type template parameter pack not considered for SFINAE. Date: Mon, 13 Aug 2018 09:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zennehoy at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00931.txt.bz2 Content-length: 449 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86932 --- Comment #1 from zennehoy --- Sorry, I included the problematic void non-type template parameter pack. The type of std::enable_if_t should be specified as something other than vo= id, e.g., int: #include template, int>...> void f() {} int main() { f(); } >>From gcc-bugs-return-612643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 10:16:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8122 invoked by alias); 13 Aug 2018 10:16:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8060 invoked by uid 48); 13 Aug 2018 10:16:35 -0000 From: "iii at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86889] s390x gcc build fails when configured with --disable-checking Date: Mon, 13 Aug 2018 10:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: iii at linux dot ibm.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00932.txt.bz2 Content-length: 1500 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86889 Ilya Leoshkevich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #4 from Ilya Leoshkevich --- Bisect points to: commit d19574debc50ff915c5d39c22a51cb0bc750e75d (HEAD, refs/bisect/bad) Author: rguenth Date: Fri May 18 11:54:37 2018 +0000 2018-05-18 Richard Biener * gimple-ssa-evrp.c (class evrp_folder): Add simplify_stmt_using_ranges method. (evrp_dom_walker::before_dom_children): Call it. * gcc.dg/tree-ssa/pr21559.c: Adjust. * gcc.dg/tree-ssa/pr45397.c: Likewise. * gcc.dg/tree-ssa/pr61839_1.c: Likewise. * gcc.dg/tree-ssa/pr61839_2.c: Likewise. * gcc.dg/tree-ssa/pr61839_4.c: Likewise. * gcc.dg/tree-ssa/vrp17.c: Likewise. * gcc.dg/tree-ssa/vrp18.c: Likewise. * gcc.dg/tree-ssa/vrp23.c: Likewise. * gcc.dg/tree-ssa/vrp24.c: Likewise. * gcc.dg/tree-ssa/vrp58.c: Likewise. * gcc.dg/vrp-min-max-1.c: Likewise. * gcc.dg/vrp-min-max-3.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260357 138bc75d-0d04-0410-961f-82ee72b054a4 >>From gcc-bugs-return-612644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 10:18:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9779 invoked by alias); 13 Aug 2018 10:18:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9728 invoked by uid 48); 13 Aug 2018 10:18:50 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86932] [8/9 Regression] Empty non-type template parameter pack not considered for SFINAE. Date: Mon, 13 Aug 2018 10:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00933.txt.bz2 Content-length: 1920 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86932 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |7.3.0 Keywords| |accepts-invalid Last reconfirmed| |2018-08-13 CC| |jason at gcc dot gnu.org Ever confirmed|0 |1 Summary|[8 Regression] Empty |[8/9 Regression] Empty |non-type template parameter |non-type template parameter |pack not considered for |pack not considered for |SFINAE. |SFINAE. Known to fail| |8.2.0, 9.0 --- Comment #2 from Jonathan Wakely --- You've got a stray 'typename' there. Reduced: template struct enable_if { using type =3D T; }; template struct enable_if { }; template struct is_foo { static constexpr bool value =3D false; }; template::value, int>::type...> void f() {} int main() { f(); } Started to be accepted with r247842 PR c++/79549 - C++17 ICE with non-type auto template parameter = pack * pt.c (convert_template_argument): Just return an argument pac= k. (coerce_template_parameter_pack, template_parm_to_arg) (extract_fnparm_pack, make_argument_pack, tsubst_template_args) (tsubst_decl, tsubst, type_unification_real, unify_pack_expansi= on): Don't set the type of a NONTYPE_ARGUMENT_PACK. * parser.c (make_char_string_pack, make_string_pack): Likewise. >>From gcc-bugs-return-612645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 10:21:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37189 invoked by alias); 13 Aug 2018 10:21:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37139 invoked by uid 48); 13 Aug 2018 10:20:55 -0000 From: "blitzrakete at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86870] Declaration disambiguation is too greedy Date: Mon, 13 Aug 2018 10:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blitzrakete at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00934.txt.bz2 Content-length: 301 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86870 --- Comment #1 from Nicolas Lesser --- Oops, I missed to define a default constructor for `X`. This however, does = not change the bug report and gcc still incorrectly parses the second statement= as a declaration. >>From gcc-bugs-return-612646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 10:24:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40624 invoked by alias); 13 Aug 2018 10:24:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40572 invoked by uid 48); 13 Aug 2018 10:24:48 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Mon, 13 Aug 2018 10:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00935.txt.bz2 Content-length: 2426 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #7 from Jonathan Wakely --- Ah, that patch assumes this is defined: #ifdef __GTHREAD_MUTEX_INIT __native_type _M_mutex =3D __GTHREAD_MUTEX_INIT; constexpr __mutex_base() noexcept =3D default; i.e. PTHREAD_MUTEX_INITIALIZER. If that's not available we might just need to use a global mutex, without t= he constant_init<> wrapper that makes the object immortal. In that case it wil= l be risky to use the default memory resource functions after static destructors start (which is bad practice anyway). So this would be a bit more robust: --- a/libstdc++-v3/src/c++17/memory_resource.cc +++ b/libstdc++-v3/src/c++17/memory_resource.cc @@ -25,6 +25,10 @@ #include #include #include +#if ATOMIC_POINTER_LOCK_FREE !=3D 2 +# include // std::mutex, std::lock_guard +# include // std::exchange +#endif namespace std _GLIBCXX_VISIBILITY(default) { @@ -81,7 +85,39 @@ namespace pmr constant_init newdel_res{}; constant_init null_res{}; +#if ATOMIC_POINTER_LOCK_FREE =3D=3D 2 constant_init> default_res{&newdel_res.obj}; +#else + struct locking_atomic + { +#ifdef __GTHREAD_MUTEX_INIT + // std::mutex has constexpr constructor + constexpr +#endif + locking_atomic(memory_resource* r) : val(r) { } + mutex mx; + memory_resource* val; + + memory_resource* load() + { + lock_guard lock(mx); + return val; + } + + memory_resource* exchange(memory_resource* r) + { + lock_guard lock(mx); + return std::exchange(val, r); + } + }; +#ifdef __GTHREAD_MUTEX_INIT + constant_init default_res{&newdel_res.obj}; +#else + struct { + locking_atomic obj =3D &newdel_res.obj; + } default_res __attribute__ ((init_priority (100))); +#endif +#endif } // namespace memory_resource* Unfortunately this produces a warning for targets without pointer-width ato= mics and without PTHREAD_MUTEX_INITIALIZER: /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/memory_resource.cc:119:55: warning: requested init_priority is reserved for internal use } default_res __attribute__ ((init_priority (100))); ^ >>From gcc-bugs-return-612647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 11:03:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84608 invoked by alias); 13 Aug 2018 11:03:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84525 invoked by uid 48); 13 Aug 2018 11:03:09 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86927] [8/9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 13 Aug 2018 11:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00936.txt.bz2 Content-length: 570 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86927 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #2 from Alexander Monakov --- Martin, can you try bisecting with -fvect-cost-model=3Dunlimited ? May be caused by vectorization, reduction created for 'c' looks wrong. gcc-7 did not try to vectorize this. >>From gcc-bugs-return-612648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 11:46:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114433 invoked by alias); 13 Aug 2018 11:46:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114373 invoked by uid 48); 13 Aug 2018 11:46:31 -0000 From: "d25fe0be at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86933] New: GCC fails to recognize specialization of variadic non-type template parameter declared with `auto` Date: Mon, 13 Aug 2018 11:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: d25fe0be at outlook dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00937.txt.bz2 Content-length: 1067 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86933 Bug ID: 86933 Summary: GCC fails to recognize specialization of variadic non-type template parameter declared with `auto` Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: d25fe0be at outlook dot com Target Milestone: --- The following code fails to compile, saying `TT<&X::x, &X::y>` is not defin= ed. ```` template struct TT; template struct TT {}; struct X { int x; double y; }; TT<&X::x, &X::y> t; ``` Not sure if related, the following code (reduced version) is rejected as we= ll: ``` template struct TT; template struct TT {}; int x; double y; TT<&x, &y> t; ``` clang (5.0 or higher) accepts both. Live example: https://wandbox.org/permlink/ObPM2S5s0bsczNfk >>From gcc-bugs-return-612649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 12:05:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53168 invoked by alias); 13 Aug 2018 12:05:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52395 invoked by uid 55); 13 Aug 2018 12:04:57 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85590] [nvptx, libgomp, openacc] Use cuda runtime fns to determine launch configuration in nvptx plugin Date: Mon, 13 Aug 2018 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00938.txt.bz2 Content-length: 1503 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85590 --- Comment #1 from Tom de Vries --- Author: vries Date: Mon Aug 13 12:04:24 2018 New Revision: 263505 URL: https://gcc.gnu.org/viewcvs?rev=3D263505&root=3Dgcc&view=3Drev Log: [nvptx] Use CUDA driver API to select default runtime launch geometry The CUDA driver API starting version 6.5 offers a set of runtime functions = to calculate several occupancy-related measures, as a replacement for the occupancy calculator spreadsheet. This patch adds a heuristic for default runtime launch geometry, based on t= he new runtime function cuOccupancyMaxPotentialBlockSize. Build on x86_64 with nvptx accelerator and ran libgomp testsuite. 2018-08-13 Cesar Philippidis Tom de Vries PR target/85590 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef. (cuOccupancyMaxPotentialBlockSize): Declare. * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New CUDA_ONE_CALL_MAYBE_NULL. * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define CUoccupancyB2DSize and declare cuOccupancyMaxPotentialBlockSize. (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the default num_gangs and num_workers when the driver supports it. Modified: trunk/libgomp/ChangeLog trunk/libgomp/plugin/cuda-lib.def trunk/libgomp/plugin/cuda/cuda.h trunk/libgomp/plugin/plugin-nvptx.c >>From gcc-bugs-return-612650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 12:17:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5931 invoked by alias); 13 Aug 2018 12:17:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5903 invoked by uid 48); 13 Aug 2018 12:17:41 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86933] GCC fails to recognize specialization of variadic non-type template parameter declared with `auto` Date: Mon, 13 Aug 2018 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00939.txt.bz2 Content-length: 465 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86933 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 Ever confirmed|0 |1 >>From gcc-bugs-return-612651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 12:33:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33890 invoked by alias); 13 Aug 2018 12:33:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24805 invoked by uid 48); 13 Aug 2018 12:33:08 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86934] New: Feature test macros in should respect _GLIBCXX_HOSTED Date: Mon, 13 Aug 2018 12:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00940.txt.bz2 Content-length: 1340 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86934 Bug ID: 86934 Summary: Feature test macros in should respect _GLIBCXX_HOSTED Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- The current header doesn't account for the fact that many features are not defined for freestanding builds. Also, the --enable-libstdcxx-filesystem-ts configure option means that isn't always present, even for hsoted builds (but that should change for GCC 9 anyway). I'm not sure how to do this cleanly so that is always consistent = with the real values in other headers. We could generate from a script that processes the headers (separately for freestanding and hosted headers)= and just extracts the __cpp_lib_* macros and the preprocessor conditions they depend on. Also, in https://gcc.gnu.org/ml/libstdc++/2018-07/msg00128.html I said: It would be nice if we had tests to check that every macro in matches the other definition of it (i.e. either both are defined to the same value, or neither is defined). >>From gcc-bugs-return-612652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 12:40:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108423 invoked by alias); 13 Aug 2018 12:40:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108351 invoked by uid 48); 13 Aug 2018 12:40:15 -0000 From: "andrey.y.guskov at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 13 Aug 2018 12:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: andrey.y.guskov at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00941.txt.bz2 Content-length: 1391 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 Andrey Guskov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.y.guskov at intel d= ot com --- Comment #7 from Andrey Guskov --- On Haswell, r263067 is also responsible for that: spawn -ignore SIGHUP /work/gcc/xgcc -B/work/gcc/ /source/gcc/testsuite/gcc.target/i386/avx-cvt-2.c -fno-diagnostics-show-car= et -fdiagnostics-color=3Dnever -O3 -mavx -mno-avx2 -mtune=3Dgeneric -fdump-tree-vect-details -ffat-lto-objects -S -o avx-cvt-2.s PASS: gcc.target/i386/avx-cvt-2.c (test for excess errors) PASS: gcc.target/i386/avx-cvt-2.c scan-tree-dump-times vect "vectorized 1 l= oops in function" 6 PASS: gcc.target/i386/avx-cvt-2.c scan-assembler vcvttpd2dq(y[^\n\r]*%xmm|[^\n\r]*xmm[^\n\r]*YMMWORD PTR) PASS: gcc.target/i386/avx-cvt-2.c scan-assembler vcvtdq2ps[^\n\r]*ymm FAIL: gcc.target/i386/avx-cvt-2.c scan-assembler vcvtps2pd[^\n\r]*(%xmm[^\n\r]*%ymm|ymm[^\n\r]*xmm) Option set: -with-system-zlib --with-demangler-in-ld --with-fpmath=3Dsse --enable-shared --enable-host-shared --enable-clocale=3Dgnu --enable-cloog-backend=3Disl --enable-languages=3Dc,c++,fortran,jit,lto -with-arch=3Dhaswell --with-cpu= =3Dhaswell >>From gcc-bugs-return-612654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 12:54:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14381 invoked by alias); 13 Aug 2018 12:54:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14315 invoked by uid 48); 13 Aug 2018 12:54:52 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86927] [8/9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 13 Aug 2018 12:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00943.txt.bz2 Content-length: 187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86927 --- Comment #3 from Martin Li=C5=A1ka --- Then it ends in Richi's revision r249553. Sounds like culprit. >>From gcc-bugs-return-612653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 12:54:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11147 invoked by alias); 13 Aug 2018 12:54:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10619 invoked by uid 48); 13 Aug 2018 12:54:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/45093] Different definitions of _Rb_tree::{erase,_M_destroy_node} between C++98 and C++0x Date: Mon, 13 Aug 2018 12:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00942.txt.bz2 Content-length: 639 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45093 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |4.8.0 --- Comment #3 from Jonathan Wakely --- The different definitions of erase have been mangled differently since GCC = 4.8, by using the abi-tag. Gold still warns about _M_destroy_node, but that's harmless. >>From gcc-bugs-return-612656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 13:19:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55693 invoked by alias); 13 Aug 2018 13:19:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55615 invoked by uid 48); 13 Aug 2018 13:19:43 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86499] lambda-expressions with capture-default are allowed at namespace scope Date: Mon, 13 Aug 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00945.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86499 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-612655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 13:19:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54621 invoked by alias); 13 Aug 2018 13:19:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54564 invoked by uid 48); 13 Aug 2018 13:18:57 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86934] Feature test macros in should respect _GLIBCXX_HOSTED Date: Mon, 13 Aug 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00944.txt.bz2 Content-length: 402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86934 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 Ever confirmed|0 |1 >>From gcc-bugs-return-612657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 13:40:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13237 invoked by alias); 13 Aug 2018 13:40:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13175 invoked by uid 48); 13 Aug 2018 13:40:03 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86935] New: Bad locus in ASSOCIATE statement Date: Mon, 13 Aug 2018 13:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00946.txt.bz2 Content-length: 825 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86935 Bug ID: 86935 Summary: Bad locus in ASSOCIATE statement Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: janus at gcc dot gnu.org Target Milestone: --- Test case (invalid code): implicit none type :: t real :: r =3D 0.5 integer :: i =3D 3 end type type(t) :: x associate (r =3D> x%r, & i =3D> x%ii) print *, r ,i end associate end gfortran says: associate (r =3D> x%r, & 1 Error: Expected association at (1) The error message points to the wrong line (the first association is fine, = but the second one is wrong). >>From gcc-bugs-return-612658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 13:51:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26842 invoked by alias); 13 Aug 2018 13:51:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26804 invoked by uid 48); 13 Aug 2018 13:51:47 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86935] Bad locus in ASSOCIATE statement Date: Mon, 13 Aug 2018 13:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00947.txt.bz2 Content-length: 812 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86935 --- Comment #1 from janus at gcc dot gnu.org --- The following is sufficient to tip the locus to the next line: Index: gcc/fortran/match.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/fortran/match.c (revision 263503) +++ gcc/fortran/match.c (working copy) @@ -1888,6 +1888,8 @@ gfc_match_associate (void) gfc_association_list* newAssoc =3D gfc_get_association_list (); gfc_association_list* a; + gfc_gobble_whitespace (); + /* Match the next association. */ if (gfc_match (" %n =3D> %e", newAssoc->name, &newAssoc->target) !=3D MATCH_YES) >>From gcc-bugs-return-612659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 14:53:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122082 invoked by alias); 13 Aug 2018 14:53:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122034 invoked by uid 48); 13 Aug 2018 14:53:08 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85640] [8/9 Regression] Code size regression vs 7.3.1 Date: Mon, 13 Aug 2018 14:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00948.txt.bz2 Content-length: 428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85640 --- Comment #3 from Alexander Monakov --- (first paragraph of previous comment had 'before'/'after' swapped, sorry) Also note that adjusting the testcase to use size_t rather than unsigned int for the 'len' variable (as production code probably should) avoids the issu= e: final value replacement doesn't need to special case len=3D=3D0 then. >>From gcc-bugs-return-612660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 14:58:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126623 invoked by alias); 13 Aug 2018 14:58:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126600 invoked by uid 48); 13 Aug 2018 14:58:37 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86936] New: strlen() of a constant not folded due to laddress transformation Date: Mon, 13 Aug 2018 14:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00949.txt.bz2 Content-length: 1609 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86936 Bug ID: 86936 Summary: strlen() of a constant not folded due to laddress transformation Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Despite the argument being a constant string, as a result of the laddress transformation the call to strnlen() in the function below is not folded in= to a constant because it loses the knowledge about which element of the array the strnlen argument refers to. $ cat f.c && gcc -O2 -S -Wall -Wextra -Wnull-dereference -fdump-tree-bswap=3D/dev/stdout -fdump-tree-laddress=3D/dev/stdout f.c const char a[][4] =3D { "123", "1234" }; int f (int i) { return __builtin_strnlen (&a[1][i], 4); } ;; Function f (f, funcdef_no=3D0, decl_uid=3D1906, cgraph_uid=3D1, symbol_o= rder=3D1) f (int i) { const char * _1; long unsigned int _2; int _5; [local count: 1073741825]: _1 =3D &a[1][i_3(D)]; _2 =3D __builtin_strnlen (_1, 4); _5 =3D (int) _2; return _5; } ;; Function f (f, funcdef_no=3D0, decl_uid=3D1906, cgraph_uid=3D1, symbol_o= rder=3D1) f (int i) { const char * _1; long unsigned int _2; int _5; sizetype _6; sizetype _7; [local count: 1073741825]: _6 =3D (sizetype) i_3(D); _7 =3D _6 + 4; _1 =3D &a + _7; _2 =3D __builtin_strnlen (_1, 4); _5 =3D (int) _2; return _5; } >>From gcc-bugs-return-612661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:01:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3930 invoked by alias); 13 Aug 2018 15:01:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3471 invoked by uid 48); 13 Aug 2018 15:00:48 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 13 Aug 2018 15:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00950.txt.bz2 Content-length: 281 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #8 from Segher Boessenkool --- So is it worse code, better code, is the testcase broken / suboptimal? The haswell problem seems to be completely unrelated, so open a separate PR please. >>From gcc-bugs-return-612662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:02:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5629 invoked by alias); 13 Aug 2018 15:02:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5553 invoked by uid 48); 13 Aug 2018 15:02:22 -0000 From: "andrey.y.guskov at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 13 Aug 2018 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: andrey.y.guskov at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00951.txt.bz2 Content-length: 131 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #9 from Andrey Guskov --- OK. >>From gcc-bugs-return-612663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:02:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5881 invoked by alias); 13 Aug 2018 15:02:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5603 invoked by uid 48); 13 Aug 2018 15:02:23 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86936] strlen() of a constant not folded due to laddress transformation Date: Mon, 13 Aug 2018 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00952.txt.bz2 Content-length: 857 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86936 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, | |missed-optimization --- Comment #1 from Martin Sebor --- Besides missing out on an optimization opportunity the transformation also prevents diagnosing strlen() calls with such arguments where the second argument is greater than the upper bound of the array. (Issuing the diagno= stic regardless would result in false positives if the referenced element was, in fact, nul-terminated, as would be the case if a were defined like so: const char a[][4] =3D { "12", "123", "1234" };) >>From gcc-bugs-return-612664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:09:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14063 invoked by alias); 13 Aug 2018 15:09:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14041 invoked by uid 48); 13 Aug 2018 15:09:30 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86936] strnlen() of a constant not folded due to laddress transformation Date: Mon, 13 Aug 2018 15:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00953.txt.bz2 Content-length: 567 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86936 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|strlen() of a constant not |strnlen() of a constant not |folded due to laddress |folded due to laddress |transformation |transformation --- Comment #2 from Martin Sebor --- This is about strnlen (strlen is folded early on). >>From gcc-bugs-return-612665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:12:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16502 invoked by alias); 13 Aug 2018 15:12:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16481 invoked by uid 48); 13 Aug 2018 15:12:48 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86937] New: strnlen() of a conditional expression with constant operands not folded Date: Mon, 13 Aug 2018 15:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00954.txt.bz2 Content-length: 1965 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86937 Bug ID: 86937 Summary: strnlen() of a conditional expression with constant operands not folded Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC folds the strlen() call below with a conditional expression involving constant operands but it fails to do the same for the equivalent strnlen() call. Besides missing this optimization opportunity it also prevents it from diagnosing strnlen() calls with unterminated character arrays where the bou= nd is greater than the size of the array. $ cat f.c && gcc -O2 -S -Wall -Wextra -Wnull-dereference -fdump-tree-optimized=3D/dev/stdout f.c const char a[4] =3D "123"; int f (int i) { return __builtin_strlen (i ? a : ""); } int g (int i) { return __builtin_strnlen (i ? a : "", 4); } ;; Function f (f, funcdef_no=3D0, decl_uid=3D1906, cgraph_uid=3D1, symbol_o= rder=3D1) Removing basic block 3 f (int i) { int prephitmp_7; [local count: 1073741825]: if (i_3(D) !=3D 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741825]: # prephitmp_7 =3D PHI <3(2), i_3(D)(3)> return prephitmp_7; } ;; Function g (g, funcdef_no=3D1, decl_uid=3D1909, cgraph_uid=3D2, symbol_o= rder=3D2) Removing basic block 3 g (int i) { long unsigned int _1; const char * iftmp.1_2; int _5; [local count: 1073741825]: if (i_3(D) !=3D 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741825]: # iftmp.1_2 =3D PHI <&a(2), ""(3)> _1 =3D __builtin_strnlen (iftmp.1_2, 4); _5 =3D (int) _1; return _5; } >>From gcc-bugs-return-612666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:13:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17837 invoked by alias); 13 Aug 2018 15:13:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17782 invoked by uid 48); 13 Aug 2018 15:13:49 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86937] strnlen() of a conditional expression with constant operands not folded Date: Mon, 13 Aug 2018 15:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords see_also blocked Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00955.txt.bz2 Content-length: 803 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86937 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, | |missed-optimization See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D86936 Blocks| |83819 --- Comment #1 from Martin Sebor --- See also pr86936 for a similar issue. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83819 [Bug 83819] [meta-bug] missing strlen optimizations >>From gcc-bugs-return-612668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:37:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62212 invoked by alias); 13 Aug 2018 15:37:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62183 invoked by uid 48); 13 Aug 2018 15:37:37 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86915] Segmentation fault for an array of auto in template parameter Date: Mon, 13 Aug 2018 15:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00957.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86915 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Marek Polacek --- Fixed. >>From gcc-bugs-return-612667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:37:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61433 invoked by alias); 13 Aug 2018 15:37:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61399 invoked by uid 55); 13 Aug 2018 15:37:02 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86915] Segmentation fault for an array of auto in template parameter Date: Mon, 13 Aug 2018 15:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00956.txt.bz2 Content-length: 552 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86915 --- Comment #2 from Marek Polacek --- Author: mpolacek Date: Mon Aug 13 15:36:30 2018 New Revision: 263507 URL: https://gcc.gnu.org/viewcvs?rev=3D263507&root=3Dgcc&view=3Drev Log: PR c++/86915 * decl.c (create_array_type_for_decl): Handle null name. * g++.dg/diagnostic/auto1.C: New test. Added: trunk/gcc/testsuite/g++.dg/diagnostic/auto1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 15:53:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130484 invoked by alias); 13 Aug 2018 15:53:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130451 invoked by uid 48); 13 Aug 2018 15:53:27 -0000 From: "andrey.y.guskov at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86745] [9 regression] gcc.target/i386/avx-cvt-2.c etc. FAIL on 64-bit x86 Date: Mon, 13 Aug 2018 15:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrey.y.guskov at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00958.txt.bz2 Content-length: 458 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86745 Andrey Guskov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.y.guskov at intel d= ot com --- Comment #2 from Andrey Guskov --- Confirmed on Haswell. The guilty revision is r263067. >>From gcc-bugs-return-612670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 16:11:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46891 invoked by alias); 13 Aug 2018 16:11:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46815 invoked by uid 48); 13 Aug 2018 16:11:08 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86931] constexpr variable initialization: internal compiler error: in reshape_init_r, at cp/decl.c:6042 Date: Mon, 13 Aug 2018 16:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00959.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86931 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-13 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. >>From gcc-bugs-return-612671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 16:11:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47372 invoked by alias); 13 Aug 2018 16:11:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46894 invoked by uid 48); 13 Aug 2018 16:11:12 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86324] testsuite test divkc3-1.c FAILs when compiling with -mabi=ieeelongdouble Date: Mon, 13 Aug 2018 16:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00960.txt.bz2 Content-length: 742 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86324 Peter Bergner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|8.3 |9.0 --- Comment #8 from Peter Bergner --- Ok, so we seemed to have missed the window for getting IEEE128 into GCC 8, = so unless some distro decides later on, that they want IEEE128 in GCC 8, I'm g= oing to skip backporting this and just leave it on trunk. I will backport this to the IBM GCC 8 branch though. >>From gcc-bugs-return-612672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 16:17:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96906 invoked by alias); 13 Aug 2018 16:17:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96867 invoked by uid 48); 13 Aug 2018 16:17:30 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86931] constexpr variable initialization: internal compiler error: in reshape_init_r, at cp/decl.c:6042 Date: Mon, 13 Aug 2018 16:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00961.txt.bz2 Content-length: 2304 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86931 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #2 from Marek Polacek --- commit cf72f34dc248e4dea971f08dc370b07c9d7601e5 Author: jason Date: Mon Oct 27 17:42:12 2014 +0000 Implement N3653 (Member initializers and aggregates) and fix references to 'this' in constexpr constructors. * class.c (check_field_decls): In C++14 an NSDMI does not make = the class non-aggregate. * constexpr.c (struct constexpr_ctx): New. (cxx_bind_parameters_in_call): Handle 'this'. (cxx_eval_call_expression): Create new constexpr_ctx. (cxx_eval_component_reference): Check CONSTRUCTOR_NO_IMPLICIT_Z= ERO. (initialized_type, init_subob_ctx, verify_ctor_sanity): New. (cxx_eval_bare_aggregate): Use them. Build CONSTRUCTOR early. (cxx_eval_vec_init_1): Likewise. (cxx_eval_constant_expression) [PARM_DECL]: Allow 'this'. [TARGET_EXPR]: Build new constexpr_ctx. [PLACEHOLDER_EXPR]: New. (cxx_eval_outermost_constant_expr): Build new constexpr_ctx. A= dd object parameter. (is_sub_constant_expr): Build new constexpr_ctx. (potential_constant_expression_1): Handle PLACEHOLDER_EXPR. Allow 'this'. * cp-gimplify.c (cp_gimplify_init_expr): Call replace_placehold= ers. * cp-tree.h (CONSTRUCTOR_NO_IMPLICIT_ZERO): New. * error.c (dump_expr): Handle PLACEHOLDER_EXPR. * init.c (get_nsdmi): Generate PLACEHOLDER_EXPR. * tree.c (lvalue_kind): Handle PLACEHOLDER_EXPR. (build_ctor_subob_ref, replace_placeholders): New. * typeck2.c (store_init_value): Use replace_placeholders. (process_init_constructor_record): Make zero-init before NSDMI explicit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216750 138bc75d-0d04-0410-961f-82ee72b054a4 >>From gcc-bugs-return-612673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 16:57:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6867 invoked by alias); 13 Aug 2018 16:57:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6827 invoked by uid 48); 13 Aug 2018 16:57:32 -0000 From: "quasicoherent at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86938] New: Invalid register name for r8w Date: Mon, 13 Aug 2018 16:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: quasicoherent at protonmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00962.txt.bz2 Content-length: 2637 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86938 Bug ID: 86938 Summary: Invalid register name for r8w Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: quasicoherent at protonmail dot com Target Milestone: --- Created attachment 44531 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44531&action=3Dedit -save-temps output When compiling the following code: #include int main() { register unsigned short var __asm__("r8w") =3D 0; __asm__ volatile ( "mov $123, %[var]\t\n" : [var] "+rm" (var) ); printf("%d\n", var); return 0; } with gcc -Wall -Wextra bug.c I get the error: bug.c: In function =E2=80=98main=E2=80=99: bug.c:4:26: error: invalid register name for =E2=80=98var=E2=80=99 register unsigned short var __asm__("r8w") =3D 0; ^~~ If "r8w" is replaced by, for example, "ax" the compilation works and the resulting program outputs "123\n", as desired.=20 gcc -v output: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 7.3.0-16ub= untu3' --with-bugurl=3Dfile:///usr/share/doc/gcc-7/README.Bugs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --with-as=3D/usr/bin/x86_64-linux-gnu-as --with-ld=3D/usr/bin/x86_64-linux-gnu-ld --program-suffix=3D-7 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) >>From gcc-bugs-return-612674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:04:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35479 invoked by alias); 13 Aug 2018 17:04:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35368 invoked by uid 48); 13 Aug 2018 17:04:03 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86938] Invalid register name for r8w Date: Mon, 13 Aug 2018 17:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00963.txt.bz2 Content-length: 234 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86938 --- Comment #1 from Andrew Pinski --- The rNd, rNw, and rNb aliases for rN (r8-r15) are not currently supported as far as I can tell. Use r8 instead. >>From gcc-bugs-return-612675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:06:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38128 invoked by alias); 13 Aug 2018 17:06:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38074 invoked by uid 55); 13 Aug 2018 17:06:22 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85645] [7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2348 Date: Mon, 13 Aug 2018 17:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00964.txt.bz2 Content-length: 819 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85645 --- Comment #16 from Segher Boessenkool --- Author: segher Date: Mon Aug 13 17:05:48 2018 New Revision: 263509 URL: https://gcc.gnu.org/viewcvs?rev=3D263509&root=3Dgcc&view=3Drev Log: Backport from mainline 2018-05-09 Segher Boessenkool PR rtl-optimization/85645 * regrename.c (build_def_use): Also kill the chains that include the destination of a REG_CFA_REGISTER note. PR rtl-optimization/85645 * regcprop.c (copyprop_hardreg_forward_1): Don't propagate into an insn that has a REG_CFA_REGISTER note. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/regcprop.c branches/gcc-7-branch/gcc/regrename.c >>From gcc-bugs-return-612676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:09:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41604 invoked by alias); 13 Aug 2018 17:09:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41442 invoked by uid 48); 13 Aug 2018 17:09:32 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85644] [8/9 Regression] -fstack-protector generates invalid read to %fs:0x0 on mac Date: Mon, 13 Aug 2018 17:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00965.txt.bz2 Content-length: 509 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85644 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg --- Comment #3 from Eric Gallager --- Some of the dups of this mentioned thread-local storage (TLS), in which case bug 29838 and bug 52268 might be related >>From gcc-bugs-return-612677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:13:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79365 invoked by alias); 13 Aug 2018 17:13:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79316 invoked by uid 55); 13 Aug 2018 17:13:25 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86923] Missed optimization performing consecutive integer sum, loop not removed Date: Mon, 13 Aug 2018 17:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00966.txt.bz2 Content-length: 166 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86923 --- Comment #1 from joseph at codesourcery dot com --- Isn't this bug 65855? >>From gcc-bugs-return-612678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:15:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82757 invoked by alias); 13 Aug 2018 17:15:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82679 invoked by uid 48); 13 Aug 2018 17:15:46 -0000 From: "jules at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86757] [og8,nvptx] gangprivate related regressions Date: Mon, 13 Aug 2018 17:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: jules at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00967.txt.bz2 Content-length: 457 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86757 jules at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jules at gcc dot gnu.org --- Comment #1 from jules at gcc dot gnu.org --- I believe this is fixed in the patch posted upstream: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00749.html >>From gcc-bugs-return-612679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:26:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90532 invoked by alias); 13 Aug 2018 17:26:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90429 invoked by uid 48); 13 Aug 2018 17:26:08 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86923] Missed optimization performing consecutive integer sum, loop not removed Date: Mon, 13 Aug 2018 17:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00968.txt.bz2 Content-length: 569 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86923 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #2 from Andrew Pinski --- (In reply to joseph@codesourcery.com from comment #1) > Isn't this bug 65855? Yes *** This bug has been marked as a duplicate of bug 65855 *** >>From gcc-bugs-return-612680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:26:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90667 invoked by alias); 13 Aug 2018 17:26:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90476 invoked by uid 48); 13 Aug 2018 17:26:09 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/65855] SCEV / SCCP missing optimization: triangular numbers Date: Mon, 13 Aug 2018 17:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00969.txt.bz2 Content-length: 449 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65855 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nightstrike at gmail dot c= om --- Comment #8 from Andrew Pinski --- *** Bug 86923 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-612681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:27:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104407 invoked by alias); 13 Aug 2018 17:27:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103761 invoked by uid 48); 13 Aug 2018 17:27:29 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85645] [7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2348 Date: Mon, 13 Aug 2018 17:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00970.txt.bz2 Content-length: 500 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85645 Arseny Solokha changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #17 from Arseny Solokha --- Seems to be finally fixed for all active branches by the recent Segher's backport. >>From gcc-bugs-return-612682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:35:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119278 invoked by alias); 13 Aug 2018 17:35:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119161 invoked by uid 55); 13 Aug 2018 17:35:11 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86324] testsuite test divkc3-1.c FAILs when compiling with -mabi=ieeelongdouble Date: Mon, 13 Aug 2018 17:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00971.txt.bz2 Content-length: 1960 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86324 --- Comment #9 from Peter Bergner --- Author: bergner Date: Mon Aug 13 17:34:38 2018 New Revision: 263510 URL: https://gcc.gnu.org/viewcvs?rev=3D263510&root=3Dgcc&view=3Drev Log: gcc/ Backport from mainline 2018-07-06 Peter Bergner PR target/86324 * target.def (translate_mode_attribute): New hook. * targhooks.h (default_translate_mode_attribute): Declare. * targhooks.c (default_translate_mode_attribute): New function. * doc/tm.texi.in (TARGET_TRANSLATE_MODE_ATTRIBUTE): New hook. * doc/tm.texi: Regenerate. * config/rs6000/rs6000.c (TARGET_TRANSLATE_MODE_ATTRIBUTE): Define. (rs6000_translate_mode_attribute): New function. gcc/c-family/ Backport from mainline 2018-07-06 Peter Bergner PR target/86324 * c-attribs.c (handle_mode_attribute): Call new translate_mode_attribute target hook. gcc/testsuite/ Backport from mainline 2018-07-06 Peter Bergner PR target/86324 gcc.target/powerpc/pr86324-1.c: New test. gcc.target/powerpc/pr86324-2.c: Likewise. Added: branches/ibm/gcc-8-branch/gcc/testsuite/ChangeLog.ibm branches/ibm/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86324-1.c branches/ibm/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86324-2.c Modified: branches/ibm/gcc-8-branch/gcc/ChangeLog.ibm branches/ibm/gcc-8-branch/gcc/c-family/ChangeLog.ibm branches/ibm/gcc-8-branch/gcc/c-family/c-attribs.c branches/ibm/gcc-8-branch/gcc/config/rs6000/rs6000.c branches/ibm/gcc-8-branch/gcc/doc/tm.texi branches/ibm/gcc-8-branch/gcc/doc/tm.texi.in branches/ibm/gcc-8-branch/gcc/target.def branches/ibm/gcc-8-branch/gcc/targhooks.c branches/ibm/gcc-8-branch/gcc/targhooks.h >>From gcc-bugs-return-612683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:39:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122180 invoked by alias); 13 Aug 2018 17:38:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122110 invoked by uid 48); 13 Aug 2018 17:38:55 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85645] [7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2348 Date: Mon, 13 Aug 2018 17:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00972.txt.bz2 Content-length: 186 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85645 --- Comment #18 from Segher Boessenkool --- Yes, and don't change resolution because something "seems". >>From gcc-bugs-return-612684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 17:58:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33384 invoked by alias); 13 Aug 2018 17:58:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33310 invoked by uid 55); 13 Aug 2018 17:58:23 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71625] missing strlen optimization on different array initialization style Date: Mon, 13 Aug 2018 17:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00973.txt.bz2 Content-length: 1911 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 --- Comment #17 from Martin Sebor --- Author: msebor Date: Mon Aug 13 17:57:51 2018 New Revision: 263511 URL: https://gcc.gnu.org/viewcvs?rev=3D263511&root=3Dgcc&view=3Drev Log: PR tree-optimization/71625 - missing strlen optimization on different array initialization style gcc/c/ChangeLog: PR tree-optimization/71625 * c-parser.c (c_parser_declaration_or_fndef): Call braced_list_to_string. gcc/c-family/ChangeLog: PR tree-optimization/71625 * c-common.c (braced_list_to_string): New function. * c-common.h (braced_list_to_string): Declare it. gcc/cp/ChangeLog: PR tree-optimization/71625 * decl.c (check_initializer): Call braced_list_to_string. (eval_check_narrowing): New function. * gcc/cp/typeck2.c (digest_init_r): Accept strings literals as initilizers for all narrow character types. gcc/testsuite/ChangeLog: PR tree-optimization/71625 * g++.dg/init/string2.C: New test. * g++.dg/init/string3.C: New test. * g++.dg/init/string4.C: New test. * gcc.dg/init-string-3.c: New test. * gcc.dg/strlenopt-55.c: New test. * gcc.dg/strlenopt-56.c: New test. Added: trunk/gcc/testsuite/g++.dg/init/string2.C trunk/gcc/testsuite/g++.dg/init/string3.C trunk/gcc/testsuite/g++.dg/init/string4.C trunk/gcc/testsuite/gcc.dg/init-string-3.c trunk/gcc/testsuite/gcc.dg/strlenopt-55.c trunk/gcc/testsuite/gcc.dg/strlenopt-56.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/c-family/c-common.h trunk/gcc/c/ChangeLog trunk/gcc/c/c-parser.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/c-c++-common/attr-nonstring-3.c >>From gcc-bugs-return-612685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 18:24:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117073 invoked by alias); 13 Aug 2018 18:24:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116945 invoked by uid 48); 13 Aug 2018 18:24:37 -0000 From: "giuliano.belinassi at usp dot br" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86829] Missing sin(atan(x)) and cos(atan(x)) optimizations Date: Mon, 13 Aug 2018 18:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: giuliano.belinassi at usp dot br X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00974.txt.bz2 Content-length: 311 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86829 --- Comment #5 from Giuliano Belinassi -= -- I filed the copyright assignment request and sent it to the assign at gnu d= ot org. The patch itself I sent to the patch e-mail listing with the subject "patch to bug #86829". >>From gcc-bugs-return-612686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 18:49:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84797 invoked by alias); 13 Aug 2018 18:49:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84709 invoked by uid 48); 13 Aug 2018 18:48:58 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86939] New: IRA incorrectly creates an interference between a pseudo register and a hard register Date: Mon, 13 Aug 2018 18:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00975.txt.bz2 Content-length: 2978 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86939 Bug ID: 86939 Summary: IRA incorrectly creates an interference between a pseudo register and a hard register Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bergner at gcc dot gnu.org Target Milestone: --- IRA incorrectly creates an interference between a pseudo register and a hard register that should not interfere, leading to an extra register copy that = is not needed: bergner@pike:~/gcc/BUGS$ cat bug.i typedef long (*fptr_t) (void); long func (fptr_t *p) { if (p) return (*p) (); return 0; } bergner@pike:~/gcc/BUGS$ /home/bergner/gcc/build/gcc-fsf-mainline-debug/gcc/xgcc -B/home/bergner/gcc/build/gcc-fsf-mainline-debug/gcc -O2 -S bug.i bergner@pike:~/gcc/BUGS$ cat bug.s=20 [snip] ld 9,0(9) std 2,24(1) mtctr 9 mr 12,9 bctrl The indirect call above requires r12 to be set before the bctrl, but we sho= uld have just loaded its value directly into r12 instead of into r9. Looking at the RTL during IRA, we have: (insn 10 34 11 3 (set (reg/f:DI 125 [ *p_4(D) ]) (mem/f:DI (reg/v/f:DI 127 [orig:123 pD.2807 ] [123]) [1 *p_4(D)+0 S8 A64])) "bug.i":6 608 {*movdi_internal64} (expr_list:REG_DEAD (reg/v/f:DI 127 [orig:123 pD.2807 ] [123]) (nil))) (insn 11 10 12 3 (set (reg:DI 12 12) (reg/f:DI 125 [ *p_4(D) ])) "bug.i":6 608 {*movdi_internal64} (nil)) (call_insn 12 11 13 3 (parallel [ (set (reg:DI 3 3)=20 (call (mem:SI (reg/f:DI 125 [ *p_4(D) ]) [0 *_1 S4 A8]) (const_int 0 [0]))) (set (reg:DI 2 2) (unspec:DI [ (const_int 24 [0x18]) ] UNSPEC_TOCSLOT)) (clobber (reg:DI 65 lr)) ]) "bug.i":6 691 {*call_value_indirect_elfv2di} (expr_list:REG_DEAD (reg/f:DI 125 [ *p_4(D) ]) (expr_list:REG_DEAD (reg:DI 12 12) (expr_list:REG_CALL_DECL (nil) (nil)))) (expr_list (use (reg:DI 12 12)) (nil))) (insn 13 12 31 3 (set (reg:DI 122 [ ]) (reg:DI 3 3)) "bug.i":6 608 {*movdi_internal64} (expr_list:REG_DEAD (reg:DI 3 3) (nil))) (jump_insn 31 13 32 3 (set (pc) (label_ref 18)) "bug.i":6 780 {jump} (nil) -> 18) and: Allocno a1r125 of GENERAL_REGS(29) has 28 avail. regs 0 3-11 14-31, node: 0 3-11 14-31 (confl regs =3D 1 2 12 13 32-113) Now pseudo 125 is live when r12 is defined, which is normally enough to make two regs/pseudos interfere, but since they have the same value, an interfer= ence should not be created between them. If we can stop the interference from b= eing generated, then we should get the allocation and code generated that we wan= t. >>From gcc-bugs-return-612687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 18:54:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106743 invoked by alias); 13 Aug 2018 18:54:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106702 invoked by uid 55); 13 Aug 2018 18:54:54 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85904] [7/8 Regression] configure issue cross compiling on netbsd, with patch Date: Mon, 13 Aug 2018 18:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00976.txt.bz2 Content-length: 839 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85904 --- Comment #12 from Jonathan Wakely --- Author: redi Date: Mon Aug 13 18:54:21 2018 New Revision: 263513 URL: https://gcc.gnu.org/viewcvs?rev=3D263513&root=3Dgcc&view=3Drev Log: Revert "libstdc++-v3: Have aligned_alloc() on Newlib" This reverts commit r263461 / 2e920cd849b3cf0a72df4f172e27676a3e70b73f because aligned_alloc is not defined for baremetal newlib targets, see https://gcc.gnu.org/ml/libstdc++/2018-08/msg00065.html Revert 2018-08-10 Sebastian Huber PR target/85904 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for Newlib. * configure: Regenerate. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/configure trunk/libstdc++-v3/configure.ac >>From gcc-bugs-return-612688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 18:55:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107652 invoked by alias); 13 Aug 2018 18:55:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107599 invoked by uid 55); 13 Aug 2018 18:55:15 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/45093] Different definitions of _Rb_tree::{erase,_M_destroy_node} between C++98 and C++0x Date: Mon, 13 Aug 2018 18:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00977.txt.bz2 Content-length: 577 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45093 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Mon Aug 13 18:54:43 2018 New Revision: 263516 URL: https://gcc.gnu.org/viewcvs?rev=3D263516&root=3Dgcc&view=3Drev Log: PR libstdc++/45093 avoid warnings for _M_destroy_node PR libstdc++/45093 * include/bits/stl_tree.h (_Rb_tree::_M_destroy_node(_Link_type)): Combine definitions to avoid --detect-odr-violations warning. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/stl_tree.h >>From gcc-bugs-return-612689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 19:07:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7900 invoked by alias); 13 Aug 2018 19:07:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7818 invoked by uid 48); 13 Aug 2018 19:07:18 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86939] IRA incorrectly creates an interference between a pseudo register and a hard register Date: Mon, 13 Aug 2018 19:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00978.txt.bz2 Content-length: 791 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86939 Peter Bergner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at gcc dot gnu.org, | |segher at gcc dot gnu.org, | |vmakarov at gcc dot gnu.or= g, | |wschmidt at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |bergner at gcc dot = gnu.org --- Comment #1 from Peter Bergner --- CC'ing Vlad and Jeff to make them aware of the issue, but I'll have a look = at fixing this. >>From gcc-bugs-return-612691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 19:16:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16091 invoked by alias); 13 Aug 2018 19:16:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15178 invoked by uid 55); 13 Aug 2018 19:16:35 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85904] [7/8 Regression] configure issue cross compiling on netbsd, with patch Date: Mon, 13 Aug 2018 19:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00980.txt.bz2 Content-length: 887 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85904 --- Comment #14 from Jonathan Wakely --- Author: redi Date: Mon Aug 13 19:16:02 2018 New Revision: 263518 URL: https://gcc.gnu.org/viewcvs?rev=3D263518&root=3Dgcc&view=3Drev Log: Revert "libstdc++-v3: Have aligned_alloc() on Newlib" This reverts commit r263463 / b7edd52337828cc46e469bca12f58288795b78d5 because aligned_alloc is not defined for baremetal newlib targets, see https://gcc.gnu.org/ml/libstdc++/2018-08/msg00065.html Revert 2018-08-10 Sebastian Huber PR target/85904 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for Newlib. * configure: Regenerate. Modified: branches/gcc-7-branch/libstdc++-v3/ChangeLog branches/gcc-7-branch/libstdc++-v3/configure branches/gcc-7-branch/libstdc++-v3/configure.ac >>From gcc-bugs-return-612690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 19:16:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15929 invoked by alias); 13 Aug 2018 19:16:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15087 invoked by uid 55); 13 Aug 2018 19:16:32 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85904] [7/8 Regression] configure issue cross compiling on netbsd, with patch Date: Mon, 13 Aug 2018 19:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00979.txt.bz2 Content-length: 887 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85904 --- Comment #13 from Jonathan Wakely --- Author: redi Date: Mon Aug 13 19:15:40 2018 New Revision: 263517 URL: https://gcc.gnu.org/viewcvs?rev=3D263517&root=3Dgcc&view=3Drev Log: Revert "libstdc++-v3: Have aligned_alloc() on Newlib" This reverts commit r263462 / 61b760a78fdf9f5d87b0b626a61a3216bd1411fc because aligned_alloc is not defined for baremetal newlib targets, see https://gcc.gnu.org/ml/libstdc++/2018-08/msg00065.html Revert 2018-08-10 Sebastian Huber PR target/85904 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for Newlib. * configure: Regenerate. Modified: branches/gcc-8-branch/libstdc++-v3/ChangeLog branches/gcc-8-branch/libstdc++-v3/configure branches/gcc-8-branch/libstdc++-v3/configure.ac >>From gcc-bugs-return-612692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 21:03:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40469 invoked by alias); 13 Aug 2018 21:03:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40388 invoked by uid 48); 13 Aug 2018 21:03:27 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/81033] [8/9 Regression] there are cases where ld64 is not able to determine correct atom boundaries from the output GCC currently produces Date: Mon, 13 Aug 2018 21:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: build, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00981.txt.bz2 Content-length: 443 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81033 --- Comment #42 from Iain Sandoe --- (In reply to Elliot Saba from comment #41) > Has there been any progress on this? We are running into this while tryi= ng > to cross-compile GCC for Darwin. Has this been fixed in 8.3.0? I will be posting two patches (one just posted today) that are my proposed solution - basically, v2 above plus removing a target hook. >>From gcc-bugs-return-612693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 21:04:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43759 invoked by alias); 13 Aug 2018 21:04:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43683 invoked by uid 48); 13 Aug 2018 21:04:43 -0000 From: "chefmax at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86755] [ASAN] Libasan failed to be build for arm with -mthumb and -fno-omit-frame-pointer Date: Mon, 13 Aug 2018 21:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chefmax at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00982.txt.bz2 Content-length: 400 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86755 chefmax at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chefmax at gcc dot gnu.org --- Comment #1 from chefmax at gcc dot gnu.org --- Upstream review: https://reviews.llvm.org/D50180 >>From gcc-bugs-return-612694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 21:27:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90823 invoked by alias); 13 Aug 2018 21:27:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90776 invoked by uid 48); 13 Aug 2018 21:26:55 -0000 From: "aerkiaga6 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86940] New: False positive with -Wuninitialized Date: Mon, 13 Aug 2018 21:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aerkiaga6 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00983.txt.bz2 Content-length: 5768 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86940 Bug ID: 86940 Summary: False positive with -Wuninitialized Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: aerkiaga6 at gmail dot com Target Milestone: --- Created attachment 44532 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44532&action=3Dedit Preprocessed source Compiling the code with the following command: gcc -v -save-temps -Wall -O test.c Gives this output: gcc -v -save-temps -Wall -O test.c Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-= wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-8.2.0/configure --enable-languages=3Dc,c++ Thread model: posix gcc version 8.2.0 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-Wall' '-O' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/cc1 -E -quiet -v -imultia= rch x86_64-linux-gnu test.c -mtune=3Dgeneric -march=3Dx86-64 -Wall -O -fpch-pre= process -o test.i ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-g= nu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include /usr/local/include /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-Wall' '-O' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/cc1 -fpreprocessed test.i -quiet -dumpbase test.c -mtune=3Dgeneric -march=3Dx86-64 -auxbase test -O -= Wall -version -o test.s GNU C17 (GCC) version 8.2.0 (x86_64-pc-linux-gnu) compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.= 0.1, MPC version 1.1.0, isl version isl-0.19-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C17 (GCC) version 8.2.0 (x86_64-pc-linux-gnu) compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.= 0.1, MPC version 1.1.0, isl version isl-0.19-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 82490e2e2080530dcab0165c2e5082fa test.c: In function =E2=80=98main=E2=80=99: test.c:15:20: warning: =E2=80=98str=E2=80=99 may be used uninitialized in t= his function [-Wmaybe-uninitialized] if(initialize) free(str); ^~~~~~~~~ COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-Wall' '-O' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gn= u/bin/as -v --64 -o test.o test.s GNU assembler version 2.31.1 (x86_64-pc-linux-gnu) using BFD version (GNU Binutils) 2.31.1 COMPILER_PATH=3D/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/loca= l/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/local/libexec/gcc/x86_64-pc-l= inux-gnu/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/local/lib/gcc/= x86_64-pc-linux-gnu/:/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../= ../x86_64-pc-linux-gnu/bin/ LIBRARY_PATH=3D/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/:/usr/local/lib= /gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/:/lib/x86_64-linux-gnu/:/l= ib/../lib64/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib64/:/usr/local/lib/g= cc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/loca= l/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-Wall' '-O' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/collect2 -plugin /usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/liblto_plugin.so -plugin-opt=3D/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper -plugin-opt=3D-fresolution=3Dtest.res -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s -plugin-opt=3D-pass-through=3D-lc -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtbegin.o -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-= gnu/lib -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../.. test.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-ne= eded /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.0/crtend.o /usr/lib/x86_64-linux-gnu/crtn.o COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-Wall' '-O' '-mtune=3Dgeneric' '-march=3Dx86-64' GCC complains that 'str' may be uninitialized, which is not possible. Requirements for triggering the bug include compiling with -O1 or greater. Omitting this flag gives no warning. Also, no warning is produced if func() returns just a constant value. It appears like GCC thinks that func() may have some side effects which cha= nge the value of initialize, which is not the case. Also, while substituting the call to free() with another expression with str (e.g. puts(str) or printf("%p", str)) does not remove the warning, the call= to malloc() turns out to be important. Replacing it with a constant value makes the warning dissapear, regardless of the expression used in place of free(). >>From gcc-bugs-return-612695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 21:34:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12449 invoked by alias); 13 Aug 2018 21:34:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12397 invoked by uid 48); 13 Aug 2018 21:34:15 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86940] False positive with -Wuninitialized Date: Mon, 13 Aug 2018 21:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00984.txt.bz2 Content-length: 257 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86940 --- Comment #1 from Andrew Pinski --- How does GCC know that rand does not change the global variable initialize?= Or something else before main has changed it from 1 to 0? >>From gcc-bugs-return-612696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 21:46:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44346 invoked by alias); 13 Aug 2018 21:45:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43850 invoked by uid 48); 13 Aug 2018 21:45:22 -0000 From: "aerkiaga6 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86940] False positive with -Wuninitialized Date: Mon, 13 Aug 2018 21:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aerkiaga6 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00985.txt.bz2 Content-length: 323 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86940 --- Comment #2 from Aritz Erkiaga --- I don't know. Somehow it does know it when the testcase is compiled without= any -O flags, but it not something trivial, and so I would not be surprised if = GCC were not able to get that information. >>From gcc-bugs-return-612697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 21:47:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56354 invoked by alias); 13 Aug 2018 21:47:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56286 invoked by uid 48); 13 Aug 2018 21:47:45 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86940] False positive with -Wuninitialized Date: Mon, 13 Aug 2018 21:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00986.txt.bz2 Content-length: 776 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86940 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Andrew Pinski --- (In reply to Aritz Erkiaga from comment #2) > I don't know. Somehow it does know it when the testcase is compiled witho= ut > any -O flags, but it not something trivial, and so I would not be surpris= ed > if GCC were not able to get that information. Because without any -O option (aka -O0) GCC does not enable any flow based uninitilization checking. >>From gcc-bugs-return-612698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 22:11:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90212 invoked by alias); 13 Aug 2018 22:11:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90175 invoked by uid 48); 13 Aug 2018 22:11:41 -0000 From: "aerkiaga6 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86940] False positive with -Wuninitialized Date: Mon, 13 Aug 2018 22:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aerkiaga6 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00987.txt.bz2 Content-length: 472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86940 --- Comment #4 from Aritz Erkiaga --- Ok, then this is not a bug. Maybe a feature request? Well, actually I think it would be safe for the compiler to assume that libc (and possibly other external libraries) don't have access to variables defi= ned in the source file being compiled. Of course, they could do whatever they l= ike, but the possibility is not worth a warning, as I see it. >>From gcc-bugs-return-612699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 23:08:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25698 invoked by alias); 13 Aug 2018 23:08:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25662 invoked by uid 48); 13 Aug 2018 23:08:20 -0000 From: "nightstrike at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86941] New: ICE in i386/winnt.c:1258 in i386_pe_seh_unwind_emit Date: Mon, 13 Aug 2018 23:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nightstrike at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00988.txt.bz2 Content-length: 2272 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86941 Bug ID: 86941 Summary: ICE in i386/winnt.c:1258 in i386_pe_seh_unwind_emit Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- The following code from the stack-trace-7.c testsuite case causes an ICE on x86_64-w64-mingw32: /* { dg-do run } */ /* { dg-options "-O2 -fstack-clash-protection -fno-optimize-sibling-calls --param stack-clash-protection-probe-interval=3D12 --param stack-clash-protection-guard-size=3D12" } */ /* { dg-require-effective-target supports_stack_clash_protection } */ /* For further testing, this can be run under valgrind where it's crashed on aarch64 and ppc64le with -fstack-check=3Dspecific. */ __attribute__((noinline, noclone)) void foo (char *p) { asm volatile ("" : : "r" (p) : "memory"); } __attribute__((noinline, noclone)) void bar (void) { char buf[131072]; foo (buf); } __attribute__((noinline, noclone)) void baz (void) { char buf[12000]; foo (buf); } int main () { bar (); baz (); return 0; } stack-check-7.c:20:1: internal compiler error: in i386_pe_seh_unwind_emit, = at config/i386/winnt.c:1258 0x71157e i386_pe_seh_unwind_emit(_IO_FILE*, rtx_insn*) ../../../gccsvn/gcc/config/i386/winnt.c:1258 0x9e174a final_scan_insn_1 ../../../gccsvn/gcc/final.c:3110 0x9e1c3b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) ../../../gccsvn/gcc/final.c:3146 0x9e1f04 final_1 ../../../gccsvn/gcc/final.c:2019 0x9e2c64 rest_of_handle_final ../../../gccsvn/gcc/final.c:4657 0x9e2c64 execute ../../../gccsvn/gcc/final.c:4731 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. winnt.c: case REG_CFA_DEF_CFA: case REG_CFA_EXPRESSION: /* Only emitted with DRAP and aligned memory access using a realigned SP, both of which we disable. */ gcc_unreachable (); break; >>From gcc-bugs-return-612700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 23:12:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28447 invoked by alias); 13 Aug 2018 23:12:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28408 invoked by uid 55); 13 Aug 2018 23:12:44 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument Date: Mon, 13 Aug 2018 23:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00989.txt.bz2 Content-length: 3114 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57891 --- Comment #11 from Marek Polacek --- Author: mpolacek Date: Mon Aug 13 23:12:11 2018 New Revision: 263523 URL: https://gcc.gnu.org/viewcvs?rev=3D263523&root=3Dgcc&view=3Drev Log: PR c++/57891 * call.c (struct conversion): Add check_narrowing_const_only. (build_converted_constant_expr): Set check_narrowing and check_narrowing_const_only. Give error if expr is error node. (convert_like_real): Pass it to check_narrowing. * cp-tree.h (check_narrowing): Add a default parameter. * decl.c (compute_array_index_type): Use input_location instead of location_of. * pt.c (convert_nontype_argument): Return NULL_TREE if tf_error. * typeck2.c (check_narrowing): Don't warn for instantiation-depende= nt expressions. Call maybe_constant_value instead of fold_non_dependent_expr. Don't mention { } in diagnostic. Only ch= eck narrowing for constants if CONST_ONLY. * g++.dg/cpp0x/Wnarrowing6.C: New test. * g++.dg/cpp0x/Wnarrowing7.C: New test. * g++.dg/cpp0x/Wnarrowing8.C: New test. * g++.dg/cpp0x/Wnarrowing9.C: New test. * g++.dg/cpp0x/Wnarrowing10.C: New test. * g++.dg/cpp0x/constexpr-47969.C: Adjust dg-error. * g++.dg/cpp0x/constexpr-ex2.C: Likewise. * g++.dg/cpp0x/constexpr-targ.C: Likewise. * g++.dg/cpp0x/scoped_enum2.C: Likewise. * g++.dg/ext/stmtexpr15.C: Likewise. * g++.dg/gomp/pr47963.C: Likewise. * g++.dg/init/new37.C: Likewise. * g++.dg/init/new43.C: Likewise. * g++.dg/other/fold1.C: Likewise. * g++.dg/parse/array-size2.C: Likewise. * g++.dg/template/dependent-name3.C: Likewise. * g++.dg/cpp0x/constexpr-data2.C: Add dg-error. * g++.dg/other/vrp1.C: Likewise. * g++.dg/template/char1.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing10.C trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing6.C trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing7.C trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing8.C trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing9.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/pt.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-47969.C trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-data2.C trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ex2.C trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-targ.C trunk/gcc/testsuite/g++.dg/cpp0x/scoped_enum2.C trunk/gcc/testsuite/g++.dg/ext/stmtexpr15.C trunk/gcc/testsuite/g++.dg/gomp/pr47963.C trunk/gcc/testsuite/g++.dg/init/new37.C trunk/gcc/testsuite/g++.dg/init/new43.C trunk/gcc/testsuite/g++.dg/other/fold1.C trunk/gcc/testsuite/g++.dg/other/vrp1.C trunk/gcc/testsuite/g++.dg/parse/array-size2.C trunk/gcc/testsuite/g++.dg/template/char1.C trunk/gcc/testsuite/g++.dg/template/dependent-name3.C >>From gcc-bugs-return-612701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 23:14:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29540 invoked by alias); 13 Aug 2018 23:14:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29490 invoked by uid 48); 13 Aug 2018 23:14:01 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57891] No diagnostic of narrowing conversion in non-type template argument Date: Mon, 13 Aug 2018 23:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00990.txt.bz2 Content-length: 505 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57891 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #12 from Marek Polacek --- Fixed for GCC 9. >>From gcc-bugs-return-612702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 13 23:46:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66348 invoked by alias); 13 Aug 2018 23:46:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65681 invoked by uid 48); 13 Aug 2018 23:45:40 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65043] Expected narrowing conversion during list initialization of bool from double Date: Mon, 13 Aug 2018 23:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00991.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65043 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-612703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 01:10:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126786 invoked by alias); 14 Aug 2018 01:10:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126739 invoked by uid 48); 14 Aug 2018 01:10:51 -0000 From: "blitzrakete at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] New: A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Tue, 14 Aug 2018 01:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blitzrakete at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00992.txt.bz2 Content-length: 901 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 Bug ID: 86942 Summary: A trailing-return-type is allowed when the return type is not 'auto' for using declarations Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: blitzrakete at gmail dot com Target Milestone: --- void test() -> void; // fail =3D> ok using function =3D void() -> int; // allowed?!? int f(); int main() { function *Boo =3D f; // not ok; trailing return type is ignored } The above code fails to compile on the latest gcc trunk. It is invalid as a trailing-return-type can only appear if the return type of the function is 'auto'. No arguments to g++ necessary. Online demo: https://godbolt.org/g/XtSw6T >>From gcc-bugs-return-612704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 01:46:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42865 invoked by alias); 14 Aug 2018 01:46:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42788 invoked by uid 48); 14 Aug 2018 01:46:06 -0000 From: "oremanj at mit dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86943] New: [8 Regression] Wrong code when converting stateless generic lambda to function pointer Date: Tue, 14 Aug 2018 01:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: oremanj at mit dot edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00993.txt.bz2 Content-length: 2154 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86943 Bug ID: 86943 Summary: [8 Regression] Wrong code when converting stateless generic lambda to function pointer Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: oremanj at mit dot edu Target Milestone: --- When creating a function pointer from a stateless generic lambda that accep= ts the argument of generic type by value, gcc 8+ on x86_64 generates wrong cod= e, invoking a move constructor on a pointer-to-pointer to the moved-from object rather than just a pointer to it. This occurs regardless of optimizations as far as I can tell. $ cat t.cc extern "C" int printf(const char *fmt, ...); struct nontrivial { nontrivial() { printf("default-construct %p\n", this); } nontrivial(const nontrivial& other) { printf("copy-construct %p from %p\n", this, &other); } nontrivial(nontrivial&& other) noexcept { printf("move-construct %p from %p\n", this, &other); } ~nontrivial() { printf("destroy %p\n", this); } }; using cb_t =3D void(*)(nontrivial); cb_t test() { return [](auto val) { printf("called %p\n", &val); }; } int main() { volatile cb_t cb =3D test(); cb({}); return 0; } $ g++-7 -o t.ok t.cc -std=3Dc++14 $ ./t.ok default-construct 0x7ffc6cf08b0f move-construct 0x7ffc6cf08adf from 0x7ffc6cf08b0f called 0x7ffc6cf08adf destroy 0x7ffc6cf08adf destroy 0x7ffc6cf08b0f $ g++-8 -o t.fail t.cc -std=3Dc++14 $ ./t.fail default-construct 0x7fffd8a636ff move-construct 0x7fffd8a636c7 from 0x7fffd8a636c8 called 0x7fffd8a636c7 destroy 0x7fffd8a636c7 destroy 0x7fffd8a636ff In the second example, the object is move-constructed from an address at wh= ich no object has been constructed. Examining in a debugger, 0x7fffd8a636c8 contains the address 0x7fffd8a636ff, i.e., there is one level of indirection too many. Tested with godbolt.org, bug is absent on 7.1.0, 7.2.0, 7.3.0, and present = on 8.1.0, 8.2.0, and 9.0.0 20180812. >>From gcc-bugs-return-612705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 02:21:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104839 invoked by alias); 14 Aug 2018 02:21:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104790 invoked by uid 48); 14 Aug 2018 02:21:22 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/50676] Partitioning may fail with presence of static variables referring to function labels Date: Tue, 14 Aug 2018 02:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00994.txt.bz2 Content-length: 275 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50676 --- Comment #7 from Eric Gallager --- (In reply to Andi Kleen from comment #6) > The patch doesn't seem to be checked in yet. Is there a reason for that? Maybe people just forgot about it? >>From gcc-bugs-return-612706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 02:29:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114457 invoked by alias); 14 Aug 2018 02:29:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114391 invoked by uid 48); 14 Aug 2018 02:28:56 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86940] False positive with -Wuninitialized Date: Tue, 14 Aug 2018 02:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00995.txt.bz2 Content-length: 1401 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86940 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |msebor at gcc dot gnu.org --- Comment #5 from Martin Sebor --- (In reply to Aritz Erkiaga from comment #4) GCC does have knowledge about many libc functions but rand() isn't one of t= hem (yet). It would be possible to add rand() to the list but it would only so= lve this one test case (i.e., involving rand()). I don't think adding a built-= in just to avoid a -Wuninitialized in this case is worth it. There may be oth= er reasons to add it, such as constraining its return value to [0, RAND_MAX]. = If you can make a more compelling case for it there's a decent chance that it = will be added. Barring that, the test case reduces to: $ cat pr86940.c && gcc -O2 -S -Wall pr86940.c int f (void); void g (void) { void *p; if (f ()) p =3D __builtin_malloc (8); if (f ())=20 __builtin_free (p); } pr86940.c: In function =E2=80=98g=E2=80=99: pr86940.c:10:5: warning: =E2=80=98p=E2=80=99 may be used uninitialized in t= his function [-Wmaybe-uninitialized] __builtin_free (p); ^~~~~~~~~~~~~~~~~~ >>From gcc-bugs-return-612707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:20:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21104 invoked by alias); 14 Aug 2018 07:20:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20999 invoked by uid 48); 14 Aug 2018 07:19:58 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86944] New: ICE in vectorizable_store, at tree-vect-stmts.c:6878 on aarch64 Date: Tue, 14 Aug 2018 07:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00996.txt.bz2 Content-length: 2141 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86944 Bug ID: 86944 Summary: ICE in vectorizable_store, at tree-vect-stmts.c:6878 on aarch64 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rdsandiford at googlemail dot com Target Milestone: --- Following ICEs: $ ./xgcc -B. /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr66449.c -mstrict-align -Ofast --param vect-epilogues-nomask=3D1 during GIMPLE pass: vect /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr66449.c: In function =E2=80=98fn1=E2=80=99: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr66449.c:8:7: internal compiler error: in vectorizable_store, at tree-vect-stmts.c:6878 8 | void *fn1(void *p1, void *p2, long p3) | ^~~ 0x13a9726 vectorizable_store /home/marxin/Programming/gcc/gcc/tree-vect-stmts.c:6878 0x13b36b2 vect_transform_stmt(_stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) /home/marxin/Programming/gcc/gcc/tree-vect-stmts.c:9721 0x13d7831 vect_transform_loop_stmt /home/marxin/Programming/gcc/gcc/tree-vect-loop.c:8228 0x13d8585 vect_transform_loop(_loop_vec_info*) /home/marxin/Programming/gcc/gcc/tree-vect-loop.c:8450 0x13fef2f try_vectorize_loop_1 /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:945 0x13ff10d try_vectorize_loop_1 /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:978 0x13ff1c9 try_vectorize_loop /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:995 0x13ff3a5 vectorize_loops() /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:1077 0x128e3e1 execute /home/marxin/Programming/gcc/gcc/tree-ssa-loop.c:414 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-612708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:25:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46228 invoked by alias); 14 Aug 2018 07:25:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46137 invoked by uid 48); 14 Aug 2018 07:25:02 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86944] ICE in vectorizable_store, at tree-vect-stmts.c:6878 on aarch64 Date: Tue, 14 Aug 2018 07:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc target_milestone cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00997.txt.bz2 Content-length: 578 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86944 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2018-8-14 CC| |kyrylo.tkachov at arm dot = com, | |ramana at gcc dot gnu.org Target Milestone|--- |7.4 Known to fail| |7.3.0, 8.2.0, 9.0 >>From gcc-bugs-return-612709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:34:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52161 invoked by alias); 14 Aug 2018 07:34:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52121 invoked by uid 48); 14 Aug 2018 07:34:42 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86943] [8/9 Regression] Wrong code when converting stateless generic lambda to function pointer Date: Tue, 14 Aug 2018 07:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work target_milestone short_desc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00998.txt.bz2 Content-length: 1113 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86943 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 CC| |jason at gcc dot gnu.org, | |marxin at gcc dot gnu.org Known to work| |7.3.0 Target Milestone|--- |9.0 Summary|[8 Regression] Wrong code |[8/9 Regression] Wrong code |when converting stateless |when converting stateless |generic lambda to function |generic lambda to function |pointer |pointer Ever confirmed|0 |1 Known to fail| |8.2.0, 9.0 --- Comment #1 from Martin Li=C5=A1ka --- Confirmed, started with r239268. >>From gcc-bugs-return-612710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:44:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106943 invoked by alias); 14 Aug 2018 07:44:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105319 invoked by uid 48); 14 Aug 2018 07:44:48 -0000 From: "daniel.price at monash dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] New: BUG with optimisation of select case statement in gfortran v8.x Date: Tue, 14 Aug 2018 07:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.price at monash dot edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg00999.txt.bz2 Content-length: 2779 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 Bug ID: 86945 Summary: BUG with optimisation of select case statement in gfortran v8.x Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: daniel.price at monash dot edu Target Milestone: --- Created attachment 44533 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44533&action=3Dedit test code to reproduce error Dear gfortran folks, Users reported that gfortran-v8.x completely breaks my splash visualisation tool (http://users.monash.edu.au/~splash). I tracked this down to a bug with optimisation of the select case statement in gfortran v8.2.0. Test code with simple example attached. Enter "1" as the input, and output should be zero (i.e. correct behaviour is to report error code if id is negative). However, with various levels of optimisation the output I get is= as follows: $ gfortran-mp-8 -O3 -o test test.f90=20 $ ./test=20 enter id 1 ierr =3D 1 $ gfortran-mp-8 -O1 -o test test.f90=20 $ ./test=20 enter id 1 ierr =3D 1 $ gfortran-mp-8 -o test test.f90=20 $ ./test=20 enter id 1 ierr =3D 0 Please fix this urgently! The outcome for users is that no plotting devices= are opened, because the program incorrectly returns an error code, and therefore stops execution. Compiler version as follows: $ gfortran-mp-8 -v Using built-in specs. COLLECT_GCC=3Dgfortran-mp-8 COLLECT_LTO_WRAPPER=3D/opt/local/libexec/gcc/x86_64-apple-darwin17/8.2.0/lt= o-wrapper Target: x86_64-apple-darwin17 Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_port= s_lang_gcc8/gcc8/work/gcc-8.2.0/configure --prefix=3D/opt/local --build=3Dx86_64-apple-darwin17 --enable-languages=3Dc,c++,objc,obj-c++,lto,fortran --libdir=3D/opt/local/l= ib/gcc8 --includedir=3D/opt/local/include/gcc8 --infodir=3D/opt/local/share/info --mandir=3D/opt/local/share/man --datarootdir=3D/opt/local/share/gcc-8 --with-local-prefix=3D/opt/local --with-system-zlib --disable-nls --program-suffix=3D-mp-8 --with-gxx-include-dir=3D/opt/local/include/gcc8/c= ++/ --with-gmp=3D/opt/local --with-mpfr=3D/opt/local --with-mpc=3D/opt/local --with-isl=3D/opt/local --enable-stage1-checking --disable-multilib --enabl= e-lto --enable-libstdcxx-time --with-build-config=3Dbootstrap-debug --with-as=3D/opt/local/bin/as --with-ld=3D/opt/local/bin/ld --with-ar=3D/opt/local/bin/ar --with-bugurl=3Dhttps://trac.macports.org/new= ticket --disable-tls --with-pkgversion=3D'MacPorts gcc8 8.2.0_0' Thread model: posix gcc version 8.2.0 (MacPorts gcc8 8.2.0_0) >>From gcc-bugs-return-612711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:54:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125723 invoked by alias); 14 Aug 2018 07:54:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124244 invoked by uid 48); 14 Aug 2018 07:54:06 -0000 From: "yamirenk at ya dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 07:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamirenk at ya dot ru X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01000.txt.bz2 Content-length: 854 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 Yakov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #3 from Yakov --- (In reply to Jonathan Wakely from comment #2) > If you're saying that data read from the terminal by std::cin cannot be > "un-read" by typing backspace, that's correct. That is not a GCC bug, it's > just how the OS works. >=20 > In the default line-buffered mode, when you hit Enter the line is sent to > the application. Typing backspace cannot undo that, the program has alrea= dy > read the data, and doesn't receive the backspace characters. ok, thanks >>From gcc-bugs-return-612712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:58:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16568 invoked by alias); 14 Aug 2018 07:58:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16507 invoked by uid 48); 14 Aug 2018 07:58:44 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86946] New: ice: canonical types differ for identical types Date: Tue, 14 Aug 2018 07:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01001.txt.bz2 Content-length: 1385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86946 Bug ID: 86946 Summary: ice: canonical types differ for identical types Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This C++ source code=20 template auto d(a, c); template class e; template e d(); template e d(); causes this ice: bug456.cc:4:63: internal compiler error: canonical types differ for identic= al ty pes =E2=80=98e=E2=80=99 and =E2=80=98e=E2=80=99 4 | template e d(); | ^ 0xa0a331 comptypes(tree_node*, tree_node*, int) ../../trunk/gcc/cp/typeck.c:1477 0x87ce6a decls_match(tree_node*, tree_node*, bool) ../../trunk/gcc/cp/decl.c:968 0x87d24f decls_match(tree_node*, tree_node*, bool) ../../trunk/gcc/cp/decl.c:1036 0x87d416 duplicate_decls(tree_node*, tree_node*, bool) ../../trunk/gcc/cp/decl.c:1363 The bug seems to be present since sometime before revision 262519 >>From gcc-bugs-return-612713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 07:59:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17371 invoked by alias); 14 Aug 2018 07:59:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17325 invoked by uid 48); 14 Aug 2018 07:59:10 -0000 From: "yamirenk at ya dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 07:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamirenk at ya dot ru X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01002.txt.bz2 Content-length: 336 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 Yakov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |WAITING Resolution|INVALID |--- >>From gcc-bugs-return-612714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:03:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51974 invoked by alias); 14 Aug 2018 08:03:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51933 invoked by uid 48); 14 Aug 2018 08:03:54 -0000 From: "yamirenk at ya dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 08:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamirenk at ya dot ru X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01003.txt.bz2 Content-length: 629 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 --- Comment #4 from Yakov --- (In reply to Jonathan Wakely from comment #2) > If you're saying that data read from the terminal by std::cin cannot be > "un-read" by typing backspace, that's correct. That is not a GCC bug, it's > just how the OS works. >=20 > In the default line-buffered mode, when you hit Enter the line is sent to > the application. Typing backspace cannot undo that, the program has alrea= dy > read the data, and doesn't receive the backspace characters. I am sorry. I think, I did mistake in my question. I did not press Enter. >>From gcc-bugs-return-612715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:26:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71957 invoked by alias); 14 Aug 2018 08:26:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71890 invoked by uid 48); 14 Aug 2018 08:26:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 08:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01004.txt.bz2 Content-length: 426 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 --- Comment #5 from Jonathan Wakely --- (In reply to Yakov from comment #4) > I am sorry. I think, I did mistake in my question. I did not press Enter. You said "when the second line begins. symbols, entered in first line" If that doesn't mean you pressed Enter, you need to tell us what you did. We can't guess. See https://gcc.gnu.org/bugs/ >>From gcc-bugs-return-612716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:27:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72817 invoked by alias); 14 Aug 2018 08:27:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 72787 invoked by uid 48); 14 Aug 2018 08:27:06 -0000 From: "vinay.kumar at blackfigtech dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86947] New: Erroneous code generated with O2 and O3 for PPC Date: Tue, 14 Aug 2018 08:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vinay.kumar at blackfigtech dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01005.txt.bz2 Content-length: 2638 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86947 Bug ID: 86947 Summary: Erroneous code generated with O2 and O3 for PPC Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: vinay.kumar at blackfigtech dot com Target Milestone: --- Created attachment 44534 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44534&action=3Dedit Testcase to reproduce the bug. $powerpc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/data/home/toolchain/ppc/prefix/bin/powerpc-linux-gnu-gcc COLLECT_LTO_WRAPPER=3D/data/home/toolchain/ppc/prefix/bin/../libexec/gcc/po= werpc-linux-gnu/8.1.0/lto-wrapper Target: powerpc-linux-gnu Configured with: /data/home/toolchain/ppc/build/../src/gcc-8.1.0/configure --target=3Dpowerpc-linux-gnu --prefix=3D/data/home/toolchain/ppc/build/../p= refix --disable-nls --enable-languages=3Dc,c++ --enable-targets=3Dall --disable-m= ultilib --disable-libsanitizer --enable-threads --enable-tls --enable-__cxa_atexit --enable-secureplt --with-gmp=3D/data/home/toolchain/gmp-mpfr-mpc/prefix --with-mpfr=3D/data/home/toolchain/gmp-mpfr-mpc/prefix --with-mpc=3D/data/home/toolchain/gmp-mpfr-mpc/prefix --prefix=3D/data/home/toolchain/ppc/build/../prefix Thread model: posix gcc version 8.1.0 (GCC) The testcase was compiled using following command and options:- $powerpc-linux-gnu-gcc -m64 -O2 test.c -S Please note the following chunk of code in the assembly file:- There is a comparison of the registers R7 and R31. However, the register R31 is not being initialized and optimized away=20 and generating wrong code. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D .L4: addis 9,2,.LC2@toc@ha ld 9,.LC2@toc@l(9) lfd 12,0(9)nd=20 fcmpu 7,12,31 bng 7,.L20 stfd 31,112(1) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D We have investigated this issue and observed that its not observed with O1 and Os optimization levels. Its only been the issue with O2 & O3. The generated code was correct on disabling the optimization flags "fno-tree-pre" and "fno-gcse" for O2 flags. It was also investigated on=20 the earlier GCC source code and observed that issue is present atleast until gcc-4.3.3 sources. Thanks, Vinay Kumar >>From gcc-bugs-return-612717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:30:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86920 invoked by alias); 14 Aug 2018 08:30:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83394 invoked by uid 48); 14 Aug 2018 08:30:02 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Tue, 14 Aug 2018 08:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01006.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 Ever confirmed|0 |1 >>From gcc-bugs-return-612718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:34:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89262 invoked by alias); 14 Aug 2018 08:34:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89215 invoked by uid 48); 14 Aug 2018 08:34:10 -0000 From: "yamirenk at ya dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 08:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamirenk at ya dot ru X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01007.txt.bz2 Content-length: 688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 --- Comment #6 from Yakov --- (In reply to Jonathan Wakely from comment #5) > (In reply to Yakov from comment #4) > > I am sorry. I think, I did mistake in my question. I did not press Ente= r. >=20 > You said "when the second line begins. symbols, entered in first line" >=20 > If that doesn't mean you pressed Enter, you need to tell us what you did.= We > can't guess. >=20 > See https://gcc.gnu.org/bugs/ ok. bash: $./test aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(here is the end of the first line) aa(then I press Backspace many times) I see: $./test aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(this symbols I can not remove) >>From gcc-bugs-return-612719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:36:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91047 invoked by alias); 14 Aug 2018 08:36:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91006 invoked by uid 48); 14 Aug 2018 08:36:36 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 08:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01008.txt.bz2 Content-length: 491 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 Andreas Schwab changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #7 from Andreas Schwab --- This has nothing to do with gcc, it is a property of the terminal emulation. >>From gcc-bugs-return-612720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:41:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122075 invoked by alias); 14 Aug 2018 08:41:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117344 invoked by uid 48); 14 Aug 2018 08:40:57 -0000 From: "yamirenk at ya dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86921] do not remove input in bash Date: Tue, 14 Aug 2018 08:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yamirenk at ya dot ru X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01009.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86921 --- Comment #8 from Yakov --- (In reply to Andreas Schwab from comment #7) > This has nothing to do with gcc, it is a property of the terminal emulati= on. ok. all my terminals have this problem)=3D thanks for help >>From gcc-bugs-return-612721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 08:49:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57824 invoked by alias); 14 Aug 2018 08:49:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57525 invoked by uid 48); 14 Aug 2018 08:48:43 -0000 From: "simonrbrand at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/70472] is_copy_constructible>>::value is true Date: Tue, 14 Aug 2018 08:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: simonrbrand at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01010.txt.bz2 Content-length: 648 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70472 Simon Brand changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simonrbrand at gmail dot c= om --- Comment #13 from Simon Brand --- Is there any decent workaround for this for pre-GCC8 users? My current appr= oach is to add specializations to my own trait whenever a user of my library nee= ds support for types with this issue. I can happily use intrinsics if some wou= ld make this easier. >>From gcc-bugs-return-612722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 09:25:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22522 invoked by alias); 14 Aug 2018 09:25:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 22373 invoked by uid 55); 14 Aug 2018 09:25:24 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86871] [8/9 Regression] ICE: gimple check: expected gimple_assign(error_mark), have gimple_call(trunc_mod_expr) in gimple_assign_lhs, at gimple.h:2462 Date: Tue, 14 Aug 2018 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01011.txt.bz2 Content-length: 1218 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86871 --- Comment #9 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Tue Aug 14 09:24:45 2018 New Revision: 263528 URL: https://gcc.gnu.org/viewcvs?rev=3D263528&root=3Dgcc&view=3Drev Log: Fix invalid assumption in vect_transform_stmt (PR 86871) The handling of outer-loop uses of inner-loop definitions assumed that anything that wasn't a PHI would be a gassign. It's also possible for it to be a gcall. 2018-08-14 Richard Sandiford gcc/ Backport from mainline 2018-08-09 Richard Sandiford PR tree-optimization/86871 * tree-vect-stmts.c (vect_transform_stmt): Use gimple_get_lhs instead of gimple_assign_lhs. gcc/testsuite/ Backport from mainline 2018-08-09 Richard Sandiford PR tree-optimization/86871 * gcc.dg/vect/pr86871.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/gcc.dg/vect/pr86871.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tree-vect-stmts.c >>From gcc-bugs-return-612723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 09:26:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23687 invoked by alias); 14 Aug 2018 09:26:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23634 invoked by uid 48); 14 Aug 2018 09:26:33 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86871] [8/9 Regression] ICE: gimple check: expected gimple_assign(error_mark), have gimple_call(trunc_mod_expr) in gimple_assign_lhs, at gimple.h:2462 Date: Tue, 14 Aug 2018 09:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01012.txt.bz2 Content-length: 514 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86871 rsandifo at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #10 from rsandifo at gcc dot gnu.org --- Fixed on trunk and GCC 8 branch. Thanks for the bug report. >>From gcc-bugs-return-612724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 09:36:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65877 invoked by alias); 14 Aug 2018 09:36:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65800 invoked by uid 48); 14 Aug 2018 09:36:50 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86944] ICE in vectorizable_store, at tree-vect-stmts.c:6878 on aarch64 Date: Tue, 14 Aug 2018 09:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc component everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01013.txt.bz2 Content-length: 715 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86944 ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |ktkachov at gcc dot gnu.org Component|target |tree-optimization Ever confirmed|0 |1 --- Comment #1 from ktkachov at gcc dot gnu.org --- Confirmed on the branches from GCC 7 onwards. Doesn't look like a target bug to me though. Looks like the vectoriser does= n't deal with some alignment info properly (to my uneducated eye). >>From gcc-bugs-return-612725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 11:14:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111194 invoked by alias); 14 Aug 2018 11:14:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111110 invoked by uid 48); 14 Aug 2018 11:14:39 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] New: Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Tue, 14 Aug 2018 11:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01014.txt.bz2 Content-length: 1644 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 Bug ID: 86948 Summary: Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: hsa Assignee: unassigned at gcc dot gnu.org Reporter: jamborm at gcc dot gnu.org CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Created attachment 44535 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44535&action=3Dedit BRIG input At some point in the last two weeks, brig.dg/test/gimple/mulhi.hsail started failing with and ICE. Command-line reproducer (with the attached input) is: $ ~/gcc/small/inst/bin/gccbrig mulhi.hsail.brig -S during RTL pass: expand In function =E2=80=98_Kernel=E2=80=99: brig1: internal compiler error: in expand_expr_real_2, at expr.c:8918 0x868d36 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/mjambor/gcc/small/src/gcc/expr.c:8918 0x702e6a expand_gimple_stmt_1 /home/mjambor/gcc/small/src/gcc/cfgexpand.c:3673 0x703131 expand_gimple_stmt /home/mjambor/gcc/small/src/gcc/cfgexpand.c:3734 0x7059f3 expand_gimple_basic_block /home/mjambor/gcc/small/src/gcc/cfgexpand.c:5770 0x708e57 execute /home/mjambor/gcc/small/src/gcc/cfgexpand.c:6373 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-612726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 11:39:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114115 invoked by alias); 14 Aug 2018 11:39:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114065 invoked by uid 55); 14 Aug 2018 11:39:54 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Tue, 14 Aug 2018 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01015.txt.bz2 Content-length: 1591 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #8 from dave.anglin at bell dot net --- On 2018-08-11 8:04 PM, redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 > > --- Comment #5 from Jonathan Wakely --- > This should do it: The testsuite isn't quite finished but it's clear this fixes the bug on=20 hppa64-hp-hpux11.11. Don't know about second patch. > > --- a/libstdc++-v3/src/c++17/memory_resource.cc > +++ b/libstdc++-v3/src/c++17/memory_resource.cc > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include > > namespace std _GLIBCXX_VISIBILITY(default) > { > @@ -81,7 +82,31 @@ namespace pmr > > constant_init newdel_res{}; > constant_init null_res{}; > +#if ATOMIC_POINTER_LOCK_FREE =3D=3D 2 > constant_init> default_res{&newdel_res.obj= }; > +#else > + struct locking_atomic > + { > + constexpr locking_atomic(memory_resource* r) : val(r) { } > + mutex mx; > + memory_resource* val; > + > + memory_resource* load() > + { > + lock_guard lock(mx); > + return val; > + } > + > + memory_resource* exchange(memory_resource* r) > + { > + lock_guard lock(mx); > + auto prev =3D val; > + val =3D r; > + return prev; > + } > + }; > + constant_init default_res{&newdel_res.obj}; > +#endif > } // namespace > > memory_resource* > Thanks, Dave >>From gcc-bugs-return-612727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 11:44:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1744 invoked by alias); 14 Aug 2018 11:44:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1617 invoked by uid 48); 14 Aug 2018 11:43:58 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Tue, 14 Aug 2018 11:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01016.txt.bz2 Content-length: 316 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #9 from Jonathan Wakely --- OK, thanks. The second patch might not be needed for hppa64-hp-hpux11.11 but would be for targets without pointer-width atomics and without PTHREAD_MUTEX_INITIALIZER, so I'll commit that version. >>From gcc-bugs-return-612728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 12:02:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28663 invoked by alias); 14 Aug 2018 12:02:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28564 invoked by uid 48); 14 Aug 2018 12:02:22 -0000 From: "tyker at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86949] New: gcc generate an error because delete operator is private when it isn't needed Date: Tue, 14 Aug 2018 12:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tyker at outlook dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01017.txt.bz2 Content-length: 2625 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86949 Bug ID: 86949 Summary: gcc generate an error because delete operator is private when it isn't needed Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tyker at outlook dot com Target Milestone: --- in this code: #include struct X { X() noexcept { } private: static void operator delete(void*); }; int main() {=20 X* x =3D new(std::nothrow) X{};=20 } the delete operator is private but it isn't needed because the contructor a= nd the allocator can't throw. but gcc generate an error complaining that the delete operator is private. all other majors complier complie this code without errors except gcc: https://godbolt.org/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaPECAKxAEZSAbAQwD= tRkBSAJgCFufSAZ1QBXYskwgA5NwDMeFsgYisAag6yAwi0wB3Ddg4AGAILGTggsRHICqgBrqA7H= 1Or3DiAEpVLVJgAPCQAHOw4XZwARcw9VYOI8ADcmAkkYj0sUvGRVRNQ8dFVUYMxiFJJVLAZMVIg= 8goAqLw1XMydo2VbzBTsAWyYFb2cedTcPewbVAPVZSN89CEt0EBA/AgRiVF0fe3C%2BdpbRtsip= L0ZpAFYpUhZpI2vUaU1%2BflVhMQl1Lllaa4I705nADWIFkXAAdAA2IwXGGyIwADgRABYuABOIz= I85SZHXW5Se6kR5Sa6CEBGUj/AmnUhwWAwRAoVC9YJ4apkCgQNAstmlEDABFcUgAMzZqWIZIgAC= MAaQpQomMQAJ7SX6kbm9TAsAgAeRYDBV1NIWH6bGqsvwxEwtiSmDJRsC1pEqVV1x6mAYsqseF6r= rOzDYKBevEYeClZMgZ2KBDwqBY9tJonEklo/sueNlxICCMhAFpIcjVMBkDkEeCuKoILhCBU5PRV= Jpmaz2V8fj5nrx%2BH8AV5gSAuLRwcjUZDZE40VxkU5ZBdaLRZNjcaRfci0eCnJCMRcfrQnE5BW= j6PjCcTSeTKT3aQyIEhuc3SuRKHfecQUAxaGiAPoFkVi0qSmUjXlFhFUNNUNS1XV9UNQkTVYYBz= SNS1rRjRI7VlR1kGdSQpDVd1PSNb1fVwmkA3YYMBAYMMI28IlQljeNpETD4UzTKQrhuTNpGzPMC= 1UABZABlAA1TRVA/VQuCMXdVAAJQAFQAdUrasiGIVt60bHkWzkLh2wo7tqV7UgEEwJgsFfWiCKX= X1YXLeE0WRSEkS4AcnCPLiSSEc8qXuYyQVkWR12%2BSELgLWgkWRGcnAubFZAzI1TwvIyr3gOlG= WfdlHy5JsXxAbJkAi38GHFADZWA0DXXVZlNW1PUDQtTBTQQnDYLwK0bTQ%2B1CUw7Cqvwr0EmI3= 5/XgoNOxDKjw3gKN6LjBMhCTCQ6DYjjjwebic3zQsCvEssjHBIwVPwNSNNIBtcp075ZH0iaeEMv= y%2B0C9c0QuWdBSMJwuAPehrOuFc10ii4uFCi4kUPJzOMSpjvIpXyaXSm8mW0h9OUyvklHg6EKV= FEr/0oQDCQq5UqoguroMa5rELajrUPQh0AidF0SPIbUPUGn0/UYMbODu0NpsjOiY3mmH3mTFbsT= WzyeO21RMbYVRIUOw7jprdS63OrT73V75kVuvheAewETLMizKDYmyQDsucLinWRhznRFtyxdaiV= FnyeyeoLIXc9FMQnL7p0hSE4oSk8Yfh4yCK4MONq8yOzjQiUGJAZEgA%3D%3D note that in this code: #include struct X { X() noexcept { } static void operator delete(void*) =3D delete; }; int main() {=20 X* x =3D new(std::nothrow) X{};=20 } where the operator delete isn't needed and explicitly deleted gcc compiles correctly. >>From gcc-bugs-return-612729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 12:06:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55999 invoked by alias); 14 Aug 2018 12:06:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50276 invoked by uid 48); 14 Aug 2018 12:05:56 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86949] gcc generate an error because delete operator is private when it isn't needed Date: Tue, 14 Aug 2018 12:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01018.txt.bz2 Content-length: 465 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86949 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 Ever confirmed|0 |1 >>From gcc-bugs-return-612730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 12:10:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69403 invoked by alias); 14 Aug 2018 12:10:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69327 invoked by uid 55); 14 Aug 2018 12:10:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/85343] Overload __throw_ios_failure to allow passing errno Date: Tue, 14 Aug 2018 12:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01019.txt.bz2 Content-length: 1859 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85343 --- Comment #2 from Jonathan Wakely --- Author: redi Date: Tue Aug 14 12:09:57 2018 New Revision: 263535 URL: https://gcc.gnu.org/viewcvs?rev=3D263535&root=3Dgcc&view=3Drev Log: PR libstdc++/85343 overload __throw_ios_failure to take errno [ios::failure] p2: "When throwing ios_base::failure exceptions, implementations should provide values of ec that identify the specific reason for the failure." This adds a new overload of __throw_ios_failure that can be passed errno, to store error_code(errno, system_category()) in the exception object. PR libstdc++/85343 * acinclude.m4 (libtool_VERSION): Bump version. * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add new symbol version. Export new symbol. * configure: Regenerate. * doc/xml/manual/abi.xml: Document new versions. * include/bits/fstream.tcc (basic_filebuf::underflow) (basic_filebuf::xsgetn): Pass errno to __throw_ios_failure. * include/bits/functexcept.h (__throw_ios_failure(const char*, int)= ): Declare new overload. * src/c++11/cxx11-ios_failure.cc (__ios_failure): Add new construct= or and static member function. (__throw_ios_failure(const char*, int)): Define. * src/c++98/ios_failure.cc [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure(const char*, int)): Define. * testsuite/util/testsuite_abi.cc: Update known and latest versions. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/config/abi/pre/gnu.ver trunk/libstdc++-v3/doc/xml/manual/abi.xml trunk/libstdc++-v3/include/bits/fstream.tcc trunk/libstdc++-v3/include/bits/functexcept.h trunk/libstdc++-v3/src/c++11/cxx11-ios_failure.cc trunk/libstdc++-v3/src/c++98/ios_failure.cc >>From gcc-bugs-return-612731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 12:11:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77439 invoked by alias); 14 Aug 2018 12:11:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77397 invoked by uid 48); 14 Aug 2018 12:11:30 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/85343] Overload __throw_ios_failure to allow passing errno Date: Tue, 14 Aug 2018 12:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01020.txt.bz2 Content-length: 434 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85343 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Jonathan Wakely --- Fixed on trunk. >>From gcc-bugs-return-612732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 12:56:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39910 invoked by alias); 14 Aug 2018 12:56:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39825 invoked by uid 48); 14 Aug 2018 12:55:58 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Tue, 14 Aug 2018 12:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01021.txt.bz2 Content-length: 909 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 Martin Jambor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #1 from Martin Jambor --- The first bad revision is r263467: 38bbb539599302461fa06df5ea847e2ddd337409 is the first bad commit commit 38bbb539599302461fa06df5ea847e2ddd337409 Author: amonakov Date: Fri Aug 10 10:13:37 2018 +0000 i386: do not use SImode mul-highpart on 64-bit (PR 82418) PR target/82418 * config/i386/i386.md (mul3_highpart): Use DWIH mode iterator instead of SWI48. testsuite/ * gcc.target/i386/pr82418.c: New test. >>From gcc-bugs-return-612733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:07:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124828 invoked by alias); 14 Aug 2018 13:07:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124807 invoked by uid 48); 14 Aug 2018 13:07:03 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86946] ice: canonical types differ for identical types Date: Tue, 14 Aug 2018 13:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01022.txt.bz2 Content-length: 580 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86946 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. Must be very old. >>From gcc-bugs-return-612734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:14:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6276 invoked by alias); 14 Aug 2018 13:14:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5555 invoked by uid 55); 14 Aug 2018 13:14:09 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Tue, 14 Aug 2018 13:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01023.txt.bz2 Content-length: 1171 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 --- Comment #10 from Jonathan Wakely --- Author: redi Date: Tue Aug 14 13:13:37 2018 New Revision: 263536 URL: https://gcc.gnu.org/viewcvs?rev=3D263536&root=3Dgcc&view=3Drev Log: PR libstdc++/86846 Alternative to pointer-width atomics Define a class using std::mutex for when std::atomic cannot be used to implement the default memory resource. When std::mutex constructor is not constexpr the constant_init trick won't work, so just define a global and use init_priority for it. The compiler warns about using reserved priority, so put the definition in a header file using #pragma GCC system_header to suppress the warning. PR libstdc++/86846 * src/c++17/default_resource.h: New file, defining default_res. * src/c++17/memory_resource.cc [ATOMIC_POINTER_LOCK_FREE !=3D 2] (atomic_mem_res): Define alternative for atomic using a mutex instead of atomics. Added: trunk/libstdc++-v3/src/c++17/default_resource.h Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/src/c++17/memory_resource.cc >>From gcc-bugs-return-612735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:14:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7723 invoked by alias); 14 Aug 2018 13:14:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6957 invoked by uid 48); 14 Aug 2018 13:14:24 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86846] [9 Regression] ld: (Warning) Unsatisfied symbol "__atomic_exchange_8" in libstdc++.sl Date: Tue, 14 Aug 2018 13:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01024.txt.bz2 Content-length: 440 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86846 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #11 from Jonathan Wakely --- Should be fixed now. >>From gcc-bugs-return-612736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:18:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61221 invoked by alias); 14 Aug 2018 13:18:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61174 invoked by uid 48); 14 Aug 2018 13:18:49 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5NTBdIE5ldzogaW50ZXJuYWwgY29tcGlsZXIgZXJyb3I6?= =?UTF-8?B?IHVuZXhwZWN0ZWQgZXhwcmVzc2lvbiDigJh2b2lkKCnigJkgb2Yga2luZCBj?= =?UTF-8?B?YXN0X2V4cHI=?= Date: Tue, 14 Aug 2018 13:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01025.txt.bz2 Content-length: 2654 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86950 Bug ID: 86950 Summary: internal compiler error: unexpected expression =E2=80=98void()=E2=80=99 of kind cast_expr Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- template auto f(T) -> decltype(void(), 1) { } int main () { f(0); } 0x8d1e01 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4861 0x8cf490 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4485 0x8d451e cxx_eval_outermost_constant_expr /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4970 0x8d7368 maybe_constant_value(tree_node*, tree_node*) /home/mpolacek/src/gcc/gcc/cp/constexpr.c:5197 0xa6b7b9 check_narrowing(tree_node*, tree_node*, int, bool) /home/mpolacek/src/gcc/gcc/cp/typeck2.c:909 0xa2b0c2 finish_decltype_type(tree_node*, bool, int) /home/mpolacek/src/gcc/gcc/cp/semantics.c:8917 0x9ab936 cp_parser_decltype /home/mpolacek/src/gcc/gcc/cp/parser.c:14296 0x9adcdf cp_parser_simple_type_specifier /home/mpolacek/src/gcc/gcc/cp/parser.c:17197 0x9a7d95 cp_parser_type_specifier /home/mpolacek/src/gcc/gcc/cp/parser.c:16982 0x9a8b62 cp_parser_type_specifier_seq /home/mpolacek/src/gcc/gcc/cp/parser.c:21253 0x9a8d81 cp_parser_type_id_1 /home/mpolacek/src/gcc/gcc/cp/parser.c:21099 0x9a4977 cp_parser_trailing_type_id /home/mpolacek/src/gcc/gcc/cp/parser.c:21192 0x9a4977 cp_parser_late_return_type_opt /home/mpolacek/src/gcc/gcc/cp/parser.c:21017 0x9a4977 cp_parser_direct_declarator /home/mpolacek/src/gcc/gcc/cp/parser.c:20189 0x9a4977 cp_parser_declarator /home/mpolacek/src/gcc/gcc/cp/parser.c:20019 0x9b2891 cp_parser_init_declarator /home/mpolacek/src/gcc/gcc/cp/parser.c:19535 0x9b960a cp_parser_single_declaration /home/mpolacek/src/gcc/gcc/cp/parser.c:27432 0x9b974c cp_parser_template_declaration_after_parameters /home/mpolacek/src/gcc/gcc/cp/parser.c:27034 0x9b9fee cp_parser_explicit_template_declaration /home/mpolacek/src/gcc/gcc/cp/parser.c:27271 0x9b9fee cp_parser_template_declaration_after_export /home/mpolacek/src/gcc/gcc/cp/parser.c:27290 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-612737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:19:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61939 invoked by alias); 14 Aug 2018 13:19:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61894 invoked by uid 48); 14 Aug 2018 13:19:06 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5NTBdIGludGVybmFsIGNvbXBpbGVyIGVycm9yOiB1bmV4?= =?UTF-8?B?cGVjdGVkIGV4cHJlc3Npb24g4oCYdm9pZCgp4oCZIG9mIGtpbmQgY2FzdF9l?= =?UTF-8?B?eHBy?= Date: Tue, 14 Aug 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01026.txt.bz2 Content-length: 495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86950 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-14 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-612738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:21:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67394 invoked by alias); 14 Aug 2018 13:21:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67378 invoked by uid 48); 14 Aug 2018 13:21:42 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5NTBdIGludGVybmFsIGNvbXBpbGVyIGVycm9yOiB1bmV4?= =?UTF-8?B?cGVjdGVkIGV4cHJlc3Npb24g4oCYdm9pZCgp4oCZIG9mIGtpbmQgY2FzdF9l?= =?UTF-8?B?eHBy?= Date: Tue, 14 Aug 2018 13:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01027.txt.bz2 Content-length: 233 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86950 --- Comment #1 from Marek Polacek --- Fixed testcase: template auto f(T) -> decltype(void(), 1) { return 1; } int main () { f(0); } >>From gcc-bugs-return-612739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:25:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75149 invoked by alias); 14 Aug 2018 13:25:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74986 invoked by uid 48); 14 Aug 2018 13:24:59 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Tue, 14 Aug 2018 13:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01028.txt.bz2 Content-length: 972 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 --- Comment #2 from Alexander Monakov --- Thanks for the heads-up. At present, BRIG frontend cannot rely on MULT_HIGHPART, as the pattern is optional and, as this bug shows, generic expansion is not implemented. BRIG frontend is already somewhat aware of the issue, as the comment in brig-basic-inst-handler.cc indicates: 554 /* MULT_HIGHPART_EXPR works only on target dependent vector sizes= and 555 even the scalars do not seem to work at least for char element= s. 556 557 Let's fall back to scalarization and promotion [...] So a quick-fix would be to never try to use MULT_HIGHPART_EXPR from BRIG FE. However, I think it would be nice to extend expand_mult_highpart to handle this, at least to avoid regressing here. I'll look into that. I'll also try= to expose MULT_HIGHPART_EXPR via the GIMPLE FE so it can be tested in a more straightforward manner. >>From gcc-bugs-return-612740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:31:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93804 invoked by alias); 14 Aug 2018 13:31:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93692 invoked by uid 48); 14 Aug 2018 13:31:01 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5NTBdIGludGVybmFsIGNvbXBpbGVyIGVycm9yOiB1bmV4?= =?UTF-8?B?cGVjdGVkIGV4cHJlc3Npb24g4oCYdm9pZCgp4oCZIG9mIGtpbmQgY2FzdF9l?= =?UTF-8?B?eHBy?= Date: Tue, 14 Aug 2018 13:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01029.txt.bz2 Content-length: 455 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86950 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Marek Polacek --- Closing because I am an idiot. >>From gcc-bugs-return-612741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:44:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128550 invoked by alias); 14 Aug 2018 13:44:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128336 invoked by uid 48); 14 Aug 2018 13:44:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86623] constexpr evaluation fails to give an error for modifying a const object Date: Tue, 14 Aug 2018 13:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01030.txt.bz2 Content-length: 402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86623 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 Ever confirmed|0 |1 >>From gcc-bugs-return-612742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:57:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111942 invoked by alias); 14 Aug 2018 13:57:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111892 invoked by uid 48); 14 Aug 2018 13:57:26 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/79323] FAIL: 20_util/duration/literals/range.cc (test for excess errors) Date: Tue, 14 Aug 2018 13:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01031.txt.bz2 Content-length: 475 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79323 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |7.0 --- Comment #3 from Jonathan Wakely --- =2E >>From gcc-bugs-return-612743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 13:59:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124866 invoked by alias); 14 Aug 2018 13:59:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124603 invoked by uid 48); 14 Aug 2018 13:59:42 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/79433] __has_include() is true but #include gives #error when -std=old Date: Tue, 14 Aug 2018 13:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01032.txt.bz2 Content-length: 547 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79433 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |7.3 --- Comment #28 from Jonathan Wakely --- This is fixed for gcc 7.3 and I don't plan to backport it to gcc-6-branch. >>From gcc-bugs-return-612744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 14:16:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98182 invoked by alias); 14 Aug 2018 14:16:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93876 invoked by uid 48); 14 Aug 2018 14:16:31 -0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86599] Problems building libgfortran from 7.2.0 on HP-UX 11.31/PA Date: Tue, 14 Aug 2018 14:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01033.txt.bz2 Content-length: 318 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86599 --- Comment #20 from The Written Word --- Created attachment 44536 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44536&action=3Dedit stdlib.h long_double patch for HP-UX 11.31/PA Tested against 7.3.0 and 8.2.0. >>From gcc-bugs-return-612745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 14:18:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9025 invoked by alias); 14 Aug 2018 14:18:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8904 invoked by uid 48); 14 Aug 2018 14:17:59 -0000 From: "luto at kernel dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Tue, 14 Aug 2018 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luto at kernel dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01034.txt.bz2 Content-length: 712 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 Andy Lutomirski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luto at kernel dot org --- Comment #9 from Andy Lutomirski --- I haven't fully dug into this, but I do one one immediate question: why is = GCC generating a jump table for a five-entry switch statement if retpolines are= on? This has got to be a *huge* performance loss. The retpoline sequence is v= ery, very slow, and branches aren't that slow. A five-entry switch is only three branches deep. >>From gcc-bugs-return-612746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 14:20:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65384 invoked by alias); 14 Aug 2018 14:20:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62630 invoked by uid 48); 14 Aug 2018 14:20:50 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86951] New: arm speculation barrier incompatible with ARMv6 or earlier Date: Tue, 14 Aug 2018 14:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter blocked target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01035.txt.bz2 Content-length: 857 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86951 Bug ID: 86951 Summary: arm speculation barrier incompatible with ARMv6 or earlier Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: assemble-failure Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rearnsha at gcc dot gnu.org Blocks: 86772 Target Milestone: --- Target: arm The speculation_barrier_insn pattern uses DSB and ISB, but these instructio= ns were only added in ARMv7. Another approach is needed for older versions of= the architecture. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86772 [Bug 86772] [meta-bug] tracking port status for CVE-2017-5753 >>From gcc-bugs-return-612747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 14:21:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70073 invoked by alias); 14 Aug 2018 14:21:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67671 invoked by uid 48); 14 Aug 2018 14:21:01 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86951] arm speculation barrier incompatible with ARMv6 or earlier Date: Tue, 14 Aug 2018 14:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01036.txt.bz2 Content-length: 407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86951 Richard Earnshaw changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 Ever confirmed|0 |1 >>From gcc-bugs-return-612748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 14:25:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85975 invoked by alias); 14 Aug 2018 14:25:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85880 invoked by uid 48); 14 Aug 2018 14:25:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86590] Codegen is poor when passing std::string by value with _GLIBCXX_EXTERN_TEMPLATE undefined Date: Tue, 14 Aug 2018 14:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01037.txt.bz2 Content-length: 291 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86590 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-612749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 14:37:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38508 invoked by alias); 14 Aug 2018 14:37:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38414 invoked by uid 48); 14 Aug 2018 14:37:48 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Tue, 14 Aug 2018 14:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01038.txt.bz2 Content-length: 528 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 --- Comment #3 from Alexander Monakov --- Created attachment 44537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44537&action=3Dedit expose mult-highpart via GIMPLE FE Attaching a patch that allows creating MULT_HIGHPART_EXPR via GIMPLE FE, wh= ich allows testing with __GIMPLE unsigned f(unsigned x, unsigned y) { unsigned r; r =3D x h* y; return r; } (though the patch is not too sophisticated, it accepts "h*") >>From gcc-bugs-return-612750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 15:16:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45888 invoked by alias); 14 Aug 2018 15:16:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45617 invoked by uid 55); 14 Aug 2018 15:16:19 -0000 From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86724] Compilation error with new isl 0.20 (missing includes) Date: Tue, 14 Aug 2018 15:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01039.txt.bz2 Content-length: 605 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86724 --- Comment #8 from Matthias Klose --- Author: doko Date: Tue Aug 14 15:15:39 2018 New Revision: 263539 URL: https://gcc.gnu.org/viewcvs?rev=3D263539&root=3Dgcc&view=3Drev Log: 2018-08-14 Matthias Klose Backport from mainline 2018-08-01 Richard Biener PR bootstrap/86724 * graphite.h: Include isl/id.h and isl/space.h to allow build with ISL 0.20. Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/graphite.h >>From gcc-bugs-return-612751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 15:24:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7091 invoked by alias); 14 Aug 2018 15:24:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122692 invoked by uid 48); 14 Aug 2018 15:24:19 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86952] New: Avoid jump table for switch statement with -mindirect-branch=thunk Date: Tue, 14 Aug 2018 15:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc blocked target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01040.txt.bz2 Content-length: 964 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86952 Bug ID: 86952 Summary: Avoid jump table for switch statement with -mindirect-branch=3Dthunk Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: wei3.xiao at intel dot com Blocks: 84072 Target Milestone: --- Target: i386,x86-64 Why is GCC generating a jump table for a five-entry switch statement if retpolines are on? This has got to be a *huge* performance loss. The retpoline sequence is very, very slow, and branches aren't that slow. A five-entry switch is only three branches deep. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84072 [Bug 84072] [meta-bug] -mindirect-branch=3Dthunk issues >>From gcc-bugs-return-612752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 15:25:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21159 invoked by alias); 14 Aug 2018 15:25:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14985 invoked by uid 48); 14 Aug 2018 15:25:16 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Tue, 14 Aug 2018 15:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01041.txt.bz2 Content-length: 570 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 --- Comment #10 from H.J. Lu --- (In reply to Andy Lutomirski from comment #9) > I haven't fully dug into this, but I do one one immediate question: why is > GCC generating a jump table for a five-entry switch statement if retpolin= es > are on? This has got to be a *huge* performance loss. The retpoline > sequence is very, very slow, and branches aren't that slow. A five-entry > switch is only three branches deep. I opened: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86952 >>From gcc-bugs-return-612753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 15:29:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103256 invoked by alias); 14 Aug 2018 15:29:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103203 invoked by uid 48); 14 Aug 2018 15:29:51 -0000 From: "jason.vas.dias at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Tue, 14 Aug 2018 15:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason.vas.dias at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01042.txt.bz2 Content-length: 2751 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 --- Comment #11 from Jason Vas Dias --- In reply to Comment #9 : Thanks Andy - I think it is because when the retpoline flags are enabled , the 'static inline' function calls in vclock_gettime.c have default function attributes which differ from those that=20 __vdso_clock_gettime ( the function containing the switch ) gets,=20 so GCC finds it must instantiate a callable version of the normally static inline function calls=20 this function makes, and generates relocations for them which are not getting copied into the VDSO for some reason. Rather than making more radical changes to the VDSO assembly code to handle these types of relocations, I think it is better to avoid them being generated by either: A) compiling vclock_gettime.c without=20 '-mindirect-branch=3Dthunk-extern -mindirect-branch-register -DRETPOLIN= E' (rejected by Andi Kleen) B) Specifying ALL entry points that __vdso_clock_gettime calls to have attributes that do not require relocation for GCC to handle if the above flags are in effect: #ifdef RETPOLINE +# define _NO_THUNK_RELOCS_()(indirect_branch("keep"),\ + function_return("keep")) +# define _RETPOLINE_FUNC_ATTR_ __attribute__(_NO_THUNK_RELOCS_()) +# define _RETPOLINE_INLINE_ inline +#else +# define _RETPOLINE_FUNC_ATTR_ +# define _RETPOLINE_INLINE_ __always_inline +#endif So then one declares any function called by __vdso_clock_gettime() like: notrace static _RETPOLINE_FUNC_ATTR_ _RETPOLINE_INLINE_ int do_monotonic_raw( int clock, struct timespec *ts ) { ... } and then must declare=20 notrace int _RETPOLINE_FUNC_ATTR_=20 __vdso_clock_gettime(clockid_t clock, struct timespec *ts) {... do_monotonic_raw(ts); ...} to avoid the relocations being generated.=20 I did submit a patch to vclock_gettime.c to do this - should I re-submit it? Or one could fix the code which produces the resulting vdso to include the generated (unecessary and redundant) relocations, or generate the relocation functions in assembler somehow, but I don't think this is the way the VDSO should go. There is no reason to make functions in the VDSO have function attributes indirect_branch("thunk-extern,register") - they always WILL generate relocations if more that 5 such calls are made in same switch, with all current versions of GCC, it seems.=20 Every function that directly invokes these functions (in glibc), must also have these function attributes, which are entirely unnecessary and inefficient compared to the indirect_branch("keep") style; and those relocations then must be in the VDSO for callers to invoke. >>From gcc-bugs-return-612754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:09:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124124 invoked by alias); 14 Aug 2018 16:09:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124072 invoked by uid 48); 14 Aug 2018 16:09:24 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86678] constexpr evaluation incorrectly diagnoses unevaluated call to non-constexpr function Date: Tue, 14 Aug 2018 16:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01043.txt.bz2 Content-length: 714 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86678 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2018-07-26 00:00:00 |2018-8-14 --- Comment #4 from Jonathan Wakely --- constexpr bool always_true() { return true; } int f() { return 1; } constexpr int g() { if (always_true()) return 0; return f(); } ce.cc: In function 'constexpr int g()': ce.cc:6:11: error: call to non-'constexpr' function 'int f()' 6 | return f(); | ~^~ This makes it awkward to use the new __builtin_is_constant_evaluated(). >>From gcc-bugs-return-612755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:36:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58937 invoked by alias); 14 Aug 2018 16:36:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58897 invoked by uid 48); 14 Aug 2018 16:36:54 -0000 From: "remi.ducceschi at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] New: compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Tue, 14 Aug 2018 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: remi.ducceschi at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01044.txt.bz2 Content-length: 6247 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 Bug ID: 86953 Summary: compiler crashes with constexpr operator=3D=3D and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: remi.ducceschi at gmail dot com Target Milestone: --- Created attachment 44538 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44538&action=3Dedit preprocessed file of a small test case for the constexpr crash Hello, I've created a small test case that produces a compiler crash. You can find attached the preprocessed file (main.ii) made by running the following comm= and, with `G++ 7.3.1 20180303 (Red Hat 7.3.1-5)` on a CentOS 7 (with the devtoolset-7 installed), but it seems to exist on the last version too (see https://wandbox.org/permlink/zGZWdHIrRNJKfh5Z): g++ -O3 -Wall -Wextra -o main -save-temps -v main.cpp I give at the end of the mail the output of the command. You can find a run on the last G++ version (9) here: https://wandbox.org/permlink/zGZWdHIrRNJKfh5Z=20 ----------------------- Here is the code: #include struct Bugged { double x; bool isfreex; bool isfreey; constexpr bool operator=3D=3D(const Bugged& other) const noexcept { return (x =3D=3D other.x) && (isfreex =3D=3D other.isfreex) && (isf= reey =3D=3D other.isfreey); } }; int main () { std::cout << std::boolalpha << (Bugged{} =3D=3D Bugged{}) << std::endl; return 0; } ----------------------- The bug only appears if I enable optimization (-02 or -O3), I guess constex= pr optimization is not done otherwise. The problem occurs on the operator=3D=3D(). The compiler crashes because it= can't compute the result of the constexpr. Note that if I change the struct so it doesn't hold booleans, but double instead, or if I remove any of the parentheses term in the operator=3D=3D function, it doesn't crash. Note that this code compiles on MSVC 2017 and on clang 6 (though it doesn't mean anything). I search for a similar bug report but didn't find anything, sorry if this i= s a duplicate. ----------------------- Below the output of the command: Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redh= at-linux/7/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=3Dc,c++,fortran,lto --prefix=3D/opt/rh/devtoolset-7/root= /usr --mandir=3D/opt/rh/devtoolset-7/root/usr/share/man --infodir=3D/opt/rh/devtoolset-7/root/usr/share/info --with-bugurl=3Dhttp://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=3Dposix --enable-checking=3Drelease --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-plugin --with-linker-hash-style=3Dgnu --enable-initfini-array --with-default-libstdcxx-abi=3Dgcc4-compatible --with-isl=3D/builddir/build/BUILD/gcc-7.3.1-20180303/obj-x86_64-redhat-lin= ux/isl-install --enable-libmpx --enable-gnu-indirect-function --with-tune=3Dgeneric --with-arch_32=3Di686 --build=3Dx86_64-redhat-linux Thread model: posix gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)=20 COLLECT_GCC_OPTIONS=3D'-O3' '-Wall' '-Wextra' '-o' 'main' '-save-temps' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/cc1plus -E -quiet -v -D_GNU_SOURCE main.cpp -mtune=3Dgeneric -march=3Dx86-64 -Wall -We= xtra -O3 -fpch-preprocess -o main.ii ignoring nonexistent directory "/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include-fixed" ignoring nonexistent directory "/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../x8= 6_64-redhat-linux/include" #include "..." search starts here: #include <...> search starts here: /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../inc= lude/c++/7 /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../inc= lude/c++/7/x86_64-redhat-linux /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../inc= lude/c++/7/backward /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include /usr/local/include /opt/rh/devtoolset-7/root/usr/include /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-O3' '-Wall' '-Wextra' '-o' 'main' '-save-temps' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/cc1plus -fpreprocessed main.ii -quiet -dumpbase main.cpp -mtune=3Dgeneric -march=3D= x86-64 -auxbase main -O3 -Wall -Wextra -version -o main.s GNU C++14 (GCC) version 7.3.1 20180303 (Red Hat 7.3.1-5) (x86_64-redhat-lin= ux) compiled by GNU C version 7.3.1 20180303 (Red Hat 7.3.1-5), GMP ver= sion 6.0.0, MPFR version 3.1.1, MPC version 1.0.1, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C++14 (GCC) version 7.3.1 20180303 (Red Hat 7.3.1-5) (x86_64-redhat-lin= ux) compiled by GNU C version 7.3.1 20180303 (Red Hat 7.3.1-5), GMP ver= sion 6.0.0, MPFR version 3.1.1, MPC version 1.0.1, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: d120f4d100e8519a845aa191e71919b8 main.cpp: In function =C3=A2=C2=80=C2=98int main()=C3=A2=C2=80=C2=99: main.cpp:23:43: in constexpr expansion of =C3=A2=C2=80=C2=98Bugged{}.Bugged::operator=3D=3D(Bugged{})=C3=A2=C2=80=C2= =99 main.cpp:23:54: internal compiler error: in cxx_eval_bit_field_ref, at cp/constexpr.c:2565 std::cout << std::boolalpha << (Bugged{} =3D=3D Bugged{}) << std::endl; ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccVplEXc.out file, please attach this = to your bugreport. >>From gcc-bugs-return-612756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:38:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60222 invoked by alias); 14 Aug 2018 16:38:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60114 invoked by uid 48); 14 Aug 2018 16:38:22 -0000 From: "remi.ducceschi at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Tue, 14 Aug 2018 16:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: remi.ducceschi at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01045.txt.bz2 Content-length: 250 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 --- Comment #1 from R=C3=A9mi DUCCESCHI -= -- Created attachment 44539 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44539&action=3Dedit Small test case >>From gcc-bugs-return-612757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:46:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94703 invoked by alias); 14 Aug 2018 16:46:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94657 invoked by uid 48); 14 Aug 2018 16:46:52 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] [6/7/8/9 Regression] compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Tue, 14 Aug 2018 16:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01046.txt.bz2 Content-length: 1090 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 CC| |mpolacek at gcc dot gnu.org Summary|compiler crashes with |[6/7/8/9 Regression] |constexpr operator=3D=3D and |compiler crashes with |specific struct |constexpr operator=3D=3D a= nd |(cxx_eval_bit_field_ref, at |specific struct |cp/constexpr.c:2704) |(cxx_eval_bit_field_ref, at | |cp/constexpr.c:2704) Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed. G++ 5 compiles it fine. >>From gcc-bugs-return-612758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:49:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96786 invoked by alias); 14 Aug 2018 16:49:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96497 invoked by uid 48); 14 Aug 2018 16:49:15 -0000 From: "frankhb1989 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86954] New: redundant nothrow in call of ::operator delete Date: Tue, 14 Aug 2018 16:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: frankhb1989 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01047.txt.bz2 Content-length: 1226 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86954 Bug ID: 86954 Summary: redundant nothrow in call of ::operator delete Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: frankhb1989 at gmail dot com Target Milestone: --- In the current implementation std::return_temporary_buffer, ::operator dele= te is called with std::nothrow as 2nd argument. (It seems here is the only occurrence of such ::operator delete call in libstdc++). This seems unintentional. Normally the std::nothrow argument should not exist here. This should make no difference to intentional behavior when the allocation = and deallocation functions are not replaced due to the default behavior. Howeve= r, since the nothrow_t overloads are called by implementation on exceptions du= ring the call of operator new, and the overloads can be replaceable as per [new.delete.single], this may lead to surprise result with reasonable use, = e.g. when user expect to have different log messages in different replaced overl= oads of ::operator delete. >>From gcc-bugs-return-612759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:51:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99587 invoked by alias); 14 Aug 2018 16:51:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99506 invoked by uid 48); 14 Aug 2018 16:51:12 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86590] Codegen is poor when passing std::string by value with _GLIBCXX_EXTERN_TEMPLATE undefined Date: Tue, 14 Aug 2018 16:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01048.txt.bz2 Content-length: 425 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86590 --- Comment #28 from Jonathan Wakely --- Created attachment 44540 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44540&action=3Dedit Use __builtin_is_constant_evaluated() I tried to replace the __builtin_constant_p and __constant_string conditions with Jakub's new __builtin_is_constant_evaluated (see patch) but it made no difference. >>From gcc-bugs-return-612760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 16:53:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113783 invoked by alias); 14 Aug 2018 16:53:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113679 invoked by uid 48); 14 Aug 2018 16:53:07 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86590] Codegen is poor when passing std::string by value with _GLIBCXX_EXTERN_TEMPLATE undefined Date: Tue, 14 Aug 2018 16:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01049.txt.bz2 Content-length: 208 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86590 --- Comment #29 from Jonathan Wakely --- The seemingly-redundant 'else' keywords in the patch are needed because of = PR 86678. >>From gcc-bugs-return-612761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 17:25:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106746 invoked by alias); 14 Aug 2018 17:25:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103686 invoked by uid 48); 14 Aug 2018 17:25:06 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Tue, 14 Aug 2018 17:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01050.txt.bz2 Content-length: 555 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 --- Comment #4 from Alexander Monakov --- Created attachment 44541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44541&action=3Dedit generic expansion for mult-highpart This patch implements fallback via widening multiply; works for the gimple testcase. If this is accepted, BRIG FE should be able to drop workarounds and always = use MULT_HIGHPART_EXPR when it needs to; if not, BRIG FE should be changed to assume that MULT_HIGHPART_EXPR is never available. >>From gcc-bugs-return-612762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 17:31:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 852 invoked by alias); 14 Aug 2018 17:31:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 786 invoked by uid 48); 14 Aug 2018 17:31:19 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86955] New: strlen of a known string in member array plus offset not folded Date: Tue, 14 Aug 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01051.txt.bz2 Content-length: 2396 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86955 Bug ID: 86955 Summary: strlen of a known string in member array plus offset not folded Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC is able to fold three out of the four strlen calls in the test case bel= ow, even though folding all four should be possible. $ cat f.c && gcc -O2 -S -Wall -Wextra -fdump-tree-optimized=3D/dev/stdout f= .c char a[8]; struct A { char i, a[8]; }; void f0 (void) { __builtin_strcpy (a, "123"); if (__builtin_strlen (a) !=3D 3) // folded __builtin_abort (); } void f1 (void) { __builtin_strcpy (a, "123"); if (__builtin_strlen (a + 1) !=3D 2) // folded __builtin_abort (); } void f2 (struct A* p) { __builtin_strcpy (p->a, "123"); if (__builtin_strlen (p->a) !=3D 3) // folded __builtin_abort (); } void f3 (struct A* p) { __builtin_strcpy (p->a, "123"); if (__builtin_strlen (p->a + 1) !=3D 2) // not folded __builtin_abort (); } ;; Function f0 (f0, funcdef_no=3D0, decl_uid=3D1910, cgraph_uid=3D1, symbol= _order=3D1) f0 () { [local count: 1073741825]: __builtin_memcpy (&a, "123", 4); [tail call] return; } ;; Function f1 (f1, funcdef_no=3D1, decl_uid=3D1913, cgraph_uid=3D2, symbol= _order=3D2) f1 () { [local count: 1073741825]: __builtin_memcpy (&a, "123", 4); [tail call] return; } ;; Function f2 (f2, funcdef_no=3D2, decl_uid=3D1916, cgraph_uid=3D3, symbol= _order=3D3) f2 (struct A * p) { char[8] * _1; [local count: 1073741825]: _1 =3D &p_3(D)->a; __builtin_memcpy (_1, "123", 4); [tail call] return; } ;; Function f3 (f3, funcdef_no=3D3, decl_uid=3D1919, cgraph_uid=3D4, symbol= _order=3D4) f3 (struct A * p) { char[8] * _1; const char * _2; long unsigned int _3; [local count: 1073741825]: _1 =3D &p_4(D)->a; __builtin_memcpy (_1, "123", 4); _2 =3D &MEM[(void *)p_4(D) + 2B]; _3 =3D __builtin_strlen (_2); if (_3 !=3D 2) goto ; [0.00%] else goto ; [99.96%] [count: 0]: __builtin_abort (); [local count: 1073312327]: return; } >>From gcc-bugs-return-612763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 17:33:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3671 invoked by alias); 14 Aug 2018 17:33:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3626 invoked by uid 48); 14 Aug 2018 17:33:38 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86955] strlen of a known string in member array plus offset not folded Date: Tue, 14 Aug 2018 17:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords blocked Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01052.txt.bz2 Content-length: 820 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86955 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Blocks| |83819 --- Comment #1 from Martin Sebor --- The reason is that the strlen pass sees the following: _1 =3D &p_4(D)->a; __builtin_memcpy (_1, "123", 4); _2 =3D &MEM[(void *)p_4(D) + 2B]; _3 =3D __builtin_strlen (_2); and it doesn't understand that &MEM[(void *)p_4(D) + 2B] actually refers to p_4(D)->a. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83819 [Bug 83819] [meta-bug] missing strlen optimizations >>From gcc-bugs-return-612764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 17:39:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14723 invoked by alias); 14 Aug 2018 17:39:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14685 invoked by uid 48); 14 Aug 2018 17:39:13 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86731] [8/9 Regression] Miscompiles vec_sl at -O3 with -fwrapv on ppc64el Date: Tue, 14 Aug 2018 17:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01053.txt.bz2 Content-length: 494 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86731 Will Schmidt changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-14 Assignee|unassigned at gcc dot gnu.org |willschm at gcc dot= gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-612765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 17:42:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27356 invoked by alias); 14 Aug 2018 17:42:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27290 invoked by uid 48); 14 Aug 2018 17:42:03 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] [6/7/8/9 Regression] compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Tue, 14 Aug 2018 17:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01054.txt.bz2 Content-length: 497 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 --- Comment #3 from Marek Polacek --- struct B { double x; bool isfreex; bool isfreey; constexpr bool operator=3D=3D(const B& other) const noexcept { return (x =3D=3D other.x) && (isfreex =3D=3D other.isfreex) && (isfreey= =3D=3D other.isfreey); } constexpr bool operator!=3D(const B& other) const noexcept { return !(*th= is =3D=3D other); } }; int main () { bool b =3D B{} =3D=3D B{}; } >>From gcc-bugs-return-612766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 17:46:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33937 invoked by alias); 14 Aug 2018 17:46:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33362 invoked by uid 48); 14 Aug 2018 17:46:12 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] [6/7/8/9 Regression] compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Tue, 14 Aug 2018 17:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01055.txt.bz2 Content-length: 181 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 --- Comment #4 from Marek Polacek --- Started with r230365 -- Merge C++ delayed folding branch.. >>From gcc-bugs-return-612767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 18:17:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107838 invoked by alias); 14 Aug 2018 18:17:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107756 invoked by uid 48); 14 Aug 2018 18:17:51 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78244] Narrowing conversion is accepted in a function template, but it should be rejected Date: Tue, 14 Aug 2018 18:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01056.txt.bz2 Content-length: 430 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78244 --- Comment #3 from Marek Polacek --- Enhanced testcase (so that I don't lose it): template auto f1(T) -> decltype(int{2.0}, void()) { } template auto f2(T) -> decltype(int{2.0}) { return 1; } template auto f3(T) -> decltype(void(), int{2.0}) { return 1; } int main () { f1 (0); f2 (0); f3 (0); } >>From gcc-bugs-return-612768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:03:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77655 invoked by alias); 14 Aug 2018 19:03:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77593 invoked by uid 48); 14 Aug 2018 19:03:09 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86914] [8/9 Regression] -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Date: Tue, 14 Aug 2018 19:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01057.txt.bz2 Content-length: 422 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86914 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #4 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00823.html >>From gcc-bugs-return-612769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:04:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78608 invoked by alias); 14 Aug 2018 19:04:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78478 invoked by uid 48); 14 Aug 2018 19:03:51 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86956] New: Use of an alias template unexpectedly breaks compilation Date: Tue, 14 Aug 2018 19:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01058.txt.bz2 Content-length: 2765 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86956 Bug ID: 86956 Summary: Use of an alias template unexpectedly breaks compilation Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /********************** BEGIN SOURCE **********************/ template struct Outer { template struct Inner; template using Alias =3D Inner; }; template<> template struct Outer::Inner {=20 static constexpr bool value =3D v; }; static_assert(Outer::Inner::value); // OK static_assert(Outer::Alias::value); // error /*********************** END SOURCE ***********************/ The first static_assert compiles OK, but the second results in unexpected errors: /********************** BEGIN OUTPUT **********************/ : In instantiation of 'struct Outer::Inner': :17:39: required from here :12:27: error: type/value mismatch at argument 1 in template parame= ter list for 'template > struct Outer::Inner< >' 12 | struct Outer::Inner { | ^ :12:27: note: expected a constant of type 'bool', got 'void' :12:27: error: type/value mismatch at argument 1 in template parame= ter list for 'Outer::Inner< >::Inner' :12:27: note: expected a constant of type 'bool', got 'void' :13:27: error: type/value mismatch at argument 1 in template parame= ter list for 'template > struct Outer::Inner< >' 13 | static constexpr bool value =3D v; | ^~~~~ :13:27: note: expected a constant of type 'bool', got 'void' :13:27: error: type/value mismatch at argument 1 in template parame= ter list for 'value' :13:27: note: expected a constant of type 'bool', got 'void' :17:41: error: 'value' is not a member of 'Outer::Alias' {aka 'Outer::Inner'} 17 | static_assert(Outer::Alias::value); // error | ^~~~~ Compiler returned: 1 /*********************** END OUTPUT ***********************/ The part "expected a constant of type 'bool', got 'void'" looks inexplicabl= e; "Inner< >" is also difficult to decipher. The issue is discover= ed with build 9.0.0 20180813 (experimental), but appears to exist in earlier versions as well. For comparison, Clang compiles this code successfully. >>From gcc-bugs-return-612771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:10:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94338 invoked by alias); 14 Aug 2018 19:10:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94303 invoked by uid 48); 14 Aug 2018 19:10:51 -0000 From: "ibhagatgnu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86957] New: gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use Date: Tue, 14 Aug 2018 19:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: ibhagatgnu at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01060.txt.bz2 Content-length: 2449 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86957 Bug ID: 86957 Summary: gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ibhagatgnu at gmail dot com CC: mliska at suse dot cz Target Milestone: --- When using -fprofile-use in the FDO build, gcc currently does not warn about about the following two cases.=20 Both the cases are related to a missing profiles. Discussed here on mailing list https://gcc.gnu.org/ml/gcc/2018-08/msg00048.= html CASE 1 : Missing profile for a new function ------------------------------------------- If a new function foo() is added to the file, gcc only warns about those existing functions whose source locations have been impacted by foo() by issuing the following : "warning : source locations for function 'XXX' have changed, the profile da= ta may be out of date [-Werror=3Dcoverage-mismatch]" Proposal to add a warning for the new function foo() along the lines of -=20 "warning : profile for function =E2=80=98XXX=E2=80=99 not found in profile = data [-Wmissing-profile]" Note that, the corner case of foo() being added to the end of the file is exclusively covered by the proposed -Wmissing-profile CASE 2 : Missing profile for a compilation unit ----------------------------------------------- This is the case when, e.g., a new source file is added to the project after profile generation phase. Also, the case when somehow .gcda files are wiped= out in a make clean etc. It is worth informing the user that profile generation is due. Proposal to = add a warning per file along the lines of - "warning : profile count data file not found, regenerating profiles may help [-Wmissing-profile]" To contrast, -Wcoverage-mismatch covers the cases when profiles are STALE. -Wmissing-profile is intended to cover the cases when there is NO profile. I propose to keep the behaviour of -Wmissing-profile to be consistent with -Wcoverage-mismatch in that : 1. Both should be on by default and treated as errors by default in -fprofile-use FDO build 2. A user must use -Wno-error to just see them as warnings (with -fprofile-use). >>From gcc-bugs-return-612770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:10:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90312 invoked by alias); 14 Aug 2018 19:10:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90231 invoked by uid 55); 14 Aug 2018 19:10:06 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86116] [6/7/8/9 Regression] Ambiguous generic interface not recognised Date: Tue, 14 Aug 2018 19:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01059.txt.bz2 Content-length: 924 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86116 --- Comment #4 from janus at gcc dot gnu.org --- Author: janus Date: Tue Aug 14 19:09:33 2018 New Revision: 263540 URL: https://gcc.gnu.org/viewcvs?rev=3D263540&root=3Dgcc&view=3Drev Log: 2018-08-14 Janus Weil PR fortran/86116 * interface.c (compare_type): Remove a CLASS/TYPE check. (compare_type_characteristics): New function that behaves like the = old 'compare_type'. (gfc_check_dummy_characteristics, gfc_check_result_characteristics): Call 'compare_type_characteristics' instead of 'compare_type'. 2018-08-14 Janus Weil PR fortran/86116 * gfortran.dg/generic_34.f90: New test case. Added: trunk/gcc/testsuite/gfortran.dg/generic_34.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/interface.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:11:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95694 invoked by alias); 14 Aug 2018 19:11:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95667 invoked by uid 55); 14 Aug 2018 19:11:52 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86650] -Warray-bounds missing inlining context Date: Tue, 14 Aug 2018 19:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01061.txt.bz2 Content-length: 758 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86650 --- Comment #4 from Martin Sebor --- Author: msebor Date: Tue Aug 14 19:11:20 2018 New Revision: 263541 URL: https://gcc.gnu.org/viewcvs?rev=3D263541&root=3Dgcc&view=3Drev Log: PR tree-optimization/86650 - -Warray-bounds missing inlining context gcc/ChangeLog: PR tree-optimization/86650 * tree-vrp.c (vrp_prop::check_array_ref): Print an inform message. (vrp_prop::check_mem_ref): Same. gcc/testsuite/ChangeLog: PR tree-optimization/86650 * gcc.dg/Warray-bounds-34.c: New test. Added: trunk/gcc/testsuite/gcc.dg/Warray-bounds-34.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vrp.c >>From gcc-bugs-return-612773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:12:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96634 invoked by alias); 14 Aug 2018 19:12:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96607 invoked by uid 48); 14 Aug 2018 19:12:54 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86650] -Warray-bounds missing inlining context Date: Tue, 14 Aug 2018 19:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01062.txt.bz2 Content-length: 247 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86650 --- Comment #5 from Martin Sebor --- Another small enhancement committed in r263541. The inlining context is not yet included so leaving this open until it's done. >>From gcc-bugs-return-612774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:16:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100682 invoked by alias); 14 Aug 2018 19:15:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100478 invoked by uid 48); 14 Aug 2018 19:15:39 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78244] Narrowing conversion is accepted in a function template, but it should be rejected Date: Tue, 14 Aug 2018 19:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01063.txt.bz2 Content-length: 185 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78244 --- Comment #4 from Marek Polacek --- Another simple test: template decltype(int{1.1}) v; >>From gcc-bugs-return-612775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:17:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102688 invoked by alias); 14 Aug 2018 19:17:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102620 invoked by uid 48); 14 Aug 2018 19:17:44 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78244] Narrowing conversion is accepted in a function template, but it should be rejected Date: Tue, 14 Aug 2018 19:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01064.txt.bz2 Content-length: 209 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78244 --- Comment #5 from Marek Polacek --- And with class templates: template struct S { static const int i{1.1}; }; >>From gcc-bugs-return-612776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:18:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103730 invoked by alias); 14 Aug 2018 19:18:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103716 invoked by uid 48); 14 Aug 2018 19:18:42 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] New: ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 19:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01065.txt.bz2 Content-length: 1761 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 Bug ID: 86958 Summary: ICE in finish_member_declaration when an alias template is used Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /********************** BEGIN SOURCE **********************/ template struct Outer { template struct Inner; template using Alias =3D Inner; }; template<> template struct Outer::Inner {=20 static constexpr bool value =3D v; }; static_assert(Outer::Inner::value =3D=3D sizeof(bool)); // OK static_assert(Outer::Alias::value =3D=3D sizeof(bool); // error /*********************** END SOURCE ***********************/ The first static_assert compiles OK, but the second results in an ICE: /********************** BEGIN OUTPUT **********************/ : In instantiation of 'struct Outer::Inner': :17:39: required from here :13:27: internal compiler error: in finish_member_declaration, at cp/semantics.c:3085 13 | static constexpr auto value =3D sizeof(T); | ^~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler returned: 1 /*********************** END OUTPUT ***********************/ This issue was found with build 9.0.0 20180813 (experimental), but appears = to exist in earlier versions as well. For comparison, Clang compiles this code successfully. >>From gcc-bugs-return-612777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:20:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105333 invoked by alias); 14 Aug 2018 19:20:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105221 invoked by uid 48); 14 Aug 2018 19:19:59 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65043] Expected narrowing conversion during list initialization of bool from double Date: Tue, 14 Aug 2018 19:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01066.txt.bz2 Content-length: 194 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65043 --- Comment #2 from Marek Polacek --- Simplified: struct X { X(bool) { } }; int main()=20 { X x{1.2}; } >>From gcc-bugs-return-612778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:20:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106287 invoked by alias); 14 Aug 2018 19:20:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106246 invoked by uid 48); 14 Aug 2018 19:20:35 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 19:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01067.txt.bz2 Content-length: 309 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 --- Comment #1 from Vladimir Reshetnikov -= -- Sorry, there is a missing closing parenthesis in my code. The last line sho= uld look like this: static_assert(Outer::Alias::value =3D=3D sizeof(bool)); // error >>From gcc-bugs-return-612779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:23:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108844 invoked by alias); 14 Aug 2018 19:23:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108814 invoked by uid 48); 14 Aug 2018 19:23:49 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 19:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01068.txt.bz2 Content-length: 1298 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- I don't see the ICE: $ ./cc1plus -quiet 86958.C=20 86958.C:16:38: error: type/value mismatch at argument 1 in template paramet= er list for =E2=80=98template template > struct Outer< >::Inner=E2=80=99 16 | static_assert(Outer::Inner::value =3D=3D sizeof(bool)); //= OK | ^ 86958.C:16:38: note: expected a constant of type =E2=80=98bool=E2=80=99, = got =E2=80=98bool=E2=80=99 86958.C:17:38: error: type/value mismatch at argument 1 in template paramet= er list for =E2=80=98template template using Alias =3D Outer< >::Inner=E2=80=99 17 | static_assert(Outer::Alias::value =3D=3D sizeof(bool)); //= error | ^ 86958.C:17:38: note: expected a constant of type =E2=80=98bool=E2=80=99, = got =E2=80=98bool=E2=80=99 >>From gcc-bugs-return-612780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:25:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112813 invoked by alias); 14 Aug 2018 19:25:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111791 invoked by uid 48); 14 Aug 2018 19:24:40 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 19:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01069.txt.bz2 Content-length: 241 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 --- Comment #3 from Marek Polacek --- note: expected a constant of type =E2=80=98bool=E2=80=99, got =E2=80=98bo= ol=E2=80=99 Though this is clearly bogus. >>From gcc-bugs-return-612781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:34:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12949 invoked by alias); 14 Aug 2018 19:34:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12916 invoked by uid 48); 14 Aug 2018 19:34:38 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86959] New: Use of a variadic alias template unexpectedly breaks compilation Date: Tue, 14 Aug 2018 19:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01070.txt.bz2 Content-length: 2135 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86959 Bug ID: 86959 Summary: Use of a variadic alias template unexpectedly breaks compilation Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /*********************** BEGIN SOURCE ***********************/ template struct Outer { template struct Inner; template using Alias =3D Inner; }; template<> template struct Outer::Inner {=20 static constexpr auto value =3D sizeof...(T); }; static_assert(Outer::Inner::value =3D=3D 1); // OK static_assert(Outer::Alias::value =3D=3D 1); // error /************************ END SOURCE ************************/ The first static_assert compiles OK, but the second results in unexpected errors: /*********************** BEGIN OUTPUT ***********************/ : In instantiation of 'struct Outer::Inner': :17:39: required from here :12:27: error: template argument 1 is invalid 12 | struct Outer::Inner { | ^ :12:27: error: template argument 1 is invalid :13:27: error: template argument 1 is invalid 13 | static constexpr auto value =3D sizeof...(T); | ^~~~~ :13:27: error: template argument 1 is invalid :17:41: error: 'value' is not a member of 'Outer::Alias' {aka 'Outer::Inner'} 17 | static_assert(Outer::Alias::value =3D=3D 1); // error | ^~~~~ Compiler returned: 1 /************************ END OUTPUT ************************/ The issue was discovered with build 9.0.0 20180813 (experimental), but appe= ars to exist in earlier versions as well. For comparison, Clang compiles this code successfully. Might be related to Bug 86956 and Bug 86958. >>From gcc-bugs-return-612782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 19:37:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15147 invoked by alias); 14 Aug 2018 19:37:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15120 invoked by uid 48); 14 Aug 2018 19:37:42 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86954] redundant nothrow in call of ::operator delete Date: Tue, 14 Aug 2018 19:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01071.txt.bz2 Content-length: 855 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86954 --- Comment #1 from Jonathan Wakely --- Arguably this was good defensive programming for C++03. The program could h= ave replaced operator new(size_t) and operator delete(void*) but not replaced operator new(size_t, const nothrow_t&) and operator delete(void*, const nothrow_t&). That would be undefined (C++03 [lib.new.delete.single] p7) but= by using the nothrow version of operator delete the library avoids mixing the default version of new with a replaced version of delete. LWG 206 changed t= he behaviour for C++11, so that combining the nothrow new and normal delete do= es the right thing, but GCC has only met that requirement since yesterday. I'm not sure it's worth changing anything here now. get_temporary_buffer was deprecated and removed from C++2a anyway. >>From gcc-bugs-return-612783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 20:20:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93171 invoked by alias); 14 Aug 2018 20:20:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92267 invoked by uid 55); 14 Aug 2018 20:19:56 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86954] redundant nothrow in call of ::operator delete Date: Tue, 14 Aug 2018 20:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01072.txt.bz2 Content-length: 635 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86954 --- Comment #2 from Jonathan Wakely --- Author: redi Date: Tue Aug 14 20:19:20 2018 New Revision: 263542 URL: https://gcc.gnu.org/viewcvs?rev=3D263542&root=3Dgcc&view=3Drev Log: PR libstdc++/86954 use non-placement operator delete As explained in the PR, there's no reason to call the nothrow delete, we can just use the normal one. PR libstdc++/86954 * include/bits/stl_tempbuf.h (return_temporary_buffer): Use non-placement delete. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/stl_tempbuf.h >>From gcc-bugs-return-612784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 20:21:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100757 invoked by alias); 14 Aug 2018 20:21:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100675 invoked by uid 48); 14 Aug 2018 20:20:59 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86954] redundant nothrow in call of ::operator delete Date: Tue, 14 Aug 2018 20:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01073.txt.bz2 Content-length: 589 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86954 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #3 from Jonathan Wakely --- On the other hand, with PR 68210 fixed the change is harmless. So fixed on trunk. Not suitable for backports though. >>From gcc-bugs-return-612785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 20:31:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56972 invoked by alias); 14 Aug 2018 20:31:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56883 invoked by uid 48); 14 Aug 2018 20:31:33 -0000 From: "jason.vas.dias at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Tue, 14 Aug 2018 20:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason.vas.dias at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01074.txt.bz2 Content-length: 420 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 --- Comment #12 from Jason Vas Dias --- RE: Comment #11 : > notrace int _RETPOLINE_FUNC_ATTR_=20 > __vdso_clock_gettime(clockid_t clock, struct timespec *ts) should of course be notrace _RETPOLINE_FUNC_ATTR_=20 int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) - sorry, I was typing from memory, not pasting. >>From gcc-bugs-return-612786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 20:43:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4741 invoked by alias); 14 Aug 2018 20:43:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4655 invoked by uid 48); 14 Aug 2018 20:43:06 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86918] internal compiler error: unexpected expression 'v' of kind template_parm_index Date: Tue, 14 Aug 2018 20:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01075.txt.bz2 Content-length: 636 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86918 --- Comment #4 from Vladimir Reshetnikov -= -- I could not find a wording in the Standard that disallows this kind of specialization (although certainly I might have overlooked it). A similar c= ode where the template parameter list is changed in a specialization compiles successfully with GCC: template struct Outer { template struct Inner; }; template<> template struct Outer::Inner {=20 static constexpr auto value =3D sizeof...(x); }; static_assert(Outer::Inner<>::value =3D=3D 0); // OK >>From gcc-bugs-return-612787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:04:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51377 invoked by alias); 14 Aug 2018 21:04:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51338 invoked by uid 48); 14 Aug 2018 21:04:44 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65043] Expected narrowing conversion during list initialization of bool from double Date: Tue, 14 Aug 2018 21:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01076.txt.bz2 Content-length: 143 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65043 --- Comment #3 from Marek Polacek --- Testing a patch now. >>From gcc-bugs-return-612788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:07:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58211 invoked by alias); 14 Aug 2018 21:07:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58174 invoked by uid 48); 14 Aug 2018 21:07:45 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86960] New: [Regression] internal compiler error: in coerce_template_parms Date: Tue, 14 Aug 2018 21:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01077.txt.bz2 Content-length: 1000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86960 Bug ID: 86960 Summary: [Regression] internal compiler error: in coerce_template_parms Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /****************** BEGIN SOURCE ******************/ template struct Outer { template struct Inner; }; template<> template struct Outer::Inner {=20 static constexpr bool value =3D x; }; static_assert(Outer::Inner::value); /* internal compiler error:= in coerce_template_parms, at cp/pt.c:8533 */ /******************* END SOURCE *******************/ Fails in GCC 8.1 and 8.2, compiles successfully with 7.3. Might be related to Bug 86918, Bug 86920, Bug 86956, Bug 86958. >>From gcc-bugs-return-612789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:17:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82205 invoked by alias); 14 Aug 2018 21:17:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82149 invoked by uid 48); 14 Aug 2018 21:17:33 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 21:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01078.txt.bz2 Content-length: 266 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 --- Comment #4 from Vladimir Reshetnikov -= -- Apparently, I somehow pasted a wrong code into this bug report. If you wish, you can close this one, and I will file proper one(s). >>From gcc-bugs-return-612790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:18:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83243 invoked by alias); 14 Aug 2018 21:18:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83105 invoked by uid 48); 14 Aug 2018 21:18:02 -0000 From: "luto at kernel dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Tue, 14 Aug 2018 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luto at kernel dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01079.txt.bz2 Content-length: 1912 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 --- Comment #13 from Andy Lutomirski --- I find this whole discussion very confusing. The problem has nothing to do with relocations AFAICT. The problem is that gcc is (as requested) generat= ing retpolines, and it's set up to do it by calling __x86_indirect_thunk_*, and those helpers don't exist in the vDSO. I also think that static inlines have anything to do with it. Nor so I see= why any function attributes make any sense. The trivial fix is: diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index 261802b1cc50..8140176b8b41 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -74,7 +74,7 @@ CFL :=3D $(PROFILING) -mcmodel=3Dsmall -fPIC -O2 -fasynchronous-unwind-tables -m64 \ -fno-omit-frame-pointer -foptimize-sibling-calls \ -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO -$(vobjs): KBUILD_CFLAGS :=3D $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS)) $(CFL) +$(vobjs): KBUILD_CFLAGS :=3D $(filter-out $(GCC_PLUGINS_CFLAGS) $(RETPOLINE_CFLAGS),$(KBUILD_CFLAGS)) $(CFL) # # vDSO code runs in userspace and -pg doesn't help with profiling anyway. @@ -138,6 +138,7 @@ KBUILD_CFLAGS_32 :=3D $(filter-out -mcmodel=3Dkernel,$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 :=3D $(filter-out -fno-pic,$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 :=3D $(filter-out -mfentry,$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 :=3D $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS_3= 2)) +KBUILD_CFLAGS_32 :=3D $(filter-out $(RETPOLINE_CFLAGS),$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 +=3D -m32 -msoft-float -mregparm=3D0 -fpic KBUILD_CFLAGS_32 +=3D $(call cc-option, -fno-stack-protector) KBUILD_CFLAGS_32 +=3D $(call cc-option, -foptimize-sibling-calls) but it might be better to use the internal thunk mechanism. You said that Andi Kleen had a comment. Can you point me to it? >>From gcc-bugs-return-612792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:19:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94856 invoked by alias); 14 Aug 2018 21:19:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94789 invoked by uid 48); 14 Aug 2018 21:19:48 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 21:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01081.txt.bz2 Content-length: 442 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #5 from Marek Polacek --- OK, closing then. >>From gcc-bugs-return-612791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:19:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93678 invoked by alias); 14 Aug 2018 21:19:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93551 invoked by uid 48); 14 Aug 2018 21:18:59 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86960] [Regression] internal compiler error: in coerce_template_parms Date: Tue, 14 Aug 2018 21:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01080.txt.bz2 Content-length: 1400 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86960 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-14 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. commit e5a3303f90fcbcba4d8cd9cdcc0a2c7f45958b25 Author: jason Date: Wed Feb 26 17:08:20 2014 +0000 PR c++/54440 * pt.c (get_template_parm_index): New. (fixed_parameter_pack_p_1, fixed_parameter_pack_p): New. (process_template_parm): Allow bare packs in template template parm template parms. (coerce_template_parameter_pack): Handle fixed template template parm packs and fixed packs not at the end of the parm list. (coerce_template_parms): Handle template parm packs not at the = end of the parm list. (gen_elem_of_pack_expansion_instantiation): Handle a decl expansion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208178 138bc75d-0d04-0410-961f-82ee72b054a4 >>From gcc-bugs-return-612793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:20:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96003 invoked by alias); 14 Aug 2018 21:20:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95946 invoked by uid 48); 14 Aug 2018 21:20:38 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] BUG with optimisation of select case statement in gfortran v8.x Date: Tue, 14 Aug 2018 21:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01082.txt.bz2 Content-length: 431 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 Harald Anlauf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #1 from Harald Anlauf --- The bug also occurs with -Og. Maybe it's not a frontend problem. >>From gcc-bugs-return-612794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:26:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50722 invoked by alias); 14 Aug 2018 21:26:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46208 invoked by uid 48); 14 Aug 2018 21:26:04 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86961] New: ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 21:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01083.txt.bz2 Content-length: 1649 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86961 Bug ID: 86961 Summary: ICE in finish_member_declaration when an alias template is used Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /********************** BEGIN SOURCE **********************/ template struct Outer { template struct Inner; template using Alias =3D Inner; }; template<> template struct Outer::Inner {=20 static constexpr auto value =3D sizeof(T); }; static_assert(Outer::Inner::value =3D=3D sizeof(bool)); // OK static_assert(Outer::Alias::value =3D=3D sizeof(bool)); // error /*********************** END SOURCE ***********************/ The first static_assert compiles OK, but the second results in an ICE: /********************** BEGIN OUTPUT **********************/ : In instantiation of 'struct Outer::Inner': :17:39: required from here :13:27: internal compiler error: in finish_member_declaration, at cp/semantics.c:3085 13 | static constexpr auto value =3D sizeof(T); | ^~~~~ Compiler returned: 1 /*********************** END OUTPUT ***********************/ This issue was found with build 9.0.0 20180813 (experimental), but appears = to exist in earlier versions as well. For comparison, Clang compiles this code successfully. >>From gcc-bugs-return-612795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:26:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56919 invoked by alias); 14 Aug 2018 21:26:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52660 invoked by uid 48); 14 Aug 2018 21:26:14 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] BUG with optimisation of select case statement in gfortran v8.x Date: Tue, 14 Aug 2018 21:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01084.txt.bz2 Content-length: 262 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 --- Comment #2 from Harald Anlauf --- Changing the line: case(:-1) to case(-HUGE(0):-1) makes the bug disappear; changing it to case(-HUGE(0)-1:-1) makes it reappear. >>From gcc-bugs-return-612796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:27:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70599 invoked by alias); 14 Aug 2018 21:27:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70527 invoked by uid 48); 14 Aug 2018 21:27:13 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86958] ICE in finish_member_declaration when an alias template is used Date: Tue, 14 Aug 2018 21:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: CLOSED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01085.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86958 Vladimir Reshetnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Vladimir Reshetnikov -= -- I filed a corrected version as Bug 86961. >>From gcc-bugs-return-612797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:33:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89348 invoked by alias); 14 Aug 2018 21:33:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89259 invoked by uid 48); 14 Aug 2018 21:33:19 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86915] Segmentation fault for an array of auto in template parameter Date: Tue, 14 Aug 2018 21:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: VERIFIED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01086.txt.bz2 Content-length: 399 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86915 Vladimir Reshetnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #4 from Vladimir Reshetnikov -= -- Verified. >>From gcc-bugs-return-612798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:34:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95923 invoked by alias); 14 Aug 2018 21:34:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95830 invoked by uid 48); 14 Aug 2018 21:34:21 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from ', ...)>' to non-scalar type 'std::function' requested Date: Tue, 14 Aug 2018 21:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: VERIFIED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01087.txt.bz2 Content-length: 432 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86728 Vladimir Reshetnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #7 from Vladimir Reshetnikov -= -- Verified in 9.0.0 20180813 (experimental). >>From gcc-bugs-return-612799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:35:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97303 invoked by alias); 14 Aug 2018 21:35:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97232 invoked by uid 48); 14 Aug 2018 21:35:36 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84839] [6/7 Regression] ICE (Segmentation fault) when `decltype` is used with parameter pack Date: Tue, 14 Aug 2018 21:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: VERIFIED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01088.txt.bz2 Content-length: 399 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84839 Vladimir Reshetnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #5 from Vladimir Reshetnikov -= -- Verified. >>From gcc-bugs-return-612800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:36:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98654 invoked by alias); 14 Aug 2018 21:36:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98492 invoked by uid 48); 14 Aug 2018 21:36:43 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84798] [6/7 Regression] ICE (Segmentation fault) if `auto` appears in a template argument Date: Tue, 14 Aug 2018 21:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: VERIFIED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01089.txt.bz2 Content-length: 400 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84798 Vladimir Reshetnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #11 from Vladimir Reshetnikov = --- Verified. >>From gcc-bugs-return-612801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:37:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114885 invoked by alias); 14 Aug 2018 21:37:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114823 invoked by uid 48); 14 Aug 2018 21:37:30 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84840] [6/7/8 Regression] ICE (in poplevel_class) for `auto` in alias declaration Date: Tue, 14 Aug 2018 21:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: VERIFIED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01090.txt.bz2 Content-length: 399 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84840 Vladimir Reshetnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #3 from Vladimir Reshetnikov -= -- Verified. >>From gcc-bugs-return-612802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 21:55:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33665 invoked by alias); 14 Aug 2018 21:55:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33579 invoked by uid 48); 14 Aug 2018 21:55:15 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] BUG with optimisation of select case statement in gfortran v8.x Date: Tue, 14 Aug 2018 21:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01091.txt.bz2 Content-length: 924 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 --- Comment #3 from Harald Anlauf --- Self contained alternative testcase: program test implicit none integer, volatile :: id,ierr id =3D 1 print*,'id=3D',id call foo1 () print*,'ierr1, OK =3D ',ierr, ierr =3D=3D 0 call foo2 () print*,'ierr2, OK =3D ',ierr, ierr =3D=3D 0 contains subroutine foo1 () select case(id) case(-HUGE(0):-1) ierr =3D id case default ierr =3D 0 end select end subroutine foo1 subroutine foo2 () select case(id) ! case(-HUGE(0)-1:-1) case( :-1) ierr =3D id case default ierr =3D 0 end select end subroutine foo2 end program test With -O0: id=3D 1 ierr1, OK =3D 0 T ierr2, OK =3D 0 T With -Og, -O1 and higher: id=3D 1 ierr1, OK =3D 0 T ierr2, OK =3D 1 F >>From gcc-bugs-return-612803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 22:41:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12842 invoked by alias); 14 Aug 2018 22:41:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12780 invoked by uid 48); 14 Aug 2018 22:41:11 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/86872] [9 Regression] LTO bootstrap failed with profiledbootstrap Date: Tue, 14 Aug 2018 22:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01092.txt.bz2 Content-length: 408 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86872 --- Comment #4 from H.J. Lu --- line-map.c has linemap_assert (reason !=3D LC_ENTER_MACRO); line_map_ordinary *map =3D linemap_check_ordinary (new_linemap (set, start_location)); map->reason =3D reason; We get here with reason !=3D LC_ENTER_MACRO and create linemap with start_location >=3D LINE_MAP_MAX_LOCATION. >>From gcc-bugs-return-612804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 23:19:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121454 invoked by alias); 14 Aug 2018 23:19:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121352 invoked by uid 48); 14 Aug 2018 23:19:32 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/28848] argument mismatch for late-prototyped function should be warning, not error Date: Tue, 14 Aug 2018 23:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01093.txt.bz2 Content-length: 572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D28848 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |FIXED --- Comment #1 from Martin Sebor --- The test was removed in r125974 but it compiles without an error or warning now. >>From gcc-bugs-return-612805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 23:19:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121741 invoked by alias); 14 Aug 2018 23:19:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121375 invoked by uid 48); 14 Aug 2018 23:19:34 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/29842] [meta-bug] outstanding patches / issues from STMicroelectronics Date: Tue, 14 Aug 2018 23:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01094.txt.bz2 Content-length: 503 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D29842 Bug 29842 depends on bug 28848, which changed state. Bug 28848 Summary: argument mismatch for late-prototyped function should be= warning, not error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D28848 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-612806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 23:20:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123365 invoked by alias); 14 Aug 2018 23:20:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123297 invoked by uid 48); 14 Aug 2018 23:20:29 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86731] [8/9 Regression] Miscompiles vec_sl at -O3 with -fwrapv on ppc64el Date: Tue, 14 Aug 2018 23:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01095.txt.bz2 Content-length: 286 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86731 --- Comment #1 from Will Schmidt --- Created attachment 44542 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44542&action=3Dedit preliminary patch to resolve the problem preliminary/rfc patch. >>From gcc-bugs-return-612807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 14 23:21:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124218 invoked by alias); 14 Aug 2018 23:21:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124173 invoked by uid 48); 14 Aug 2018 23:21:03 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86731] [8/9 Regression] Miscompiles vec_sl at -O3 with -fwrapv on ppc64el Date: Tue, 14 Aug 2018 23:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01096.txt.bz2 Content-length: 227 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86731 --- Comment #2 from Will Schmidt --- Thanks for the bug report. The patch (attached) has also been posted to gcc-patches for review. Thanks, >>From gcc-bugs-return-612808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 00:25:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101666 invoked by alias); 15 Aug 2018 00:25:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101623 invoked by uid 48); 15 Aug 2018 00:25:26 -0000 From: "frankhb1989 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86954] redundant nothrow in call of ::operator delete Date: Wed, 15 Aug 2018 00:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: frankhb1989 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01097.txt.bz2 Content-length: 1688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86954 --- Comment #4 from frankhb1989 at gmail dot com --- Well, actually I'm not sure if the original implementation has done the rig= ht thing, as I don't find that the standard has requirement to specify that the replaced definitions must acknowledge the fact nothrow_t overloads should o= nly be called on the specified condition (... and if so, whether it worth an LWG issue). But that still seems suspicious to me, because symmetry of call between nothrow_t placement ::operator new and ::operator delete does not exist in = the language indeed, so that seems like an unintentional use unless it is documented elsewhere. On the other hand, the change here towards to a simpl= er and undoubtedly conformant way. BTW, I do know the feature is deprecated in C++17 and removed in C++2a. I r= ead the paper of deprecation. It is plausible to be removed from the standard, = but not a must - not with a very strong reason. However, I am sure I do need th= at feature so I have to reinvent my wheels... as done internally by various standard library implementations. (More specifically, I need std::_Temporary_buffer in libstdc++ and MSVC's current implementation, or at least something equivalent to std::__return_temporary_buffer in libc++, but surely I can't rely on them directly.) At least a raw call of allocation function does not always expre= ss the intended call site requirements clearly like std::get_temporary_buffer,= so users who want to make it clear have to afford the extra layer of an abstraction. Arguably, the removal will bloat work for anyone wants that and discourage clearer expression of intentions. >>From gcc-bugs-return-612809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 00:59:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94077 invoked by alias); 15 Aug 2018 00:59:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93978 invoked by uid 48); 15 Aug 2018 00:59:50 -0000 From: "jiez at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86777] Bfin port needs updating for CVE-2017-5753 Date: Wed, 15 Aug 2018 00:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jiez at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01098.txt.bz2 Content-length: 677 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86777 --- Comment #1 from Jie Zhang --- (In reply to Richard Earnshaw from comment #0) > The bfin port needs updating for this CVE. See the linked meta bug for > details of possible actions required. For Blackfin, the speculative load only happens when the load instruction is the next instruction after conditional jump instruction. For example, conditional jump load The above load will be speculatively executed. But conditional jump add load this load will not. Is there a way to control speculation barrier being only inserted for the f= irst case, but not for the second case? Thanks. Jie >>From gcc-bugs-return-612810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 01:48:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89520 invoked by alias); 15 Aug 2018 01:48:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89329 invoked by uid 48); 15 Aug 2018 01:48:28 -0000 From: "redbeard0531 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67012] decltype(auto) with trailing return type Date: Wed, 15 Aug 2018 01:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redbeard0531 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01099.txt.bz2 Content-length: 485 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67012 Mathias Stearn changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redbeard0531 at gmail dot = com --- Comment #1 from Mathias Stearn --- Still repros with latest trunk builds, even with -pedantic: https://godbolt.org/g/vMDcwg >>From gcc-bugs-return-612811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 02:29:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12001 invoked by alias); 15 Aug 2018 02:29:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11933 invoked by uid 48); 15 Aug 2018 02:29:07 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/69089] C++11: alignas(0) causes an error Date: Wed, 15 Aug 2018 02:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: patch, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01100.txt.bz2 Content-length: 286 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D69089 --- Comment #6 from Eric Gallager --- (In reply to Dominik Vogt from comment #5) > No, up to now you're the only one who commented on it. I keep pinging it > once in a while. Please keep pinging it! >>From gcc-bugs-return-612812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 02:32:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15855 invoked by alias); 15 Aug 2018 02:32:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15815 invoked by uid 48); 15 Aug 2018 02:32:47 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65604] MIPS -fno-delayed-branch generates incorrect code with -mcheck-zero-division Date: Wed, 15 Aug 2018 02:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01101.txt.bz2 Content-length: 546 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65604 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #8 from Eric Gallager --- (In reply to Eric Gallager from comment #7) >=20 > WAITING on an answer... No reply so I'm assuming that this was fixed. >>From gcc-bugs-return-612813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 04:10:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75061 invoked by alias); 15 Aug 2018 04:10:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74995 invoked by uid 55); 15 Aug 2018 04:10:17 -0000 From: "law at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86547] s390x: Maximum number of LRA assignment passes is achieved (30) when compiling a small inline assembler snippet Date: Wed, 15 Aug 2018 04:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: law at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01102.txt.bz2 Content-length: 479 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86547 --- Comment #8 from Jeffrey A. Law --- Author: law Date: Wed Aug 15 04:09:45 2018 New Revision: 263548 URL: https://gcc.gnu.org/viewcvs?rev=3D263548&root=3Dgcc&view=3Drev Log: PR target/86547 * lra-lives.c (remove_some_program_points_and_update_live_ranges): Check whether lra_live_max_point is 0 before dividing. Modified: trunk/gcc/ChangeLog trunk/gcc/lra-lives.c >>From gcc-bugs-return-612814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 04:12:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76433 invoked by alias); 15 Aug 2018 04:12:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76374 invoked by uid 48); 15 Aug 2018 04:12:25 -0000 From: "law at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86547] s390x: Maximum number of LRA assignment passes is achieved (30) when compiling a small inline assembler snippet Date: Wed, 15 Aug 2018 04:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: law at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01103.txt.bz2 Content-length: 503 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86547 Jeffrey A. Law changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |law at redhat dot com Resolution|--- |FIXED --- Comment #9 from Jeffrey A. Law --- Fixed on the trunk. >>From gcc-bugs-return-612815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 08:56:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35156 invoked by alias); 15 Aug 2018 08:56:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34328 invoked by uid 55); 15 Aug 2018 08:56:13 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86925] [9 Regression] ICE in get_predictor_value, at predict.c:2551 Date: Wed, 15 Aug 2018 08:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01104.txt.bz2 Content-length: 959 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 --- Comment #4 from Martin Li=C5=A1ka --- Author: marxin Date: Wed Aug 15 08:55:15 2018 New Revision: 263552 URL: https://gcc.gnu.org/viewcvs?rev=3D263552&root=3Dgcc&view=3Drev Log: Fix merging of 2 predictors (PR tree-optimization/86925). 2018-08-15 Martin Liska PR tree-optimization/86925 * predict.c (expr_expected_value_1): When taking later predictor, assign also probability. Use fold_build2_initializer_loc in order to fold the expression in -frounding-math. 2018-08-15 Martin Liska PR tree-optimization/86925 * gcc.dg/predict-20.c: New test. * gcc.dg/predict-21.c: New test. Added: trunk/gcc/testsuite/gcc.dg/predict-20.c trunk/gcc/testsuite/gcc.dg/predict-21.c Modified: trunk/gcc/ChangeLog trunk/gcc/predict.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 08:58:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40122 invoked by alias); 15 Aug 2018 08:58:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40040 invoked by uid 48); 15 Aug 2018 08:57:55 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86925] [9 Regression] ICE in get_predictor_value, at predict.c:2551 Date: Wed, 15 Aug 2018 08:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01105.txt.bz2 Content-length: 437 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86925 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Martin Li=C5=A1ka --- Fixed now. >>From gcc-bugs-return-612817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 09:20:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61661 invoked by alias); 15 Aug 2018 09:20:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61614 invoked by uid 55); 15 Aug 2018 09:20:12 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/81685] [7/8/9 Regression] FAIL: g++.dg/debug/dwarf2/inline-ns-2.C -std=gnu++* (internal compiler error) on darwin Date: Wed, 15 Aug 2018 09:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01106.txt.bz2 Content-length: 653 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81685 --- Comment #6 from Iain Sandoe --- Author: iains Date: Wed Aug 15 09:19:39 2018 New Revision: 263553 URL: https://gcc.gnu.org/viewcvs?rev=3D263553&root=3Dgcc&view=3Drev Log: Update Darwin section names for DWARF5 gcc/ 2018-08-15 Iain Sandoe PR target/81685 * config/darwin.h: (DEBUG_STR_OFFSETS_SECTION, DEBUG_LOCLISTS_SECTI= ON, DEBUG_RNGLISTS_SECTION) new macros. (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION) update to include GNU variant. Modified: trunk/gcc/ChangeLog trunk/gcc/config/darwin.h >>From gcc-bugs-return-612818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 09:23:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63801 invoked by alias); 15 Aug 2018 09:23:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63755 invoked by uid 48); 15 Aug 2018 09:23:51 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86962] New: [9 Regression] ICE in sanitize_rewrite_addressable_params, at sanopt.c:1173 with nested functions Date: Wed, 15 Aug 2018 09:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01107.txt.bz2 Content-length: 1612 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86962 Bug ID: 86962 Summary: [9 Regression] ICE in sanitize_rewrite_addressable_params, at sanopt.c:1173 with nested functions Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, ebotcazou at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Following causes ICE starting from r261687: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030418-1= .c -fsanitize=3Daddress -c during GIMPLE pass: sanopt /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030418-1= .c: In function =E2=80=98foo=E2=80=99: /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030418-1= .c:9:6: internal compiler error: in sanitize_rewrite_addressable_params, at sanopt.c:1173 9 | void foo(int i) | ^~~ 0x67de04 sanitize_rewrite_addressable_params /home/marxin/Programming/gcc/gcc/sanopt.c:1173 0xcf5411 execute /home/marxin/Programming/gcc/gcc/sanopt.c:1287 Issues is that there's a param with DECL_HAS_VALUE_EXPR_P which is addressa= ble. We can probably skip these, but I'm curious Eric how that changed in your commit? >>From gcc-bugs-return-612819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 09:24:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64992 invoked by alias); 15 Aug 2018 09:24:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64908 invoked by uid 48); 15 Aug 2018 09:24:50 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86962] [9 Regression] ICE in sanitize_rewrite_addressable_params, at sanopt.c:1173 with nested functions Date: Wed, 15 Aug 2018 09:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work target_milestone everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01108.txt.bz2 Content-length: 567 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86962 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-15 Known to work| |8.2.0 Target Milestone|--- |9.0 Ever confirmed|0 |1 Known to fail| |9.0 >>From gcc-bugs-return-612820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 09:25:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66079 invoked by alias); 15 Aug 2018 09:25:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66022 invoked by uid 48); 15 Aug 2018 09:25:34 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86962] [9 Regression] ICE in sanitize_rewrite_addressable_params, at sanopt.c:1173 with nested functions Date: Wed, 15 Aug 2018 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01109.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86962 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org >>From gcc-bugs-return-612821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 09:57:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28787 invoked by alias); 15 Aug 2018 09:57:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28718 invoked by uid 48); 15 Aug 2018 09:57:10 -0000 From: "arjen.markus895 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80931] ICE on move_alloc in gimplify_expr, at gimplify.c:11335 Date: Wed, 15 Aug 2018 09:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus895 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01110.txt.bz2 Content-length: 792 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 Arjen Markus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arjen.markus895 at gmail d= ot com --- Comment #4 from Arjen Markus --- I ran into the same ICE, except that gfortran now reports that it happens at line 11329 of gimplify.c and the program (module defining a simple class actually) in which this happens is 168 lines long. I have tried to reduce i= t, but anything I have tried leads to a disappearance of the fatal error. This was with versions 6.2.0 (MinGW-w64/MSYS2) and 7.3.0 (Cygwin), should t= hat matter. >>From gcc-bugs-return-612822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 09:59:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33939 invoked by alias); 15 Aug 2018 09:59:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33892 invoked by uid 48); 15 Aug 2018 09:59:08 -0000 From: "arjen.markus895 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83196] ICE in gfc_build_compare_string, at fortran/trans-expr.c:3609 (and others) Date: Wed, 15 Aug 2018 09:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus895 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01111.txt.bz2 Content-length: 638 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83196 Arjen Markus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arjen.markus895 at gmail d= ot com --- Comment #4 from Arjen Markus --- Created attachment 44543 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44543&action=3Dedit Sample module exhibiting the problem ICE at line 11329 - any reduction seems to make the problem go away (but al= so the functionality) >>From gcc-bugs-return-612823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 10:01:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39315 invoked by alias); 15 Aug 2018 10:01:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39229 invoked by uid 48); 15 Aug 2018 10:01:47 -0000 From: "arjen.markus895 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83196] ICE in gfc_build_compare_string, at fortran/trans-expr.c:3609 (and others) Date: Wed, 15 Aug 2018 10:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus895 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01112.txt.bz2 Content-length: 450 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83196 --- Comment #5 from Arjen Markus --- (In reply to Arjen Markus from comment #4) > Created attachment 44543 [details] > Sample module exhibiting the problem >=20 > ICE at line 11329 - any reduction seems to make the problem go away (but > also the functionality) Please ignore this - it is meant for a different issue. Somehow it ended up= on the wrong issue. >>From gcc-bugs-return-612824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 10:03:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41563 invoked by alias); 15 Aug 2018 10:03:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41503 invoked by uid 48); 15 Aug 2018 10:03:39 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/70693] valgrind error in get_visual_column Date: Wed, 15 Aug 2018 10:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01113.txt.bz2 Content-length: 506 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70693 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #7 from Martin Li=C5=A1ka --- I'm starting to see in more often on periodic openSUSE package builds. David any estimation about when you get to it? >>From gcc-bugs-return-612825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 10:48:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110634 invoked by alias); 15 Aug 2018 10:48:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110509 invoked by uid 48); 15 Aug 2018 10:48:03 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86777] Bfin port needs updating for CVE-2017-5753 Date: Wed, 15 Aug 2018 10:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01114.txt.bz2 Content-length: 1131 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86777 --- Comment #2 from Richard Earnshaw --- I don't think you could do that through the API provided by this patch set;= but it's not really appropriate for this case. I'm not familiar with the bfin architecture so cannot comment on what the b= est approach is, but it seems to me you have several options. Use the speculation barrier not needed hook - this might apply if the speculation is so limited that the CPU is not vulnerable to Spectre style attacks. Use the barrier anyway - this might apply if the processor vendor has defin= ed a barrier operation for this architecture, even if current implementations do= not need it (it might anticipate a new implementation that does need it). Write a custom pass to handle it - from your description it looks like emit= ting a NOP after every conditional branch may be sufficient to completely elimin= ate the problem. I created this PR because only the port maintainers (perhaps in discussion = with the manufacturers) can really decide what the best approach to handling this issue must be. >>From gcc-bugs-return-612826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 10:49:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111782 invoked by alias); 15 Aug 2018 10:49:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111728 invoked by uid 48); 15 Aug 2018 10:49:08 -0000 From: "jon_y at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86856] Format warnings building all-gcc Date: Wed, 15 Aug 2018 10:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jon_y at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01115.txt.bz2 Content-length: 266 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86856 --- Comment #10 from jon_y --- I noticed there are some casting from gcall to gimple, not being familiar w= ith gcc internals, is it the correct way to suppress the warnings? >>From gcc-bugs-return-612827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 11:27:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58923 invoked by alias); 15 Aug 2018 11:27:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58853 invoked by uid 48); 15 Aug 2018 11:26:55 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/86412] lto1: internal compiler error: in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c Date: Wed, 15 Aug 2018 11:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-checking X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01116.txt.bz2 Content-length: 442 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86412 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #7 from David Binderman --- Still seeing this one in revision 263512, dated 20180813. >>From gcc-bugs-return-612828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 11:28:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60543 invoked by alias); 15 Aug 2018 11:28:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60268 invoked by uid 48); 15 Aug 2018 11:28:34 -0000 From: "jason.vas.dias at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Wed, 15 Aug 2018 11:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason.vas.dias at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01117.txt.bz2 Content-length: 3780 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 --- Comment #14 from Jason Vas Dias --- RE: Comment #13: > You said that Andi Kleen had a comment. Can you point me to it? Here is a quote, from LKML message : Subject: Re: [PATCH v4.16-rc5 2/2] x86/vdso: \ VDSO should handle clock_gettime(CLOCK_MONOTONIC_RAW) \ without syscall Kernel=20 From: Andi Kleen=20=20=20 Date: 17 March 2018 at 23:00 To: jason.vas.dias@gmail.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, andi@firstfloor.org >On Sat, Mar 17, 2018 at 02:29:34PM +0000, jason.vas.dias@gmail.com wrote: >> This patch allows compilation to succeed with compilers that=20 >> support -DRETPOLINE - >> it was kindly contributed by H.J. Liu in GCC Bugzilla: 84908 : >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84908 >> >> Apparently the GCC retpoline implementation has a limitation=20 >> that it cannot handle switch statements with more than 5 clause= s, >> which vclock_gettime.c's >> __vdso_clock_gettime function now conts. > >That's quite a mischaracterization of the issue. gcc works as intended, >but the kernel did not correctly supply a indirect call retpoline thunk >to the vdso, and it just happened to work by accident with the old >vdso. > >> >> The automated test builds should now succeed with this patch. > >How about just adding the thunk function to the vdso object instead of >this cheap hack? > >The other option would be to build vdso with inline thunks. > >But just disabling is completely the wrong action. > >-Andi So, in their wisdom, the kernel developers have decided it is best to compile the VDSO with indirect-branch("thunk-extern,register"), and we need to work around the limitations this imposes. RE: Comment #13: > I also think that static inlines have anything to do with it.=20=20 > Nor so I see why any function attributes make any sense. On the contrary, I think function attributes and static inline-ness have ALOT to do with it - the problem does not occur if the=20 called functions have the SAME indirect-branch attributes as the caller function, or if the called function is not static inline. It definitely appears to be something to do with GCC having to instantiate a callable version of a static inline, when that inline has different indirect-branch attributes than its caller. The '-mindirect-branch=3Dthunk-extern -mindirect-branch-register -DRETPOLIN= E' flags should have the effect of making the default function attributes to be '__attribute__((indirect-branch("thunk-extern,register"))' for any function that does not specify other indirect-branch attributes, so when instantiating this callable version of the inline GCC needs to generate a thunk-extern relocation. The code which produces the special stripped & augmented version of the VDSO object does not include support for such relocations and complains about them, failing the builds. I also have many unanswered questions about this bug, mentioned above - perhaps H.J. could clarify ? : o why exactly is it that the 6-clause switch in the first post triggers the relocation, and the 5-clause switch does not? why cannot this limitation be removed from GCC? o why should GCC be trying to generate an extern thunk for=20 an indirect branch to a static inline function anyway ?=20 I think static-inlineness should always trump indirect-branch("thunk-extern"). o GCC appears to provide no way for users to construct their own jump tables without relocations - why does every reference to a PC-relative label produce a relocation? I do believe this >>From gcc-bugs-return-612829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 11:39:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101349 invoked by alias); 15 Aug 2018 11:39:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101259 invoked by uid 48); 15 Aug 2018 11:39:30 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/86872] [9 Regression] LTO bootstrap failed with profiledbootstrap Date: Wed, 15 Aug 2018 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01118.txt.bz2 Content-length: 194 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86872 --- Comment #5 from H.J. Lu --- A patch is posted at https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00866.html >>From gcc-bugs-return-612830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 11:42:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106862 invoked by alias); 15 Aug 2018 11:42:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106788 invoked by uid 48); 15 Aug 2018 11:42:04 -0000 From: "denin at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] New: std::tuple incorrectly assigned Date: Wed, 15 Aug 2018 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: denin at mail dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01119.txt.bz2 Content-length: 2299 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 Bug ID: 86963 Summary: std::tuple incorrectly assigned Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: denin at mail dot ru Target Milestone: --- $ cat meow.cpp=20 #include #include struct S { S &operator=3D(S const &) =3D delete; S &operator=3D(S &&) =3D delete; }; static_assert(!std::is_move_assignable_v>); $ g++ meow.cpp=20 meow.cpp:8:15: error: static assertion failed static_assert(!std::is_move_assignable_v>); ^~~~ Despite tuple's elements being not assignable at all, tuple itself is incorrectly considered assignable, due to non-SFINAE protected operator=3D = in class definition. Thus, the following code breaks on 'f =3D std::move(g);': template void mv_assign(T &left, T &&right) { if constexpr(std::is_move_assignable_v>) left =3D std::move(right); } int main() { std::tuple f, g; mv_assign(f, std::move(g)); } ENVIRONMENT $ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=3Drelease --enable-default-pie --enable-default-ssp Thread model: posix gcc version 8.1.1 20180531 (GCC)=20 $ uname -a Linux home 4.17.10-1-ARCH #1 SMP PREEMPT Wed Jul 25 11:23:00 UTC 2018 x86_64 GNU/Linux >>From gcc-bugs-return-612831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 11:46:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129215 invoked by alias); 15 Aug 2018 11:46:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129125 invoked by uid 55); 15 Aug 2018 11:46:23 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/19315] document undocumented extension that allows code where variable is not emitted in the asm Date: Wed, 15 Aug 2018 11:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.0.0 X-Bugzilla-Keywords: accepts-invalid, documentation X-Bugzilla-Severity: minor X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01120.txt.bz2 Content-length: 856 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D19315 --- Comment #10 from Iain Sandoe --- Author: iains Date: Wed Aug 15 11:45:44 2018 New Revision: 263556 URL: https://gcc.gnu.org/viewcvs?rev=3D263556&root=3Dgcc&view=3Drev Log: Don't make unsized objects into extern. 2018-08-15 Iain Sandoe gcc/c: PR c/19315 * c-decl.c (finish_decl): Don't add the 'extern' storage class to objects of unknown size. gcc/testsuite: PR c/19315 gcc.dg/graphite/pr82451.c: Make array 'a' an extern. gcc.dg/redecl-10.c: Expect warnings for the static vars with unknown size. Modified: trunk/gcc/c/ChangeLog trunk/gcc/c/c-decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/graphite/pr82451.c trunk/gcc/testsuite/gcc.dg/redecl-10.c >>From gcc-bugs-return-612832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 12:16:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39035 invoked by alias); 15 Aug 2018 12:16:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35752 invoked by uid 48); 15 Aug 2018 12:16:21 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] std::tuple incorrectly assigned Date: Wed, 15 Aug 2018 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01121.txt.bz2 Content-length: 641 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-15 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- This is a new requirement in C++17, since https://wg21.link/lwg2729 Previous standards did not require the assignment to be deleted or removed = from overload resolution. >>From gcc-bugs-return-612833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 12:17:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81163 invoked by alias); 15 Aug 2018 12:17:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81129 invoked by uid 48); 15 Aug 2018 12:17:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] std::tuple incorrectly assigned Date: Wed, 15 Aug 2018 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01122.txt.bz2 Content-length: 184 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 --- Comment #2 from Jonathan Wakely --- I think we want a similar solution as for PR 86751 i.e. r263185 >>From gcc-bugs-return-612834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 13:35:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80199 invoked by alias); 15 Aug 2018 13:35:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80166 invoked by uid 48); 15 Aug 2018 13:35:18 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/86957] gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use Date: Wed, 15 Aug 2018 13:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibhagatgnu at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01123.txt.bz2 Content-length: 616 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86957 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-15 Component|middle-end |gcov-profile Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- I welcome that attempt. >>From gcc-bugs-return-612835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 13:40:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94909 invoked by alias); 15 Aug 2018 13:40:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94850 invoked by uid 48); 15 Aug 2018 13:40:30 -0000 From: "znerol at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86964] New: Too many debug symbols included, especially for extern globals Date: Wed, 15 Aug 2018 13:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: znerol at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01124.txt.bz2 Content-length: 9535 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86964 Bug ID: 86964 Summary: Too many debug symbols included, especially for extern globals Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: znerol at gmail dot com Target Milestone: --- Created attachment 44544 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44544&action=3Dedit Sample code When compiling with gcc -g using gcc 4.9, the debug symbols included, especially for externally declared global variables, is at an expected and familiar amount. When switching to gcc 6.3, the amount of debug symbols included seems excessive and superfluous. Attempts at using flags such as: -feliminate-unused-debug-symbols -feliminate-unused-debug-types -femit-struct-debug-baseonly have yielded no difference. This creates a problem when working with a very large codebase that yields large library archives that end up being several orders of magnitude larger (file size) with the newer compiler vs. the older one. I've attached sources and test Makefile for a small program to illustrate w= hat I'm talking about. Below I include the difference in output between the 2 versions. In both cases, the symbols included in the final prog executable = are a summation of those in each of the object files - as expected - so I don't think that behavior is wrong. But the key difference is in each of the obje= ct files. With the older version, you only have symbols included that are rele= vant to the module. With the newer version, you get every symbol for every varia= ble externally declared, even if it's not used or referenced in that module. Th= is has a multiplicative effect in the final executable's amount of debug info. The attached sample program is mimicking source code structure seen in a ve= ry large 3rd party SDK being worked with. The net effect of this problem resul= ts in library archive files that are several orders of magnitude larger than before. What used to be a few MB are now a few GB. What I'm looking for is a flag or option that will make the newer version behave like the older versi= on with regard to the included debug info. -------------------- Result with gcc 4.9 $ make gcc -g -feliminate-unused-debug-symbols -c -o a.o a.c gcc -g -feliminate-unused-debug-symbols -c -o b.o b.c gcc -g -feliminate-unused-debug-symbols -c -o c.o c.c gcc -g -feliminate-unused-debug-symbols -o prog a.o b.o c.o a.o DW_AT_name : (indirect string, offset: 0xb4): big_time 0x000000b0 696e7400 6269675f 74696d65 00756e73 int.big_time.uns b.o <1e> DW_AT_name : (indirect string, offset: 0x9): big_time <40> DW_AT_name : (indirect string, offset: 0x0): big_mama 0x00000000 6269675f 6d616d61 00626967 5f74696d big_mama.big_tim c.o <1e> DW_AT_name : (indirect string, offset: 0x9): big_stuf <40> DW_AT_name : (indirect string, offset: 0x0): big_leee 0x00000000 6269675f 6c656565 00626967 5f737475 big_leee.big_stu prog DW_AT_name : (indirect string, offset: 0x95): big_time DW_AT_name : (indirect string, offset: 0x95): big_time DW_AT_name : (indirect string, offset: 0xd7): big_mama <123> DW_AT_name : (indirect string, offset: 0xe9): big_stuf <145> DW_AT_name : (indirect string, offset: 0xe0): big_leee 0x00000090 20696e74 00626967 5f74696d 6500756e int.big_time.un 0x000000d0 7a657479 70650062 69675f6d 616d6100 zetype.big_mama. 0x000000e0 6269675f 6c656565 00626967 5f737475 big_leee.big_stu --------------------- Result with gcc 6.3 $ make gcc -g -feliminate-unused-debug-symbols -c -o a.o a.c gcc -g -feliminate-unused-debug-symbols -c -o b.o b.c gcc -g -feliminate-unused-debug-symbols -c -o c.o c.c gcc -g -feliminate-unused-debug-symbols -o prog a.o b.o c.o a.o <312> DW_AT_name : (indirect string, offset: 0x20e): big_time <31d> DW_AT_name : (indirect string, offset: 0x1eb): big_mama <328> DW_AT_name : (indirect string, offset: 0x286): big_stuf <333> DW_AT_name : (indirect string, offset: 0x90): big_leee 0x00000090 6269675f 6c656565 006c6f6e 6720696e big_leee.long in 0x000001e0 74005f49 4f5f4649 4c450062 69675f6d t._IO_FILE.big_m 0x00000280 6636345f 74006269 675f7374 7566005f f64_t.big_stuf._ b.o <1e> DW_AT_name : (indirect string, offset: 0x9): big_time <36> DW_AT_name : (indirect string, offset: 0x0): big_mama <41> DW_AT_name : (indirect string, offset: 0x12): big_stuf <4c> DW_AT_name : (indirect string, offset: 0x1b): big_leee 0x00000000 6269675f 6d616d61 00626967 5f74696d big_mama.big_tim 0x00000010 65006269 675f7374 75660062 69675f6c e.big_stuf.big_l c.o <1e> DW_AT_name : (indirect string, offset: 0x9): big_time <36> DW_AT_name : (indirect string, offset: 0x0): big_mama <41> DW_AT_name : (indirect string, offset: 0x12): big_stuf <4c> DW_AT_name : (indirect string, offset: 0x1b): big_leee 0x00000000 6269675f 6d616d61 00626967 5f74696d big_mama.big_tim 0x00000010 65006269 675f7374 75660062 69675f6c e.big_stuf.big_l prog <312> DW_AT_name : (indirect string, offset: 0x1d2): big_time <31d> DW_AT_name : (indirect string, offset: 0x1af): big_mama <328> DW_AT_name : (indirect string, offset: 0x245): big_stuf <333> DW_AT_name : (indirect string, offset: 0x84): big_leee <379> DW_AT_name : (indirect string, offset: 0x1d2): big_time <391> DW_AT_name : (indirect string, offset: 0x1af): big_mama <39c> DW_AT_name : (indirect string, offset: 0x245): big_stuf <3a7> DW_AT_name : (indirect string, offset: 0x84): big_leee <3f2> DW_AT_name : (indirect string, offset: 0x1d2): big_time <40a> DW_AT_name : (indirect string, offset: 0x1af): big_mama <415> DW_AT_name : (indirect string, offset: 0x245): big_stuf <420> DW_AT_name : (indirect string, offset: 0x84): big_leee 0x00000080 656e6400 6269675f 6c656565 005f666c end.big_leee._fl 0x000001d0 73006269 675f7469 6d65002f 686f6d65 s.big_time./home 0x00000240 36345f74 00626967 5f737475 66005f49 64_t.big_stuf._I Version Info: gcc 4.9: $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Debian 4.9.2-10+d= eb8u1' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=3Dc,c++,java,go,d,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.9 --enable-shared --enable-linker-build-id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.9 --libdir=3D/usr/lib --enable-= nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-gnu-unique-object --disable-vtable-v= erify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=3Dgtk --enable-gtk-cairo --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-= home --with-jvm-root-dir=3D/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=3D/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=3Damd64 --with-ecj-jar=3D/usr/share/java/eclipse-ecj.= jar --enable-objc-gc --enable-multiarch --with-arch-32=3Di586 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.9.2 (Debian 4.9.2-10+deb8u1) gcc 6.3: $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Debian 6.3.0-18+d= eb9u1' --with-bugurl=3Dfile:///usr/share/doc/gcc-6/README.Bugs --enable-languages=3Dc,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=3D/u= sr --program-suffix=3D-6 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dy= es --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=3Dgtk --enable-gtk-cairo --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-6-amd64/j= re --enable-java-home --with-jvm-root-dir=3D/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=3D/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=3Damd64 --with-ecj-jar=3D/usr/share/java/eclipse-ecj.= jar --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linu= x-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) >>From gcc-bugs-return-612836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 15:22:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105029 invoked by alias); 15 Aug 2018 15:22:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104978 invoked by uid 48); 15 Aug 2018 15:22:17 -0000 From: "wilco at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/86512] Incorrect sub result for float subnormal inputs in armv7(with -msoft-float). Date: Wed, 15 Aug 2018 15:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wilco at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01125.txt.bz2 Content-length: 416 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86512 Wilco changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wilco at gcc dot gnu.org --- Comment #3 from Wilco --- We should still add a test for this case and backport. >>From gcc-bugs-return-612837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 15:26:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119139 invoked by alias); 15 Aug 2018 15:26:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119079 invoked by uid 55); 15 Aug 2018 15:26:22 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71625] missing strlen optimization on different array initialization style Date: Wed, 15 Aug 2018 15:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01126.txt.bz2 Content-length: 617 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 --- Comment #18 from Martin Sebor --- Author: msebor Date: Wed Aug 15 15:25:46 2018 New Revision: 263561 URL: https://gcc.gnu.org/viewcvs?rev=3D263561&root=3Dgcc&view=3Drev Log: PR tree-optimization/71625 - missing strlen optimization on different array initialization style (avoid compilation errors on aarch64) gcc/ChangeLog: * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtin_types): Clear Poly8_t's TYPE_STRING_FLAG. Modified: trunk/gcc/ChangeLog trunk/gcc/config/aarch64/aarch64-builtins.c >>From gcc-bugs-return-612838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 15:46:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47773 invoked by alias); 15 Aug 2018 15:46:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47667 invoked by uid 48); 15 Aug 2018 15:45:57 -0000 From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191 Date: Wed, 15 Aug 2018 15:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: deferred, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01127.txt.bz2 Content-length: 812 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85412 Sergei Trofimovich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |slyfox at inbox dot ru --- Comment #5 from Sergei Trofimovich --- Slightly shorter reproduced (shrunk with creduce): // a.c int a, b, c; int e(int h) { double d; int f =3D 1; while (b < 1) { c =3D d + f; if (b) a /=3D h; else { long unsigned g; f =3D 0; d =3D h / g + h; } b =3D a / 3; } } // command: // x86_64-pc-linux-gnu-gcc-8.2.0 -c a.c -march=3Dhaswell -O2 -fselective-scheduling2 -fsel-sched-pipelining -fno-tree-ch -fno-tree-loop-= im >>From gcc-bugs-return-612839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 16:36:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17282 invoked by alias); 15 Aug 2018 16:36:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17197 invoked by uid 48); 15 Aug 2018 16:36:45 -0000 From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636 Date: Wed, 15 Aug 2018 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01128.txt.bz2 Content-length: 206 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86519 --- Comment #17 from qinzhao at gcc dot gnu.org --- the patch has been committed as: https://gcc.gnu.org/viewcvs/gcc?view=3Drevision&revision=3D263563 >>From gcc-bugs-return-612840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 16:51:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44364 invoked by alias); 15 Aug 2018 16:51:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44299 invoked by uid 48); 15 Aug 2018 16:51:54 -0000 From: "jason.duerstock at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191 Date: Wed, 15 Aug 2018 16:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: deferred, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jason.duerstock at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01129.txt.bz2 Content-length: 243 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85412 --- Comment #6 from Jason Duerstock --- The fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85354 wouldn't h= appen to have caused this, would it? >>From gcc-bugs-return-612841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 17:02:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81951 invoked by alias); 15 Aug 2018 17:02:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81910 invoked by uid 48); 15 Aug 2018 17:02:12 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86965] New: nios2 optimizer forgets about known upper bits of register Date: Wed, 15 Aug 2018 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01130.txt.bz2 Content-length: 3101 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86965 Bug ID: 86965 Summary: nios2 optimizer forgets about known upper bits of register Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: already5chosen at yahoo dot com Target Milestone: --- Created attachment 44545 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44545&action=3Dedit source code that demonstrates my case Target: nios2-elf Configured with: ../gcc-8.2.0/configure \ --target=3Dnios2-elf \ --prefix=3D/home/m/opt/cross \ --disable-nls \ --enable-languages=3Dc,c++ \ --without-headers \ --enable-multiarch Thread model: single gcc version 8.2.0 (GCC)=20 I am not sure if two cases in my report are related to each other. To me it looks like they are since both cases appear related to optimizer losing tra= ck of known state of upper 24 bits of register. I know that bug writing guidelines discourage inclusion of the content of = the object file, but I made an effort to make it as short as possible. It really looks like the only sane way to report. 00000000 : 0: 20c00007 ldb r3,0(r4) 4: 18bff404 addi r2,r3,-48 8: 28800015 stw r2,0(r5) c: 18801960 cmpeqi r2,r3,101 10: 18c01120 cmpeqi r3,r3,68 14: 10c4b03a or r2,r2,r3 18: f800283a ret 0000001c : 1c: 20800003 ldbu r2,0(r4) 20: 10c03fcc andi r3,r2,255 24: 18c0201c xori r3,r3,128 28: 18ffe004 addi r3,r3,-128 2c: 18fff404 addi r3,r3,-48 30: 108037cc andi r2,r2,223 34: 28c00015 stw r3,0(r5) 38: 10801160 cmpeqi r2,r2,69 3c: f800283a ret #-- comments: bad1 should generate approximately the same code as good1.=20 7 instructions instead of 9 Or, if compiler really wants to be smart, it can generate 6 instructions: ldb r2,0(r4) addi r3,r2,-48 stw r3,0(r5) andi r2,r2,223 ; sign extension in bits[31..24] does not matter! cmpeqi r2,r2,69 ret #-- end of comments: 00000040 : 40: 21800007 ldb r6,0(r4) 44: 30c00b60 cmpeqi r3,r6,45 48: 31800ae0 cmpeqi r6,r6,43 4c: 28c00015 stw r3,0(r5) 50: 1986b03a or r3,r3,r6 54: 20c5883a add r2,r4,r3 58: f800283a ret 0000005c : 5c: 21800007 ldb r6,0(r4) 60: 30c00b60 cmpeqi r3,r6,45 64: 31800ae0 cmpeqi r6,r6,43 68: 18803fcc andi r2,r3,255 # this instruction serves no purp= ose 6c: 1986b03a or r3,r3,r6 70: 28800115 stw r2,4(r5) 74: 28800015 stw r2,0(r5) 78: 20c5883a add r2,r4,r3 7c: f800283a ret #-- comments: bad2 should be identical to good2 except of addition of the second store.=20 #-- end of comments: >>From gcc-bugs-return-612842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 17:25:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123148 invoked by alias); 15 Aug 2018 17:25:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122897 invoked by uid 48); 15 Aug 2018 17:24:55 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/70693] valgrind error in get_visual_column Date: Wed, 15 Aug 2018 17:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01131.txt.bz2 Content-length: 406 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70693 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #8 from David Malcolm --- Working on a fix; sorry for the delay. >>From gcc-bugs-return-612843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 17:42:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39363 invoked by alias); 15 Aug 2018 17:42:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39291 invoked by uid 48); 15 Aug 2018 17:42:07 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67012] decltype(auto) with trailing return type Date: Wed, 15 Aug 2018 17:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01132.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67012 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-612844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 17:47:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43044 invoked by alias); 15 Aug 2018 17:47:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42992 invoked by uid 48); 15 Aug 2018 17:47:33 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86966] New: ICE (Segmentation fault) for an explicit specialization of a member class template Date: Wed, 15 Aug 2018 17:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01133.txt.bz2 Content-length: 871 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86966 Bug ID: 86966 Summary: ICE (Segmentation fault) for an explicit specialization of a member class template Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /************* SOURCE *************/ template struct S { template struct X { }; }; template<> template<> struct S<>::X { }; S<>::X<> x; /*********** END SOURCE ***********/ /************* OUTPUT *************/ :11:8: internal compiler error: Segmentation fault 11 | S<>::X<> x; | ^ Compiler returned: 1 /*********** END OUTPUT ***********/ >>From gcc-bugs-return-612845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 17:50:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55734 invoked by alias); 15 Aug 2018 17:50:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55677 invoked by uid 48); 15 Aug 2018 17:50:08 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86966] ICE (Segmentation fault) for an explicit specialization of a member class template Date: Wed, 15 Aug 2018 17:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01134.txt.bz2 Content-length: 645 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86966 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-15 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed (but invalid?). >>From gcc-bugs-return-612846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 18:20:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29914 invoked by alias); 15 Aug 2018 18:20:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27642 invoked by uid 48); 15 Aug 2018 18:20:03 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86966] ICE (Segmentation fault) for an explicit specialization of a member class template Date: Wed, 15 Aug 2018 18:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01135.txt.bz2 Content-length: 697 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86966 --- Comment #2 from Vladimir Reshetnikov -= -- I believe the code is valid. We explicitly specialize the member class temp= late X of S for S<> (i.e. the parameter pack T is empty). T is expanded into a l= ist of zero non-type template parameters of S<>::X. Here is a similar code where we specialize for S, i.e. provide one template argument bool for the pack T: template struct S { template struct X { }; }; template<> template struct S::X { }; Here T is expanded into a list of one non-type template parameter of type b= ool. This code compiles successfully. >>From gcc-bugs-return-612847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 19:03:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79341 invoked by alias); 15 Aug 2018 19:03:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79249 invoked by uid 48); 15 Aug 2018 19:03:41 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86962] [9 Regression] ICE in sanitize_rewrite_addressable_params, at sanopt.c:1173 with nested functions Date: Wed, 15 Aug 2018 19:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01136.txt.bz2 Content-length: 425 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86962 --- Comment #1 from Eric Botcazou --- > Issues is that there's a param with DECL_HAS_VALUE_EXPR_P which is > addressable. We can probably skip these, but I'm curious Eric how that > changed in your commit? It's a new object, i.e. a PARM_DECL with DECL_HAS_VALUE_EXPR_P. Before we would create a VAR_DECL and leave the PARM_DECL orphaned. >>From gcc-bugs-return-612848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 19:11:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90063 invoked by alias); 15 Aug 2018 19:11:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89989 invoked by uid 48); 15 Aug 2018 19:11:34 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Wed, 15 Aug 2018 19:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01137.txt.bz2 Content-length: 490 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- Tweaked example that is accepted: using T =3D void() -> int; void f (); int main () { T *t =3D f; } >>From gcc-bugs-return-612849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 19:26:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20292 invoked by alias); 15 Aug 2018 19:26:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20228 invoked by uid 48); 15 Aug 2018 19:25:56 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/70693] valgrind error in get_visual_column Date: Wed, 15 Aug 2018 19:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01138.txt.bz2 Content-length: 1304 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70693 --- Comment #9 from David Malcolm --- The issue occurs due to a stray carriage return aka '\r' aka ^M, occurring towards the end of line 35 of attachment 38289 - but not at the end itself. This carriage return confuses our line numbering. When lexing attachment 38289, the "break" token is recorded as being at line 55 column 8: (gdb) p next_tinfo $1 =3D (const token_indent_info &) @0x7fffffffd3d0: {location =3D 382052, t= ype =3D CPP_KEYWORD, keyword =3D RID_BREAK} ...but input.c (and thus diagnostic-show-locus) are accessing the line beyo= nd for "line 55": (gdb) call inform (382052, "'break' token is here") ../../src/attachment-38289.cc: In member function =E2=80=98bool {anonymous}::SgmlFilter::process_char(FilterChar::Chr)=E2=80=99: ../../src/attachment-38289.cc:55:8: note: 'break' token is here 55 |=20 | ^ "cat -n" and emacs both agree with this latter numbering, showing the "brea= k;" as being on line 54, and with line 55 as that blank line. This discrepancy between the lexer's line numbering and input.c's line numbering leads to an out-of-range read in get_visual_column (trying to read column 8, to locate the "break;", but finding the next line, which is only 4 characters long). >>From gcc-bugs-return-612850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 19:58:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94424 invoked by alias); 15 Aug 2018 19:58:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94317 invoked by uid 48); 15 Aug 2018 19:58:00 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86966] ICE (Segmentation fault) for an explicit specialization of a member class template Date: Wed, 15 Aug 2018 19:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01139.txt.bz2 Content-length: 179 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86966 --- Comment #3 from Vladimir Reshetnikov -= -- Might be related to Bug 86960 and Bug 86918. >>From gcc-bugs-return-612851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 20:22:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29259 invoked by alias); 15 Aug 2018 20:22:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29200 invoked by uid 48); 15 Aug 2018 20:22:29 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Wed, 15 Aug 2018 20:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01140.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-612852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 20:53:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34539 invoked by alias); 15 Aug 2018 20:53:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34506 invoked by uid 48); 15 Aug 2018 20:53:24 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] BUG with optimisation of select case statement in gfortran v8.x Date: Wed, 15 Aug 2018 20:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01141.txt.bz2 Content-length: 539 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 --- Comment #4 from Harald Anlauf --- (In reply to Harald Anlauf from comment #3) > Self contained alternative testcase: > With -Og, -O1 and higher: >=20 > id=3D 1 > ierr1, OK =3D 0 T > ierr2, OK =3D 1 F The magic option is -fwrapv / -fno-wrapv. With -Og -fwrapv: ierr1, OK =3D 0 T ierr2, OK =3D 0 T With -Og -fno-wrapv: ierr1, OK =3D 0 T ierr2, OK =3D 1 F Middle-end bug. >>From gcc-bugs-return-612853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 20:58:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79137 invoked by alias); 15 Aug 2018 20:58:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79058 invoked by uid 48); 15 Aug 2018 20:58:02 -0000 From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191 Date: Wed, 15 Aug 2018 20:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: deferred, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01142.txt.bz2 Content-length: 1807 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85412 Sergei Trofimovich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abel at ispras dot ru --- Comment #7 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #5) > Slightly shorter reproduced (shrunk with creduce): >=20 > // a.c > int a, b, c; > int e(int h) { > double d; > int f =3D 1; > while (b < 1) { > c =3D d + f; > if (b) > a /=3D h; > else { > long unsigned g; > f =3D 0; > d =3D h / g + h; > } > b =3D a / 3; > } > } >=20 > // command: > // x86_64-pc-linux-gnu-gcc-8.2.0 -c a.c -march=3Dhaswell -O2 > -fselective-scheduling2 -fsel-sched-pipelining -fno-tree-ch -fno-tree-loo= p-im Bisected this down from gcc-7.3.0 (did not ICE) to gcc-8. Looks reasonable? 91d7a2f98a6846d6a4ac215abbbcf8e6154b9984 is the first bad commit commit 91d7a2f98a6846d6a4ac215abbbcf8e6154b9984 Author: abel Date: Mon Apr 9 09:08:28 2018 +0000 PR rtl-optimization/83530 * sel-sched.c (force_next_insn): New global variable. (remove_insn_for_debug): When force_next_insn is true, also leave only next insn in the ready list. (sel_sched_region): When the region wasn't scheduled, make anoth= er pass over it with force_next_insn set to 1. * gcc.dg/pr83530.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259228 138bc75d-0d04-0410-961f-82ee72b054a4 :040000 040000 11825cae45f4d9839c242188123117a0a9f96803 87391fd9d4f97ee6fe456d1630f37801dc0bf8cc M gcc >>From gcc-bugs-return-612854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 21:58:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108054 invoked by alias); 15 Aug 2018 21:58:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107873 invoked by uid 48); 15 Aug 2018 21:58:40 -0000 From: "nightstrike at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86941] ICE in i386/winnt.c:1258 in i386_pe_seh_unwind_emit Date: Wed, 15 Aug 2018 21:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nightstrike at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01143.txt.bz2 Content-length: 552 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86941 nightstrike changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uros at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D67967 --- Comment #1 from nightstrike --- Related to PR 67967 >>From gcc-bugs-return-612855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 23:01:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112441 invoked by alias); 15 Aug 2018 23:00:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 112030 invoked by uid 48); 15 Aug 2018 23:00:32 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug translation/79997] simple-ssa-sprintf i18n: wrong plural form in maybe_warn Date: Wed, 15 Aug 2018 23:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: translation X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work resolution cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01144.txt.bz2 Content-length: 572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79997 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Known to work| |8.1.0 Resolution|--- |FIXED Known to fail| |7.3.0 --- Comment #3 from Martin Sebor --- I believe these issues were fixed in r258154. >>From gcc-bugs-return-612856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 23:45:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86479 invoked by alias); 15 Aug 2018 23:45:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86409 invoked by uid 48); 15 Aug 2018 23:44:56 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/80076] -Wmisleading-indentation doesn't trigger when macro is misindented Date: Wed, 15 Aug 2018 23:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01145.txt.bz2 Content-length: 649 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80076 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-15 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |7.3.0, 8.2.0, 9.0 --- Comment #1 from Martin Sebor --- Confirmed with GCC 7, 8, and trunk (9). >>From gcc-bugs-return-612857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 23:58:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99552 invoked by alias); 15 Aug 2018 23:58:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99524 invoked by uid 48); 15 Aug 2018 23:58:42 -0000 From: "mascasa at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/83428] Static initialization and struct with constexpr ctor Date: Wed, 15 Aug 2018 23:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mascasa at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01146.txt.bz2 Content-length: 428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83428 Matt Morehouse changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mascasa at google dot com --- Comment #2 from Matt Morehouse --- This also reproduces for me on x86_64 at ToT. >>From gcc-bugs-return-612858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 15 23:59:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100337 invoked by alias); 15 Aug 2018 23:59:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100261 invoked by uid 48); 15 Aug 2018 23:58:56 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/81033] [8/9 Regression] there are cases where ld64 is not able to determine correct atom boundaries from the output GCC currently produces Date: Wed, 15 Aug 2018 23:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: build, patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_file_loc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01147.txt.bz2 Content-length: 1026 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81033 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch URL| |https://gcc.gnu.org/ml/gcc- | |patches/2018-08/msg00798.ht | |ml --- Comment #43 from Eric Gallager --- (In reply to Iain Sandoe from comment #42) > (In reply to Elliot Saba from comment #41) > > Has there been any progress on this? We are running into this while tr= ying > > to cross-compile GCC for Darwin. Has this been fixed in 8.3.0? >=20 > I will be posting two patches (one just posted today) that are my proposed > solution - basically, v2 above plus removing a target hook. One is here: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00798.html >>From gcc-bugs-return-612859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 00:12:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7612 invoked by alias); 16 Aug 2018 00:12:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7587 invoked by uid 48); 16 Aug 2018 00:12:38 -0000 From: "mark.melton at notlem dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86967] New: time_get fails to parse abbreviated weekday with %A format string Date: Thu, 16 Aug 2018 00:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark.melton at notlem dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01148.txt.bz2 Content-length: 1021 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86967 Bug ID: 86967 Summary: time_get fails to parse abbreviated weekday with %A format string Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: mark.melton at notlem dot com Target Milestone: --- Created attachment 44546 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44546&action=3Dedit Small test case showing the bug. The std::time_get::get(...) function fails to parse an abbreviated weekday = name when using the "%A" format specifier. It works corrected for the "%a" format specifier where the two specifiers are simply synonyms of one another. Using both "%A" and "%a", the function successfully parses the unabbreviated weekday name. See the attached short test case. I have tested under both 8.2.0 and 7.3.0. cheers, mark >>From gcc-bugs-return-612860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 00:26:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101714 invoked by alias); 16 Aug 2018 00:26:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101657 invoked by uid 48); 16 Aug 2018 00:26:28 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86966] ICE (Segmentation fault) for an explicit specialization of a member class template Date: Thu, 16 Aug 2018 00:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01149.txt.bz2 Content-length: 171 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86966 --- Comment #4 from Vladimir Reshetnikov -= -- Also, might be related to Bug 84796. >>From gcc-bugs-return-612861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 00:29:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110777 invoked by alias); 16 Aug 2018 00:29:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110739 invoked by uid 48); 16 Aug 2018 00:29:37 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86960] [Regression] internal compiler error: in coerce_template_parms Date: Thu, 16 Aug 2018 00:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01150.txt.bz2 Content-length: 185 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86960 --- Comment #2 from Vladimir Reshetnikov -= -- Also, might be related to Bug 84796 and Bug 86961. >>From gcc-bugs-return-612862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 00:32:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124916 invoked by alias); 16 Aug 2018 00:32:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123184 invoked by uid 48); 16 Aug 2018 00:32:04 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86961] ICE in finish_member_declaration when an alias template is used Date: Thu, 16 Aug 2018 00:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01151.txt.bz2 Content-length: 179 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86961 --- Comment #1 from Vladimir Reshetnikov -= -- Might be related to Bug 86956 and Bug 86959. >>From gcc-bugs-return-612863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 01:09:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104238 invoked by alias); 16 Aug 2018 01:09:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100722 invoked by uid 48); 16 Aug 2018 01:09:23 -0000 From: "yangyibiao at nju dot edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/85367] [GCOV] A call to the _subborrow_u64 builtin-function is wrongly marked as executed twice Date: Thu, 16 Aug 2018 01:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yangyibiao at nju dot edu.cn X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WORKSFORME X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01152.txt.bz2 Content-length: 500 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85367 Yibiao Yang changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |WORKSFORME --- Comment #2 from Yibiao Yang --- As you mentioned that it works in gcc 8.1.1 while this bug exist in gcc 8.0= .0. Therefore, I change the bug status into worksforme. >>From gcc-bugs-return-612864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 01:54:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 331 invoked by alias); 16 Aug 2018 01:54:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 131069 invoked by uid 48); 16 Aug 2018 01:54:52 -0000 From: "sven.koehler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86968] New: Unaligned big-endian access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Thu, 16 Aug 2018 01:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sven.koehler at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01153.txt.bz2 Content-length: 1210 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 Bug ID: 86968 Summary: Unaligned big-endian access on armv7-a yields 4 ldrb instructions rather than ldr+rev Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sven.koehler at gmail dot com Target Milestone: --- Created attachment 44547 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44547&action=3Dedit C source code illustrating the problem armv7-a support unaligned memory access. In case of unaligned little-endian access, gcc generates a single ldr instrction. Also, for aligned big-endian access, gcc generates an ldr followed by a rev instruction (reverses byte order). However, when big-endian access is not aligned, gcc does not use ldr+rev. Instead, it generates 4 ldrb instructions plus the code to move the 4 bytes into a single register. Find the source and generated assembler code attached. My compiler command was arm-none-eabi-gcc -O3 -mthumb -S -o - -march=3Darmv7-a endian.c The version of gcc is 8.2.0 >>From gcc-bugs-return-612865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 01:55:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1683 invoked by alias); 16 Aug 2018 01:55:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1456 invoked by uid 48); 16 Aug 2018 01:55:24 -0000 From: "sven.koehler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86968] Unaligned big-endian access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Thu, 16 Aug 2018 01:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sven.koehler at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01154.txt.bz2 Content-length: 244 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 --- Comment #1 from Sven --- Created attachment 44548 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44548&action=3Dedit the generated assembler code >>From gcc-bugs-return-612866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 02:05:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68031 invoked by alias); 16 Aug 2018 02:05:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67317 invoked by uid 48); 16 Aug 2018 02:05:36 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Thu, 16 Aug 2018 02:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01155.txt.bz2 Content-length: 865 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Unaligned big-endian access |Unaligned big-endian |on armv7-a yields 4 ldrb |(scalar_storage_order) |instructions rather than |access on armv7-a yields 4 |ldr+rev |ldrb instructions rather | |than ldr+rev --- Comment #2 from Andrew Pinski --- One comment about scalar_storage_order, it is not lowered until RTL time so= it never gets optimized by the tree level. I found scalar_storage_order almost never to be very optimial at being optimized. >>From gcc-bugs-return-612867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 02:25:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69011 invoked by alias); 16 Aug 2018 02:25:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68978 invoked by uid 48); 16 Aug 2018 02:25:16 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86969] New: [Regression] ICE (in tsubst_copy) for a generic recursive lambda Date: Thu, 16 Aug 2018 02:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01156.txt.bz2 Content-length: 2079 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86969 Bug ID: 86969 Summary: [Regression] ICE (in tsubst_copy) for a generic recursive lambda Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /************************* BEGIN SOURCE *************************/ auto compose =3D [](auto... fs) { if constexpr (sizeof...(fs) =3D=3D 0) { return [](auto x) { return x; }; } else { auto fn =3D [](auto self, auto f, auto... fs) { if constexpr (sizeof...(fs) =3D=3D 0) return f; else return [=3D](auto x) {=20 return f(self(self, fs...)(x)); }; }; return fn(fn, fs...); } }; static_assert(compose( [](auto x) { return x * 3; }, [](auto x) { return x + 1; }, [](auto x) { return x / 2; } )(6) =3D=3D 12); /************************** END SOURCE **************************/ EXPECTED: no errors. ACTUAL: : In instantiation of ' [with auto:1 =3D {, , }]:: [with auto:3 =3D [with auto:1 =3D {, , }]::; auto:4 =3D ; auto:5 =3D {, }]': :11:18: required from ' [with auto:1 =3D {, , }]' :19:5: required from here :8:30: internal compiler error: in tsubst_copy, at cp/pt.c:15348 8 | return f(self(self, fs...)(x)); | ~~~~^~~~~~~~~~~~~ Compiles successfully with 7.3, fails with 8.1 and newer. Compiles successf= ully with Clang. Looks similar to Bug 86926, but ICE location is different. >>From gcc-bugs-return-612868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 03:27:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22573 invoked by alias); 16 Aug 2018 03:27:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19576 invoked by uid 48); 16 Aug 2018 03:27:53 -0000 From: "alkondratenko at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/83428] Static initialization and struct with constexpr ctor Date: Thu, 16 Aug 2018 03:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: alkondratenko at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01157.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83428 Aliaksei Kandratsenka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alkondratenko at gmail dot= com --- Comment #3 from Aliaksei Kandratsenka = --- constructor is defined after variable in this example. I am not sure this r= eal bug. >>From gcc-bugs-return-612869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 04:29:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81571 invoked by alias); 16 Aug 2018 04:29:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81538 invoked by uid 48); 16 Aug 2018 04:29:22 -0000 From: "jbassett271 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86970] New: Rejected constexpr expression involving lambdas and inheritance, "use of this in a constant expression" Date: Thu, 16 Aug 2018 04:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jbassett271 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01158.txt.bz2 Content-length: 5050 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86970 Bug ID: 86970 Summary: Rejected constexpr expression involving lambdas and inheritance, "use of this in a constant expression" Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jbassett271 at gmail dot com Target Milestone: --- Created attachment 44549 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44549&action=3Dedit The .ii file from -save-temps The following code fails to compile under g++-8: Command: g++-8 -Wall -Wextra -std=3Dc++17 min.cpp Compiler Explorer link: https://godbolt.org/g/iByFDC #include #include namespace ns { template class Foo : private A { public: template explicit constexpr Foo(FA&& a) : A{std::forward(a)} {} }; template Foo(A)->Foo; template constexpr auto frobnicate(T&& val) { return [val =3D std::forward(val)] {}; } template class Bar { A a; std::tuple b; public: template explicit constexpr Bar(FA&& a, FB&& b) : a{a} , b{b} {} }; template Bar(A, B)->Bar; constexpr auto Baz =3D ns::Foo{ns::frobnicate(ns::Bar{[] {}, [](int) {}= })}; } Compiler diagnostics: min.cpp:41:76: error: =E2=80=98constexpr ns::Foo::Foo(FA&&) [with FA =3D ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::; A =3D ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::]=E2=80=99 called in a constant expression constexpr auto Baz =3D ns::Foo{ns::frobnicate(ns::Bar{[] {}, [](int) {= }})}; = ^ min.cpp:10:28: note: =E2=80=98constexpr ns::Foo::Foo(FA&&) [with FA =3D ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::; A =3D ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::]=E2=80=99 is not usable as a =E2=80=98cons= texpr=E2=80=99 function because: explicit constexpr Foo(FA&& a) ^~~ min.cpp:11:36: error: call to non-=E2=80=98constexpr=E2=80=99 function =E2= =80=98ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::::(ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::&&)=E2=80=99 : A{std::forward(a)} ^ min.cpp:21:46: note: =E2=80=98ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::::(ns::frobnicate(T&&) [with T =3D ns::Bar, ns:: >]::&&)=E2=80=99 is not= usable as a =E2=80=98constexpr=E2=80=99 function because: return [val =3D std::forward(val)] {}; ^ min.cpp:21:46: error: use of =E2=80=98this=E2=80=99 in a constant expression System info (from running `g++-8 -v`): Using built-in specs. COLLECT_GCC=3Dg++-8 COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 8.1.0-5ubuntu1~16.04' --with-bugurl=3Dfile:///usr/share/doc/gcc-8/README.Bu= gs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --program-suffix=3D-8 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04)=20 If this is not a bug in GCC, but the code is invalid, perhaps the diagnostic could be improved. The diagnostics end in a lambda, saying "use of this in a constant expression", which is confusing, considering that the lambda is no= t in a context where `this` is valid and `this` does not appear to be used there. >>From gcc-bugs-return-612870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 05:00:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20045 invoked by alias); 16 Aug 2018 05:00:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11170 invoked by uid 48); 16 Aug 2018 05:00:39 -0000 From: "r030t1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86971] New: -Wabi warns it will not warn about anything. Date: Thu, 16 Aug 2018 05:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: r030t1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01159.txt.bz2 Content-length: 671 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86971 Bug ID: 86971 Summary: -Wabi warns it will not warn about anything. Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: r030t1 at gmail dot com Target Milestone: --- Noticed while compiling GCC 8.2.0: cc1plus: warning: -Wabi won't warn about anything [-Wabi] This isn't the most pressing issue, but I think the wording should be modif= ied; perhaps: cc1plus: warning: -Wabi won't warn about anything else [-Wabi] >>From gcc-bugs-return-612871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 06:58:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109324 invoked by alias); 16 Aug 2018 06:58:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109287 invoked by uid 48); 16 Aug 2018 06:58:22 -0000 From: "aes368 at cornell dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86972] New: Incorrect array-bounds warning with -O2 when creating pointer from array Date: Thu, 16 Aug 2018 06:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aes368 at cornell dot edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01160.txt.bz2 Content-length: 870 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86972 Bug ID: 86972 Summary: Incorrect array-bounds warning with -O2 when creating pointer from array Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: aes368 at cornell dot edu Target Milestone: --- int *p; int main() { int a[1]; p =3D a - 1; } The above code raises the warning: warning: array subscript -1 is below array bounds of =E2=80=98int [1]=E2=80= =99 [-Warray-bounds] p =3D a - 1; ~~^~~ when compiled with gcc -O2 -Wall I see this both on 7.3.0 and 8.2.0. The subscript detected seems to always be the term added to a, though it do= es not raise a warning with 0 or +1. >>From gcc-bugs-return-612872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:02:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127677 invoked by alias); 16 Aug 2018 08:01:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66714 invoked by uid 48); 16 Aug 2018 08:00:36 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/83428] Static initialization and struct with constexpr ctor Date: Thu, 16 Aug 2018 08:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01161.txt.bz2 Content-length: 1558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83428 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #4 from Jonathan Wakely --- (In reply to Aliaksei Kandratsenka from comment #3) > constructor is defined after variable in this example. I am not sure this > real bug. Agreed. If we use Clang and add its require_constant_initialization attribu= te to the variable definition it tells us: 83428.cc:20:54: error: variable does not have a constant initializer __attribute__((require_constant_initialization)) S2 objX; ^~~~ 83428.cc:20:17: note: required by 'require_constant_initialization' attribu= te here __attribute__((require_constant_initialization)) S2 objX; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 83428.cc:12:7: note: undefined constructor 'S1' cannot be used in a constant expression : m_tabS1() ^ 83428.cc:20:54: note: in call to 'S2()' __attribute__((require_constant_initialization)) S2 objX; ^ 83428.cc:3:15: note: declared here constexpr S1 (); ^ 1 error generated. If the S1::S1() constructor is defined before the definition of objX then C= lang doesn't warn and GCC doesn't use dynamic initialization. >>From gcc-bugs-return-612873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:16:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39235 invoked by alias); 16 Aug 2018 08:15:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36122 invoked by uid 48); 16 Aug 2018 08:15:14 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86973] New: [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Thu, 16 Aug 2018 08:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01162.txt.bz2 Content-length: 2187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 Bug ID: 86973 Summary: [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxi= n at gcc dot gnu.org Target Milestone: --- Following ICEs starting from r222173: $ cat ice.i __attribute__((sysv_abi)) void a(__attribute__((__vector_size__(8 * sizeof(double)))) double b, __builtin_va_list c) { __builtin_va_arg(c, int); } $ gcc -fsanitize=3Dthread -c -mabi=3Dms -mavx512f ice.i during RTL pass: expand ice.i: In function =E2=80=98a=E2=80=99: ice.i:3:24: internal compiler error: in expand_call, at calls.c:4217 3 | __builtin_va_list c) { | ^ 0x89d231 expand_call(tree_node*, rtx_def*, int) /home/marxin/Programming/gcc/gcc/calls.c:4215 0x88d4f5 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /home/marxin/Programming/gcc/gcc/builtins.c:8122 0x9b9e81 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:10911 0x8afb99 expand_expr /home/marxin/Programming/gcc/gcc/expr.h:279 0x8afb99 expand_call_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:2687 0x8afb99 expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.c:3575 0x8afb99 expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:3734 0x8b0a8f expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.c:5770 0x8b57f7 execute /home/marxin/Programming/gcc/gcc/cfgexpand.c:6373 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-612874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:18:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45954 invoked by alias); 16 Aug 2018 08:18:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44559 invoked by uid 48); 16 Aug 2018 08:16:37 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86973] [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Thu, 16 Aug 2018 08:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01163.txt.bz2 Content-length: 535 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 Known to work| |5.4.0 Ever confirmed|0 |1 Known to fail| |6.4.0, 7.3.0, 8.2.0, 9.0 >>From gcc-bugs-return-612875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:24:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105907 invoked by alias); 16 Aug 2018 08:24:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88693 invoked by uid 48); 16 Aug 2018 08:23:37 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/19315] document undocumented extension that allows code where variable is not emitted in the asm Date: Thu, 16 Aug 2018 08:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.0.0 X-Bugzilla-Keywords: accepts-invalid, documentation X-Bugzilla-Severity: minor X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01164.txt.bz2 Content-length: 428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D19315 Iain Sandoe changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #11 from Iain Sandoe --- fixed on trunk >>From gcc-bugs-return-612876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:26:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59694 invoked by alias); 16 Aug 2018 08:26:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15744 invoked by uid 48); 16 Aug 2018 08:25:16 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86971] -Wabi warns it will not warn about anything. Date: Thu, 16 Aug 2018 08:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01165.txt.bz2 Content-length: 752 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86971 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |libstdc++ --- Comment #1 from Jonathan Wakely --- No, the wording is correct, "anything else" would not make sense. You need to look at the full output: cc1plus: warning: -Wabi won't warn about anything [-Wabi] cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default cc1plus: note: use e.g. -Wabi=3D11 to warn about changes from GCC 7 This has already been fixed on trunk with r262824 >>From gcc-bugs-return-612877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:31:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96097 invoked by alias); 16 Aug 2018 08:31:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94180 invoked by uid 48); 16 Aug 2018 08:31:20 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86974] New: Support Clang's require_constant_initialization attribute Date: Thu, 16 Aug 2018 08:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01166.txt.bz2 Content-length: 1898 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86974 Bug ID: 86974 Summary: Support Clang's require_constant_initialization attribute Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- As documented at https://clang.llvm.org/docs/AttributeReference.html#require-constant-initia= lization-clang-require-constant-initialization This attribute is very useful to check that a global uses constant initialization, thus avoiding the Static Initialization Order Fiasco. For example, see PR 83428 where it was mistakenly believed that the variable should not be dynamically initialized, but actually there was a bug in the = code preventing it. If the variable will not get constant initialization Clang gives an error a= nd states the reason for dynamic init: 83428.cc:20:54: error: variable does not have a constant initializer __attribute__((require_constant_initialization)) S2 objX; ^~~~ 83428.cc:20:17: note: required by 'require_constant_initialization' attribu= te here __attribute__((require_constant_initialization)) S2 objX; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 83428.cc:12:7: note: undefined constructor 'S1' cannot be used in a constant expression : m_tabS1() ^ 83428.cc:20:54: note: in call to 'S2()' __attribute__((require_constant_initialization)) S2 objX; ^ 83428.cc:3:15: note: declared here constexpr S1 (); ^ 1 error generated. So this doesn't change the meaning of any code, it just acts as an assertion that a property is true. >>From gcc-bugs-return-612878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:42:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21129 invoked by alias); 16 Aug 2018 08:42:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20985 invoked by uid 48); 16 Aug 2018 08:42:44 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86975] New: wrong peephole optimization applied on nios2 and mips targets Date: Thu, 16 Aug 2018 08:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01167.txt.bz2 Content-length: 2200 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86975 Bug ID: 86975 Summary: wrong peephole optimization applied on nios2 and mips targets Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: already5chosen at yahoo dot com Target Milestone: --- On MIPS and Nios2 architectures logical instruction immediate (andi, ori) zero-extend immediate field. It means that on this targets small negative constants in logical expressions are more expensive than small (or not so small) positive constants. Peephole optimization phase should take it into account when selecting substitution patterns, but right now it's not smart enough. Code: int isE(int x) { return (x=3D=3D'e') || (x=3D=3D'E') ; } RISV32 (-Os -rv32im) : 00000000 : 0: fdf57513 andi a0,a0,-33 4: fbb50513 addi a0,a0,-69 8: 00153513 seqz a0,a0 c: 8082 ret That's good, because RISC-V sign-extends field in logical instructions which means that it has no problems with small integer constants. MIPS ( -Os -mips32r6 -mcompact-branches=3Dalways) : 00000000 : 0: 2402ffdf li v0,-33 4: 00821024 and v0,a0,v0 8: 38420045 xori v0,v0,0x45 c: 2c420001 sltiu v0,v0,1 10: d81f0000 jrc ra Nios2 (-Os) : 00000000 : 0: 00bff7c4 movi r2,-33 4: 2084703a and r2,r4,r2 8: 10801160 cmpeqi r2,r2,69 c: f800283a ret That not so good. Both of them are sub-optimal.=20 These targets should use substitution pattern based on small positive const= ant. Like that: MIPS: 00000000 : 0: 34820020 ori v0,a0,0x20 4: 38420065 xori v0,v0,0x65 8: 2c420001 sltiu v0,v0,1 c: d81f0000 jrc ra Nios2: 00000000 : 0: 20800814 ori r2,r4,32 4: 10801960 cmpeqi r2,r2,101 8: f800283a ret >>From gcc-bugs-return-612879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:44:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32093 invoked by alias); 16 Aug 2018 08:44:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32019 invoked by uid 48); 16 Aug 2018 08:44:35 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86971] -Wabi warns it will not warn about anything. Date: Thu, 16 Aug 2018 08:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01168.txt.bz2 Content-length: 592 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86971 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #2 from Alexander Monakov --- I think the wording of the opening line can be made unambiguous, which is probably nice for translators. Can we change it to say e.g.: cc1plus: warning: -Wabi by itself does not issue any warnings >>From gcc-bugs-return-612880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:46:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37127 invoked by alias); 16 Aug 2018 08:46:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36630 invoked by uid 48); 16 Aug 2018 08:45:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86976] New: [meta-bug] Issues with std::time_get, std::time_put etc. Date: Thu, 16 Aug 2018 08:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter dependson target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01169.txt.bz2 Content-length: 1492 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86976 Bug ID: 86976 Summary: [meta-bug] Issues with std::time_get, std::time_put etc. Product: gcc Version: unknown Status: UNCONFIRMED Keywords: meta-bug Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Depends on: 9635, 9780, 45896, 71367, 71557, 78714, 86967 Target Milestone: --- This is a meta-bug for issues in the std::locale time category. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D9635 [Bug 9635] time_get<>::date_order unimplemented https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D9780 [Bug 9780] issues with time_get, time_put not being tied to correct _punct facet. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45896 [Bug 45896] [C++0x] Facet time_get not reading dates according to the IEEE = 1003 standard. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71367 [Bug 71367] std::time_get does not implement 'r' or 'p' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71557 [Bug 71557] time_get is case sensitive https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78714 [Bug 78714] std::get_time / std::time_get::get does not accept full month n= ame in %b https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86967 [Bug 86967] time_get fails to parse abbreviated weekday with %A format stri= ng >>From gcc-bugs-return-612881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:47:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43457 invoked by alias); 16 Aug 2018 08:47:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43408 invoked by uid 48); 16 Aug 2018 08:47:48 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86971] -Wabi warns it will not warn about anything. Date: Thu, 16 Aug 2018 08:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01170.txt.bz2 Content-length: 469 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86971 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Component|libstdc++ |c++ --- Comment #3 from Jonathan Wakely --- OK so let's change the component back to c++ then. >>From gcc-bugs-return-612882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:51:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46893 invoked by alias); 16 Aug 2018 08:51:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46703 invoked by uid 48); 16 Aug 2018 08:51:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86976] [meta-bug] Issues with std::time_get, std::time_put etc. Date: Thu, 16 Aug 2018 08:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on dependson everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01171.txt.bz2 Content-length: 873 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86976 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 Depends on| |79833, 84216, 77760 Ever confirmed|0 |1 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77760 [Bug 77760] get_time needs to set tm_wday amd tm_yday https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79833 [Bug 79833] std::put_time has the wrong values for 2 digit years https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84216 [Bug 84216] std::get_time fails to parse output from std::put_time, but strptime can parse them (c++11) >>From gcc-bugs-return-612883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 08:58:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55343 invoked by alias); 16 Aug 2018 08:58:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55302 invoked by uid 48); 16 Aug 2018 08:58:01 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/83906] Random FAIL: libstdc++-prettyprinters/80276.cc whatis p4 Date: Thu, 16 Aug 2018 08:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01172.txt.bz2 Content-length: 291 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83906 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|8.3 |--- >>From gcc-bugs-return-612884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 09:03:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113370 invoked by alias); 16 Aug 2018 09:03:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113317 invoked by uid 48); 16 Aug 2018 09:03:49 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/83615] A reference binding involving a qualification conversion is rejected Date: Thu, 16 Aug 2018 09:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01173.txt.bz2 Content-length: 402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83615 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 Ever confirmed|0 |1 >>From gcc-bugs-return-612885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 09:05:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120166 invoked by alias); 16 Aug 2018 09:05:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120090 invoked by uid 48); 16 Aug 2018 09:05:15 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/83607] std::boyer_moore_searcher is slow searching through arrays of std::byte Date: Thu, 16 Aug 2018 09:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01174.txt.bz2 Content-length: 564 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83607 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.0 --- Comment #7 from Jonathan Wakely --- I'm no longer planning to backport this to gcc-7-branch. It's fixed for GCC= 8.1 and later. >>From gcc-bugs-return-612886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 09:08:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123214 invoked by alias); 16 Aug 2018 09:08:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123137 invoked by uid 48); 16 Aug 2018 09:08:37 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86972] [6/7/8/9 Regression] Incorrect array-bounds warning with -O2 when creating pointer from array Date: Thu, 16 Aug 2018 09:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01175.txt.bz2 Content-length: 949 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86972 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 CC| |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Summary|Incorrect array-bounds |[6/7/8/9 Regression] |warning with -O2 when |Incorrect array-bounds |creating pointer from array |warning with -O2 when | |creating pointer from array Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Started with Richi's r222146. >>From gcc-bugs-return-612887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 09:13:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127596 invoked by alias); 16 Aug 2018 09:13:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127535 invoked by uid 48); 16 Aug 2018 09:13:44 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86745] [9 regression] gcc.target/i386/avx-cvt-2.c etc. FAIL on 64-bit x86 Date: Thu, 16 Aug 2018 09:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01176.txt.bz2 Content-length: 899 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86745 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-16 Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail do= t com Ever confirmed|0 |1 --- Comment #3 from Uro=C5=A1 Bizjak --- Created attachment 44550 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44550&action=3Dedit Proposed patch The combine is now able to combine memory operand with the instruction, creating: vcvtps2pd f(%rip), %ymm0 This doesn't match the pattern. The matching pattern is too tight, attached patch "fixes" the PR. >>From gcc-bugs-return-612888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 09:44:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57909 invoked by alias); 16 Aug 2018 09:44:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57835 invoked by uid 48); 16 Aug 2018 09:44:02 -0000 From: "joao at neto dot pt" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86977] New: [g++ 8.1.0-5ubuntu1~14.04] error: static assertion failed: unordered container must have the same value_type as its allocator Date: Thu, 16 Aug 2018 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joao at neto dot pt X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01177.txt.bz2 Content-length: 5749 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86977 Bug ID: 86977 Summary: [g++ 8.1.0-5ubuntu1~14.04] error: static assertion failed: unordered container must have the same value_type as its allocator Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: joao at neto dot pt Target Milestone: --- **I'm not sure this is a bug; but I couldn't find alternate root cause. Sor= ry if it's not!** The following code can be compiled successfully in `g++-6` and `g++-7`, but= not in `g++-8`, which results in an error: ``` In file included from /usr/include/c++/8/unordered_map:46, from /usr/include/c++/8/functional:61, from test.cpp:3: /usr/include/c++/8/bits/hashtable.h: In instantiation of =E2=80=98class std::_Hashtable, boost::interprocess::allocator, boost::interprocess::iset_index> >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >=E2=80=99: /usr/include/c++/8/bits/unordered_map.h:105:18: required from =E2=80=98cl= ass std::unordered_map, std::equal_to, boost::interprocess::allocator, boost::interprocess::iset_index> > >=E2=80=99 test.cpp:30:15: required from here /usr/include/c++/8/bits/hashtable.h:192:21: error: static assertion failed: unordered container must have the same value_type as its allocator static_assert(is_same{}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` ``` #include #include #include #include #include #include #include #include #include class Thing { public: volatile Thing *_parent; explicit Thing(Thing *parent) : _parent(parent) {} }; namespace ipc =3D boost::interprocess; using Segment =3D ipc::managed_shared_memory; using Manager =3D Segment::segment_manager; template using Alloc =3D ipc::allocator; template , typename KE= q =3D std::equal_to> using HashMap =3D std::unordered_map>; typedef HashMap ThingMap; int main() { boost::interprocess::shared_memory_object::remove("test"); Segment my_segment{ipc::create_only, "test", 1ul<<40}; Manager *my_manager =3D my_segment.get_segment_manager(); ThingMap *my_map =3D my_segment.find_or_construct("my_map")(my_manager); my_map->emplace(123, nullptr); printf("Hello world\n"); return 0; } ``` The code can be seen on GitHub, and there is a Travis build reproducing the issue. I've posted on StackOverflow but got no replies. https://github.com/joaomlneto/clang-tidbit https://travis-ci.com/joaomlneto/clang-tidbit/builds/81896897 https://stackoverflow.com/questions/51858747/compilation-tidbits-on-g-clang= -using-libboost-g8-compilation-fails-wh Using `libboost 1.54` (default for `apt-get install libboost-all-dev` in Ub= untu 14.04). Compiled with `$(CXX) -std=3Dc++17 $^ -o $@ -pthread -ldl -rdynamic -lrt` If I change to `-std=3Dgnu++17`, then it works. https://travis-ci.com/joaomlneto/clang-tidbit/builds/81897835 Below is information on the system (although is a pretty standard Ubuntu 14.04): ``` # g++-8 -v Using built-in specs. COLLECT_GCC=3Dg++-8 COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 8.1.0-5ubuntu1~14.04' --with-bugurl=3Dfile:///usr/share/doc/gcc-8/README.Bu= gs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --program-suffix=3D-8 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dgcc4-compatible --disable-libstdcxx-dual-abi --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32= =3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-= driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~14.04) ``` ``` # uname -a Linux d0710afa7fb5 4.15.0-30-generic #32-Ubuntu SMP Thu Jul 26 17:42:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux ``` ``` # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty ``` >>From gcc-bugs-return-612889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 09:53:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14508 invoked by alias); 16 Aug 2018 09:53:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14465 invoked by uid 48); 16 Aug 2018 09:53:01 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86977] [g++ 8.1.0-5ubuntu1~14.04] error: static assertion failed: unordered container must have the same value_type as its allocator Date: Thu, 16 Aug 2018 09:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01178.txt.bz2 Content-length: 811 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86977 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely --- (In reply to Jo=C3=A3o Neto from comment #0) > using HashMap =3D std::unordered_map>; This is invalid, the allocator's value type is not the same as the containe= r's value type (which is exactly what the error tells you!) GCC will accept it as an extension in -std=3Dgnu++17 mode, but you compiled= with -std=3Dc++17 which disables the non-standard extension. >>From gcc-bugs-return-612890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:12:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26864 invoked by alias); 16 Aug 2018 10:12:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26806 invoked by uid 48); 16 Aug 2018 10:11:57 -0000 From: "mateuszb at poczta dot onet.pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86447] gcc 9.0 from r262456 can't build cross compiler for mingw-w64 target Date: Thu, 16 Aug 2018 10:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mateuszb at poczta dot onet.pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01179.txt.bz2 Content-length: 186 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86447 --- Comment #1 from mateuszb at poczta dot onet.pl --- This bug is when you configure GCC with option --enable-fully-dynamic-string >>From gcc-bugs-return-612891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:13:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38139 invoked by alias); 16 Aug 2018 10:13:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38083 invoked by uid 48); 16 Aug 2018 10:12:57 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/78257] missing memcmp optimization with constant arrays Date: Thu, 16 Aug 2018 10:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01180.txt.bz2 Content-length: 460 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78257 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org --- Comment #7 from Martin Li=C5=A1ka --- Leaving unassigned as I'm not planning to working on that. >>From gcc-bugs-return-612892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:16:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47471 invoked by alias); 16 Aug 2018 10:16:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47415 invoked by uid 48); 16 Aug 2018 10:16:27 -0000 From: "joao at neto dot pt" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86977] [g++ 8.1.0-5ubuntu1~14.04] error: static assertion failed: unordered container must have the same value_type as its allocator Date: Thu, 16 Aug 2018 10:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joao at neto dot pt X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01181.txt.bz2 Content-length: 547 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86977 --- Comment #2 from Jo=C3=A3o Neto --- Hi Jonathan! Thanks for the quick reply! Two follow-up questions: (1) Shouldn't it be also flagged as an error in `gcc-6` and `gcc-7` with `-std=3Dc++17`? (2) How can I reliably find the node-type allocated by the map if I'd want = to use `-std=3Dc++17`? Isn't it implementation-defined? https://stackoverflow.com/questions/49736817/stdunordered-map-with-boostint= erprocess-allocator-in-shared-memory-drawbac/49738871#49738871 >>From gcc-bugs-return-612893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:16:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48663 invoked by alias); 16 Aug 2018 10:16:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48553 invoked by uid 55); 16 Aug 2018 10:16:54 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86022] TCB size calculated in ThreadDescriptorSize() is wrong for glibc-2.14 Date: Thu, 16 Aug 2018 10:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01182.txt.bz2 Content-length: 717 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86022 --- Comment #6 from Martin Li=C5=A1ka --- Author: marxin Date: Thu Aug 16 10:16:17 2018 New Revision: 263579 URL: https://gcc.gnu.org/viewcvs?rev=3D263579&root=3Dgcc&view=3Drev Log: Backport r263246 2018-08-16 Martin Liska Backport from mainline 2018-08-02 Martin Liska PR sanitizer/86022 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize= ): Cherry-pick compiler-rt revision 338606. Modified: branches/gcc-8-branch/libsanitizer/ChangeLog =20=20=20 branches/gcc-8-branch/libsanitizer/sanitizer_common/sanitizer_linux_libcdep= .cc >>From gcc-bugs-return-612894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:17:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49413 invoked by alias); 16 Aug 2018 10:17:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49333 invoked by uid 55); 16 Aug 2018 10:17:05 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/86817] [8 Regression] Misleading warning in gcov since r254672 Date: Thu, 16 Aug 2018 10:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01183.txt.bz2 Content-length: 693 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86817 --- Comment #2 from Martin Li=C5=A1ka --- Author: marxin Date: Thu Aug 16 10:16:32 2018 New Revision: 263580 URL: https://gcc.gnu.org/viewcvs?rev=3D263580&root=3Dgcc&view=3Drev Log: Backport r263248 2018-08-16 Martin Liska Backport from mainline 2018-08-02 Martin Liska PR gcov-profile/86817 * gcov.c (process_all_functions): New function. (main): Call it. (process_file): Move functions processing to process_all_functions. Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/gcov.c >>From gcc-bugs-return-612896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:19:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63235 invoked by alias); 16 Aug 2018 10:19:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63125 invoked by uid 48); 16 Aug 2018 10:19:45 -0000 From: "joao at neto dot pt" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86977] [g++ 8.1.0-5ubuntu1~14.04] error: static assertion failed: unordered container must have the same value_type as its allocator Date: Thu, 16 Aug 2018 10:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joao at neto dot pt X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01185.txt.bz2 Content-length: 380 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86977 --- Comment #3 from Jo=C3=A3o Neto --- >=20 > (2) How can I reliably find the node-type allocated by the map if I'd want > to use `-std=3Dc++17`? Isn't it implementation-defined? >=20 Please ignore my stupidity. c++17 has a `node_type` The other one I think is relevant though. (Sorry for the spam!) >>From gcc-bugs-return-612897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:19:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63862 invoked by alias); 16 Aug 2018 10:19:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63209 invoked by uid 55); 16 Aug 2018 10:19:50 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86022] TCB size calculated in ThreadDescriptorSize() is wrong for glibc-2.14 Date: Thu, 16 Aug 2018 10:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01186.txt.bz2 Content-length: 717 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86022 --- Comment #7 from Martin Li=C5=A1ka --- Author: marxin Date: Thu Aug 16 10:19:16 2018 New Revision: 263581 URL: https://gcc.gnu.org/viewcvs?rev=3D263581&root=3Dgcc&view=3Drev Log: Backport r263246 2018-08-16 Martin Liska Backport from mainline 2018-08-02 Martin Liska PR sanitizer/86022 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize= ): Cherry-pick compiler-rt revision 338606. Modified: branches/gcc-7-branch/libsanitizer/ChangeLog =20=20=20 branches/gcc-7-branch/libsanitizer/sanitizer_common/sanitizer_linux_libcdep= .cc >>From gcc-bugs-return-612895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:19:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62401 invoked by alias); 16 Aug 2018 10:19:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62374 invoked by uid 48); 16 Aug 2018 10:19:24 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/86817] [8 Regression] Misleading warning in gcov since r254672 Date: Thu, 16 Aug 2018 10:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01184.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86817 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Martin Li=C5=A1ka --- Fixed. >>From gcc-bugs-return-612898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:20:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65057 invoked by alias); 16 Aug 2018 10:20:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64920 invoked by uid 48); 16 Aug 2018 10:20:33 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/86022] TCB size calculated in ThreadDescriptorSize() is wrong for glibc-2.14 Date: Thu, 16 Aug 2018 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01187.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86022 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #8 from Martin Li=C5=A1ka --- Fixed. >>From gcc-bugs-return-612899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:29:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75480 invoked by alias); 16 Aug 2018 10:29:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 75420 invoked by uid 48); 16 Aug 2018 10:28:59 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/81397] mistakes in .opt files not detected Date: Thu, 16 Aug 2018 10:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01188.txt.bz2 Content-length: 519 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81397 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org --- Comment #3 from Martin Li=C5=A1ka --- As we're staying with Awk, for now I'm planning to work on that. >>From gcc-bugs-return-612900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:29:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76218 invoked by alias); 16 Aug 2018 10:29:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76159 invoked by uid 48); 16 Aug 2018 10:29:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86977] [g++ 8.1.0-5ubuntu1~14.04] error: static assertion failed: unordered container must have the same value_type as its allocator Date: Thu, 16 Aug 2018 10:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01189.txt.bz2 Content-length: 928 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86977 --- Comment #4 from Jonathan Wakely --- (In reply to Jo=C3=A3o Neto from comment #2) > Hi Jonathan! Thanks for the quick reply! >=20 > Two follow-up questions: >=20 > (1) Shouldn't it be also flagged as an error in `gcc-6` and `gcc-7` with > `-std=3Dc++17`? No because the static assertion was only added in gcc 8. > (2) How can I reliably find the node-type allocated by the map if I'd want > to use `-std=3Dc++17`? Isn't it implementation-defined? (In reply to Jo=C3=A3o Neto from comment #3) > Please ignore my stupidity. c++17 has a `node_type` No, that's nothing to do with it. Read the error message! Or read comment 1! The allocator's value type must be the same as the container's VALUE TYPE. = Not its node type. I really don't know how to make the static assertion any clearer. The container's value_type is std::pair. >>From gcc-bugs-return-612902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:31:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79834 invoked by alias); 16 Aug 2018 10:31:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79675 invoked by uid 48); 16 Aug 2018 10:31:27 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86545] [6/7/8/9 Regression] ICE in transfer_expr on invalid WRITE statement Date: Thu, 16 Aug 2018 10:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01191.txt.bz2 Content-length: 599 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86545 --- Comment #4 from janus at gcc dot gnu.org --- (In reply to janus from comment #1) > I guess the problem is the absence of the error message that one gets when > calling the specific function directly, without going through the generic > interface: >=20 > write(*,*) trim_string(s) ! correctly rejected > 1 > Error: Data transfer element at (1) cannot have ALLOCATABLE components > unless it is processed by a defined input/output procedure That error message comes from resolve_transfer (in resolve.c). >>From gcc-bugs-return-612901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:31:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79780 invoked by alias); 16 Aug 2018 10:31:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79672 invoked by uid 48); 16 Aug 2018 10:31:27 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52477] Wrong initialization order? __attribute__((constructor)) vs static data access Date: Thu, 16 Aug 2018 10:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01190.txt.bz2 Content-length: 180 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52477 --- Comment #13 from Martin Li=C5=A1ka --- Well, after we documented that can we simply close it? >>From gcc-bugs-return-612903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:33:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82714 invoked by alias); 16 Aug 2018 10:33:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82649 invoked by uid 55); 16 Aug 2018 10:33:37 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/78544] FAIL: gcc.dg/tree-prof/section-attr-*.c compilation, -fprofile-generate -D_PROFILE_GENERATE on darwin Date: Thu, 16 Aug 2018 10:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01192.txt.bz2 Content-length: 834 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78544 --- Comment #6 from Iain Sandoe --- Author: iains Date: Thu Aug 16 10:33:03 2018 New Revision: 263583 URL: https://gcc.gnu.org/viewcvs?rev=3D263583&root=3Dgcc&view=3Drev Log: fix section naming convention for Darwin in three tests 2018-08-15 Iain Sandoe gcc/testsuite: PR testsuite/78544 * gcc.dg/tree-prof/section-attr-1.c: Add Darwin-specific section attributes and matching. * gcc.dg/tree-prof/section-attr-2.c: Likewise. * gcc.dg/tree-prof/section-attr-3.c: Likewise. 6=20 Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-prof/section-attr-1.c trunk/gcc/testsuite/gcc.dg/tree-prof/section-attr-2.c trunk/gcc/testsuite/gcc.dg/tree-prof/section-attr-3.c >>From gcc-bugs-return-612904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:39:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102531 invoked by alias); 16 Aug 2018 10:39:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102451 invoked by uid 55); 16 Aug 2018 10:39:49 -0000 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84711] AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode. Date: Thu, 16 Aug 2018 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01193.txt.bz2 Content-length: 1956 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84711 --- Comment #17 from Tamar Christina --- Author: tnfchris Date: Thu Aug 16 10:39:13 2018 New Revision: 263584 URL: https://gcc.gnu.org/viewcvs?rev=3D263584&root=3Dgcc&view=3Drev Log: Update fall through pattern for FP16 patterns in ARM. The original issue comes from the fact that the code does ... foo (... bar) { return bar; } The expansion of the return statement causes GCC to try to return the value= in a register. GCC will try to emit the move then, from MEM to REG (due to the SSA temporary.). It checks for a mov optab for this which isn't available and then tries to do the move in bits using emit_move_multi_word. emit_move_multi_word will split the move into sub parts, but then needs to = get the sub parts and does this using subregs, but it's told it can't do subreg= s! The compiler is now stuck in an infinite loop. The way this is worked around in the back-end is that we have move patterns= in neon.md that usually just force the register instead of checking with the back-end. This prevents emit_move_multi_word from being needed. However the pattern for V4HF and V8HF were guarded by TARGET_NEON && TARGET_FP16. I don't believe the TARGET_FP16 guard to be needed, because the pattern doe= sn't actually generate code and requires another pattern for that, and a reg to = reg move should always be possible anyway. So allowing the force to register here is safe and it allows the compiler to generate a correct error instead of ICEing in= an infinite loop. gcc/ 2018-08-16 Tamar Christina PR target/84711 * config/arm/arm.c (arm_can_change_mode_class): Disallow subreg. * config/arm/neon.md (movv4hf, movv8hf): Refactored to.. (mov): ..this and enable unconditionally. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.c trunk/gcc/config/arm/neon.md >>From gcc-bugs-return-612905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 10:55:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8225 invoked by alias); 16 Aug 2018 10:55:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8131 invoked by uid 48); 16 Aug 2018 10:55:01 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86447] gcc 9.0 from r262456 can't build cross compiler for mingw-w64 target Date: Thu, 16 Aug 2018 10:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01194.txt.bz2 Content-length: 544 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86447 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |build Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-16 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Ever confirmed|0 |1 >>From gcc-bugs-return-612906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 11:31:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128637 invoked by alias); 16 Aug 2018 11:31:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128519 invoked by uid 48); 16 Aug 2018 11:30:54 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52477] Wrong initialization order? __attribute__((constructor)) vs static data access Date: Thu, 16 Aug 2018 11:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01195.txt.bz2 Content-length: 333 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52477 --- Comment #14 from Rainer Orth --- (In reply to Martin Li=C5=A1ka from comment #13) > Well, after we documented that can we simply close it? Quite the contrary: that documents a *current* limitation! See Jason's com= ment #6 for what needs to happen. >>From gcc-bugs-return-612907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 11:35:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9948 invoked by alias); 16 Aug 2018 11:35:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6761 invoked by uid 48); 16 Aug 2018 11:35:27 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/71641] 22_locale/time_get/get_date/wchar_t/4.cc runs failure if static linking Date: Thu, 16 Aug 2018 11:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status bug_file_loc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01196.txt.bz2 Content-length: 2390 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71641 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED URL| |https://sourceware.org/bugz | |illa/show_bug.cgi?id=3D231= 64 Resolution|--- |DUPLICATE --- Comment #2 from Jonathan Wakely --- There are two different issues causing this test to fail. It consistently f= ails on gcc20 in the compiler farm, even with dynamic linking, which might be the case for hppa-linux too. On gcc20 it fails because errorstate =3D=3D failbit, which happens because = the D_FMT string does not match what the testcase expects. On my Fedora system D_FMT for the zh_TW locale is "=E8=A5=BF=E5=85=83%Y=E5= =B9=B4%m=E6=9C=88%d=E6=97=A5" but on gcc20 (Debian 7.11) it's "%Y=E5=B9=B4%m=E6=9C=88%d=E6=97=A5". The static linking case depends on whether libc is linked statically or not, because it doesn't fail with -static-libstdc++, so this is the same as=20 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23164 (and so a duplicate= of PR 85732). Here's my simplified C testcase: #define _GNU_SOURCE #include #include #include int main() { locale_t loc =3D newlocale(1 << LC_ALL, "zh_TW.UTF-8", 0); const char* dfmt =3D nl_langinfo_l(D_FMT, loc); printf("date format: %s\n", dfmt); while (*dfmt) printf("\\x%x", (unsigned char)*dfmt++); printf("\n"); return 0; } On Fedora 27 (glibc 2.26) this prints: date format: =E8=A5=BF=E5=85=83%Y=E5=B9=B4%m=E6=9C=88%d=E6=97=A5 \xe8\xa5\xbf\xe5\x85\x83\x25\x59\xe5\xb9\xb4\x25\x6d\xe6\x9c\x88\x25\x64\xe= 6\x97\xa5 On Debian 7.11 (glibc 2.13) this prints: date format: %Y=E5=B9=B4%m=E6=9C=88%d=E6=97=A5 \x25\x59\xe5\xb9\xb4\x25\x6d\xe6\x9c\x88\x25\x64\xe6\x97\xa5 And on either system with static linking it fails to find the locale data: date format: %m/%d/%y \x25\x6d\x2f\x25\x64\x2f\x25\x79 So this is not a libstdc++ bug, it's a glibc bug. Debian's glibc 2.13 has b= ad locale data for zh_TW, and all versions of glibc have the static linking bu= g. *** This bug has been marked as a duplicate of bug 85732 *** >>From gcc-bugs-return-612908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 11:35:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10474 invoked by alias); 16 Aug 2018 11:35:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7492 invoked by uid 48); 16 Aug 2018 11:35:28 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/85732] use_facet>(mylocale) retrieving wrong locale information Date: Thu, 16 Aug 2018 11:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01197.txt.bz2 Content-length: 442 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85732 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cctsai57 at gmail dot com --- Comment #9 from Jonathan Wakely --- *** Bug 71641 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-612909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 11:44:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37464 invoked by alias); 16 Aug 2018 11:44:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37357 invoked by uid 48); 16 Aug 2018 11:44:41 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52477] Wrong initialization order? __attribute__((constructor)) vs static data access Date: Thu, 16 Aug 2018 11:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01198.txt.bz2 Content-length: 432 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52477 --- Comment #15 from Martin Li=C5=A1ka --- (In reply to Rainer Orth from comment #14) > (In reply to Martin Li=C5=A1ka from comment #13) > > Well, after we documented that can we simply close it? >=20 > Quite the contrary: that documents a *current* limitation! See Jason's > comment #6 > for what needs to happen. I see, thanks for clarification. >>From gcc-bugs-return-612910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 12:01:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58399 invoked by alias); 16 Aug 2018 12:01:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58077 invoked by uid 48); 16 Aug 2018 12:00:46 -0000 From: "h2+bugs at fsfe dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86978] New: constraints for friend functions ignored Date: Thu, 16 Aug 2018 12:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: c++-concepts X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: h2+bugs at fsfe dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01199.txt.bz2 Content-length: 1156 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86978 Bug ID: 86978 Summary: constraints for friend functions ignored Product: gcc Version: c++-concepts Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: h2+bugs at fsfe dot org Target Milestone: --- Take the following code: template struct S { template requires false friend void foobar(S, t2) {} }; int main() { foobar(S{}, int{}); } Obviously the friend function should never be available, but the code compi= les just fine, because apparently the constraints on friend functions are ignor= ed entirely? This took quite long to find, because there is no diagnostic of a= ny kind, just wrong behaviour. Tested with GCC 7.3 and 8.1 on godbolt.org I think this explains https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68093 = as well, because of the constraints are stripped from friend functions than two functions which differ only in constraints appear as redefinitions. >>From gcc-bugs-return-612911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 12:02:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60685 invoked by alias); 16 Aug 2018 12:02:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60600 invoked by uid 48); 16 Aug 2018 12:02:22 -0000 From: "snowfed at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80931] ICE on move_alloc in gimplify_expr, at gimplify.c:11335 Date: Thu, 16 Aug 2018 12:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: snowfed at mail dot ru X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01200.txt.bz2 Content-length: 186 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 --- Comment #5 from snowfed --- If you don't mind my asking, are you the Fortran book author Arjen Markus? >>From gcc-bugs-return-612912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 12:02:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61634 invoked by alias); 16 Aug 2018 12:02:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61539 invoked by uid 48); 16 Aug 2018 12:02:51 -0000 From: "h2+bugs at fsfe dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/68093] [concepts] friend function declarations that differ only by constraints are rejected as redefinitions Date: Thu, 16 Aug 2018 12:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: h2+bugs at fsfe dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01201.txt.bz2 Content-length: 588 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68093 Hannes Hauswedell changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |h2+bugs at fsfe dot org --- Comment #2 from Hannes Hauswedell --- Constraints on friend member functions seemed to be stripped entirely, therefore making two functions with only different constraints appear the s= ame: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86978 >>From gcc-bugs-return-612913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 12:05:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64038 invoked by alias); 16 Aug 2018 12:05:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64015 invoked by uid 48); 16 Aug 2018 12:05:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51618] synchronous futures are slow Date: Thu, 16 Aug 2018 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01202.txt.bz2 Content-length: 835 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51618 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 Ever confirmed|0 |1 --- Comment #5 from Jonathan Wakely --- Confirming as an enhancement request, though I'm not sure what (if anything= ) is possible here. Multiple threads can still call wait() on a std::future, and only the first should run the deferred function. The others need to synchro= nize on the invocation, and the completion. We should at least investigate and see if there's any improvement that can = be made. >>From gcc-bugs-return-612914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 12:09:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70182 invoked by alias); 16 Aug 2018 12:09:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70119 invoked by uid 55); 16 Aug 2018 12:09:29 -0000 From: "arjen.markus895 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80931] ICE on move_alloc in gimplify_expr, at gimplify.c:11335 Date: Thu, 16 Aug 2018 12:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus895 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01203.txt.bz2 Content-length: 515 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 --- Comment #6 from Arjen Markus --- Yes, I am :). Regards, Arjen 2018-08-16 14:02 GMT+02:00 snowfed at mail dot ru : > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 > > --- Comment #5 from snowfed --- > If you don't mind my asking, are you the Fortran book author Arjen Markus? > > -- > You are receiving this mail because: > You are on the CC list for the bug. >>From gcc-bugs-return-612915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 12:21:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68468 invoked by alias); 16 Aug 2018 12:21:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61944 invoked by uid 48); 16 Aug 2018 12:20:55 -0000 From: "sven.koehler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Thu, 16 Aug 2018 12:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: sven.koehler at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01204.txt.bz2 Content-length: 1131 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 --- Comment #3 from Sven --- I'm not familiar with GCC internals. So my following comments may be comple= tely off. This has been classified as a "missed optimization". I would not expect the optimizer to change 4 ldrb into a single ldr. This seems like a code genera= tion issue to me, not like an optimization issue. As can be seen with -O0, the aligned big endian access uses a single ldr but the unaligned big endian ac= cess uses the 4 ldrb. It seems gcc behaves like this: if (big_endian_access) { if (aligned_access) { issue "ldr" issue "rev" } else {=20 issue 4 "ldrb" in big-endian order } } else { if (aligned_access || arch_supports_unaligned) { issue "ldr" } else { issue 4 "ldrb" in little-endian order } } When instead, gcc should behave like this: if (aligned_access || arch_supports_unaligned) { issue "ldr" if (big_endian_access) { issue "rev" } } else { if (big_endian_access) { issue 4 "ldrb" in big-endian order } else { issue 4 "ldrb" in little-endian order } } >>From gcc-bugs-return-612916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:11:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37131 invoked by alias); 16 Aug 2018 13:11:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34434 invoked by uid 48); 16 Aug 2018 13:11:10 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] [8/9 Regression] BUG with optimisation of select case statement in gfortran Date: Thu, 16 Aug 2018 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status cf_known_to_work keywords cf_reconfirmed_on everconfirmed short_desc target_milestone cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01205.txt.bz2 Content-length: 1084 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Status|UNCONFIRMED |NEW Known to work| |7.3.0 Keywords| |wrong-code Last reconfirmed| |2018-08-16 Ever confirmed|0 |1 Summary|BUG with optimisation of |[8/9 Regression] BUG with |select case statement in |optimisation of select case |gfortran v8.x |statement in gfortran Target Milestone|--- |8.3 Known to fail| |8.2.0, 9.0 --- Comment #5 from Dominique d'Humieres --- The bug appeared between revisions r251624 (2017-09-03, OK) and r251946 (2017-09-10, wrong code). >>From gcc-bugs-return-612917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:30:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9249 invoked by alias); 16 Aug 2018 13:30:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8770 invoked by uid 48); 16 Aug 2018 13:30:25 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86979] New: [9 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2348 with -m32 on darwin Date: Thu, 16 Aug 2018 13:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01206.txt.bz2 Content-length: 1051 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86979 Bug ID: 86979 Summary: [9 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2348 with -m32 on darwin Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr Target Milestone: --- On x86_64-apple-darwin17the test gcc.c-torture/compile/pr69102.c fails with -m32 % gfc /opt/gcc/work/gcc/testsuite/gcc.c-torture/compile/pr69102.c -Og -fschedule-insns2 -fselective-scheduling2 -fno-tree-fre --param=3Dmax-sched-extend-regions-iters=3D2 -m32 during RTL pass: dwarf2 /opt/gcc/work/gcc/testsuite/gcc.c-torture/compile/pr69102.c: In function 'f= oo': /opt/gcc/work/gcc/testsuite/gcc.c-torture/compile/pr69102.c:23:1: internal compiler error: in maybe_record_trace_start, at dwarf2cfi.c:2348 23 | } | ^ Revision r263503 was OK, r263560 is not. >>From gcc-bugs-return-612918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:34:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37978 invoked by alias); 16 Aug 2018 13:34:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37927 invoked by uid 48); 16 Aug 2018 13:34:30 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86969] [Regression] ICE (in tsubst_copy) for a generic recursive lambda Date: Thu, 16 Aug 2018 13:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01207.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86969 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. >>From gcc-bugs-return-612919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:40:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122388 invoked by alias); 16 Aug 2018 13:40:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122320 invoked by uid 48); 16 Aug 2018 13:40:09 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86969] [8/9 Regression] ICE (in tsubst_copy) for a generic recursive lambda Date: Thu, 16 Aug 2018 13:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01208.txt.bz2 Content-length: 1095 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86969 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Summary|[Regression] ICE (in |[8/9 Regression] ICE (in |tsubst_copy) for a generic |tsubst_copy) for a generic |recursive lambda |recursive lambda --- Comment #2 from Marek Polacek --- commit 10b389b8b205392d32d6d181dc1dbc05cff4e311 Author: jason Date: Tue Apr 3 17:41:12 2018 +0000 PR c++/85149 - generic lambda and constexpr if. * pt.c (build_extra_args, add_extra_args): Split from tsubst_pack_expansion. (tsubst_expr) [IF_STMT]: Use them. * cp-tree.h (IF_STMT_EXTRA_ARGS): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259043 138bc75d-0d04-0410-961f-82ee72b054a4 >>From gcc-bugs-return-612920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:52:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40971 invoked by alias); 16 Aug 2018 13:52:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40876 invoked by uid 48); 16 Aug 2018 13:52:54 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/68093] [concepts] friend function declarations that differ only by constraints are rejected as redefinitions Date: Thu, 16 Aug 2018 13:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01209.txt.bz2 Content-length: 465 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68093 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 Ever confirmed|0 |1 >>From gcc-bugs-return-612921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:54:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42460 invoked by alias); 16 Aug 2018 13:54:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42358 invoked by uid 48); 16 Aug 2018 13:54:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86978] [concepts] constraints for friend functions ignored Date: Thu, 16 Aug 2018 13:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status version resolution short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01210.txt.bz2 Content-length: 744 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86978 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Version|c++-concepts |8.1.0 Resolution|--- |DUPLICATE Summary|constraints for friend |[concepts] constraints for |functions ignored |friend functions ignored --- Comment #1 from Jonathan Wakely --- Seems like a dup. I'll add your case to the other bug. *** This bug has been marked as a duplicate of bug 68093 *** >>From gcc-bugs-return-612922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:54:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42639 invoked by alias); 16 Aug 2018 13:54:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42387 invoked by uid 48); 16 Aug 2018 13:54:35 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/68093] [concepts] friend function declarations that differ only by constraints are rejected as redefinitions Date: Thu, 16 Aug 2018 13:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01211.txt.bz2 Content-length: 182 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68093 --- Comment #3 from Jonathan Wakely --- *** Bug 86978 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-612923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:57:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48153 invoked by alias); 16 Aug 2018 13:57:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48087 invoked by uid 48); 16 Aug 2018 13:57:00 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/68093] [concepts] friend function declarations that differ only by constraints are rejected as redefinitions Date: Thu, 16 Aug 2018 13:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01212.txt.bz2 Content-length: 339 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68093 --- Comment #4 from Jonathan Wakely --- This is the accepts-invalid example from PR 86978: template struct S { template requires false friend void foobar(S, t2) {} }; int main() { foobar(S{}, int{}); } >>From gcc-bugs-return-612925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:59:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53969 invoked by alias); 16 Aug 2018 13:59:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 53934 invoked by uid 48); 16 Aug 2018 13:59:54 -0000 From: "neeraj.sharma at alumni dot iitg.ernet.in" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86980] New: Lambda function with return type rvalue reference dtor issue Date: Thu, 16 Aug 2018 13:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: neeraj.sharma at alumni dot iitg.ernet.in X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01214.txt.bz2 Content-length: 3191 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86980 Bug ID: 86980 Summary: Lambda function with return type rvalue reference dtor issue Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: neeraj.sharma at alumni dot iitg.ernet.in Target Milestone: --- Created attachment 44551 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44551&action=3Dedit preprocessed file for bug ## Summary The following code misbehaves as the destructor is called before move ctor = (see the console output further below). I not sure as to what is going wrong her= e! // --- auto f =3D []() -> Traceable&& { Traceable tmp; return std::move(tmp); }; // compiler will call move ctor here because the // anonymous function above returns a lvalue // // Note: One ctor, one move ctor and two dtor invoked Traceable a =3D f(); // x-- ## Console output [0x7ffe7d335ca7] ctor Traceable [0x7ffe7d335ca7] dtor Traceable [0x7ffe7d335cd7] move ctor Traceable, &other =3D 0x7ffe7d335ca7 [0x7ffe7d335cd7] dtor Traceable ## Workaround If I remove the return type then things work as expected. // --- auto f =3D []() { Traceable tmp; return std::move(tmp); }; // compiler will call move ctor here because the // anonymous function above returns a lvalue // // Note: One ctor, one move ctor and two dtor invoked Traceable a =3D f(); // x-- ## GCC Version Information Using built-in specs. COLLECT_GCC=3Dg++-8 COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none OFFLOAD_TARGET_DEFAULT=3D1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 8.1.0-5ubuntu1~16.04' --with-bugurl=3Dfile:///usr/share/doc/gcc-8/README.Bu= gs --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=3D/u= sr --with-gcc-major-version-only --program-suffix=3D-8 --program-prefix=3Dx86_64-linux-gnu- --enable-shared --enable-linker-build-= id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04) ## Build Command g++-8 -save-temps -std=3Dc++17 -Wall -Wextra -g -I include/ -I /usr/local/i= nclude -MP -MMD bug.cpp Note: No compiler warnings or errors were reported by the above command. >>From gcc-bugs-return-612924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 13:59:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50062 invoked by alias); 16 Aug 2018 13:59:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50001 invoked by uid 48); 16 Aug 2018 13:59:06 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/81849] Size of automatic array argument specified by host-associated variable. Date: Thu, 16 Aug 2018 13:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01213.txt.bz2 Content-length: 446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81849 J=C3=BCrgen Reuter changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juergen.reuter at desy dot= de --- Comment #3 from J=C3=BCrgen Reuter --- Confirmed. Still present in gfortran 9.0. >>From gcc-bugs-return-612926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 14:33:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65161 invoked by alias); 16 Aug 2018 14:33:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64893 invoked by uid 55); 16 Aug 2018 14:32:52 -0000 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86640] [8/9 regression] ICE in combine Date: Thu, 16 Aug 2018 14:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01215.txt.bz2 Content-length: 839 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86640 --- Comment #13 from Tamar Christina --- Author: tnfchris Date: Thu Aug 16 14:32:18 2018 New Revision: 263589 URL: https://gcc.gnu.org/viewcvs?rev=3D263589&root=3Dgcc&view=3Drev Log: Backporting two Arm fixes from mainline fixing PR86640 gcc/testsuite/ 2018-07-31 Segher Boessenkool PR target/86640 * gcc.target/arm/pr86640.c: New testcase. gcc/ 2018-07-31 Segher Boessenkool PR target/86640 * gcc.target/arm/pr86640.c: New testcase. Added: branches/gcc-8-branch/gcc/testsuite/gcc.target/arm/pr86640.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/arm/arm.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 14:46:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12355 invoked by alias); 16 Aug 2018 14:46:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12022 invoked by uid 48); 16 Aug 2018 14:45:43 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/25829] [F03] Asynchronous IO support Date: Thu, 16 Aug 2018 14:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: koenigni at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01216.txt.bz2 Content-length: 1407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D25829 --- Comment #54 from Thomas Koenig --- Grepping for IN in the execution traces and then running a diff reveals interesting things: IN: __libc_start_main IN: __libc_start_main IN: _dl_discover_osversion -IN: uname -IN: uname +IN: __uname +IN: __uname IN: _dl_discover_osversion IN: _dl_discover_osversion IN: _dl_discover_osversion @@ -53,18 +53,18 @@ IN: __udivsi3 IN: __udivsi3 IN: __libc_setup_tls -IN: sbrk -IN: sbrk +IN: __sbrk +IN: __sbrk IN: __brk IN: __brk IN: __brk -IN: sbrk -IN: sbrk -IN: sbrk -IN: sbrk -IN: sbrk -IN: sbrk -IN: sbrk +IN: __sbrk +IN: __sbrk +IN: __sbrk +IN: __sbrk +IN: __sbrk +IN: __sbrk +IN: __sbrk [...] @@ -445,12 +446,13 @@ IN: _gfortran_set_options IN: _gfortran_set_options IN: _gfortran_set_options -IN: bsd_signal -IN: bsd_signal +IN: ssignal +IN: ssignal IN: __bsd_signal.part.0 IN: __bsd_signal.part.0 -IN: __sigaction -IN: __sigaction +IN: sigaction +IN: sigaction +IN: sigaction IN: __libc_sigaction IN: __libc_sigaction IN: memcpy It seems that the test case is calling a different C library version with and without the patch; especially, it is using the bsd_signal function without the patch and ssignal with it. This is strange, to say the least, and points towards a basic problem with the OS, or the emulator... I am a bit at a loss of how to proceed. >>From gcc-bugs-return-612928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 14:51:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16298 invoked by alias); 16 Aug 2018 14:51:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16254 invoked by uid 48); 16 Aug 2018 14:51:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86980] Lambda function with return type rvalue reference dtor issue Date: Thu, 16 Aug 2018 14:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01217.txt.bz2 Content-length: 826 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86980 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely --- This is a bug in your code, not GCC. you're returning a reference to a local variable, which goes out of scope, leaving a dangling reference. When you don't give the lambda an explicit return type it returns by value,= so works correctly. You should just do: auto f =3D []() { Traceable tmp; return tmp; }; This returns by value and can elide the move, so is safer and faster. >>From gcc-bugs-return-612929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 15:04:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54601 invoked by alias); 16 Aug 2018 15:04:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54562 invoked by uid 48); 16 Aug 2018 15:04:31 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86981] New: Add Clang's -Wpessmizing-move warning Date: Thu, 16 Aug 2018 15:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01218.txt.bz2 Content-length: 890 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86981 Bug ID: 86981 Summary: Add Clang's -Wpessmizing-move warning Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- #include struct T { T() { } T(const T&) { } T(T&&) { } }; T f() { T t; return std::move(t); } Clang warns about this: m.cc:5:21: warning: moving a local object in a return statement prevents co= py elision [-Wpessimizing-move] T f() { T t; return std::move(t); } ^ m.cc:5:21: note: remove std::move call here T f() { T t; return std::move(t); } ^~~~~~~~~~ ~ 1 warning generated. >>From gcc-bugs-return-612930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 15:05:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55620 invoked by alias); 16 Aug 2018 15:05:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55527 invoked by uid 48); 16 Aug 2018 15:05:10 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67906] Missing warning about std::move without effect Date: Thu, 16 Aug 2018 15:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01219.txt.bz2 Content-length: 144 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67906 --- Comment #8 from Jonathan Wakely --- Kinda related: PR 86981 >>From gcc-bugs-return-612931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 15:07:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69275 invoked by alias); 16 Aug 2018 15:07:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69226 invoked by uid 48); 16 Aug 2018 15:07:47 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86981] Add Clang's -Wpessmizing-move warning Date: Thu, 16 Aug 2018 15:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01220.txt.bz2 Content-length: 481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86981 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-16 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-612932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 15:13:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93736 invoked by alias); 16 Aug 2018 15:13:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93677 invoked by uid 48); 16 Aug 2018 15:13:38 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86982] New: Make -Wreturn-local-addr know about std::move and std::forward Date: Thu, 16 Aug 2018 15:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01221.txt.bz2 Content-length: 1835 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86982 Bug ID: 86982 Summary: Make -Wreturn-local-addr know about std::move and std::forward Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- This fails to warn: #include int&& f() { int i =3D 0; return std::move(i); } The equivalent code using a static_cast to rvalue reference warns: move.cc: In function 'int&& f2()': move.cc:3:52: warning: reference to local variable 'i' returned [-Wreturn-local-addr] 3 | int&& f2() { int i =3D 0; return static_cast(i); } | ^ move.cc:3:18: note: declared here 3 | int&& f2() { int i =3D 0; return static_cast(i); } | ^ This leads to bugs in users' code, like PR 86980. As std::move is so fundamental to modern C++ I think it deserves special treatment by the front end, to ensure this warns. (The special handling mig= ht be useful for implementing PR 86981 as well). It would be great to do the same for std::forward, which has the same probl= em: #include int&& f() { int i =3D 0; return std::move(i); } int&& g() { int i =3D 0; return std::forward(i); } std::forward can also be used to return references to temporaries: int&& h() { long l =3D 0; return std::forward(l); } Again, the equivalent with a static_cast gives a warning: move.cc: In function 'int&& h2()': move.cc:5:53: warning: returning reference to temporary [-Wreturn-local-add= r] 5 | int&& h2() { long l =3D 0; return static_cast(l); } | >>From gcc-bugs-return-612933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 15:56:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30150 invoked by alias); 16 Aug 2018 15:56:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30055 invoked by uid 48); 16 Aug 2018 15:56:40 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86447] gcc 9.0 from r262456 can't build cross compiler for mingw-w64 target Date: Thu, 16 Aug 2018 15:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01222.txt.bz2 Content-length: 512 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86447 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #2 from Jonathan Wakely --- Should be fixed - thanks for the report. >>From gcc-bugs-return-612934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 15:56:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30906 invoked by alias); 16 Aug 2018 15:56:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30863 invoked by uid 55); 16 Aug 2018 15:56:54 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86447] gcc 9.0 from r262456 can't build cross compiler for mingw-w64 target Date: Thu, 16 Aug 2018 15:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01223.txt.bz2 Content-length: 807 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86447 --- Comment #3 from Jonathan Wakely --- Author: redi Date: Thu Aug 16 15:56:21 2018 New Revision: 263590 URL: https://gcc.gnu.org/viewcvs?rev=3D263590&root=3Dgcc&view=3Drev Log: Fix bootstrap with --enable-fully-dynamic-string PR libstdc++/86447 * src/c++11/cow-stdexcept.cc [_GLIBCXX_FULLY_DYNAMIC_STRING] (logic_error::logic_error(logic_error&&)) (logic_error::operator=3D(logic_error&&)) (runtime_error::runtime_error(runtime_error&&)) (runtime_error::operator=3D(runtime_error&&)): Copy strings instead= of moving, to avoid allocating empty reps for moved-from strings. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc >>From gcc-bugs-return-612935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 16:26:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125403 invoked by alias); 16 Aug 2018 16:26:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125312 invoked by uid 48); 16 Aug 2018 16:26:49 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/71641] 22_locale/time_get/get_date/wchar_t/4.cc runs failure if static linking Date: Thu, 16 Aug 2018 16:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01224.txt.bz2 Content-length: 311 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71641 --- Comment #3 from Jonathan Wakely --- (In reply to John David Anglin from comment #1) > Fails on hppa-linux with libc 2.25: Is that a Debian system too? Maybe we can figure out a condition to use for dg-xfail-if or dg-skip-if. >>From gcc-bugs-return-612936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 16:36:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12075 invoked by alias); 16 Aug 2018 16:36:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11966 invoked by uid 48); 16 Aug 2018 16:36:20 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86590] Codegen is poor when passing std::string by value with _GLIBCXX_EXTERN_TEMPLATE undefined Date: Thu, 16 Aug 2018 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01225.txt.bz2 Content-length: 641 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86590 --- Comment #30 from Jakub Jelinek --- The thing is that even with the foo that doesn't contain all those __builtin_constant_p 's after early inlining, we with -std=3Dc++17 -O3 don't inline for some reason _M_construct.constprop, while we do inline it with -std=3Dc++14. With -std=3Dc++14 -O3 we are considering inlining _M_construct.constprop 4 = times, into basic_string ctor twice and into foo twice, with -std=3Dc++17 -O3 only= 2 times, both into the ctor. Richard or Honza, can you please find out why the inliner doesn't consider inlining it into foo? >>From gcc-bugs-return-612937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 16:46:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37456 invoked by alias); 16 Aug 2018 16:46:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36917 invoked by uid 55); 16 Aug 2018 16:46:36 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Thu, 16 Aug 2018 16:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01226.txt.bz2 Content-length: 842 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 --- Comment #4 from joseph at codesourcery dot com --- Any unaligned access things that don't work for big-endian ARM are=20 probably fallout from the issues with big-endian NEON (NEON architectural=20 lane numbers are different from the architecture-independent lane numbers=20 in GNU C vector extensions and GCC IR, and GCC expects each machine mode=20 to have a single defined memory layout and a single defined layout in any=20 given register, and to be able to move between core and NEON registers,=20 and between core registers and memory, in the respective layouts used for=20 those registers, but some NEON loads and stores for big-endian don't work=20 with those expectations, so unaligned vector operations are limited for=20 big-endian ARM). >>From gcc-bugs-return-612938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 16:53:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56966 invoked by alias); 16 Aug 2018 16:53:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56879 invoked by uid 48); 16 Aug 2018 16:53:42 -0000 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86640] [8/9 regression] ICE in combine Date: Thu, 16 Aug 2018 16:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01227.txt.bz2 Content-length: 466 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86640 Tamar Christina changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #14 from Tamar Christina --- Fixed in trunk and backported to GCC-8 >>From gcc-bugs-return-612939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 17:07:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73540 invoked by alias); 16 Aug 2018 17:07:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73469 invoked by uid 55); 16 Aug 2018 17:07:47 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/70693] valgrind error in get_visual_column Date: Thu, 16 Aug 2018 17:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01228.txt.bz2 Content-length: 2931 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70693 --- Comment #10 from David Malcolm --- Author: dmalcolm Date: Thu Aug 16 17:07:15 2018 New Revision: 263595 URL: https://gcc.gnu.org/viewcvs?rev=3D263595&root=3Dgcc&view=3Drev Log: -Wmisleading-indentation: fix ICE in get_visual_column (PR c++/70693) PR c++/70693 reports a crash within -Wmisleading-indentation in get_visual_column, reading past the end of a source line. The issue occurs due to a stray carriage return aka '\r' aka ^M, occurring towards the end of line 35 of attachment 38289 - but not at the end itself. This carriage return confuses our line numbering: from that point in the file, the lexer (and thus location_t values) use line numbers that are one larger than those seen by input.c, "cat -n" and emacs. This discrepancy between the lexer's line numbering and input.c's line numbering leads to an out-of-range read in get_visual_column (trying to read column 8, to locate the first non-whitespace on the line containing "break;", but finding the next line, which is only 4 characters long). This patch fixes the ICE by adding a range check to get_visual_column before accessing the input.c line buffer. This is arguably papering over the root cause, but there are presumably other ways of triggering such an out-of-range read by writing to the source file after the lexer but before -Wmisleading-indentation, and we ought to be not ICE in the face of that. gcc/c-family/ChangeLog: PR c++/70693 * c-common.c (selftest::c_family_tests): Call selftest::c_indentation_c_tests. * c-common.h (selftest::c_indentation_c_tests): New decl. * c-indentation.c: Include "selftest.h". (next_tab_stop): Add "tab_width" param, rather than accessing cpp_opts. (get_visual_column): Likewise. Clarify comment. Bulletproof against reading past the end of the line. (get_first_nws_vis_column): Add "tab_width" param. (detect_intervening_unindent): Likewise. (should_warn_for_misleading_indentation): Read tab width from cpp_opts and pass around. (selftest::test_next_tab_stop): New test. (selftest::assert_get_visual_column_succeeds): New function. (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. (selftest::assert_get_visual_column_fails): New function. (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. (selftest::test_get_visual_column): New test. (selftest::c_indentation_c_tests): New function. gcc/testsuite/ChangeLog: PR c++/70693 * c-c++-common/Wmisleading-indentation-pr70693.c: New test. Added: trunk/gcc/testsuite/c-c++-common/Wmisleading-indentation-pr70693.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/c-family/c-common.h trunk/gcc/c-family/c-indentation.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-612941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 17:14:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98819 invoked by alias); 16 Aug 2018 17:14:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98574 invoked by uid 48); 16 Aug 2018 17:14:44 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86972] [6/7/8/9 Regression] Incorrect array-bounds warning with -O2 when creating pointer from array Date: Thu, 16 Aug 2018 17:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01230.txt.bz2 Content-length: 810 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86972 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #2 from Martin Sebor --- The result of pointer addition or subtraction must point at an existing ele= ment of an array or just past the last one, otherwise the behavior is undefined. In the test case in comment #0 the subtraction doesn't satisfy this require= ment and the warning correctly points that out. What makes you think otherwise? >>From gcc-bugs-return-612940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 17:14:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97832 invoked by alias); 16 Aug 2018 17:14:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97777 invoked by uid 48); 16 Aug 2018 17:14:24 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86911] [9 Regression] ICE in gcc/c-family/c-indentation.c:403 Date: Thu, 16 Aug 2018 17:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01229.txt.bz2 Content-length: 270 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86911 --- Comment #3 from David Malcolm --- Does r263595 fix the issue? (it relates to having stray carriage returns somewhere above in the file, leading to line-numbering becoming confused) >>From gcc-bugs-return-612942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 17:40:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58568 invoked by alias); 16 Aug 2018 17:40:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58469 invoked by uid 55); 16 Aug 2018 17:40:13 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/71641] 22_locale/time_get/get_date/wchar_t/4.cc runs failure if static linking Date: Thu, 16 Aug 2018 17:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01231.txt.bz2 Content-length: 538 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71641 --- Comment #4 from dave.anglin at bell dot net --- On 2018-08-16 12:26 PM, redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71641 > > --- Comment #3 from Jonathan Wakely --- > (In reply to John David Anglin from comment #1) >> Fails on hppa-linux with libc 2.25: > Is that a Debian system too? Yes.=C2=A0 Currently, running Debian sid/unstable with glibc 2.27. Some people run Gentoo.=C2=A0 Don't know if Gentoo is affected. >>From gcc-bugs-return-612943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 18:06:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115614 invoked by alias); 16 Aug 2018 18:06:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115546 invoked by uid 48); 16 Aug 2018 18:06:16 -0000 From: "neeraj.sharma at alumni dot iitg.ernet.in" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86980] Lambda function with return type rvalue reference dtor issue Date: Thu, 16 Aug 2018 18:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: neeraj.sharma at alumni dot iitg.ernet.in X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01232.txt.bz2 Content-length: 1282 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86980 --- Comment #2 from Neeraj --- (In reply to Jonathan Wakely from comment #1) > This is a bug in your code, not GCC. you're returning a reference to a lo= cal > variable, which goes out of scope, leaving a dangling reference. >=20 I was just playing with alternatives, hence tried return rvalue reference. = The larger question still remains, which is what is the return type in case of = the following? auto f =3D []() { Traceable tmp; return std::move(tmp); }; Traceable a =3D f(); Additionally, the above code retains the instance till the move is complete (see the console output below). // --- [MoveReturn] START [0x7ffe53dec857] ctor Traceable [0x7ffe53dec887] move ctor Traceable, &other =3D 0x7ffe53dec857 [0x7ffe53dec857] dtor Traceable [0x7ffe53dec887] dtor Traceable // x-- > When you don't give the lambda an explicit return type it returns by valu= e, > so works correctly. >=20 > You should just do: >=20 > auto f =3D []() { > Traceable tmp; > return tmp; > }; >=20 > This returns by value and can elide the move, so is safer and faster. I agree, but just curious to see possibilities with lambda function :) >>From gcc-bugs-return-612944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 18:23:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82514 invoked by alias); 16 Aug 2018 18:23:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82296 invoked by uid 55); 16 Aug 2018 18:23:43 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/71641] 22_locale/time_get/get_date/wchar_t/4.cc runs failure if static linking Date: Thu, 16 Aug 2018 18:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01233.txt.bz2 Content-length: 386 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71641 --- Comment #5 from dave.anglin at bell dot net --- On 2018-08-16 7:35 AM, redi at gcc dot gnu.org wrote: > So this is not a libstdc++ bug, it's a glibc bug. Debian's glibc 2.13 has= bad > locale data for zh_TW, and all versions of glibc have the static linking = bug. I vaguely recall that that this is a "political" issue. Dave >>From gcc-bugs-return-612945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 18:53:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118242 invoked by alias); 16 Aug 2018 18:53:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118173 invoked by uid 55); 16 Aug 2018 18:52:59 -0000 From: "uros at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86745] [9 regression] gcc.target/i386/avx-cvt-2.c etc. FAIL on 64-bit x86 Date: Thu, 16 Aug 2018 18:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: uros at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01234.txt.bz2 Content-length: 535 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86745 --- Comment #4 from uros at gcc dot gnu.org --- Author: uros Date: Thu Aug 16 18:52:26 2018 New Revision: 263598 URL: https://gcc.gnu.org/viewcvs?rev=3D263598&root=3Dgcc&view=3Drev Log: PR testsuite/86745 * gcc.target/i386/avx-cvt-2.c: Loosen scan-assembler strings. * gcc.target/i386/avx-cvt-2.c: Ditto. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/i386/avx-cvt-2.c trunk/gcc/testsuite/gcc.target/i386/avx2-cvt-2.c >>From gcc-bugs-return-612946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 18:56:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127340 invoked by alias); 16 Aug 2018 18:56:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127273 invoked by uid 48); 16 Aug 2018 18:56:43 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/86745] [9 regression] gcc.target/i386/avx-cvt-2.c etc. FAIL on 64-bit x86 Date: Thu, 16 Aug 2018 18:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status component resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01235.txt.bz2 Content-length: 488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86745 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Component|target |testsuite Resolution|--- |FIXED --- Comment #5 from Uro=C5=A1 Bizjak --- Fixed. >>From gcc-bugs-return-612947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 19:18:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128758 invoked by alias); 16 Aug 2018 19:18:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126369 invoked by uid 48); 16 Aug 2018 19:18:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/31413] FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test Date: Thu, 16 Aug 2018 19:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01236.txt.bz2 Content-length: 298 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D31413 --- Comment #25 from Jonathan Wakely --- The test is disabled unless the machine actually has the relevant locale installed: // { dg-require-namedlocale "zh_TW.UTF-8" } That will be why some systems show UNSUPPORTED. >>From gcc-bugs-return-612948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 19:21:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6076 invoked by alias); 16 Aug 2018 19:21:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5959 invoked by uid 48); 16 Aug 2018 19:21:03 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/71641] 22_locale/time_get/get_date/wchar_t/4.cc runs failure if static linking Date: Thu, 16 Aug 2018 19:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01237.txt.bz2 Content-length: 844 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71641 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D31413 --- Comment #6 from Jonathan Wakely --- Yes, Debian carries a patch for glibc: localedata/locale-zh_TW.diff That has a comment referring to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D352600 which has a comm= ent from one John David Anglin linking to our own PR 31413 :-) So since this bug is specifically about static linking (which is a glibc bu= g)=20 I'll move the discussion of the Debian FAIL back to PR 31413. >>From gcc-bugs-return-612950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 19:22:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10470 invoked by alias); 16 Aug 2018 19:22:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9749 invoked by uid 48); 16 Aug 2018 19:22:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/31413] FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test Date: Thu, 16 Aug 2018 19:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01239.txt.bz2 Content-length: 571 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D31413 --- Comment #26 from Jonathan Wakely --- This still fails on any Debian system, such as gcc20 in the compile farm. I= 'd like to either make it pass, or add dg-xfail-if or dg-skip-if to the test. Paolo, do you remember if this testcase was specifically testing the zh_TW locale, or just sing that as an example of a locale using wide characters? Maybe we can change it to a different locale that still tests the same code, but using a locale that has consistent localedata across distros? >>From gcc-bugs-return-612949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 19:22:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9014 invoked by alias); 16 Aug 2018 19:22:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8904 invoked by uid 48); 16 Aug 2018 19:22:20 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636 Date: Thu, 16 Aug 2018 19:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01238.txt.bz2 Content-length: 1092 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86519 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at gcc dot gnu.org --- Comment #18 from Rainer Orth --- (In reply to qinzhao from comment #17) > the patch has been committed as: >=20 > https://gcc.gnu.org/viewcvs/gcc?view=3Drevision&revision=3D263563 The commit message lacked the ChangeLog entry fragment and didns't otherwise contain the reference to PR testsuite/86519, so bugzilla didn't pick it up. What's worse, the patch caused the testcase to regress on 32-bit sparc: +FAIL: gcc.dg/strcmpopt_6.c scan-assembler-times memcmp 2 The file has sethi %hi(memcmp), %g1 jmp %g1 + %lo(memcmp) sethi %hi(memcmp), %g1 jmp %g1 + %lo(memcmp) while for sparcv9 there's only: call memcmp, 0 call memcmp, 0 Seems scan-assembler-times isn't reliable here. Rainer >>From gcc-bugs-return-612951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 19:41:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75137 invoked by alias); 16 Aug 2018 19:41:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74827 invoked by uid 48); 16 Aug 2018 19:41:09 -0000 From: "richard-gccbugzilla at metafoo dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86983] New: documentation inconsistent with always_inline diagnostics for computed goto Date: Thu, 16 Aug 2018 19:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01240.txt.bz2 Content-length: 2343 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86983 Bug ID: 86983 Summary: documentation inconsistent with always_inline diagnostics for computed goto Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: richard-gccbugzilla at metafoo dot co.uk Target Milestone: --- Per https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html a function containing a computed goto can be inlined (so long as no label within it is used to initialize a static variable): > The &&foo expressions for the same label might have different values if t= he containing function is inlined or cloned. If a program relies on them be= ing always the same, __attribute__((__noinline__,__noclone__)) should be us= ed to prevent inlining and cloning. If &&foo is used in a static variable i= nitializer, inlining and cloning is forbidden. However, applying __attribute__((__always_inline__)) to a function containi= ng a computed goto produces this diagnostic: > error: function 'void* f(void*)' can never be inlined because it contains= a computed goto ... which claims that a computed goto prevents inlining. (See https://godbolt.org/g/XFhwQq) Also, GCC warns on returning the address of a label from a function, which makes sense if different invocations of the same function can have different addresses for their labels (through inlining / cloning), but is a false positive on an example such as the one at that godbolt.org link otherwise. So, which is it? Is GCC reserving the right to inline functions containing computed gotos in some future version? (In which case, the always_inline diagnostic is somewh= ere between misleading and wrong, and should probably be weakened from "can nev= er be inlined" to something like "was not inlined".) Or has the computed goto rule been changed to "functions containing computed goto will never be inlined or cloned"? (In which case the documentation is wrong, and the warning on returning the address of a label seems questionab= le, at least for an enabled-by-default warning, since it warns on reasonable co= de and there doesn't seem to be a simple syntactic way to suppress the warning= .) >>From gcc-bugs-return-612952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 19:56:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96588 invoked by alias); 16 Aug 2018 19:56:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96483 invoked by uid 48); 16 Aug 2018 19:55:58 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86592] [9 regression] gcc.target/powerpc/p8-vec-xl-xst-v2.c fails starting with r261510 Date: Thu, 16 Aug 2018 19:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01241.txt.bz2 Content-length: 499 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86592 --- Comment #1 from Will Schmidt --- This should have cleared up once the gimple-folding support for unaligned l= oads and stores went in, and the instruction counts settled on the expected valu= es. commit c16f12a2dc14256226e85a9a9f82b54eb1de2187 Author: willschm Date: Mon Aug 13 18:13:20 2018 +0000 I'll keep an eye on this space to make sure. thanks, >>From gcc-bugs-return-612953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 20:18:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61038 invoked by alias); 16 Aug 2018 20:18:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60970 invoked by uid 48); 16 Aug 2018 20:18:52 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/78257] missing memcmp optimization with constant arrays Date: Thu, 16 Aug 2018 20:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01242.txt.bz2 Content-length: 415 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78257 --- Comment #8 from Martin Sebor --- With r263561 brace-enclosed initializers for constant character arrays are handled by transforming them into STRING_CSTs. It should be possible to al= so handle wide character types (wchar_t, char16_t, char32_t). Handling arrays= of arbitrary integers will probably take a different approach. >>From gcc-bugs-return-612954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 20:41:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94282 invoked by alias); 16 Aug 2018 20:41:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94220 invoked by uid 48); 16 Aug 2018 20:41:02 -0000 From: "cptjustice at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59847] cast to long makes compiler crash if using option pdp-11/10 Date: Thu, 16 Aug 2018 20:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cptjustice at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01243.txt.bz2 Content-length: 3133 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59847 Patrick Conlon changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cptjustice at gmail dot com --- Comment #1 from Patrick Conlon --- On gcc 9.0.0 20180808 (experimental) this code no longer give this error.=20 pdp11-aout-gcc no longer produces the sxt instruction with the -m10 option,= but still does for -m40 as it should. cptnapalm@oracle~/s/p/p/g/59847_cast_to_long_m10> pdp11-aout-gcc -v Using built-in specs. COLLECT_GCC=3Dpdp11-aout-gcc COLLECT_LTO_WRAPPER=3D/home/cptnapalm/opt/pdp11-aout/libexec/gcc/pdp11-aout= /9.0.0/lto-wrapper Target: pdp11-aout Configured with: /home/cptnapalm/src/gnu/gcc/configure --target=3Dpdp11-aout --prefix=3D/home/cptnapalm/opt/pdp11-aout --disable-libstdcxx --disable-nls --without-headers --enable-languages=3Dc : (reconfigured) /home/cptnapalm/src/gnu/gcc/configure --target=3Dpdp11-aout --prefix=3D/home/cptnapalm/opt/pdp11-aout --disable-libstdcxx --disable-nls --without-headers --enable-languages=3Dc --disable-libssp : (reconfigured) /home/cptnapalm/src/gnu/gcc/configure --target=3Dpdp11-aout --prefix=3D/home/cptnapalm/opt/pdp11-aout --disable-libstdcxx --disable-nls --without-headers --enable-languages=3Dc --disable-libssp20180808 (experime= ntal) Thread model: single gcc version 9.0.0 20180808 (experimental) (GCC) cptnapalm@oracle~/s/p/p/g/59847_cast_to_long_m10> pdp11-aout-gcc -m10 -S -o cast_to_long_m10.s cast_to_long_m10.c cast_to_long_m10.c:1:1: warning: return type defaults to 'int' [-Wimplicit-= int] test () ^~~~ cptnapalm@oracle~/s/p/p/g/59847_cast_to_long_m10> cat cast_to_long_m10.s .text .even .globl _test _test: mov r5,-(sp) mov sp,r5 add $-06,sp mov r2,-(sp) clr -04(r5) mov $012,-02(r5) mov $012,-06(r5) mov -06(r5),r0 mov r0,-02(r5) mov r0,r1 mov $017,r2 mov r0,r1 L_3: asr r1 dec r2 bne L_3 mov r1,-04(r5) nop mov (sp)+,r2 mov r5,sp mov (sp)+,r5 rts pc cptnapalm@oracle~/s/p/p/g/59847_cast_to_long_m10> pdp11-aout-gcc -m40 -S -o cast_to_long_m40.s cast_to_long_m10.c cast_to_long_m10.c:1:1: warning: return type defaults to 'int' [-Wimplicit-= int] test () ^~~~ cptnapalm@oracle~/s/p/p/g/59847_cast_to_long_m10> cat cast_to_long_m40.s .text .even .globl _test _test: mov r5,-(sp) mov sp,r5 add $-06,sp clr -04(r5) mov $012,-02(r5) mov $012,-06(r5) mov -06(r5),-02(r5) sxt -04(r5) nop mov r5,sp mov (sp)+,r5 rts pc cptnapalm@oracle~/s/p/p/g/59847_cast_to_long_m10> cat cast_to_long_m10.c test () { long a =3D 10; short b =3D 10; a =3D (long) b; } >>From gcc-bugs-return-612955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 20:51:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105069 invoked by alias); 16 Aug 2018 20:51:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104833 invoked by uid 48); 16 Aug 2018 20:51:53 -0000 From: "cptjustice at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/59942] pdp11-aout-gcc: PDP-11/10 code generation crashes when trying to do multiple shifts. Date: Thu, 16 Aug 2018 20:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cptjustice at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01244.txt.bz2 Content-length: 1330 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59942 Patrick Conlon changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cptjustice at gmail dot com --- Comment #1 from Patrick Conlon --- gcc version 9.0.0 20180808 (experimental) (GCC) no longer produces this compiler error. Output of pdp11-aout-gcc -m10... : .text .even .globl _main _main: mov r5,-(sp) mov sp,r5 add $-04,sp jsr pc,___main mov $023420,-02(r5) mov -02(r5),r0 mov $011,r1 mov -02(r5),r0 L_5: asr r0 dec r1 bne L_5 mov r0,-04(r5) clr r0 mov r5,sp mov (sp)+,r5 rts pc Output of -m40 option: .text .even .globl _main _main: mov r5,-(sp) mov sp,r5 add $-04,sp jsr pc,___main mov $023420,-02(r5) mov -02(r5),r0 ash $-011,r0 mov r0,-04(r5) clr r0 mov r5,sp mov (sp)+,r5 rts pc >>From gcc-bugs-return-612956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 21:03:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116819 invoked by alias); 16 Aug 2018 21:03:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116781 invoked by uid 48); 16 Aug 2018 21:03:07 -0000 From: "cptjustice at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84437] long long casting breaks PDP-11 with -m10 model option (includes trivial reproducer) Date: Thu, 16 Aug 2018 21:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cptjustice at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01245.txt.bz2 Content-length: 1461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84437 Patrick Conlon changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cptjustice at gmail dot com --- Comment #1 from Patrick Conlon --- gcc version 9.0.0 20180808 (experimental) (GCC) no longer produces this compiler error. Below is the output I got: cptnapalm@oracle~/s/p/p/g/84437 > cat long_long_m10.s .text .even .globl _x _x: mov r5,-(sp) mov sp,r5 add $-014,sp mov r2,-(sp) mov r3,-(sp) mov r4,-(sp) mov 06(r5),r0 mov r0,-02(r5) mov -02(r5),r4 mov r4,-06(r5) mov -02(r5),r4 mov $017,r0 mov r0,-04(r5) mov -02(r5),r4 mov -04(r5),r0 L_4: asr r4 dec r0 bne L_4 mov r4,-010(r5) mov r4,-012(r5) mov r4,-014(r5) mov 04(r5),r4 mov -014(r5),(r4) mov -012(r5),02(r4) mov -010(r5),04(r4) mov -06(r5),06(r4) mov 04(r5),r0 mov (sp)+,r4 mov (sp)+,r3 mov (sp)+,r2 mov r5,sp mov (sp)+,r5 rts pc >>From gcc-bugs-return-612957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 21:08:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124564 invoked by alias); 16 Aug 2018 21:08:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124029 invoked by uid 48); 16 Aug 2018 21:08:47 -0000 From: "cptjustice at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84438] Another code pattern that breaks PDP11 with -m10: including reproducer code Date: Thu, 16 Aug 2018 21:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cptjustice at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01246.txt.bz2 Content-length: 4788 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84438 Patrick Conlon changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cptjustice at gmail dot com --- Comment #1 from Patrick Conlon --- gcc version 9.0.0 20180808 (experimental) (GCC) does not give me this compi= ler error. pdp11-aout-gcc -m10 -S 43447_divide_tp_by_10_return_remainder.c -o 43447_divide_tp_by_10_return_remainder.s outputs: cat 43447_divide_tp_by_10_return_remainder.s .text .even _div10quickm: mov r5,-(sp) mov sp,r5 add $-020,sp mov r2,-(sp) mov r3,-(sp) mov 04(r5),r0 mov (r0),-04(r5) mov 02(r0),-02(r5) mov -04(r5),r0 mov -02(r5),r1 clc ror r0 ror r1 mov r0,-020(r5) mov r1,-016(r5) mov -04(r5),r0 mov -02(r5),r1 clc ror r0 ror r1 asr r0 ror r1 mov -020(r5),r2 mov -016(r5),r3 add r0,r2 add r1,r3 adc r2 mov r2,-010(r5) mov r3,-06(r5) mov -010(r5),r0 mov -06(r5),r1 mov $04,r2 mov -010(r5),r0 mov -06(r5),r1 L_7: clc ror r0 ror r1 dec r2 bne L_7 add r0,-010(r5) add r1,-06(r5) adc -010(r5) mov -010(r5),r0 mov -06(r5),r1 mov $010,r2 mov -010(r5),r0 mov -06(r5),r1 L_8: clc ror r0 ror r1 dec r2 bne L_8 add r0,-010(r5) add r1,-06(r5) adc -010(r5) mov -010(r5),r0 mov -06(r5),r1 mov $020,r2 mov -010(r5),r0 mov -06(r5),r1 L_9: clc ror r0 ror r1 dec r2 bne L_9 add r0,-010(r5) add r1,-06(r5) adc -010(r5) clc ror -010(r5) ror -06(r5) asr -010(r5) ror -06(r5) asr -010(r5) ror -06(r5) mov -010(r5),r0 mov -06(r5),r1 asl r1 rol r0 asl r1 rol r0 add -010(r5),r0 add -06(r5),r1 adc r0 asl r1 rol r0 mov -04(r5),r2 mov -02(r5),r3 sub r0,r2 sub r1,r3 sbc r2 mov r2,-014(r5) mov r3,-012(r5) mov -014(r5),r0 mov -012(r5),r1 mov $011,r2 mov -014(r5),r0 mov -012(r5),r1 L_10: clc ror r0 ror r1 dec r2 bne L_10 mov -010(r5),r2 mov -06(r5),r3 add r0,r2 add r1,r3 adc r2 mov r2,-04(r5) mov r3,-02(r5) mov 04(r5),r0 mov -04(r5),(r0) mov -02(r5),02(r0) asl -02(r5) rol -04(r5) mov -04(r5),r0 mov -02(r5),r1 asl r1 rol r0 asl r1 rol r0 add r0,-04(r5) add r1,-02(r5) adc -04(r5) mov 04(r5),r0 mov (r0),r0 mov 02(r0),r1 sub -04(r5),r0 sub -02(r5),r1 sbc r0 mov (sp)+,r3 mov (sp)+,r2 mov r5,sp mov (sp)+,r5 rts pc cptnapalm@oracle~/s/p/p/g/84438_alan_cox> pdp11-aout-gcc -v Using built-in specs. COLLECT_GCC=3Dpdp11-aout-gcc COLLECT_LTO_WRAPPER=3D/home/cptnapalm/opt/pdp11-aout/libexec/gcc/pdp11-aout= /9.0.0/lto-wrapper Target: pdp11-aout Configured with: /home/cptnapalm/src/gnu/gcc/configure --target=3Dpdp11-aout --prefix=3D/home/cptnapalm/opt/pdp11-aout --disable-libstdcxx --disable-nls --without-headers --enable-languages=3Dc : (reconfigured) /home/cptnapalm/src/gnu/gcc/configure --target=3Dpdp11-aout --prefix=3D/home/cptnapalm/opt/pdp11-aout --disable-libstdcxx --disable-nls --without-headers --enable-languages=3Dc --disable-libssp : (reconfigured) /home/cptnapalm/src/gnu/gcc/configure --target=3Dpdp11-aout --prefix=3D/home/cptnapalm/opt/pdp11-aout --disable-libstdcxx --disable-nls --without-headers --enable-languages=3Dc --disable-libssp Thread model: single gcc version 9.0.0 20180808 (experimental) (GCC) >>From gcc-bugs-return-612958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 21:56:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114601 invoked by alias); 16 Aug 2018 21:56:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114535 invoked by uid 48); 16 Aug 2018 21:56:05 -0000 From: "a3at.mail at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86094] [8/9 Regression] Call ABI changed for small objects with defaulted ctor Date: Thu, 16 Aug 2018 21:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: a3at.mail at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01247.txt.bz2 Content-length: 564 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86094 Azat changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |a3at.mail at gmail dot com --- Comment #12 from Azat --- Shouldn't such case also be warned by `g++ -Wabi=3D12` ? struct noncopyable { public: noncopyable(noncopyable &&) =3D default; }; struct S : public noncopyable { int i; }; void foo(S s) {} >>From gcc-bugs-return-612959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 22:32:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73721 invoked by alias); 16 Aug 2018 22:32:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73663 invoked by uid 48); 16 Aug 2018 22:32:49 -0000 From: "virkony at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67906] Missing warning about std::move without effect Date: Thu, 16 Aug 2018 22:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: virkony at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01248.txt.bz2 Content-length: 1168 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67906 --- Comment #9 from Nikolay Orliuk --- Yes. Return value optimization blocked by abusing std::move also close. Som= ehow I had feeling that I saw something similar from gcc in pre-C++11 times. Regarding sample: struct X { X() { } X(const X&) { } X(const X&&) { } }; const X x; const X y =3D std::move(x); It shouldn't warn because std::move is effective here and makes choice betw= een default (const X&) and (const X&&) overloads. I.e. we are not ignoring the = fact that it is rvalue. As I stated initially I agree that most likely templates will cause false triggering. Like for other warnings (ex. -Wduplicated-branches ). The main point here was to identify places that potentially migrated incompletely. Kinda temporary flag. Trigger rule might be: cast to rvalue for overloads one of which have sligh= tly different qualifiers combinations (e.g. const vs non-const). That should a bit reduce chances of false trigerring compared to "whenever = we ignore rvalue". If someone will want more noise they can request adding -Wsuggest-move-over= load to supported flags :) >>From gcc-bugs-return-612960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 23:11:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19930 invoked by alias); 16 Aug 2018 23:11:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19870 invoked by uid 48); 16 Aug 2018 23:10:59 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86984] New: invalid relocation accessing a const char arrray Date: Thu, 16 Aug 2018 23:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01249.txt.bz2 Content-length: 874 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86984 Bug ID: 86984 Summary: invalid relocation accessing a const char arrray Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- As discussed here https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00839.html,= the Alpha back end seems to emit invalid relocations for accesses to constant arrays in some cases, causing Glibc build failures. This must have been la= tent a bug that was triggered by the transformation of braced array initializers= to STRING_CSTs in r263511 as the same issue can be reproduced by replacing the initializer with a string literal in the test case. >>From gcc-bugs-return-612961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 23:14:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35076 invoked by alias); 16 Aug 2018 23:14:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32590 invoked by uid 48); 16 Aug 2018 23:14:10 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86984] invalid relocation accessing a const char arrray Date: Thu, 16 Aug 2018 23:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01250.txt.bz2 Content-length: 1059 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86984 --- Comment #1 from Martin Sebor --- Created attachment 44552 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44552&action=3Dedit Reduced test case. Compiling the attached test case shows the invalid offsets in the assembly: $ gcc -S -O2 -Wall -Wwrite-strings -Werror -fmerge-all-constants -fno-stack-protector -mieee plural.c -o/dev/stdout | grep gprelhigh ldah $1,yypgoto+2305843009213693936($29) !gprelhigh ldah $1,yypact($29) !gprelhigh ldah $1,yytable($29) !gprelhigh ldah $1,yydefact($29) !gprelhigh ldah $2,yyr2($29) !gprelhigh ldah $15,yyr1($29) !gprelhigh ldah $1,yypgoto($29) !gprelhigh ldah $5,yycheck($29) !gprelhigh ldah $1,yydefgoto($29) !gprelhigh ldah $2,yypgoto+2305843009213693936($29) !gprelhigh ldah $2,yytable($29) !gprelhigh >>From gcc-bugs-return-612962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 16 23:19:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66501 invoked by alias); 16 Aug 2018 23:19:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66428 invoked by uid 48); 16 Aug 2018 23:19:10 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86984] invalid relocation accessing a const char arrray Date: Thu, 16 Aug 2018 23:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01251.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86984 --- Comment #2 from Martin Sebor --- The excessive offset appears in the first RTL dump: $ grep -A3 -B3 2305843009213693936 plural.c.230r.expand (insn 87 86 88 10 (set (reg:DI 154) (lshiftrt:DI (reg:DI 155) (const_int 3 [0x3]))) -1 (expr_list:REG_EQUAL (const_int 2305843009213693936 [0x1ffffffffffffff= 0]) (nil))) (insn 88 87 89 10 (set (reg/f:DI 152) (plus:DI (reg:DI 153) >>From gcc-bugs-return-612963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 00:11:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12231 invoked by alias); 17 Aug 2018 00:10:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12171 invoked by uid 48); 17 Aug 2018 00:10:54 -0000 From: "neil.n.carlson at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84539] ICE and segfault with assignment to CLASS(*) array Date: Fri, 17 Aug 2018 00:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: neil.n.carlson at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01252.txt.bz2 Content-length: 479 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84539 --- Comment #4 from Neil Carlson --- Update with 8.2.0 The ICE is gone, but a run time segfault remains: Program received signal SIGSEGV: Segmentation fault - invalid memory refere= nce. Backtrace for this error: #0 0x7f82986c06df in ??? #1 0x400754 in MAIN__ at gfortran-20180223a.f90:2 #2 0x400979 in main at gfortran-20180223a.f90:7 Segmentation fault (core dumped) >>From gcc-bugs-return-612964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 01:56:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106681 invoked by alias); 17 Aug 2018 01:56:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105349 invoked by uid 48); 17 Aug 2018 01:56:12 -0000 From: "neeraj.sharma at alumni dot iitg.ernet.in" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86980] Lambda function with return type rvalue reference dtor issue Date: Fri, 17 Aug 2018 01:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: neeraj.sharma at alumni dot iitg.ernet.in X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01253.txt.bz2 Content-length: 398 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86980 --- Comment #3 from Neeraj --- Ah! Alright so the following two code snippets are equivalent. // -- auto f =3D []() { Traceable tmp; return std::move(tmp); }; // --- auto f =3D []() -> Traceable { Traceable tmp; return std::move(tmp); }; // x-- >>From gcc-bugs-return-612965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 02:56:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12543 invoked by alias); 17 Aug 2018 02:56:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12457 invoked by uid 48); 17 Aug 2018 02:56:33 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/16166] -Weffc++ finer granularity Date: Fri, 17 Aug 2018 02:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.0.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01254.txt.bz2 Content-length: 874 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D16166 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg --- Comment #13 from Eric Gallager --- (In reply to Jonathan Wakely from comment #12) > Created attachment 43443 [details] > Patch to split -Weffc++ into separate options. >=20 > This adds several new warning options to replace -Weffc++, and makes > -Weffc++ enable them all. Right I've been meaning to try this patch but couldn't, due to having been blocked from bootstrapping for a while by bug 82092... it looks like that o= ne might be getting fixed around now though, so once I've verified that, I'll = try this... >>From gcc-bugs-return-612966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 04:02:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34487 invoked by alias); 17 Aug 2018 04:02:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34404 invoked by uid 55); 17 Aug 2018 04:01:48 -0000 From: "law at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86853] sprintf optimization for wide strings doesn't account for conversion failure Date: Fri, 17 Aug 2018 04:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: law at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01255.txt.bz2 Content-length: 1329 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86853 --- Comment #2 from Jeffrey A. Law --- Author: law Date: Fri Aug 17 04:01:14 2018 New Revision: 263612 URL: https://gcc.gnu.org/viewcvs?rev=3D263612&root=3Dgcc&view=3Drev Log: gcc/ChangeLog: PR tree-optimization/86853 * gimple-ssa-sprintf.c (struct format_result): Rename member. (struct fmtresult): Add member and initialize it in ctors. (format_character): Handle %C. Extend range to NUL. Set MAYFAIL. (format_string): Handle %S the same as %ls. Set MAYFAIL. (format_directive): Set POSUNDER4K when MAYFAIL is set. (parse_directive): Handle %C same as %c. (sprintf_dom_walker::compute_format_length): Adjust. (is_call_safe): Adjust. gcc/testsuite/ChangeLog: PR tree-optimization/86853 * gcc.dg/tree-ssa/builtin-sprintf-10.c: New test. * gcc.dg/tree-ssa/builtin-sprintf-11.c: New test. * gcc.dg/tree-ssa/builtin-sprintf-warn-18.c: Adjust. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-10.c trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-11.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-sprintf.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c >>From gcc-bugs-return-612967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 04:20:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64749 invoked by alias); 17 Aug 2018 04:20:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64711 invoked by uid 48); 17 Aug 2018 04:20:13 -0000 From: "osandov at osandov dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86985] New: https://gcc.gnu.org/bugzilla/enter_bug.cgi?product=gcc Date: Fri, 17 Aug 2018 04:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: osandov at osandov dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01256.txt.bz2 Content-length: 1482 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86985 Bug ID: 86985 Summary: https://gcc.gnu.org/bugzilla/enter_bug.cgi?product=3Dgcc Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: osandov at osandov dot com Target Milestone: --- It is currently impossible for a debugger to distinguish between a zero-len= gth and a flexible array given the debug info generated by GCC: $ cat zero_length.c struct { int foo; int bar[0]; } baz; $ cat flexible.c struct { int foo; int bar[]; } baz; $ gcc -g -c zero_length.c $ gcc -g -c flexible.c $ gdb -batch -ex 'ptype baz' zero_length.o type =3D struct { int foo; int bar[]; } $ gdb -batch -ex 'ptype baz' flexible.o type =3D struct { int foo; int bar[]; } However, when compiling with clang: $ clang -g -c zero_length.c $ clang -g -c flexible.c $ gdb -batch -ex 'ptype baz' zero_length.o type =3D struct { int foo; int bar[0]; } $ gdb -batch -ex 'ptype baz' flexible.o type =3D struct { int foo; int bar[]; } This distinction would be useful for certain tools. For example, I have a t= ool which feeds the structure definitions from debug info back into a C compile= r, but this fails in some cases where zero-length and flexible array types are= not interchangable. >>From gcc-bugs-return-612968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 04:30:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84787 invoked by alias); 17 Aug 2018 04:30:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84577 invoked by uid 48); 17 Aug 2018 04:30:38 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86986] New: Unexpected errors for template parameter pack in a template template parameter Date: Fri, 17 Aug 2018 04:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01257.txt.bz2 Content-length: 1271 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86986 Bug ID: 86986 Summary: Unexpected errors for template parameter pack in a template template parameter Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /************* SOURCE *************/ template struct X { template class...> struct Y { }; }; using type =3D X::Y<>; /*********** END SOURCE ***********/ /************* OUTPUT *************/ : In instantiation of 'struct X': :7:20: required from here :4:12: error: '' is not a valid type for a template non-type parameter 4 | struct Y { }; | ^ :4:12: error: '' is not a valid type for a template non-type parameter :7:22: error: 'Y' in 'struct X' does not name a template type 7 | using type =3D X::Y<>; | ^ Compiler returned: 1 /*********** END OUTPUT ***********/ Clang compiles this code successfully >>From gcc-bugs-return-612969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 04:41:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95187 invoked by alias); 17 Aug 2018 04:41:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95124 invoked by uid 48); 17 Aug 2018 04:40:59 -0000 From: "osandov at osandov dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types Date: Fri, 17 Aug 2018 04:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: osandov at osandov dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01258.txt.bz2 Content-length: 202 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86985 --- Comment #1 from Omar Sandoval --- Posted a patch here: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00994.ht= ml. >>From gcc-bugs-return-612970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 05:16:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12762 invoked by alias); 17 Aug 2018 05:16:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12731 invoked by uid 48); 17 Aug 2018 05:16:36 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types Date: Fri, 17 Aug 2018 05:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01259.txt.bz2 Content-length: 453 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86985 --- Comment #2 from Andrew Pinski --- Considering GCC considers zero length array as the same as flexible array types, I don't think this is really an issue.=20=20 >this fails in some cases where zero-length and flexible array types are not interchangable. There should never be a possiblity of this anyways. NOTE zero-length array types are a GCC extension anyways. >>From gcc-bugs-return-612971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 05:26:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112039 invoked by alias); 17 Aug 2018 05:26:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 112020 invoked by uid 48); 17 Aug 2018 05:26:06 -0000 From: "osandov at osandov dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types Date: Fri, 17 Aug 2018 05:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: osandov at osandov dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01260.txt.bz2 Content-length: 466 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86985 --- Comment #3 from Omar Sandoval --- They are not equivalent in GCC, see https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html. In particular, flexible arrays cannot be the only member in a struct, cannot be a member of a union, cannot be used as a dimension of a multidimensional array, and can have a static initializer with elements; the opposite is true for zero length arra= ys. >>From gcc-bugs-return-612972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 06:32:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95309 invoked by alias); 17 Aug 2018 06:32:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95264 invoked by uid 48); 17 Aug 2018 06:32:47 -0000 From: "pekka.jaaskelainen at parmance dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Fri, 17 Aug 2018 06:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pekka.jaaskelainen at parmance dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01261.txt.bz2 Content-length: 312 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 --- Comment #5 from Pekka J=C3=A4=C3=A4skel=C3=A4inen --- Hi Alexander. I just verified that the patch fixes the make check-brig regression here. Are you going to post this to ML for review or how shall we proceed? >>From gcc-bugs-return-612973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 07:16:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9088 invoked by alias); 17 Aug 2018 07:16:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9027 invoked by uid 48); 17 Aug 2018 07:16:42 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86987] New: ICE in simplify_binary_operation_1, at simplify-rtx.c:3515 on ppc64le Date: Fri, 17 Aug 2018 07:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01262.txt.bz2 Content-length: 1481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86987 Bug ID: 86987 Summary: ICE in simplify_binary_operation_1, at simplify-rtx.c:3515 on ppc64le Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: segher at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: ppc64le-linux-gnu Following ICEs: $ powerpc64le-suse-linux-gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.target/powerpc/fold-vec-spla= t-short.c -O -mno-optimize-swaps -c -S during RTL pass: fwprop1 /home/marxin/Programming/gcc/gcc/testsuite/gcc.target/powerpc/fold-vec-spla= t-short.c: In function 'test_obs': /home/marxin/Programming/gcc/gcc/testsuite/gcc.target/powerpc/fold-vec-spla= t-short.c:44:1: internal compiler error: in simplify_binary_operation_1, at simplify-rtx.c:= 3643 vector bool short test_obs () { const vector bool short y =3D {1, 2, 3, 4,= 5, 6, 7, 8}; return vec_splat (y, 0b10010); } ^~~~~~ 0x7ffff69affea __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-612974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 07:28:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73006 invoked by alias); 17 Aug 2018 07:28:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71081 invoked by uid 48); 17 Aug 2018 07:28:51 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86988] New: [7/9 Regression] ICE: tree check: expected integer_cst, have var_decl in get_len, at tree.h:5563 Date: Fri, 17 Aug 2018 07:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01263.txt.bz2 Content-length: 4316 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86988 Bug ID: 86988 Summary: [7/9 Regression] ICE: tree check: expected integer_cst, have var_decl in get_len, at tree.h:5563 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jason at gcc dot gnu.org, msebor at gcc dot gnu.org Target Milestone: --- Starting from r246662 we ICE on: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/vla19.C -Warray-bounds -O2 -c during GIMPLE pass: vrp /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/vla19.C: In function =E2=80=98void foo()=E2=80=99: /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/vla19.C:8:1: internal compiler error: tree check: expected integer_cst, have var_decl in get_len,= at tree.h:5563 8 | foo () | ^~~ 0x7870e4 tree_check_failed(tree_node const*, char const*, int, char const*, ...) /home/marxin/Programming/gcc/gcc/tree.c:9351 0x1153cd7 tree_check(tree_node const*, char const*, int, char const*, tree_code) /home/marxin/Programming/gcc/gcc/tree.h:3376 0x1153cd7 wi::extended_tree<128>::get_len() const /home/marxin/Programming/gcc/gcc/tree.h:5563 0x1153cd7 wi::int_traits > >::decompose(long*, unsigned int, generic_wide_int > const&) /home/marxin/Programming/gcc/gcc/wide-int.h:964 0x1153cd7 wide_int_ref_storage::wide_int_ref_storage > >(generic_wide_int > const&, unsigned int) /home/marxin/Programming/gcc/gcc/wide-int.h:1013 0x1153cd7 generic_wide_int >::generic_wide_int > >(generic_wide_int > const&, unsigned int) /home/marxin/Programming/gcc/gcc/wide-int.h:788 0x1153cd7 wi::binary_traits >, int, wi::int_traits > >::precision_type, wi::int_traits::precision_type>::result_type wi::add >, int>(generic_wide_int > const&, int const&) /home/marxin/Programming/gcc/gcc/wide-int.h:2402 0x1146a85 wi::binary_traits >, int, wi::int_traits > >::precision_type, wi::int_traits::precision_type>::operator_result operator+ >, int>(generic_wide_int > const&, int const&) /home/marxin/Programming/gcc/gcc/wide-int.h:3273 0x1146a85 vrp_prop::check_mem_ref(unsigned int, tree_node*, bool) /home/marxin/Programming/gcc/gcc/tree-vrp.c:4690 0x1146cd9 check_array_bounds /home/marxin/Programming/gcc/gcc/tree-vrp.c:4897 0x117486b walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) /home/marxin/Programming/gcc/gcc/tree.c:11484 0xc6e850 walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) /home/marxin/Programming/gcc/gcc/gimple-walk.c:202 0x113e5f1 check_array_bounds_dom_walker::before_dom_children(basic_block_de= f*) /home/marxin/Programming/gcc/gcc/tree-vrp.c:4950 0x1677567 dom_walker::walk(basic_block_def*) /home/marxin/Programming/gcc/gcc/domwalk.c:353 0x114235c vrp_prop::check_all_array_refs() /home/marxin/Programming/gcc/gcc/tree-vrp.c:4967 0x1143e52 vrp_prop::vrp_finalize(bool) /home/marxin/Programming/gcc/gcc/tree-vrp.c:6743 0x1151e6e execute_vrp /home/marxin/Programming/gcc/gcc/tree-vrp.c:6816 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. GCC 8 branch is fine, it again appeared in r263511. >>From gcc-bugs-return-612975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 07:39:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32363 invoked by alias); 17 Aug 2018 07:39:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28964 invoked by uid 48); 17 Aug 2018 07:39:37 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86989] New: ICE in rs6000_output_addr_const_extra, at config/rs6000/rs6000.c:20994 Date: Fri, 17 Aug 2018 07:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01264.txt.bz2 Content-length: 2531 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86989 Bug ID: 86989 Summary: ICE in rs6000_output_addr_const_extra, at config/rs6000/rs6000.c:20994 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: segher at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: ppc64le-linux-gnu Following causes ICE: $ ./xgcc -B. /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/pr82337.c -fno-rerun-cse-after-loop -mminimal-toc -Os during RTL pass: final /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/pr82337.c:= In function =E2=80=98g=E2=80=99: /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/pr82337.c:= 27:1: internal compiler error: in rs6000_output_addr_const_extra, at config/rs6000/rs6000.c:20994 27 | } | ^ 0x14d9c69 rs6000_output_addr_const_extra /home/marxin/Programming/gcc/gcc/config/rs6000/rs6000.c:20992 0xb96fb3 output_addr_const(_IO_FILE*, rtx_def*) /home/marxin/Programming/gcc/gcc/final.c:4202 0x14d9b05 print_operand_address(_IO_FILE*, rtx_def*) /home/marxin/Programming/gcc/gcc/config/rs6000/rs6000.c:20973 0x102fb5c default_print_operand_address(_IO_FILE*, machine_mode, rtx_def*) /home/marxin/Programming/gcc/gcc/targhooks.c:366 0xb968f1 output_address(machine_mode, rtx_def*) /home/marxin/Programming/gcc/gcc/final.c:4066 0x14d966b print_operand(_IO_FILE*, rtx_def*, int) /home/marxin/Programming/gcc/gcc/config/rs6000/rs6000.c:20886 0x102fb33 default_print_operand(_IO_FILE*, rtx_def*, int) /home/marxin/Programming/gcc/gcc/targhooks.c:351 0xb9688d output_operand(rtx_def*, int) /home/marxin/Programming/gcc/gcc/final.c:4050 0xb96452 output_asm_insn(char const*, rtx_def**) /home/marxin/Programming/gcc/gcc/final.c:3962 0xb948e0 final_scan_insn_1 /home/marxin/Programming/gcc/gcc/final.c:3100 0xb94b05 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) /home/marxin/Programming/gcc/gcc/final.c:3146 0xb92333 final_1 /home/marxin/Programming/gcc/gcc/final.c:2019 0xb97bdc rest_of_handle_final /home/marxin/Programming/gcc/gcc/final.c:4657 0xb97f98 execute /home/marxin/Programming/gcc/gcc/final.c:4731 >>From gcc-bugs-return-612976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 07:56:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70178 invoked by alias); 17 Aug 2018 07:56:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70049 invoked by uid 48); 17 Aug 2018 07:56:34 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86990] New: wrong code at -O2 on x86_64-linux-gnu in 64-bit mode Date: Fri, 17 Aug 2018 07:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: su at cs dot ucdavis.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01265.txt.bz2 Content-length: 4921 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86990 Bug ID: 86990 Summary: wrong code at -O2 on x86_64-linux-gnu in 64-bit mode Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- It appears to be a recent regression. The reduced version is still quite l= arge and complex, but it should be valid. The original unreduced test is miscompiled at -O2 and -O3 in both 32-bit and 64-bit modes.=20 $ gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_6= 4-pc-linux-gnu/9.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-source-trunk/configure --enable-languages=3Dc,c++,l= to --prefix=3D/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap Thread model: posix gcc version 9.0.0 20180817 (experimental) [trunk revision 263611] (GCC)=20 $=20 $ gcctk -Os -w small.c; ./a.out 5 $ gcc-8.1.0 -O2 -w small.c; ./a.out 5 $=20 $ gcctk -O2 -w small.c; ./a.out 7 $=20 --------------------------------------- int printf (const char *, ...); int i[6]; static int j, v, e, f, h =3D 5, k, l, n, o, p, q, r, s, u, w, x, y, z, aa, = ab, ac, ad, ae, af, ag =3D 8, ah, ai, aj, ak, al; char c; struct a { unsigned b; int c : 9; int d; } static g =3D {9, 5}; static short m[1], t =3D 95, am; int an, ao, ap; void aq(ar) { j =3D j & 5 ^ i[j ^ v & 5]; j =3D j & 5 ^ i[(j ^ v) & 5]; j =3D j & 4095 ^ (j ^ v) & 5; } void as(ar) { if (n) s =3D 0; } static unsigned at() { int au[] =3D {4073709551615, 0}; for (; al; al--) { if (r) --x; if (g.d) l++; printf("", j); if (u) ae =3D n =3D au[al]; } r =3D 0; return 0; } int aw(ar) { int ax[] =3D {9, 5, 5, 9, 5}, ay =3D 3; struct a az =3D {1, 3}; av: an =3D (as((at(), ax)[2]), ax[4]); { int ba[] =3D {5, 5, 9, 8, 1, 0, 5, 5, 9, 8, 1, 0, 5, 5, 9, 8, 1, 0, 5, 5, 9, 8, 1}; int a[] =3D {8, 2, 8, 2, 8, 2, 8}; int b[] =3D {1027239, 8, 1, 7, 9, 2, 9, 4, 4, 2, 8, 1, 0, 4, 4, 2, 4, 4, 2, 9, 2, 9, 8, 1, 7, 9, 2, 9, 4, 4, 2}; if (z) { struct a bc; bb: for (; e; e++) for (; q;) return ax[e]; if (bc.c < g.d <=3D a[7]) aa--; } { struct a bd =3D {5}; int d[20] =3D {1, 9, 7, 7, 8, 4, 4, 4, 4, 8, 1, 9, 7, 7, 8, 4, 4, 4, = 4}; c =3D h | r % g.c ^ x; printf("", g); am -=3D t | x; if (h) while (1) { if (a[o]) { struct a be; if (ar) { struct a bf =3D {908, 5, 3}; int bg[3], bh =3D k, bj =3D ag | ae, bk =3D aj + 3, bl =3D u = << e; if (f) if (ac) ak =3D w; ag =3D -(ag & t); af =3D ag ^ af; if (8 < af) break; if (bj) goto bi; if (s) printf("", 6); be.d =3D k; w =3D f - bh; printf("", be); if (w) goto bb; ao =3D r - aa && g.b; if (y) k++; goto av; bi: if (aa) continue; if (f) if (k) printf("", g); aj =3D ac + k ^ g.c; g.c =3D bk; ah =3D 0; for (; ah < 3; ah++) if (s) bg[ah] =3D 8; if (!ay) printf("", ai); u =3D bl; g =3D bf; } else for (;; o +=3D a[ap]) ; int bm[] =3D {0}; for (; p; p++) c =3D ad; ad =3D l; if (bd.c) { printf(" "); goto bi; } } int bn[] =3D {5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2, 2, 5, 2}; struct a a[] =3D {905266581905224, 2, 8, 4, 2, 8, 4, 4, 2, 8, 4}; struct a b =3D {3075920}; if (f) { aq(m[am + e]); printf("", j); printf("", e); ab--; } if (ax[4]) { if (l) goto av; ++f; } else ay =3D az.c && a; for (; ac; ac++) m[f] =3D 0; } h =3D 9; for (; y; y =3D 1) if (f) goto av; } } return 0; } int main() { aw(1); printf("%d\n", g.c); return 0; } >>From gcc-bugs-return-612977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 08:31:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74777 invoked by alias); 17 Aug 2018 08:31:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74217 invoked by uid 48); 17 Aug 2018 08:31:50 -0000 From: "konstantin.vladimirov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86991] New: internal compiler error: in vectorizable_reduction, at tree-vect-loop.c:6919 Date: Fri, 17 Aug 2018 08:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: konstantin.vladimirov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01266.txt.bz2 Content-length: 1902 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86991 Bug ID: 86991 Summary: internal compiler error: in vectorizable_reduction, at tree-vect-loop.c:6919 Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: konstantin.vladimirov at gmail dot com Target Milestone: --- Minimal reproduction: int b; extern unsigned c[]; unsigned d; long e; void f() { unsigned g, h; for (; d; d +=3D 2) { g =3D 1; for (; g; g +=3D 3) { h =3D 2; for (; h < 6; h++) c[h] =3D c[h] - b - ~e; } } } Compiler: gcc -v Reading specs from /apps/gcc/8.1.0/.bin/../lib64/gcc/x86_64-suse-linux/8.1.0/specs COLLECT_GCC=3D/apps/gcc/8.1.0/.bin/gcc COLLECT_LTO_WRAPPER=3D/apps/gcc/8.1.0/.bin/../libexec/gcc/x86_64-suse-linux= /8.1.0/lto-wrapper Target: x86_64-suse-linux Configured with: ./configure --prefix=3D/apps/gcc/8.1.0 --libdir=3D/apps/gcc/8.1.0/lib64 --libexecdir=3D/apps/gcc/8.1.0/libexec --bindir=3D/apps/gcc/8.1.0/bin --with-isl=3D/apps/gcc/8.1.0 --with-libelf=3D/apps/gcc/8.1.0 --with-mpfr=3D/apps/gcc/8.1.0 --with-gmp=3D/apps/gcc/8.1.0 --with-mpc=3D/apps/gcc/8.1.0 --disable-gnu-unique-object --enable-gold=3Dyes --enable-lto --enable-languages=3Dc,c++,objc,fortran --build=3Dx86_64-suse-linux --host=3Dx86_64-suse-linux --target=3Dx86_64-suse-linux --enable-libotm --disable-multilib --disable-bootstrap --disable-libstdcxx-pch Thread model: posix gcc version 8.1.0 (GCC) Compile with: gcc min.c -O3 You shall see: during GIMPLE pass: vect min.c: In function =E2=80=98f=E2=80=99: min.c:7:6: internal compiler error: in vectorizable_reduction, at tree-vect-loop.c:6919 void f() { ^ 0x620ba8 ??? ../sysdeps/x86_64/elf/start.S:113 >>From gcc-bugs-return-612978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 08:49:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 569 invoked by alias); 17 Aug 2018 08:49:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 495 invoked by uid 48); 17 Aug 2018 08:49:10 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86505] [6/7/8 Regression] __builtin_va_arg_pack_len() computes the number of arguments wrongly Date: Fri, 17 Aug 2018 08:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01267.txt.bz2 Content-length: 718 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86505 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.0 Summary|[6/7/8/9 Regression] |[6/7/8 Regression] |__builtin_va_arg_pack_len() |__builtin_va_arg_pack_len() |computes the number of |computes the number of |arguments wrongly |arguments wrongly Known to fail|9.0 | --- Comment #4 from Richard Biener --- Fixed on trunk sofar. >>From gcc-bugs-return-612979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 08:49:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1753 invoked by alias); 17 Aug 2018 08:49:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1701 invoked by uid 55); 17 Aug 2018 08:49:38 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86505] [6/7/8 Regression] __builtin_va_arg_pack_len() computes the number of arguments wrongly Date: Fri, 17 Aug 2018 08:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01268.txt.bz2 Content-length: 702 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86505 --- Comment #5 from Richard Biener --- Author: rguenth Date: Fri Aug 17 08:48:58 2018 New Revision: 263613 URL: https://gcc.gnu.org/viewcvs?rev=3D263613&root=3Dgcc&view=3Drev Log: 2018-08-17 Richard Biener PR middle-end/86505 * tree-inline.c (copy_bb): When inlining __builtin_va_arg_pack_len = () across a va-arg-pack using call adjust its return value accordingly. * gcc.dg/torture/pr86505.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr86505.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-inline.c >>From gcc-bugs-return-612980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 08:51:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4229 invoked by alias); 17 Aug 2018 08:51:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4160 invoked by uid 48); 17 Aug 2018 08:51:27 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86505] [6/7/8 Regression] __builtin_va_arg_pack_len() computes the number of arguments wrongly Date: Fri, 17 Aug 2018 08:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01269.txt.bz2 Content-length: 456 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86505 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asolokha at gmx dot com --- Comment #6 from Richard Biener --- I wonder if the auto-regression police can help here increasing coverage? >>From gcc-bugs-return-612981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:13:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52634 invoked by alias); 17 Aug 2018 09:13:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52560 invoked by uid 48); 17 Aug 2018 09:13:23 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54710] moderately large tuple, with many gets, increases compile time Date: Fri, 17 Aug 2018 09:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01270.txt.bz2 Content-length: 1089 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54710 --- Comment #12 from Richard Biener --- (In reply to Eric Gallager from comment #11) > Created attachment 41894 [details] > result of compiling with -ftime-report -ftime-report-details -fstats >=20 > (In reply to Larry Evans from comment #10) > > Created attachment 28294 [details] > > with optimized clang, still with optimized gcc, both with -O1 > >=20 > > Remade clang with make ENABLE_OPTIMIZED=3D1. Clang times improved a lo= t. > >=20 > > Now, the degradation of relative performance of gcc w.r.t. clang > > is more dramatic. > >=20 > > Still, gcc does better at low LAST_LESS, but reaches break even > > at lower LAST_LESS (about 8). >=20 > Confirmed: >=20 > $ /usr/local/bin/gcc -c -O1 -time tuple.benchmark.mini.horiz.cpp > # cc1plus 4.62 0.25 > # as 0.02 0.01 > $ >=20 > I guess 4 and a half seconds is kinda long. Attaching a more detailed time > report as a separate file. Time is spent in the C++ parser and the GIMPLE/tree verifiers. Your cc1plus is built with --enable-checking=3Dyes ... >>From gcc-bugs-return-612982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:24:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75898 invoked by alias); 17 Aug 2018 09:24:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 75720 invoked by uid 48); 17 Aug 2018 09:24:44 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86841] ICE in gcc/gcc/tree-vrp.c:1325 with graphite Date: Fri, 17 Aug 2018 09:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01271.txt.bz2 Content-length: 1156 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86841 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #3 from Richard Biener --- It's a problem with the VRP machinery assuming shift counts are never bigger than 64bits... /* Transform left shifts by constants into multiplies. */ if (wi::eq_p (vr1_lb, vr1_ub)) { int shift =3D wi::extract_uhwi (vr1_ub, 0, vr1_ub.get_precision ()); wide_int tmp =3D wi::set_bit_in_zero (shift, prec); return wide_int_range_multiplicative_op (res_lb, res_ub, MULT_EXPR, sign, prec, vr0_lb, vr0_ub, tmp, tmp, overflow_undefined, /*overflow_wraps=3D*/true); this should use wi::to_uhwi. >>From gcc-bugs-return-612983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:27:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80480 invoked by alias); 17 Aug 2018 09:27:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80435 invoked by uid 55); 17 Aug 2018 09:27:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86841] ICE in gcc/gcc/tree-vrp.c:1325 with graphite Date: Fri, 17 Aug 2018 09:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01272.txt.bz2 Content-length: 481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86841 --- Comment #4 from Richard Biener --- Author: rguenth Date: Fri Aug 17 09:26:53 2018 New Revision: 263615 URL: https://gcc.gnu.org/viewcvs?rev=3D263615&root=3Dgcc&view=3Drev Log: 2018-08-17 Richard Biener PR tree-optimization/86841 * wide-int-range.cc (wide_int_range_lshift): Use to_uhwi. Modified: trunk/gcc/ChangeLog trunk/gcc/wide-int-range.cc >>From gcc-bugs-return-612984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:28:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82095 invoked by alias); 17 Aug 2018 09:28:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82010 invoked by uid 48); 17 Aug 2018 09:28:33 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBvdGhlci84Njk5Ml0gTmV3OiBbOCBSZWdyZXNzaW9uXSBnY2M6IGVy?= =?UTF-8?B?cm9yOiB1bnJlY29nbml6ZWQgY29tbWFuZCBsaW5lIG9wdGlvbiDigJgtZmNp?= =?UTF-8?B?bGtwbHVz4oCZ?= Date: Fri, 17 Aug 2018 09:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01273.txt.bz2 Content-length: 613 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86992 Bug ID: 86992 Summary: [8 Regression] gcc: error: unrecognized command line option =E2=80=98-fcilkplus=E2=80=99 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Starting from r255195 the option should be ignored, but is not. On trunk fi= xed in r263614. >>From gcc-bugs-return-612985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:34:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88992 invoked by alias); 17 Aug 2018 09:34:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88878 invoked by uid 48); 17 Aug 2018 09:34:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86841] ICE in gcc/gcc/tree-vrp.c:1325 with graphite Date: Fri, 17 Aug 2018 09:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01274.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86841 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Richard Biener --- Fixed. >>From gcc-bugs-return-612986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:34:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89183 invoked by alias); 17 Aug 2018 09:34:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88902 invoked by uid 48); 17 Aug 2018 09:34:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/59859] [meta-bug] GRAPHITE issues Date: Fri, 17 Aug 2018 09:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01275.txt.bz2 Content-length: 470 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59859 Bug 59859 depends on bug 86841, which changed state. Bug 86841 Summary: ICE in gcc/gcc/tree-vrp.c:1325 with graphite https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86841 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-612987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:55:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45482 invoked by alias); 17 Aug 2018 09:55:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45435 invoked by uid 48); 17 Aug 2018 09:55:19 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86864] [9 Regression] ICE in commit_one_edge_insertion, at cfgrtl.c:2025 since r261795 Date: Fri, 17 Aug 2018 09:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01276.txt.bz2 Content-length: 719 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86864 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.o= rg --- Comment #3 from Richard Biener --- The issue looks like that (jump_insn 19 18 20 3 (parallel [ (set (pc) (reg:DI 94)) (use (label_ref 21)) ]) -1 (nil) -> 21) (barrier 20 19 21) doesn't have the jump at the end. Whoever inserted that barrier insn did it wrong. But I'm not too much of an expert here either. >>From gcc-bugs-return-612988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 09:56:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46640 invoked by alias); 17 Aug 2018 09:56:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46595 invoked by uid 48); 17 Aug 2018 09:56:06 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57510] initializer_list memory leak Date: Fri, 17 Aug 2018 09:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01277.txt.bz2 Content-length: 1229 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57510 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #8 from Jonathan Wakely --- Comment 1 was fixed, but comment 0 was not, this bug is still present on tr= unk. The example in comment 0 built with ASan shows: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D6556=3D=3DERROR: LeakSanitizer: detected memory leaks Direct leak of 8 byte(s) in 2 object(s) allocated from: #0 0x7ffa9489a340 in operator new(unsigned long) /home/jwakely/src/gcc/gcc/libsanitizer/asan/asan_new_delete.cc:90 #1 0x400ef6 in X::X() /tmp/leak2.cc:6 #2 0x400db1 in main /tmp/leak2.cc:20 #3 0x7ffa93b33f29 in __libc_start_main ../csu/libc-start.c:308 SUMMARY: AddressSanitizer: 8 byte(s) leaked in 2 allocation(s). Possibly a dup of PR 66139 >>From gcc-bugs-return-612989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:00:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112193 invoked by alias); 17 Aug 2018 10:00:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111982 invoked by uid 48); 17 Aug 2018 10:00:00 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57510] initializer_list memory leak Date: Fri, 17 Aug 2018 10:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01278.txt.bz2 Content-length: 970 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57510 --- Comment #9 from Jonathan Wakely --- The example from PR 57930 isn't fixed either: extern "C" int printf(const char *,...); struct B { B(int,int) { printf("CB %p\n",this); } B(const B&) { printf("const CB %pn\n",this); } B(B&&) { printf("const CB %pn\n",this); } ~B() { printf("B %p\n",this); } }; struct C { int c; int c2; }; struct A { struct B b; struct C c; }; A test() { //const A a1 =3D { { 1, 2 }, { 3, (throw 9, 4) } } ; // destructor = for B called //const A &a2 =3D { { 1, 2 }, { 3, (throw 9, 4) } } ; // destructor= for B not called return { { 1, 2 }, { 3, (throw 9, 4) } } ; // destructor for B not called }; int main() { try { test(); } catch (...) { } } This prints: CB 0x7ffd6eac7620 But should be: CB 0x7ffd6eac7620 B 0x7ffd6eac7620 >>From gcc-bugs-return-612990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:08:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5556 invoked by alias); 17 Aug 2018 10:08:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5530 invoked by uid 48); 17 Aug 2018 10:08:23 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBvdGhlci84Njk5Ml0gWzggUmVncmVzc2lvbl0gZ2NjOiBlcnJvcjog?= =?UTF-8?B?dW5yZWNvZ25pemVkIGNvbW1hbmQgbGluZSBvcHRpb24g4oCYLWZjaWxrcGx1?= =?UTF-8?B?c+KAmQ==?= Date: Fri, 17 Aug 2018 10:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work assigned_to target_milestone everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01279.txt.bz2 Content-length: 663 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86992 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-17 Known to work| |7.3.0, 9.0 Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org Target Milestone|--- |8.3 Ever confirmed|0 |1 Known to fail| |8.2.0 >>From gcc-bugs-return-612991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:11:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15325 invoked by alias); 17 Aug 2018 10:11:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15255 invoked by uid 48); 17 Aug 2018 10:10:57 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86986] [6/7/8/9 Regression] Unexpected errors for template parameter pack in a template template parameter Date: Fri, 17 Aug 2018 10:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cf_known_to_work short_desc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01280.txt.bz2 Content-length: 1119 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86986 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-17 Known to work| |4.8.5 Summary|Unexpected errors for |[6/7/8/9 Regression] |template parameter pack in |Unexpected errors for |a template template |template parameter pack in |parameter |a template template | |parameter Ever confirmed|0 |1 Known to fail| |4.9.0, 5.5.0, 6.4.0, 7.3.0, | |8.2.0, 9.0 --- Comment #1 from Jonathan Wakely --- GCC 4.8 compiled it too, so this is a regression. >>From gcc-bugs-return-612992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:12:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18257 invoked by alias); 17 Aug 2018 10:12:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18200 invoked by uid 48); 17 Aug 2018 10:12:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86986] [6/7/8/9 Regression] Unexpected errors for template parameter pack in a template template parameter Date: Fri, 17 Aug 2018 10:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01281.txt.bz2 Content-length: 995 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86986 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #2 from Jonathan Wakely --- Started with r208178 PR c++/54440 * pt.c (get_template_parm_index): New. (fixed_parameter_pack_p_1, fixed_parameter_pack_p): New. (process_template_parm): Allow bare packs in template template parm template parms. (coerce_template_parameter_pack): Handle fixed template template parm packs and fixed packs not at the end of the parm list. (coerce_template_parms): Handle template parm packs not at the = end of the parm list. (gen_elem_of_pack_expansion_instantiation): Handle a decl expansion. >>From gcc-bugs-return-612993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:14:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20901 invoked by alias); 17 Aug 2018 10:14:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20868 invoked by uid 48); 17 Aug 2018 10:14:50 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86980] Lambda function with return type rvalue reference dtor issue Date: Fri, 17 Aug 2018 10:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01282.txt.bz2 Content-length: 125 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86980 --- Comment #4 from Jonathan Wakely --- Yes. >>From gcc-bugs-return-612994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:20:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27002 invoked by alias); 17 Aug 2018 10:20:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26880 invoked by uid 48); 17 Aug 2018 10:20:32 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86094] [8/9 Regression] Call ABI changed for small objects with defaulted ctor Date: Fri, 17 Aug 2018 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01283.txt.bz2 Content-length: 206 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86094 --- Comment #13 from Jonathan Wakely --- No, because the same code is generated for -fabi-version=3D12 and -fabi-version=3D13 >>From gcc-bugs-return-612995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:25:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55758 invoked by alias); 17 Aug 2018 10:25:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55599 invoked by uid 48); 17 Aug 2018 10:25:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/41565] -m32 causes an ICE when the object files were compiled with 64bit Date: Fri, 17 Aug 2018 10:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.5.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01284.txt.bz2 Content-length: 1082 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D41565 --- Comment #14 from Richard Biener --- It should happen everywhere, no explicit lto1 invocation should be necessar= y. > ./xgcc -B. t.c -flto -c > ./xgcc -B. t.o -m32 /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible libgcc_s.so.1 when searching for libgcc_s.so.1 lto1: internal compiler error: in operator[], at vec.h:841 0x871a92 vec::operator[](unsigned int) /tmp/trunk/gcc/vec.h:841 0x870416 vec::operator[](unsigned int) /tmp/trunk/gcc/vec.h:1360 0x11e26fe streamer_tree_cache_get_tree /tmp/trunk/gcc/tree-streamer.h:98 0x11e6b18 streamer_get_pickled_tree(lto_input_block*, data_in*) /tmp/trunk/gcc/tree-streamer-in.c:1100 ... but as said, fixing aka diagnosing this in a "nicer" form is somewhat difficult. >>From gcc-bugs-return-612996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:26:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56975 invoked by alias); 17 Aug 2018 10:26:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56915 invoked by uid 48); 17 Aug 2018 10:26:16 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86865] [9 Regression] Wrong code w/ -O2 -floop-parallelize-all -fstack-reuse=none -fwrapv -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-loop-ivcanon Date: Fri, 17 Aug 2018 10:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01285.txt.bz2 Content-length: 472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86865 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #2 from Richard Biener --- I will have a look. >>From gcc-bugs-return-612997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:29:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64481 invoked by alias); 17 Aug 2018 10:29:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64390 invoked by uid 48); 17 Aug 2018 10:29:46 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86884] aggressive loop optimization and effective type Date: Fri, 17 Aug 2018 10:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01286.txt.bz2 Content-length: 588 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86884 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Richard Biener --- It's invalid in GIMPLE as well. You are accessing the storage through p->c= [n] which constrains the accesses to the array size of c (it is not a trailing array). >>From gcc-bugs-return-612998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:38:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82984 invoked by alias); 17 Aug 2018 10:38:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82343 invoked by uid 48); 17 Aug 2018 10:38:49 -0000 From: "malcolm.parsons at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86993] New: assignment of read-only variable error reported at wrong location Date: Fri, 17 Aug 2018 10:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: malcolm.parsons at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01287.txt.bz2 Content-length: 950 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86993 Bug ID: 86993 Summary: assignment of read-only variable error reported at wrong location Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: malcolm.parsons at gmail dot com Target Milestone: --- For this C++ code: int main() { const int i =3D 5; i =3D 5 + 6; } g++ 5.1 reports: : In function 'int main()': :3:7: error: assignment of read-only variable 'i' i =3D 5 + 6; ^ but g++ 6.1 and later report: : In function 'int main()': :3:13: error: assignment of read-only variable 'i' i =3D 5 + 6; ^ gcc doesn't have this issue for C code. See https://godbolt.org/g/Hoojyt and https://godbolt.org/g/WQR5XS >>From gcc-bugs-return-612999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:54:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114932 invoked by alias); 17 Aug 2018 10:54:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114876 invoked by uid 48); 17 Aug 2018 10:54:33 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86889] s390x gcc build fails when configured with --disable-checking Date: Fri, 17 Aug 2018 10:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01288.txt.bz2 Content-length: 1544 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86889 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #5 from Richard Biener --- So the issue is that the __builtin_unreachable () elides the g >=3D 0 test, effectively making the loop endless. If you disable EVRP and CUNROLLI then VRP1 will do this transform. : # g_2 =3D PHI <1(2), g_7(5)> if (g_2 !=3D -1) goto ; [INV] else goto ; [INV] It goes like EVRP computing the range of g_2 to [0, 1] (correctly, based on the __builtin_unreachable) and then CFG cleanup simplifying the conditional to false, removing the __builtin_unreachable () call. cunrolli then computes the loop to run twice and inserts that stray [-1] ar= ray reference, exposing it's old latent issue of sometimes emitting stray iterations as the reporter already analyzed (it can at most handle the _las= t_ iteration when marking blocks as never executed, but in cases where the IV increment is at unfortunate places it has to look at the previous peeled copy as well). Maybe I can get to improve this. Don't hold your breath. I think we have dups of this (but maybe closed because they no longer warn). >>From gcc-bugs-return-613000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 10:59:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121890 invoked by alias); 17 Aug 2018 10:59:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121841 invoked by uid 48); 17 Aug 2018 10:59:54 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/80334] [5 Regression] Segfault when taking address of copy of unaligned struct Date: Fri, 17 Aug 2018 10:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01289.txt.bz2 Content-length: 504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80334 --- Comment #13 from Richard Biener --- (In reply to Alexandre Oliva from comment #12) > Created attachment 44527 [details] > candidate patch to fix the error noted in comment 11 >=20 > This patch fixes the unaligned accesses in the testcase in comment 11. I > haven't yet tested it otherwise. The patch doesn't make much sense. Whoever is "consuming" the pointer does the wrong thing. Please open a new bug as well. >>From gcc-bugs-return-613001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 11:03:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124814 invoked by alias); 17 Aug 2018 11:03:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124762 invoked by uid 48); 17 Aug 2018 11:03:05 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] std::tuple incorrectly assigned Date: Fri, 17 Aug 2018 11:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01290.txt.bz2 Content-length: 378 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org >>From gcc-bugs-return-613002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 11:04:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127533 invoked by alias); 17 Aug 2018 11:04:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127478 invoked by uid 48); 17 Aug 2018 11:04:21 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86927] [8/9 Regression] Gcc miscompiles at -O3 on valid code Date: Fri, 17 Aug 2018 11:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01291.txt.bz2 Content-length: 515 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86927 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #4 from Richard Biener --- Mine then. >>From gcc-bugs-return-613003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 11:11:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130802 invoked by alias); 17 Aug 2018 11:11:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130725 invoked by uid 48); 17 Aug 2018 11:11:00 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86993] [6/7/8/9 Regression] assignment of read-only variable error reported at wrong location Date: Fri, 17 Aug 2018 11:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01292.txt.bz2 Content-length: 1141 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86993 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-17 CC| |dmalcolm at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Started with r231293 C++ FE: expression ranges gcc/ChangeLog: * convert.c (convert_to_real_1): When converting from a REAL_TYPE, preserve the location of EXPR in the result. * tree.c (get_pure_location): Make non-static. (set_source_range): Return the resulting location_t. (make_location): New function. * tree.h (get_pure_location): New decl. (get_finish): New inline function. (set_source_range): Convert return type from void to location_t. (make_location): New decl. ... >>From gcc-bugs-return-613004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 11:34:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110226 invoked by alias); 17 Aug 2018 11:34:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110172 invoked by uid 55); 17 Aug 2018 11:33:57 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBvdGhlci84Njk5Ml0gWzggUmVncmVzc2lvbl0gZ2NjOiBlcnJvcjog?= =?UTF-8?B?dW5yZWNvZ25pemVkIGNvbW1hbmQgbGluZSBvcHRpb24g4oCYLWZjaWxrcGx1?= =?UTF-8?B?c+KAmQ==?= Date: Fri, 17 Aug 2018 11:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01293.txt.bz2 Content-length: 544 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86992 --- Comment #1 from Martin Li=C5=A1ka --- Author: marxin Date: Fri Aug 17 11:33:25 2018 New Revision: 263616 URL: https://gcc.gnu.org/viewcvs?rev=3D263616&root=3Dgcc&view=3Drev Log: Fix wrong option declaration of fcilkplus (PR other/86992). 2018-08-17 Martin Liska PR other/86992 * c.opt: Fix declaration of cilkplus. Modified: branches/gcc-8-branch/gcc/c-family/ChangeLog branches/gcc-8-branch/gcc/c-family/c.opt >>From gcc-bugs-return-613005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 11:35:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113070 invoked by alias); 17 Aug 2018 11:35:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113017 invoked by uid 48); 17 Aug 2018 11:35:31 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBvdGhlci84Njk5Ml0gWzggUmVncmVzc2lvbl0gZ2NjOiBlcnJvcjog?= =?UTF-8?B?dW5yZWNvZ25pemVkIGNvbW1hbmQgbGluZSBvcHRpb24g4oCYLWZjaWxrcGx1?= =?UTF-8?B?c+KAmQ==?= Date: Fri, 17 Aug 2018 11:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01294.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86992 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Martin Li=C5=A1ka --- Fixed. >>From gcc-bugs-return-613006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 11:52:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130367 invoked by alias); 17 Aug 2018 11:52:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130303 invoked by uid 55); 17 Aug 2018 11:52:22 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86763] [7/8 Regression] Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch Date: Fri, 17 Aug 2018 11:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: alias, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01295.txt.bz2 Content-length: 791 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86763 --- Comment #13 from Richard Biener --- Author: rguenth Date: Fri Aug 17 11:51:48 2018 New Revision: 263617 URL: https://gcc.gnu.org/viewcvs?rev=3D263617&root=3Dgcc&view=3Drev Log: 2018-08-17 Richard Biener Backport from mainline 2018-08-02 Richard Biener PR c++/86763 * class.c (layout_class_type): Copy TYPE_TYPELESS_STORAGE to the CLASSTYPE_AS_BASE. * g++.dg/torture/pr86763.C: New testcase. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/torture/pr86763.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/class.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:16:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72955 invoked by alias); 17 Aug 2018 12:16:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 72862 invoked by uid 48); 17 Aug 2018 12:16:41 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86994] [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Date: Fri, 17 Aug 2018 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01297.txt.bz2 Content-length: 285 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86994 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:16:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71551 invoked by alias); 17 Aug 2018 12:16:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70558 invoked by uid 48); 17 Aug 2018 12:15:57 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86994] New: [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Date: Fri, 17 Aug 2018 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01296.txt.bz2 Content-length: 900 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86994 Bug ID: 86994 Summary: [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: ubizjak at gmail dot com Target Milestone: --- Target: i?86-*-*, x86-*-* Between 20180816 (r263590) and 20180817 (r263613), gcc.target/i386/20040112= -1.c started to FAIL for 64-bit: +FAIL: gcc.target/i386/20040112-1.c scan-assembler testb Seen on i386-pc-solaris2.11 and x86_64-pc-linux-gnu. Compared to the gcc-8 branch, the code changed from - testb %al, %al - jns .L2 + cmpb $-1, %al + jg .L2 >>From gcc-bugs-return-613009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:26:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11766 invoked by alias); 17 Aug 2018 12:26:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11714 invoked by uid 48); 17 Aug 2018 12:26:17 -0000 From: "phd at phd dot re" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/77488] Proposal for __FILENAME_ONLY__ Date: Fri, 17 Aug 2018 12:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: phd at phd dot re X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01298.txt.bz2 Content-length: 522 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77488 Piotr Henryk Dabrowski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |phd at phd dot re --- Comment #6 from Piotr Henryk Dabrowski --- You can use: #line 2 "FileName.cpp" at the very top (!) of all your files to change the content of __FILE__. This also affects compiler messages. >>From gcc-bugs-return-613011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:27:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15473 invoked by alias); 17 Aug 2018 12:27:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15438 invoked by uid 48); 17 Aug 2018 12:27:48 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86995] [9 regression] c-c++-common/torture/builtin-arith-overflow-17.c etc. FAIL Date: Fri, 17 Aug 2018 12:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01300.txt.bz2 Content-length: 285 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86995 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:27:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14635 invoked by alias); 17 Aug 2018 12:27:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14591 invoked by uid 48); 17 Aug 2018 12:27:07 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86995] New: [9 regression] c-c++-common/torture/builtin-arith-overflow-17.c etc. FAIL Date: Fri, 17 Aug 2018 12:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01299.txt.bz2 Content-length: 1968 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86995 Bug ID: 86995 Summary: [9 regression] c-c++-common/torture/builtin-arith-overflow-17.c etc. FAIL Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- Target: i?86-*-*, x86_64-*-*, powerpc64-*-* Between 20180816 (r263590) and 20180817 (r263613), two tests started to FAIL on 64-bit Solaris/x86 and Linux/x86_64: +FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O0 execution te= st +FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O2 execution te= st +FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O2 -flto execut= ion test +FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O2 -flto -flto-partition=3Dnone execution test +FAIL: c-c++-common/torture/builtin-arith-overflow-p-17.c -O0 execution = test +FAIL: c-c++-common/torture/builtin-arith-overflow-p-17.c -O2 execution = test +FAIL: c-c++-common/torture/builtin-arith-overflow-p-17.c -O2 -flto=20 execution test +FAIL: c-c++-common/torture/builtin-arith-overflow-p-17.c -O2 -flto -flto-partition=3Dnone execution test There's also a report on Linux/PowerPC64. The test aborts here: #0 0x00007fffbe855cca in __lwp_sigqueue () from /lib/64/libc.so.1 #1 0x00007fffbe84c522 in thr_kill () from /lib/64/libc.so.1 #2 0x00007fffbe7870f9 in raise () from /lib/64/libc.so.1 #3 0x00007fffbe750eb1 in abort () from /lib/64/libc.so.1 #4 0x000000000042c3a2 in t150sub () at /vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/torture/builtin-arit= h-overflow-17.c:10 #5 0x0000000000435736 in main () at /vol/gcc/src/hg/trunk/local/gcc/testsuite/c-c++-common/torture/builtin-arit= h-overflow-17.c:18 >>From gcc-bugs-return-613012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:32:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49443 invoked by alias); 17 Aug 2018 12:32:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45054 invoked by uid 48); 17 Aug 2018 12:32:45 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] New: [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 12:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01301.txt.bz2 Content-length: 1195 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 Bug ID: 86996 Summary: [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: edlinger at gcc dot gnu.org, law at gcc dot gnu.org, msebor at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.* Between 20180816 (r263590) and 20180817 (r263613), a test started to FAIL on Solaris/SPARC and x86, both 32 and 64-bit: +FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-1.c (test for warnings, line 1= 563) +FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-1.c (test for excess errors) Excess errors: /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-w= arn-1.c:1563:3: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=3D] This suggests strongly one of the strlen etc. patches committed in that timeframe. >>From gcc-bugs-return-613013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:33:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61925 invoked by alias); 17 Aug 2018 12:33:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58969 invoked by uid 48); 17 Aug 2018 12:33:17 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 12:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01302.txt.bz2 Content-length: 285 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:38:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110184 invoked by alias); 17 Aug 2018 12:38:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110125 invoked by uid 48); 17 Aug 2018 12:38:01 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 12:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01303.txt.bz2 Content-length: 452 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 Bernd Edlinger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernd.edlinger at hotmail = dot de --- Comment #1 from Bernd Edlinger --- is this a target where wchar_t is 16-bit wide? >>From gcc-bugs-return-613015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:41:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16142 invoked by alias); 17 Aug 2018 12:41:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16088 invoked by uid 48); 17 Aug 2018 12:41:49 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5OTddIE5ldzogZXJyb3I6IGNhbGwgb2Ygb3ZlcmxvYWRl?= =?UTF-8?B?ZCDigJhOb0Rlc3RydWN0b3IoPGJyYWNlLWVuY2xvc2VkIGluaXRpYWxpemVy?= =?UTF-8?B?IGxpc3Q+KeKAmSBpcyBhbWJpZ3VvdXM=?= Date: Fri, 17 Aug 2018 12:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01304.txt.bz2 Content-length: 1688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86997 Bug ID: 86997 Summary: error: call of overloaded =E2=80=98NoDestructor(= )=E2=80=99 is ambiguous Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jason at gcc dot gnu.org Target Milestone: --- All GCC releases reject a test-case isolated from Chromium: $ cat browser_theme_pack.ii class a; struct NoDestructor { NoDestructor(); NoDestructor(a); }; int main() { NoDestructor b({}); } $ g++ -c browser_theme_pack.ii browser_theme_pack.ii: In function =E2=80=98int main()=E2=80=99: browser_theme_pack.ii:10:20: error: call of overloaded =E2=80=98NoDestructor()=E2=80=99 is ambigu= ous NoDestructor b({}); ^ browser_theme_pack.ii:5:3: note: candidate: =E2=80=98NoDestructor::NoDestru= ctor(a)=E2=80=99 NoDestructor(a); ^~~~~~~~~~~~ browser_theme_pack.ii:3:8: note: candidate: =E2=80=98constexpr NoDestructor::NoDestructor(const NoDestructor&)=E2=80=99 struct NoDestructor { ^~~~~~~~~~~~ browser_theme_pack.ii:3:8: note: candidate: =E2=80=98constexpr NoDestructor::NoDestructor(NoDestructor&&)=E2=80=99 While clang++ and ICC accept that: $ clang++ -c browser_theme_pack.ii -S -o/dev/stdout | grep call callq _ZN12NoDestructorC1Ev $ c++filt _ZN12NoDestructorC1Ev NoDestructor::NoDestructor() >>From gcc-bugs-return-613016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:42:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22165 invoked by alias); 17 Aug 2018 12:42:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19469 invoked by uid 48); 17 Aug 2018 12:42:06 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5OTddIGVycm9yOiBjYWxsIG9mIG92ZXJsb2FkZWQg4oCY?= =?UTF-8?B?Tm9EZXN0cnVjdG9yKDxicmFjZS1lbmNsb3NlZCBpbml0aWFsaXplciBsaXN0?= =?UTF-8?B?PinigJkgaXMgYW1iaWd1b3Vz?= Date: Fri, 17 Aug 2018 12:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01305.txt.bz2 Content-length: 481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86997 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-17 CC| |nathan at gcc dot gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-613017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:46:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22651 invoked by alias); 17 Aug 2018 12:46:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10777 invoked by uid 55); 17 Aug 2018 12:46:45 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 12:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01306.txt.bz2 Content-length: 646 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Bernd Edlinger --- > is this a target where wchar_t is 16-bit wide? No, wchar_t is always 32-bit. Cf. gcc/config/sol2.h: /* wchar_t is called differently in for 32 and 64-bit compilations. This is called for by SCD 2.4.1, p. 6-83, Figure 6-65 (32-bit) and p. 6P-10, Figure 6.38 (64-bit). */ #undef WCHAR_TYPE #define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int") #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE 32 >>From gcc-bugs-return-613018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 12:56:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71117 invoked by alias); 17 Aug 2018 12:56:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71055 invoked by uid 48); 17 Aug 2018 12:56:02 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5OTddIGVycm9yOiBjYWxsIG9mIG92ZXJsb2FkZWQg4oCY?= =?UTF-8?B?Tm9EZXN0cnVjdG9yKDxicmFjZS1lbmNsb3NlZCBpbml0aWFsaXplciBsaXN0?= =?UTF-8?B?PinigJkgaXMgYW1iaWd1b3Vz?= Date: Fri, 17 Aug 2018 12:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01307.txt.bz2 Content-length: 149 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86997 --- Comment #1 from Jonathan Wakely --- Looks like a dup of PR 59389 >>From gcc-bugs-return-613019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 13:08:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117814 invoked by alias); 17 Aug 2018 13:08:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117748 invoked by uid 48); 17 Aug 2018 13:08:16 -0000 From: "rdiezmail-gcc at yahoo dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/77488] Proposal for __FILENAME_ONLY__ Date: Fri, 17 Aug 2018 13:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rdiezmail-gcc at yahoo dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01308.txt.bz2 Content-length: 787 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77488 --- Comment #7 from R. Diez --- (In reply to Piotr Henryk Dabrowski from comment #6) > You can use: >=20 > #line 2 "FileName.cpp" >=20 > at the very top (!) of all your files > to change the content of __FILE__. > This also affects compiler messages. I do not want to override __FILE__. Its original content may be needed for something else. I just want an alternative to generate smaller asserts. Besides, maintaining such a "#line" hack in all files is uncomfortable. I already mentioned that I am including other libraries with their own source code and build systems. I need a way to tweak the assert definition for all= of them in Newlib. Otherwise, I have to patch all components everywhere. >>From gcc-bugs-return-613020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 13:13:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125319 invoked by alias); 17 Aug 2018 13:13:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125249 invoked by uid 48); 17 Aug 2018 13:13:17 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86998] New: Improve diagnostic for missing comma in template-parameter-list Date: Fri, 17 Aug 2018 13:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01309.txt.bz2 Content-length: 1487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86998 Bug ID: 86998 Summary: Improve diagnostic for missing comma in template-parameter-list Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- template void f() { } GCC says: err.cc:1:19: error: expected nested-name-specifier before 'T' 1 | template void f() { } | ^ err.cc:1:21: error: expected '>' before 'typename' 1 | template void f() { } | ^~~~~~~~ The first error is not helpful. The second error is OK, although it would be more correct (and helpful) to say that a comma would also be accepted, as C= lang does: err.cc:1:19: error: expected a qualified name after 'typename' template void f() { } ^ err.cc:1:21: error: expected ',' or '>' in template-parameter-list template void f() { } ^ 2 errors generated. I don't know why all of GCC, Clang and EDG say something about a nested-name-specifier or qualified name for the first template-parameter. I don't think the grammar allows a qualified-id there, only a plain identifie= r. >>From gcc-bugs-return-613022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 13:26:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15528 invoked by alias); 17 Aug 2018 13:26:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15481 invoked by uid 48); 17 Aug 2018 13:26:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86998] Improve diagnostic for missing comma in template-parameter-list Date: Fri, 17 Aug 2018 13:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01311.txt.bz2 Content-length: 728 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86998 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-17 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- The ideal would be a fix-it hint suggesting to add the comma. Adding the '>' that the parser says is expected would not make the code cor= rect because 'template typename U>' isn't valid as a top-level declaration (only as a template-parameter). >>From gcc-bugs-return-613021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 13:26:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14603 invoked by alias); 17 Aug 2018 13:26:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14497 invoked by uid 48); 17 Aug 2018 13:26:10 -0000 From: "law at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 13:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: law at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01310.txt.bz2 Content-length: 474 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 Jeffrey A. Law changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at redhat dot com --- Comment #3 from Jeffrey A. Law --- Rainer, can you compile the test with -save-temps on one of your solaris bo= xes and attach it? Thanks >>From gcc-bugs-return-613023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 13:32:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31998 invoked by alias); 17 Aug 2018 13:32:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31296 invoked by uid 48); 17 Aug 2018 13:32:15 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 13:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01312.txt.bz2 Content-length: 315 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 --- Comment #4 from Rainer Orth --- Created attachment 44553 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44553&action=3Dedit i386-pc-solaris2.11 -m32 builtin-sprintf-warn-1.i Sure, here's the 32-bit Solaris 11.5/x86 version. >>From gcc-bugs-return-613024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 14:05:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46379 invoked by alias); 17 Aug 2018 14:05:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46252 invoked by uid 48); 17 Aug 2018 14:05:42 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Fri, 17 Aug 2018 14:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01313.txt.bz2 Content-length: 421 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #2 from Marek Polacek --- https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00990.html >>From gcc-bugs-return-613025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 14:10:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52147 invoked by alias); 17 Aug 2018 14:10:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52082 invoked by uid 48); 17 Aug 2018 14:10:50 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/82036] [F08] Recursive allocatable class components cause infinite loop in compilation Date: Fri, 17 Aug 2018 14:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01314.txt.bz2 Content-length: 445 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82036 J=C3=BCrgen Reuter changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juergen.reuter at desy dot= de --- Comment #2 from J=C3=BCrgen Reuter --- In the meantime, this has become an ICE. >>From gcc-bugs-return-613026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 14:17:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78571 invoked by alias); 17 Aug 2018 14:17:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78516 invoked by uid 55); 17 Aug 2018 14:17:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86763] [7 Regression] Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch Date: Fri, 17 Aug 2018 14:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: alias, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01315.txt.bz2 Content-length: 791 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86763 --- Comment #14 from Richard Biener --- Author: rguenth Date: Fri Aug 17 14:17:10 2018 New Revision: 263621 URL: https://gcc.gnu.org/viewcvs?rev=3D263621&root=3Dgcc&view=3Drev Log: 2018-08-17 Richard Biener Backport from mainline 2018-08-02 Richard Biener PR c++/86763 * class.c (layout_class_type): Copy TYPE_TYPELESS_STORAGE to the CLASSTYPE_AS_BASE. * g++.dg/torture/pr86763.C: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr86763.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/class.c branches/gcc-7-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 14:18:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83588 invoked by alias); 17 Aug 2018 14:18:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83524 invoked by uid 48); 17 Aug 2018 14:18:53 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86763] [7 Regression] Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch Date: Fri, 17 Aug 2018 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: alias, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work resolution target_milestone cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01316.txt.bz2 Content-length: 593 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86763 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Known to work| |7.3.1 Resolution|--- |FIXED Target Milestone|8.3 |7.4 Known to fail| |7.3.0 --- Comment #15 from Richard Biener --- Fixed. >>From gcc-bugs-return-613028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 14:54:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32531 invoked by alias); 17 Aug 2018 14:54:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32472 invoked by uid 48); 17 Aug 2018 14:54:22 -0000 From: "ensadc at mailnesia dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86970] Rejected constexpr expression involving lambdas and inheritance, "use of this in a constant expression" Date: Fri, 17 Aug 2018 14:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ensadc at mailnesia dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01317.txt.bz2 Content-length: 1402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86970 ensadc at mailnesia dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ensadc at mailnesia dot com --- Comment #1 from ensadc at mailnesia dot com --- Removed `#include`: ---- template struct faketuple { template constexpr faketuple(U&& u) { } constexpr faketuple(const faketuple&) =3D default; }; namespace ns { template class Foo : private A { public: template explicit constexpr Foo(FA&& a) : A{static_cast(a)} {} }; template Foo(A)->Foo; template constexpr auto frobnicate(T&& val) { return [val =3D static_cast(val)] {}; } template class Bar { A a; faketuple b; public: template explicit constexpr Bar(FA&& a, FB&& b) : a{a} , b{b} {} }; template Bar(A, B)->Bar; constexpr auto Baz =3D ns::Foo{ns::frobnicate(ns::Bar{[] {}, [](int) {}= })}; } ---- But `std::tuple` has a move constructor, unlike `faketuple` :/ >>From gcc-bugs-return-613029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 17:03:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110273 invoked by alias); 17 Aug 2018 17:03:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110241 invoked by uid 48); 17 Aug 2018 17:03:03 -0000 From: "asd0025 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86999] New: Incorrect code generation and missing optimization with -fno-signed-zeros. Date: Fri, 17 Aug 2018 17:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asd0025 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01318.txt.bz2 Content-length: 2258 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86999 Bug ID: 86999 Summary: Incorrect code generation and missing optimization with -fno-signed-zeros. Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: asd0025 at gmail dot com Target Milestone: --- Consider the following trivial example (https://godbolt.org/g/5ms6Bf): #include typedef float v4f __attribute__((vector_size(16))); typedef int v4i __attribute__((vector_size(16))); v4f foo(v4f n, v4f p) { return n * p + p; } template v4f __neg1(v4f a) { v4i v =3D {((N & 1) ? INT_MIN : 0), ((N & 2) ? INT_MIN : 0), ((N & 4) ? INT_MIN : 0), ((N & 8) ? INT_MIN : 0)}; return __builtin_ia32_xorps(a, (v4f)v); } template v4f __neg2(v4f a) { v4i v =3D {((N & 1) ? INT_MIN : 0), ((N & 2) ? INT_MIN : 0), ((N & 4) ? INT_MIN : 0), ((N & 8) ? INT_MIN : 0)}; return (v4f)((v4i)a ^ v); } v4f neg1C(v4f a) { return __neg1<0x0C>(a); } v4f neg2C(v4f a) { return __neg2<0x0C>(a); } On GCC 7.x/8.x with -fno-signed-zeros (or implied by other flags eg.: -Ofas= t) foo() is not optimal on FMA capable hardware: foo(float __vector(4), float __vector(4)): vmulps xmm0, xmm0, xmm1 vaddps xmm0, xmm0, xmm1 ret With -fsigned-zeros: foo(float __vector(4), float __vector(4)): vfmadd132ps xmm0, xmm1, xmm1 ret Incorrect code is generated only on GCC 8.x with -fno-signed-zeros: neg1C(float __vector(4)): ret With -fsigned-zeros or with GCC 7.x: neg1C(float __vector(4)): vxorps xmm0, xmm0, XMMWORD PTR .LC1[rip] ret .LC1: .long 0 .long 0 .long 2147483648 .long 2147483648 Note however when using bitwise xor instead of __builtin_ia32_xorps() the generated code is correct in all cases: neg2C(float __vector(4)): vxorps xmm0, xmm0, XMMWORD PTR .LC1[rip] ret .LC1: .long 0 .long 0 .long 2147483648 .long 2147483648 >>From gcc-bugs-return-613030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 17:26:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32889 invoked by alias); 17 Aug 2018 17:26:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32790 invoked by uid 55); 17 Aug 2018 17:26:44 -0000 From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71625] missing strlen optimization on different array initialization style Date: Fri, 17 Aug 2018 17:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01319.txt.bz2 Content-length: 676 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 --- Comment #19 from nsz at gcc dot gnu.org --- Author: nsz Date: Fri Aug 17 17:26:11 2018 New Revision: 263624 URL: https://gcc.gnu.org/viewcvs?rev=3D263624&root=3Dgcc&view=3Drev Log: Fix poly types after PR tree-optimization/71625 strlen optimization Same as r263561, but for arm: avoid compilation errors caused by poly initializers getting treated as string literals. Tested on arm-none-linux-gnueabihf. gcc/ChangeLog: * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Clear polyNxK_t element's TYPE_STRING_FLAG. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm-builtins.c >>From gcc-bugs-return-613031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 17:29:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36811 invoked by alias); 17 Aug 2018 17:29:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36741 invoked by uid 48); 17 Aug 2018 17:29:07 -0000 From: "gavin.keith.ridley at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87000] New: LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram Date: Fri, 17 Aug 2018 17:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gavin.keith.ridley at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01320.txt.bz2 Content-length: 1618 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87000 Bug ID: 87000 Summary: LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: gavin.keith.ridley at gmail dot com Target Milestone: --- If an array is allocated with indices that don't start at one, lbound and ubound seem to give incorrect answers if the array is passed to any subprog= ram. This program clearly illustrates the issue, compiled with no flags: program asdf use iso_fortran_env implicit none real(real64), dimension(-5:10) :: arr print *, 'lbound =3D ', lbound(arr) print *, 'ubound =3D ', ubound(arr) call boundprinter(arr) contains subroutine boundprinter(x) real(real64), intent(in), dimension(:) :: x print *, 'lbound =3D ', lbound(x) print *, 'ubound =3D ', ubound(x) endsubroutine boundprinter endprogram asdf Which prints: lbound =3D -5 ubound =3D 10 lbound =3D 1 ubound =3D 16 Shouldn't these be consistent? Very notably, it seems gcc 4 gives the correct answer, but not gcc 8.1.0. T= his bug causes segfaults in a program called MPACT developed by Oak Ridge Natio= nal Lab and University of Michigan which I'd estimate somewhere between 50 and = 100 people use. As a result of this, all of their compiles are still done on gc= c 4. >>From gcc-bugs-return-613032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 17:47:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23818 invoked by alias); 17 Aug 2018 17:47:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23709 invoked by uid 48); 17 Aug 2018 17:47:42 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87000] LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram Date: Fri, 17 Aug 2018 17:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01321.txt.bz2 Content-length: 2335 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87000 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- (In reply to Gavin Ridley from comment #0) > If an array is allocated with indices that don't start at one, lbound and > ubound seem to give incorrect answers if the array is passed to any > subprogram. This program clearly illustrates the issue, compiled with no > flags: >=20 > program asdf > use iso_fortran_env > implicit none > real(real64), dimension(-5:10) :: arr > print *, 'lbound =3D ', lbound(arr) > print *, 'ubound =3D ', ubound(arr) > call boundprinter(arr) >=20 > contains > subroutine boundprinter(x) > real(real64), intent(in), dimension(:) :: x > print *, 'lbound =3D ', lbound(x) > print *, 'ubound =3D ', ubound(x) > endsubroutine boundprinter > endprogram asdf >=20 > Which prints: >=20 > lbound =3D -5 > ubound =3D 10 > lbound =3D 1 > ubound =3D 16 >=20 > Shouldn't these be consistent? >=20 > Very notably, it seems gcc 4 gives the correct answer, but not gcc 8.1.0. > This bug causes segfaults in a program called MPACT developed by Oak Ridge > National Lab and University of Michigan which I'd estimate somewhere betw= een > 50 and 100 people use. As a result of this, all of their compiles are sti= ll > done on gcc 4. I think you may have found a bug in your code. F2003, 5.1.2.5.2, Assumed-shape array An assumed-shape array is a nonpointer dummy argument array that takes its shape from the associated actual argument array. R514 assumed-shape-spec is [ lower-bound ] : The rank is equal to the number of colons in the assumed-shape-spec-list. The extent of a dimension of an assumed-shape array dummy argument is the extent of the corresponding dimension of the associated actual argument array. If the lower bound value is 'd' and the extent of the corresponding dimension of the associated actual argument array is 's', then the value of the upper bound is 's + d - 1'. The lower bound is 'lower-bound', if present, and 1 otherwise. Of course, I could be wrong. >>From gcc-bugs-return-613033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 17:51:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28741 invoked by alias); 17 Aug 2018 17:51:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28315 invoked by uid 48); 17 Aug 2018 17:51:04 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86999] Incorrect code generation and missing optimization with -fno-signed-zeros. Date: Fri, 17 Aug 2018 17:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01322.txt.bz2 Content-length: 876 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86999 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #1 from Alexander Monakov --- For the first problem -fno-signed-zeros is a bit of a red herring, the real reason is enabling -fassociative-math makes GCC turn return n * p + p; to 'return (n + 1) * p;' and while we slightly optimize it on RTL we don't recover fma from it. For the second problem, the expression '(v4f)v' is {0.0f, 0.0f, -0.0f, -0.0= f} and by specifying -fno-signed-zeros you're allowing the compiler to change = it to all-positive-zeros, making the function a no-op. So that is not a bug. >>From gcc-bugs-return-613034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 17:53:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35955 invoked by alias); 17 Aug 2018 17:53:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35866 invoked by uid 55); 17 Aug 2018 17:53:23 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] std::tuple incorrectly assigned Date: Fri, 17 Aug 2018 17:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01323.txt.bz2 Content-length: 2441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 --- Comment #3 from Jonathan Wakely --- Author: redi Date: Fri Aug 17 17:52:49 2018 New Revision: 263625 URL: https://gcc.gnu.org/viewcvs?rev=3D263625&root=3Dgcc&view=3Drev Log: PR libstdc++/86963 Implement LWG 2729 constraints on tuple assignment PR libstdc++/86963 * include/std/tuple (__tuple_base): New class template with deleted copy assignment operator. (tuple, tuple<_T1, _T2>): Derive from __tuple_base so that implicit copy/move assignment operator will be deleted/suppressed. (tuple::__assignable, tuple<_T1, _T2>::__assignable): New helper functions for SFINAE constraints on assignment operators. (tuple::__nothrow_assignable, tuple<_T1, _T2>::__nothrow_assignable= ): New helper functions for exception specifications. (tuple::operator=3D(const tuple&), tuple::operator=3D(tuple&&)) (tuple<_T1, _T2>::operator=3D(const tuple&)) (tuple<_T1, _T2>::operator=3D(tuple&&)): Change parameter types to __nonesuch_no_braces when the operator should be defined implicitly. Use __nothrow_assignable for exception specifications. (tuple::operator=3D(const tuple<_UElements...>&)) (tuple::operator=3D(tuple<_UElements...>&&)) (tuple<_T1, _T2>::operator=3D(const tuple<_U1, _U2>&)) (tuple<_T1, _T2>::operator=3D(tuple<_U1, _U2>&&)) (tuple<_T1, _T2>::operator=3D(const pair<_U1, _U2>&)) (tuple<_T1, _T2>::operator=3D(pair<_U1, _U2>&&)): Constrain using __assignable and use __nothrow_assignable for exception specifications. * python/libstdcxx/v6/printers.py (is_specialization_of): Accept gdb.Type as first argument, instead of a string. (StdTuplePrinter._iterator._is_nonempty_tuple): New method to check tuple for expected structure. (StdTuplePrinter._iterator.__init__): Use _is_nonempty_tuple. * testsuite/20_util/tuple/dr2729.cc: New test. * testsuite/20_util/tuple/element_access/get_neg.cc: Change dg-error to dg-prune-output. Added: trunk/libstdc++-v3/testsuite/20_util/tuple/dr2729.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/tuple trunk/libstdc++-v3/python/libstdcxx/v6/printers.py trunk/libstdc++-v3/testsuite/20_util/tuple/element_access/get_neg.cc >>From gcc-bugs-return-613035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 18:34:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111476 invoked by alias); 17 Aug 2018 18:34:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111242 invoked by uid 48); 17 Aug 2018 18:34:01 -0000 From: "gavin.keith.ridley at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87000] LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram Date: Fri, 17 Aug 2018 18:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gavin.keith.ridley at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01324.txt.bz2 Content-length: 1003 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87000 --- Comment #2 from Gavin Ridley --- OK, I see, thank you. I believe you're right on that. When I tried to make = this example, I cut out an important part that seems to cause the difference bet= ween gcc compiler versions. This code: program asdf use iso_fortran_env implicit none real(real64), dimension(:), allocatable :: arr allocate(arr(-5:10)) print *, 'lbound =3D ', lbound(arr) print *, 'ubound =3D ', ubound(arr) call boundprinter(arr) contains subroutine boundprinter(x) class(*), intent(in), dimension(:) :: x print *, 'lbound =3D ', lbound(x) print *, 'ubound =3D ', ubound(x) endsubroutine boundprinter endprogram asdf Gives the difference I'm looking to illustrate. Insteady of specifying the = type of the array, this instead has the polymorphic class(*) which gives lbound= =3D-5 on gcc 4.9.3 but gives lbound=3D1 on gcc 7.3.1. Which gcc is correct? >>From gcc-bugs-return-613036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 18:47:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4842 invoked by alias); 17 Aug 2018 18:47:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4785 invoked by uid 55); 17 Aug 2018 18:47:16 -0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87000] LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram Date: Fri, 17 Aug 2018 18:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01325.txt.bz2 Content-length: 1598 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87000 --- Comment #3 from Steve Kargl -= -- On Fri, Aug 17, 2018 at 06:34:01PM +0000, gavin.keith.ridley at gmail dot c= om wrote: > OK, I see, thank you. I believe you're right on that. When I > tried to make this example, I cut out an important part that > seems to cause the difference between > gcc compiler versions. This code: >=20 > program asdf > use iso_fortran_env > implicit none > real(real64), dimension(:), allocatable :: arr > allocate(arr(-5:10)) > print *, 'lbound =3D ', lbound(arr) > print *, 'ubound =3D ', ubound(arr) > call boundprinter(arr) >=20 > contains > subroutine boundprinter(x) > class(*), intent(in), dimension(:) :: x > print *, 'lbound =3D ', lbound(x) > print *, 'ubound =3D ', ubound(x) > endsubroutine boundprinter > endprogram asdf >=20 > Gives the difference I'm looking to illustrate. Insteady of > specifying the type of the array, this instead has the polymorphic > class(*) which gives lbound=3D-5 on gcc 4.9.3 but gives lbound=3D1 > on gcc 7.3.1. Which gcc is correct? Hmm, I don't use Fortran's OOP features such as CLASS(*), so I don't know if there are different rules for CLASS(*) dummy arguments. I would presume the F2003, 5.1.2.5.2, would still hold in F2008 and later. Just checked. F2008, 5.3.8.3, appears to be indentical to=20 F2003. So, I suspect that gcc 7.3.1 is correct. I'll that or unlimited polymorphic variables (CLASS(*)) first appeared in gfortran in 4.8.x, so the older version like had a bug. >>From gcc-bugs-return-613037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 18:52:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15473 invoked by alias); 17 Aug 2018 18:52:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15387 invoked by uid 48); 17 Aug 2018 18:52:01 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 18:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01326.txt.bz2 Content-length: 855 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-17 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #5 from Martin Sebor --- Confirmed. On Solaris, wint_t is signed but on Linux it's unsigned, so (wint_t)'\x80' (which is what the test uses) is treated differently between= the two. The failed assertion is fallout from the change to the sprintf pass (r263612). >>From gcc-bugs-return-613038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 19:01:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38724 invoked by alias); 17 Aug 2018 19:01:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37819 invoked by uid 48); 17 Aug 2018 19:00:24 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86998] Improve diagnostic for missing comma in template-parameter-list Date: Fri, 17 Aug 2018 19:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01327.txt.bz2 Content-length: 630 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86998 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > I don't know why all of GCC, Clang and EDG say something about a > nested-name-specifier or qualified name for the first template-parameter.= I > don't think the grammar allows a qualified-id there, only a plain identif= ier. It is allowed, when naming a non-type template parameter using a qualiflied= -id e.g. template struct X { template struct Y { }; }; The rest of the PR still stands, we should add a fix-it for the comma. >>From gcc-bugs-return-613039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 19:02:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41522 invoked by alias); 17 Aug 2018 19:02:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41339 invoked by uid 48); 17 Aug 2018 19:01:48 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] std::tuple incorrectly assigned Date: Fri, 17 Aug 2018 19:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01328.txt.bz2 Content-length: 488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #4 from Jonathan Wakely --- Fixed for GCC 9. >>From gcc-bugs-return-613040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 19:33:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97676 invoked by alias); 17 Aug 2018 19:33:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97613 invoked by uid 48); 17 Aug 2018 19:33:41 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/81033] [8/9 Regression] there are cases where ld64 is not able to determine correct atom boundaries from the output GCC currently produces Date: Fri, 17 Aug 2018 19:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: build, patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01329.txt.bz2 Content-length: 829 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81033 --- Comment #44 from Iain Sandoe --- (In reply to Eric Gallager from comment #43) > (In reply to Iain Sandoe from comment #42) > > (In reply to Elliot Saba from comment #41) > > > Has there been any progress on this? We are running into this while = trying > > > to cross-compile GCC for Darwin. Has this been fixed in 8.3.0? > >=20 > > I will be posting two patches (one just posted today) that are my propo= sed > > solution - basically, v2 above plus removing a target hook. >=20 > One is here: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00798.html (this one still needs review from someone for the dwarf2out / final) the other was https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00767.html (approved and applied, will be backported soon) >>From gcc-bugs-return-613041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 21:06:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112971 invoked by alias); 17 Aug 2018 21:06:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96880 invoked by uid 48); 17 Aug 2018 21:06:19 -0000 From: "snowfed at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80931] ICE on move_alloc in gimplify_expr, at gimplify.c:11335 Date: Fri, 17 Aug 2018 21:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: snowfed at mail dot ru X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01330.txt.bz2 Content-length: 275 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 --- Comment #7 from snowfed --- Wow! Read your book with great pleasure! (the Russian translation of it) (In reply to Arjen Markus from comment #6) > Yes, I am :). >=20 > Regards, >=20 > Arjen > >>From gcc-bugs-return-613042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 21:18:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115862 invoked by alias); 17 Aug 2018 21:18:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115841 invoked by uid 48); 17 Aug 2018 21:18:21 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87001] New: False error "expansion pattern 'x' contains no argument packs" Date: Fri, 17 Aug 2018 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01331.txt.bz2 Content-length: 1335 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87001 Bug ID: 87001 Summary: False error "expansion pattern 'x' contains no argument packs" Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /******************* BEGIN SOURCE *******************/ template struct X { template class U> struct Y { template using type =3D U; }; }; /******************** END SOURCE ********************/ Or, without using the `typeof` extension, it can be written: /******************* BEGIN SOURCE *******************/ template struct X { template class U> struct Y { template using type =3D U; }; }; /******************** END SOURCE ********************/ There is an unexpected error: :6:28: error: expansion pattern 'x' contains no parameter packs 6 | using type =3D U; | ^ Compiler returned: 1 For comparison, it compiles fine with Clang. >>From gcc-bugs-return-613043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 21:59:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93893 invoked by alias); 17 Aug 2018 21:59:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93805 invoked by uid 55); 17 Aug 2018 21:58:59 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 21:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01332.txt.bz2 Content-length: 475 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 --- Comment #6 from Martin Sebor --- Author: msebor Date: Fri Aug 17 21:58:27 2018 New Revision: 263636 URL: https://gcc.gnu.org/viewcvs?rev=3D263636&root=3Dgcc&view=3Drev Log: PR testsuite/86996 gcc/testsuite/CHangeLog: * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Adjust. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c >>From gcc-bugs-return-613044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 21:59:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94755 invoked by alias); 17 Aug 2018 21:59:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94660 invoked by uid 48); 17 Aug 2018 21:59:16 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/86996] [9 regression] gcc.dg/tree-ssa/builtin-sprintf-warn-1.c FAILs Date: Fri, 17 Aug 2018 21:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status component resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01333.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86996 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Component|middle-end |testsuite Resolution|--- |FIXED --- Comment #7 from Martin Sebor --- Test adjusted in r263636. >>From gcc-bugs-return-613045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 22:55:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101730 invoked by alias); 17 Aug 2018 22:55:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101675 invoked by uid 48); 17 Aug 2018 22:55:11 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/87002] New: allow integers larger than "long" Date: Fri, 17 Aug 2018 22:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01334.txt.bz2 Content-length: 680 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87002 Bug ID: 87002 Summary: allow integers larger than "long" Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- gcc-jit has gcc_jit_context_new_rvalue_from_int and gcc_jit_context_new_rvalue_from_long, but on some platforms long might be 32 bits, but a program could still use int64_t or long long. I think gcc-jit should have an intmax_t function, and perhaps uintmax_t as well. >>From gcc-bugs-return-613046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 22:58:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106430 invoked by alias); 17 Aug 2018 22:58:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106371 invoked by uid 48); 17 Aug 2018 22:58:06 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/87003] New: use nonnull attribute in libgccjit.h Date: Fri, 17 Aug 2018 22:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01335.txt.bz2 Content-length: 616 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87003 Bug ID: 87003 Summary: use nonnull attribute in libgccjit.h Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Many functions in libgccjit.h take a pointer argument, and it isn't clear which of these can be NULL and which cannot. It would be a bit helpful if the nonnull attribute were applied where appropriate. >>From gcc-bugs-return-613047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 23:00:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112353 invoked by alias); 17 Aug 2018 23:00:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111331 invoked by uid 48); 17 Aug 2018 23:00:31 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/87004] New: no way to mark a function as noreturn Date: Fri, 17 Aug 2018 23:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01336.txt.bz2 Content-length: 642 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87004 Bug ID: 87004 Summary: no way to mark a function as noreturn Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Currently all blocks must be terminated either with a jump or a return. I think it should also be possible to terminate a block with a call to a noreturn function. But, there is no way to indicate that a function is noreturn. >>From gcc-bugs-return-613048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 23:02:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10888 invoked by alias); 17 Aug 2018 23:02:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8424 invoked by uid 48); 17 Aug 2018 23:02:28 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/87005] New: gcc_jit_context_get_builtin_function not documented Date: Fri, 17 Aug 2018 23:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01337.txt.bz2 Content-length: 498 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87005 Bug ID: 87005 Summary: gcc_jit_context_get_builtin_function not documented Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- The function gcc_jit_context_get_builtin_function is not documented. >>From gcc-bugs-return-613049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 23:26:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29855 invoked by alias); 17 Aug 2018 23:26:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27346 invoked by uid 48); 17 Aug 2018 23:25:59 -0000 From: "tausrd at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87006] New: Stack Protection with Large File support Date: Fri, 17 Aug 2018 23:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tausrd at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01338.txt.bz2 Content-length: 1003 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87006 Bug ID: 87006 Summary: Stack Protection with Large File support Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tausrd at gmail dot com Target Milestone: --- Dear Sirs, I would like to report a bug in: gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 When adding large file features : #define _FILE_OFFSET_BITS 64 and gcc option : -D_FILE_OFFSET_BITS=3D64 The program compiles ok, but when it runs : gets error "Smashed Stack Detec= ted" when doing "fclose" to a large file. The error gets cleaned if I use "gcc ... -fno-stack-protector", but there = is no protection of stack. I would prefer to have "stack protection enabled" always with large files support. Please, help me to fix this.=20 Best Regards, Claudio SR >>From gcc-bugs-return-613050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 17 23:51:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15716 invoked by alias); 17 Aug 2018 23:51:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15631 invoked by uid 48); 17 Aug 2018 23:51:18 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87006] Stack Protection with Large File support Date: Fri, 17 Aug 2018 23:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01339.txt.bz2 Content-length: 499 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87006 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |target --- Comment #1 from Andrew Pinski --- You should report this to Ubuntu since it is their compiler. Also do you have a full testcase which is causing the failure at runtime? >>From gcc-bugs-return-613051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 07:57:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55643 invoked by alias); 18 Aug 2018 07:57:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55589 invoked by uid 48); 18 Aug 2018 07:57:41 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87006] Stack Protection with Large File support Date: Sat, 18 Aug 2018 07:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01340.txt.bz2 Content-length: 208 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87006 --- Comment #2 from Andreas Schwab --- If you are looking for help in fixing your program you should ask on gcc-help@gcc.gnu.org. >>From gcc-bugs-return-613052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 08:37:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84768 invoked by alias); 18 Aug 2018 08:37:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84718 invoked by uid 48); 18 Aug 2018 08:37:05 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86994] [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Date: Sat, 18 Aug 2018 08:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01341.txt.bz2 Content-length: 1539 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86994 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-18 CC| |law at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Uro=C5=A1 Bizjak --- It is r263591: 2018-08-16 Vlad Lazar * expmed.h (canonicalize_comparison): New declaration. * expmed.c (canonicalize_comparison, equivalent_cmp_code): New function. * expmed.c (emit_store_flag_1): Add call to canonicalize_comparison. * optabs.c (prepare_cmp_insn): Likewise. * rtl.h (unsigned_condition_p): New function which checks if a comparison operator is unsigned. That now expands with: (insn 12 8 13 4 (set (reg:CCGC 17 flags) (compare:CCGC (reg/v:QI 87 [ status ]) (const_int -1 [0xffffffffffffffff]))) "20040112-1.c":13 9 {*cmpqi_1} (nil)) instead of: (insn 10 8 11 4 (set (reg:CCGOC 17 flags) (compare:CCGOC (reg/v:QI 87 [ status ]) (const_int 0 [0]))) "20040112-1.c":13 5 {*cmpqi_ccno_1} (nil)) The canonicalization, introduced in r263591 does not universally benefit all targets. I wonder why TARGET_CANONICALIZE_COMPARISON hook was not used inst= ead. >>From gcc-bugs-return-613053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 09:18:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31299 invoked by alias); 18 Aug 2018 09:18:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31240 invoked by uid 48); 18 Aug 2018 09:18:17 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86844] [8/9 regression] wrong code caused by store merging pass Date: Sat, 18 Aug 2018 09:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work target_milestone short_desc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01342.txt.bz2 Content-length: 857 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86844 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-18 CC| |ebotcazou at gcc dot gnu.o= rg Known to work| |7.3.1 Target Milestone|--- |8.3 Summary|wrong code generation |[8/9 regression] wrong code |caused by store merging |caused by store merging |pass |pass Ever confirmed|0 |1 Known to fail| |8.2.1, 9.0 >>From gcc-bugs-return-613054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 09:35:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46814 invoked by alias); 18 Aug 2018 09:35:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46754 invoked by uid 48); 18 Aug 2018 09:35:39 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86989] ICE in rs6000_output_addr_const_extra, at config/rs6000/rs6000.c:20994 Date: Sat, 18 Aug 2018 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01343.txt.bz2 Content-length: 591 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86989 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed|2018-08-17 00:00:00 |2018-08-18 Assignee|unassigned at gcc dot gnu.org |segher at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- Confirmed. I have a patch. >>From gcc-bugs-return-613055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 09:49:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54691 invoked by alias); 18 Aug 2018 09:49:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54653 invoked by uid 48); 18 Aug 2018 09:49:26 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86987] ICE in simplify_binary_operation_1, at simplify-rtx.c:3515 on ppc64le Date: Sat, 18 Aug 2018 09:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01344.txt.bz2 Content-length: 490 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86987 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed|2018-08-17 00:00:00 |2018-08-18 Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- Confirmed. >>From gcc-bugs-return-613056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 15:23:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61858 invoked by alias); 18 Aug 2018 15:23:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61786 invoked by uid 48); 18 Aug 2018 15:23:43 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87007] New: [8/9 Regression] 10% slowdown with -march=skylake-avx512 Date: Sat, 18 Aug 2018 15:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01345.txt.bz2 Content-length: 1494 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87007 Bug ID: 87007 Summary: [8/9 Regression] 10% slowdown with -march=3Dskylake-avx512 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: skpgkp1 at gmail dot com Target Milestone: --- Target: i386,x86-64 On Intel Skylake server, r262649 caused 10% slowdown for 538.imagick_r in SPEC CPU 2017 when compiled with: gcc -Ofast -march=3Dskylake-avx512 -mfpmath=3Dsse -fno-associative-math -funroll-loops -flto For [hjl@gnu-cfl-1 skx-2]$ cat foo.i extern float f; extern double d; extern int i; void foo (void) { d =3D f; f =3D i; } r262649 turned on sse_partial_reg_dependency, which generates vxorpd %xmm0, %xmm0, %xmm0 vcvtss2sd f(%rip), %xmm0, %xmm0 vmovsd %xmm0, d(%rip) vxorps %xmm0, %xmm0, %xmm0 vcvtsi2ss i(%rip), %xmm0, %xmm0 vmovss %xmm0, f(%rip) ret instead of vcvtss2sd f(%rip), %xmm0, %xmm0 vmovsd %xmm0, d(%rip) vcvtsi2ss i(%rip), %xmm0, %xmm0 vmovss %xmm0, f(%rip) ret One "vxorpd %xmm0, %xmm0, %xmm0" is necessary. But both vxorps %xmm0, %xmm0, %xmm0 and vxorps %xmm0, %xmm0, %xmm0 are bad for performance. >>From gcc-bugs-return-613057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 15:37:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79200 invoked by alias); 18 Aug 2018 15:37:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79131 invoked by uid 48); 18 Aug 2018 15:37:51 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87008] New: [8/9 Regression] gimple mem-to-mem assignment badly optimized Date: Sat, 18 Aug 2018 15:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01346.txt.bz2 Content-length: 2121 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87008 Bug ID: 87008 Summary: [8/9 Regression] gimple mem-to-mem assignment badly optimized Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: glisse at gcc dot gnu.org Target Milestone: --- Created attachment 44554 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44554&action=3Dedit preprocessed testcase Original testcase posted at https://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2018/08/msg00012= .html #include using Vec =3D Eigen::Matrix; Vec f () { Vec sum =3D Vec::Zero(); for (int i =3D 0; i < 1024; ++i) { const Vec dirA =3D sum; const Vec dirB =3D dirA; sum +=3D dirA.dot(dirB) * dirA; } return sum; } compiled on x86_64 with eigen 3.3.4, -DEIGEN_DONT_VECTORIZE -O3 . The .optimized dump contains MEM[(struct DenseStorage *)&dirA].m_data =3D MEM[(const struct DenseStora= ge &)sum_5(D)].m_data; dirA_18 =3D MEM[(struct plain_array *)&dirA]; dirA$8_3 =3D MEM[(struct plain_array *)&dirA + 8B]; MEM[(struct DenseStorage *)&dirB].m_data =3D MEM[(const struct DenseStora= ge &)&dirA].m_data; dirB_35 =3D MEM[(struct plain_array *)&dirB]; dirB$8_48 =3D MEM[(struct plain_array *)&dirB + 8B]; which translates to movdqu (%rax), %xmm1 movaps %xmm1, -40(%rsp) movsd -40(%rsp), %xmm2 movsd -32(%rsp), %xmm0 movaps %xmm1, -24(%rsp) movsd -16(%rsp), %xmm1 movsd -24(%rsp), %xmm5 This is clearly quite bad, we should for instance CSE dirA_18 and dirB_35. = This is yet another case where gimple optimizers have a hard time handling mem-to-mem assignment. I think we have relevant code in vn_reference_lookup= _3 (case 5 in particular). ESRA used to help. I would also have expected better from RTL optimization, but that may be too optimistic. >>From gcc-bugs-return-613058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 15:38:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80232 invoked by alias); 18 Aug 2018 15:38:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80148 invoked by uid 48); 18 Aug 2018 15:38:22 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86994] [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Date: Sat, 18 Aug 2018 15:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01347.txt.bz2 Content-length: 633 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86994 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #2 from Andrew Pinski --- >The canonicalization, introduced in r263591 does not universally benefit a= ll targets. As mentioned in the thread, there is no canonicalization but there a checki= ng of the cost. If x86 cost model is incorrect, you would get the incorrect t= hing here. >>From gcc-bugs-return-613059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 16:18:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31523 invoked by alias); 18 Aug 2018 16:18:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31453 invoked by uid 48); 18 Aug 2018 16:18:41 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87007] [8/9 Regression] 10% slowdown with -march=skylake-avx512 Date: Sat, 18 Aug 2018 16:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01348.txt.bz2 Content-length: 673 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87007 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-18 Assignee|unassigned at gcc dot gnu.org |hjl.tools at gmail = dot com Ever confirmed|0 |1 --- Comment #1 from H.J. Lu --- Created attachment 44555 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44555&action=3Dedit I am testing this patch >>From gcc-bugs-return-613060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 17:31:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34960 invoked by alias); 18 Aug 2018 17:30:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34811 invoked by uid 48); 18 Aug 2018 17:30:51 -0000 From: "mcccs at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87009] New: Can't find XOR pattern applying De Morgan sequentially Date: Sat, 18 Aug 2018 17:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcccs at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01349.txt.bz2 Content-length: 1827 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87009 Bug ID: 87009 Summary: Can't find XOR pattern applying De Morgan sequentially Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mcccs at gmx dot com Target Milestone: --- Optimization: -Ofast Suggested debugging layout: https://godbolt.org/g/ERWctt int xor_int(int a, int b) { ... } Don't work: int x =3D ~(a|b); return ~(x|a)|~(x|b); return ~(~(a|b)|a)|~(~(a|b)|b); int x =3D ~a&~b; return ~((x|a)&(x|b)); return ~(((~a&~b)|a)&((~a&~b)|b)); int x =3D ~a&~b; return ~(x|a)|~(x|b); return ~((~a&~b)|a)|~((~a&~b)|b); int x =3D ~a&~b; return (~x&~a)|(~x&~b); int x =3D ~a&~b; return ~x&(~a|~b); Those two work: return (~(~a&~b)&~a)|(~(~a&~b)&~b); return ~(~a&~b)&(~a|~b); A different calculation: Don't work: return ~(~(~a&b)&~(a&~b)); return ~(~(~a|~b)|~(a|b)); return ~((a&b)|~(a|b)); This works: return ~(a&b)&(a|b); Different calculation: return ~((a|~b)&(~a|b)); return ~(a|~b)|~(~a|b); return (~a&b)|~(~a|b); This works: return (~a&b)|(a&~b); SUGGESTED SOLUTTION At match.pd:774 There's the De Morgan law for bitwise AND but there isn't one for OR. https://github.com/gcc-mirror/gcc/blob/fe4311f/gcc/match.pd#L774 No one noticed this, because it can (somehow) transform ~(~a|b) to a&~b sometimes, (for example, if BMI instructions is enabled, it can use the 'an= dn' instruction which calculates a&~b) If I understand it correctly, it only wo= rks if it's not simplified a different way until RTL optimization comes. /* ~(~a | b) --> a & ~b */ (simplify (bit_not (bit_ior:cs (bit_not @0) @1)) (bit_and @0 (bit_not @1))) >>From gcc-bugs-return-613061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 17:46:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76699 invoked by alias); 18 Aug 2018 17:46:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70533 invoked by uid 48); 18 Aug 2018 17:46:26 -0000 From: "mcccs at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87009] Can't find XOR pattern applying De Morgan sequentially Date: Sat, 18 Aug 2018 17:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcccs at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01350.txt.bz2 Content-length: 1458 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87009 --- Comment #1 from MCCCS --- Proposed patch:=20 Index: gcc/match.pd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/match.pd (revision 263646) +++ gcc/match.pd (working copy) @@ -776,6 +776,11 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (bit_not (bit_and:cs (bit_not @0) @1)) (bit_ior @0 (bit_not @1))) +/* ~(~a | b) --> a & ~b */ +(simplify + (bit_not (bit_ior:cs (bit_not @0) @1)) + (bit_and @0 (bit_not @1))) + /* Simplify (~X & Y) to X ^ Y if we know that (X & ~Y) is 0. */ #if GIMPLE (simplify Index: gcc/testsuite/g++.dg/pr87009.C =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/testsuite/g++.dg/pr87009.C (nonexistent) +++ gcc/testsuite/g++.dg/pr87009.C (working copy) @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-original" } */ +/* { dg-final { scan-tree-dump-times " ^ " 3 "original" } */ + +int f1 (int x, int s) +{ + return ~(~(x|s)|x)|~(~(x|s)|s); +} + +int f2 (int x, int s) +{ + return ~(~(~x&s)&~(x&~s)); +} + +int f3 (int x, int s) +{ + return ~((x|~s)&(~x|s)); +} >>From gcc-bugs-return-613062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 17:58:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99441 invoked by alias); 18 Aug 2018 17:58:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97238 invoked by uid 48); 18 Aug 2018 17:58:48 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87009] Can't find XOR pattern applying De Morgan sequentially Date: Sat, 18 Aug 2018 17:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01351.txt.bz2 Content-length: 496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87009 --- Comment #2 from Marc Glisse --- Yes, there are still some transformations missing to canonicalize all binary boolean functions. You mention ~(~a | b). We also need (a|~b)&(~a|b) and the same with ^ in the middle. Possibly others (ideally, this list of transformations would be generated by a computer, or at least more systematically). Posting a tested patch to the gcc-patches mailing list would be welcome. >>From gcc-bugs-return-613063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 18:42:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44538 invoked by alias); 18 Aug 2018 18:42:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44487 invoked by uid 48); 18 Aug 2018 18:42:53 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87010] New: FAIL: gcc.dg/torture/20180712-1.c -O1 (test for excess errors) Date: Sat, 18 Aug 2018 18:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01352.txt.bz2 Content-length: 3058 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87010 Bug ID: 87010 Summary: FAIL: gcc.dg/torture/20180712-1.c -O1 (test for excess errors) Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-* Target: hppa*-*-* Build: hppa*-*-* Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /te st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c=20 -fno-diagnostics-show- caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -O1= =20 -fPIC -lm -o ./20180712-1.exe (timeout =3D 300) spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /test/gnu/gcc/gc c/gcc/testsuite/gcc.dg/torture/20180712-1.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -O1 -fPIC -l= m -o ./20180712-1.exe /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c: In function 'f= oo': /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: ca= n't find a register in class 'R1_REGS' while reloading 'asm' /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: 'a= sm' operand has impossible constraints compiler exited with status 1 output is: /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c: In function 'f= oo': /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: ca= n't find a register in class 'R1_REGS' while reloading 'asm' /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: 'a= sm' operand has impossible constraints FAIL: gcc.dg/torture/20180712-1.c -O1 (test for excess errors) Similar fails: FAIL: gcc.dg/torture/20180712-1.c -O2 (test for excess errors) UNRESOLVED: gcc.dg/torture/20180712-1.c -O2 compilation failed to produce executable FAIL: gcc.dg/torture/20180712-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=3Dnone (test for excess errors) UNRESOLVED: gcc.dg/torture/20180712-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=3Dnone compilation failed to produce executable FAIL: gcc.dg/torture/20180712-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) UNRESOLVED: gcc.dg/torture/20180712-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable FAIL: gcc.dg/torture/20180712-1.c -O3 -g (test for excess errors) UNRESOLVED: gcc.dg/torture/20180712-1.c -O3 -g compilation failed to pro= duce executable FAIL: gcc.dg/torture/20180712-1.c -Os (test for excess errors) UNRESOLVED: gcc.dg/torture/20180712-1.c -Os compilation failed to produce executable Test passes at -O0. I tend to think this test needs to be skipped on hppa because it generally isn't possible for reload to handle the addresses of two or more symbols in asm. >>From gcc-bugs-return-613064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 20:05:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99716 invoked by alias); 18 Aug 2018 20:05:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99556 invoked by uid 48); 18 Aug 2018 20:05:28 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71625] missing strlen optimization on different array initialization style Date: Sat, 18 Aug 2018 20:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01353.txt.bz2 Content-length: 3024 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 Bernd Edlinger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernd.edlinger at hotmail = dot de --- Comment #20 from Bernd Edlinger --- it is possible that the poly type returns now a different type class in __builtin_classify_type: @defmac __builtin_classify_type (@var{object}) Since each machine has its own conventions for which data types are passed in which kind of register, your implementation of @code{va_arg} has to embody these conventions. The easiest way to categorize the specified data type is to use @code{__builtin_classify_type} together with @code{sizeof} and @code{__alignof__}. @code{__builtin_classify_type} ignores the value of @var{object}, considering only its data type. It returns an integer describing what kind of type that is---integer, floating, pointer, structure, and so on. The file @file{typeclass.h} defines an enumeration that you can use to interpret the values of @code{__builtin_classify_type}. @end defmac builtins.c-/* Used by expand_builtin_classify_type and fold_builtin_classify_type. */ builtins.c- builtins.c-static enum type_class builtins.c-type_to_class (tree type) builtins.c-{ builtins.c- switch (TREE_CODE (type)) builtins.c- { builtins.c- case VOID_TYPE: return void_type_class; builtins.c- case INTEGER_TYPE: return integer_type_class; builtins.c- case ENUMERAL_TYPE: return enumeral_type_class; builtins.c- case BOOLEAN_TYPE: return boolean_type_class; builtins.c- case POINTER_TYPE: return pointer_type_class; builtins.c- case REFERENCE_TYPE: return reference_type_class; builtins.c- case OFFSET_TYPE: return offset_type_class; builtins.c- case REAL_TYPE: return real_type_class; builtins.c- case COMPLEX_TYPE: return complex_type_class; builtins.c- case FUNCTION_TYPE: return function_type_class; builtins.c- case METHOD_TYPE: return method_type_class; builtins.c- case RECORD_TYPE: return record_type_class; builtins.c- case UNION_TYPE: builtins.c- case QUAL_UNION_TYPE: return union_type_class; builtins.c: case ARRAY_TYPE: return (TYPE_STRING_FLAG (type) builtins.c- ? string_type_class : array_type_class); builtins.c- case LANG_TYPE: return lang_type_class; builtins.c- default: return no_type_class; builtins.c- } builtins.c-} builtins.c- builtins.c-/* Expand a call EXP to __builtin_classify_type. */ builtins.c- builtins.c-static rtx builtins.c-expand_builtin_classify_type (tree exp) builtins.c-{ builtins.c- if (call_expr_nargs (exp)) builtins.c- return GEN_INT (type_to_class (TREE_TYPE (CALL_EXPR_ARG (exp, 0)))); builtins.c- return GEN_INT (no_type_class); builtins.c-} >>From gcc-bugs-return-613065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 21:54:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121145 invoked by alias); 18 Aug 2018 21:54:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116670 invoked by uid 48); 18 Aug 2018 21:54:41 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87011] New: [9 Regression] partially dead memset before strcpy not eliminated Date: Sat, 18 Aug 2018 21:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01354.txt.bz2 Content-length: 1149 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87011 Bug ID: 87011 Summary: [9 Regression] partially dead memset before strcpy not eliminated Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In released versions of GCC the memset call would be optimized by DSE to me= mset (_6, 0, 12). On trunk, however, this is not done: $ cat f.c && gcc -O2 -S -Wall -fdump-tree-optimized=3D/dev/stdout f.c struct S { char a[4]; void (*pf)(void); }; void f (struct S *p) { __builtin_memset (p, 0, sizeof *p); __builtin_strcpy (p->a, "123"); } ;; dump 228: optimized (enabled by -ftree-optimized) ;; Function f (f, funcdef_no=3D0, decl_uid=3D1910, cgraph_uid=3D1, symbol_o= rder=3D0) f (struct S * p) { char[4] * _1; [local count: 1073741825]: __builtin_memset (p_3(D), 0, 16); _1 =3D &p_3(D)->a; __builtin_memcpy (_1, "123", 4); [tail call] return; } >>From gcc-bugs-return-613066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 22:19:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125117 invoked by alias); 18 Aug 2018 22:19:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125016 invoked by uid 48); 18 Aug 2018 22:19:21 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87011] [9 Regression] partially dead memset before strcpy not eliminated Date: Sat, 18 Aug 2018 22:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01355.txt.bz2 Content-length: 696 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87011 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization CC| |law at gcc dot gnu.org --- Comment #1 from Martin Sebor --- Bisection points to r262841: r262841 | law | 2018-07-17 19:54:10 -0400 (Tue, 17 Jul 2018) | 2 lines PR tree-optimization/86010 * tree-ssa-dse.c (compute_trims): Fix typo/thinko. The optimization was introduced in r245688 (in GCC 7). >>From gcc-bugs-return-613067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 23:07:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127578 invoked by alias); 18 Aug 2018 23:07:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127488 invoked by uid 48); 18 Aug 2018 23:07:13 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/81721] precompiled header : internal compiler error: Segmentation fault Date: Sat, 18 Aug 2018 23:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01356.txt.bz2 Content-length: 1337 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81721 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bonzini at gnu dot org, | |geoffk at gcc dot gnu.org, | |jsm28 at gcc dot gnu.org --- Comment #4 from Eric Gallager --- (In reply to Juro Bystricky from comment #0) >=20 > After some debugging, I found the segmentation fault was caused in > libcpp/lex.c (cpp_spell_token): >=20 > case SPELL_IDENT: > if (forstring) > { > memcpy (buffer, NODE_NAME (token->val.node.spelling), > NODE_LEN (token->val.node.spelling)); > buffer +=3D NODE_LEN (token->val.node.spelling); > } >=20 svn blame for that part shows: 82199 bonzini case SPELL_IDENT: 96333 geoffk if (forstring) 96333 geoffk { 217202 jsm28 memcpy (buffer, NODE_NAME (token->val.node.spelli= ng), 217202 jsm28 NODE_LEN (token->val.node.spelling)); 217202 jsm28 buffer +=3D NODE_LEN (token->val.node.spelling); 96333 geoffk } cc-ing them. >>From gcc-bugs-return-613068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 23:09:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128726 invoked by alias); 18 Aug 2018 23:09:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128672 invoked by uid 48); 18 Aug 2018 23:09:27 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/81830] missing Wunused-local-typedef on a typedef of an unnamed enum or struct Date: Sat, 18 Aug 2018 23:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01357.txt.bz2 Content-length: 496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81830 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |dodji at gcc dot gnu.org --- Comment #3 from Eric Gallager --- cc-ing diagnostics maintainers >>From gcc-bugs-return-613069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 23:37:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78273 invoked by alias); 18 Aug 2018 23:37:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78231 invoked by uid 48); 18 Aug 2018 23:37:49 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86981] Add Clang's -Wpessimizing-move warning Date: Sat, 18 Aug 2018 23:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01358.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86981 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-613070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 18 23:46:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90293 invoked by alias); 18 Aug 2018 23:46:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90219 invoked by uid 48); 18 Aug 2018 23:46:08 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86982] Make -Wreturn-local-addr know about std::move and std::forward Date: Sat, 18 Aug 2018 23:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01359.txt.bz2 Content-length: 572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86982 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-18 CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-613071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 03:01:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46097 invoked by alias); 19 Aug 2018 03:01:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46070 invoked by uid 48); 19 Aug 2018 03:01:40 -0000 From: "v.reshetnikov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87012] New: [Regression] ICE in verify_unstripped_args_1 Date: Sun, 19 Aug 2018 03:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: v.reshetnikov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01360.txt.bz2 Content-length: 920 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87012 Bug ID: 87012 Summary: [Regression] ICE in verify_unstripped_args_1 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v.reshetnikov at gmail dot com Target Milestone: --- /***************** BEGIN SOURCE *****************/ template using ref =3D T&; int x; template class T, T> struct X { }; struct Y : X { }; /****************** END SOURCE ******************/ : In instantiation of 'struct X': :9:12: required from here :7:10: internal compiler error: in verify_unstripped_args_1, at cp/pt.c:1155 7 | struct X { }; | ^ Compiler returned: 1 Compiles fine with GCC 8.2 and Clang. >>From gcc-bugs-return-613072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 05:49:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103445 invoked by alias); 19 Aug 2018 05:49:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103038 invoked by uid 48); 19 Aug 2018 05:48:11 -0000 From: "mfe at live dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] New: xgcc: fatal error: no input files Date: Sun, 19 Aug 2018 05:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mfe at live dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01361.txt.bz2 Content-length: 4545 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 Bug ID: 87013 Summary: xgcc: fatal error: no input files Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de Target Milestone: --- Created attachment 44556 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44556&action=3Dedit config.log of gcc-8.2.0-compiled\sparc-linux\libgcc he exact version of GCC: gcc-8.2.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-8.2.0/configure --prefix=3D/opt/gcc-8.2/ --enable-languages=3Dc,c++,= go --with-mpc=3D/usr/local --with-mpfr=3D/usr/local --with-gmp=3D/usr/local --with-isl=3D/usr/local/ --disable-doc --host=3Dsparc-linux --build=3Dsparc= -linux --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --disable-libcilkrts --disable-libitm --disable-libitm CC=3D/opt/gcc-7.3/bi= n/gcc CXX=3D/opt/gcc-7.3/bin/g++ && /usr/local/bin/make ## --------- ## ## Platform. ## ## --------- ## hostname =3D nas-02-90-38 uname -m =3D padre uname -r =3D 2.6.17.14ReadyNAS uname -s =3D Linux uname -v =3D #1 Wed Jun 20 20:08:20 PDT 2012 the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] esac mv tmp2-tm.texi tmp-tm.texi /bin/sh ../../gcc-8.2.0/gcc/../move-if-change tmp-tm.texi tm.texi if [ xinfo =3D xinfo ]; then \ makeinfo --split-size=3D5000000 --split-size=3D5000000 --split-size= =3D5000000 --no-split -I . -I ../../gcc-8.2.0/gcc/doc \ -I ../../gcc-8.2.0/gcc/doc/include -o doc/gccint.info ../../gcc-8.2.0/gcc/doc/gccint.texi; \ fi if [ xinfo =3D xinfo ]; then \ makeinfo --split-size=3D5000000 --split-size=3D5000000 --split-size= =3D5000000 --no-split -I ../../gcc-8.2.0/gcc/doc \ -I ../../gcc-8.2.0/gcc/doc/include -o doc/gccinstall.info ../../gcc-8.2.0/gcc/doc/install.texi; \ fi if [ xinfo =3D xinfo ]; then \ makeinfo --split-size=3D5000000 --split-size=3D5000000 --split-size= =3D5000000 --no-split -I . -I ../../gcc-8.2.0/gcc/doc \ -I ../../gcc-8.2.0/gcc/doc/include -o doc/cppinternals.info ../../gcc-8.2.0/gcc/doc/cppinternals.texi; \ fi echo timestamp > gcc.pod perl ../../gcc-8.2.0/gcc/../contrib/texi2pod.pl ../../gcc-8.2.0/gcc/doc/invoke.texi > gcc.pod echo timestamp > doc/gcc.1 (pod2man --center=3D"GNU" --release=3D"gcc-8.2.0" --date=3D2018-07-26 --sec= tion=3D1 gcc.pod > doc/gcc.1.T$$ && \ mv -f doc/gcc.1.T$$ doc/gcc.1) || \ (rm -f doc/gcc.1.T$$ && exit 1) cp doc/gcc.1 doc/g++.1 /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=3D../../gcc-8.2.0/gcc/testsuite/selftests -fself-test: 40032 pass(es) in 7.230000 seconds echo timestamp > s-selftest-c rm gcc.pod make[3]: Leaving directory '/c/media/gcc-8.2.0-compiled/gcc' mkdir -p -- sparc-linux/libgcc Checking multilib configuration for libgcc... Configuring stage 1 in sparc-linux/libgcc configure: creating cache ./config.cache checking build system type... sparc-unknown-linux-gnu checking host system type... sparc-unknown-linux-gnu checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... mawk checking for sparc-linux-ar... ar checking for sparc-linux-lipo... lipo checking for sparc-linux-nm... /media/gcc-8.2.0-compiled/./gcc/nm checking for sparc-linux-ranlib... ranlib checking for sparc-linux-strip... strip checking whether ln -s works... yes checking for sparc-linux-gcc... /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/lib/ -isystem /opt/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-linux/sys-include checking for suffix of object files... configure: error: in `/media/gcc-8.2.0-compiled/sparc-linux/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [Makefile:18005: configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory '/c/media/gcc-8.2.0-compiled' make[1]: *** [Makefile:23279: stage1-bubble] Error 2 make[1]: Leaving directory '/c/media/gcc-8.2.0-compiled' make: *** [Makefile:941: all] Error 2 >>From gcc-bugs-return-613073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 07:21:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25532 invoked by alias); 19 Aug 2018 07:21:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25503 invoked by uid 48); 19 Aug 2018 07:21:49 -0000 From: "asd0025 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86999] Incorrect code generation and missing optimization with -fno-signed-zeros. Date: Sun, 19 Aug 2018 07:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asd0025 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01362.txt.bz2 Content-length: 773 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86999 --- Comment #2 from asd_ --- (In reply to Alexander Monakov from comment #1) > For the first problem -fno-signed-zeros is a bit of a red herring, the re= al > reason is enabling -fassociative-math makes GCC turn >=20 > return n * p + p; >=20 > to 'return (n + 1) * p;' and while we slightly optimize it on RTL we don't > recover fma from it. >=20 > For the second problem, the expression '(v4f)v' is {0.0f, 0.0f, -0.0f, > -0.0f} and by specifying -fno-signed-zeros you're allowing the compiler to > change it to all-positive-zeros, making the function a no-op. So that is = not > a bug. Thanks for the explanation! I hope there will be one more FMA pass in the RTL stages in the future.:) >>From gcc-bugs-return-613074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 07:28:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50774 invoked by alias); 19 Aug 2018 07:28:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50713 invoked by uid 48); 19 Aug 2018 07:28:32 -0000 From: "theonetruecamper at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] New: [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Sun, 19 Aug 2018 07:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: theonetruecamper at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01363.txt.bz2 Content-length: 1238 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 Bug ID: 87014 Summary: [x32] __builtin_eh_return should use 64-bit mov to set return address Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: theonetruecamper at gmx dot de Target Milestone: --- long offset; void* ptr; void f(void) { __builtin_eh_return(offset,ptr); } with gcc -mx32 produces (gcc (Gentoo Hardened 7.3.0-r3 p1.4) 7.3.0) f: pushq %rbp movl %esp, %ebp pushq %rdx pushq %rax movl %fs:24, %eax movl %eax, -20(%ebp) xorl %eax, %eax movl ptr(%rip), %eax movl offset(%rip), %edx movl %edx, %ecx movl %eax, 8(%ebp,%ecx) # ! movq -16(%ebp), %rax movq -8(%ebp), %rdx leal 8(%rbp,%rcx), %ecx movl 0(%ebp), %ebp movl %ecx, %esp ret # !! Since the upper half of the return address is not cleared this can lead to SIGSEGV in _Unwind_* >>From gcc-bugs-return-613075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 07:32:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15682 invoked by alias); 19 Aug 2018 07:32:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12726 invoked by uid 48); 19 Aug 2018 07:32:24 -0000 From: "theonetruecamper at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Sun, 19 Aug 2018 07:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: theonetruecamper at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01364.txt.bz2 Content-length: 615 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #1 from camper --- Created attachment 44557 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44557&action=3Dedit [x32] use 64-bit mov to set return address in eh_return compiles to: movl handler(%rip), %eax movl offset(%rip), %edx movl %edx, %ecx movl %eax, %eax movq %rax, 8(%ebp,%ecx) movq -16(%ebp), %rax movq -8(%ebp), %rdx leal 8(%rbp,%rcx), %ecx movl 0(%ebp), %ebp movl %ecx, %esp ret >>From gcc-bugs-return-613076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 07:44:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91990 invoked by alias); 19 Aug 2018 07:44:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91270 invoked by uid 48); 19 Aug 2018 07:44:37 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86911] [9 Regression] ICE in gcc/c-family/c-indentation.c:403 Date: Sun, 19 Aug 2018 07:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01365.txt.bz2 Content-length: 662 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86911 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Martin Li=C5=A1ka --- (In reply to David Malcolm from comment #3) > Does r263595 fix the issue? (it relates to having stray carriage returns > somewhere above in the file, leading to line-numbering becoming confused) Yes, I can confirm that. Thanks David. >>From gcc-bugs-return-613077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 08:12:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8652 invoked by alias); 19 Aug 2018 08:12:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8542 invoked by uid 55); 19 Aug 2018 08:12:25 -0000 From: "dpeeters at outlook dot be" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/83941] Debug info generated with -flto contains useless forwarders Date: Sun, 19 Aug 2018 08:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: lto, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: dpeeters at outlook dot be X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01366.txt.bz2 Content-length: 230 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83941 --- Comment #5 from dpeeters at outlook dot be --- Yes, but please have a look at https://www.datingvergelijken.be first. It's= a great datingsite in Belgium. Thanks, Dirk >>From gcc-bugs-return-613078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 08:22:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29028 invoked by alias); 19 Aug 2018 08:22:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28873 invoked by uid 48); 19 Aug 2018 08:22:46 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52795] FAIL: gcc.dg/tree-prof/pr34999.c compilation, -fprofile-use -D_PROFILE_USE on {x86_64,i386}-apple-darwin{10,11} at -m64 Date: Sun, 19 Aug 2018 08:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01367.txt.bz2 Content-length: 586 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52795 Iain Sandoe changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D81033 --- Comment #9 from Iain Sandoe --- The fix attached to 81033 also resolves this issue, and is much less intrus= ive than #c6 (which is no longer applicable - obsoleted). >>From gcc-bugs-return-613079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 08:31:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34164 invoked by alias); 19 Aug 2018 08:31:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33810 invoked by uid 48); 19 Aug 2018 08:30:28 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86999] Incorrect code generation and missing optimization with -fno-signed-zeros. Date: Sun, 19 Aug 2018 08:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01368.txt.bz2 Content-length: 365 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86999 --- Comment #3 from Marc Glisse --- (In reply to asd_ from comment #2) > I hope there will be one more FMA pass in the RTL stages in the future.:) A new RTL pass is not necessary for this, the GIMPLE pass could be extended= to recognize (x=C2=B11)*y and (1-x)*y, if that's useful. >>From gcc-bugs-return-613080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 13:27:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42642 invoked by alias); 19 Aug 2018 13:27:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42567 invoked by uid 48); 19 Aug 2018 13:27:15 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87012] [Regression] ICE in verify_unstripped_args_1 Date: Sun, 19 Aug 2018 13:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01369.txt.bz2 Content-length: 1291 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87012 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-19 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Started with r241425. Before that we issued an error: 87012.C: In instantiation of =E2=80=98struct X=E2=80=99: 87012.C:9:12: required from here 87012.C:7:10: error: type/value mismatch at argument 1 in template parameter list for =E2=80=98template class T, T > st= ruct X=E2=80=99 struct X { }; ^ 87012.C:7:10: note: expected a class template, got =E2=80=98ref=E2=80=99 87012.C:7:10: note: invalid template non-type parameter 87012.C:7:10: error: type/value mismatch at argument 1 in template parameter list for =E2=80=98X >::X=E2=80=99 87012.C:7:10: note: expected a class template, got =E2=80=98ref=E2=80=99 87012.C:7:10: note: invalid template non-type parameter >>From gcc-bugs-return-613081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 13:27:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43376 invoked by alias); 19 Aug 2018 13:27:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43339 invoked by uid 48); 19 Aug 2018 13:27:34 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87012] [Regression] ICE in verify_unstripped_args_1 Date: Sun, 19 Aug 2018 13:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01370.txt.bz2 Content-length: 408 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87012 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #2 from Marek Polacek --- But the code seems to be valid. >>From gcc-bugs-return-613082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 15:29:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9947 invoked by alias); 19 Aug 2018 15:29:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9888 invoked by uid 48); 19 Aug 2018 15:29:39 -0000 From: "daniel.f.starke at freenet dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87015] New: [8 Regression] miscompilation of template heavy Boost Spirit code Date: Sun, 19 Aug 2018 15:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.f.starke at freenet dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01371.txt.bz2 Content-length: 2365 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87015 Bug ID: 87015 Summary: [8 Regression] miscompilation of template heavy Boost Spirit code Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: daniel.f.starke at freenet dot de Target Milestone: --- Starting with GCC 8.1.0 I encounter wrong code generations when using templ= ate heavy C++ code with Boost Spirit. Using Boost 1.66 with GCC 7.2.0, 7.3.0, 8= .1.0 and 8.2.0 to compile https://github.com/daniel-starke/pp results in the following test case results of pp: 7.2.0 TOTAL: 767 PASSED: 767 FAILED: 0 7.3.0 TOTAL: 767 PASSED: 767 FAILED: 0 8.1.0 TOTAL: 760 PASSED: 140 FAILED: 620 8.2.0 TOTAL: 760 PASSED: 140 FAILED: 620 Tests with GCC8.2.0 did show that some errors occur because the string terminator _r2 in https://github.com/daniel-starke/pp/blob/master/src/pp/parser/Script.hpp#L3= 96 does gets propergated to https://github.com/daniel-starke/pp/blob/master/src/pp/parser/StringLiteral= .hpp#L226 but not properly set. GCC 8.2.0 was configured with: ../../src/gcc-8.2.0/configure --host=3Dx86_64-w64-mingw32 --enable-languages=3Dc,c++ --enable-seh-exceptions --enable-threads=3Dposix --disable-nls --disable-shared --enable-static --enable-fully-dynamic-string --enable-lto --enable-plugins --enable-libgomp --with-dwarf2 --enable-mingw-wildcard=3Dplatform --disable-win32-registry --enable-version-specific-runtime-libs --prefix=3D/mingw64-64 --with-sysroot=3D/mingw64-64 --target=3Dx86_64-w64-mingw32 --enable-targets= =3Dall --enable-checking=3Drelease --with-gmp=3D/usr/new-gcc/lib/gmp-5.0.5 --with-mpfr=3D/usr/new-gcc/lib/mpfr-2.4.2 --with-mpc=3D/usr/new-gcc/lib/mpc= -0.9 --with-isl=3D/usr/new-gcc/lib/isl-0.18 --with-cloog=3D/usr/new-gcc/lib/cloo= g-0.18.4 --with-host-libstdcxx=3D'-lstdc++ -lsupc++' --disable-cloog-version-check --enable-cloog-backend=3Disl Thread model: posix It is available here: https://sourceforge.net/projects/gcc-win64/files/8.2.= 0/ Due to the nature of the bug I am unable to provide a reduced test case wit= hout an better idea of what the cause of the issue is. Compiling with -Og or -O1 instead of -O2 did not change the behavior. >>From gcc-bugs-return-613083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 17:56:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110951 invoked by alias); 19 Aug 2018 17:56:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110920 invoked by uid 48); 19 Aug 2018 17:56:50 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Sun, 19 Aug 2018 17:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01372.txt.bz2 Content-length: 192 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #2 from Andrew Pinski --- > movl %eax, 8(%ebp,%ecx) # ! This is a 32bit zero extending load. >>From gcc-bugs-return-613084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 17:58:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112690 invoked by alias); 19 Aug 2018 17:58:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 112633 invoked by uid 48); 19 Aug 2018 17:58:32 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Sun, 19 Aug 2018 17:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01373.txt.bz2 Content-length: 298 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > > movl %eax, 8(%ebp,%ecx) # ! >=20 > This is a 32bit zero extending load. Meaning the top 32bits of the rax register are zero. >>From gcc-bugs-return-613085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 18:11:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20665 invoked by alias); 19 Aug 2018 18:11:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20588 invoked by uid 48); 19 Aug 2018 18:11:37 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Sun, 19 Aug 2018 18:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01374.txt.bz2 Content-length: 149 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #4 from Andreas Schwab --- It's a 32bit store, not a load. >>From gcc-bugs-return-613086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 19:11:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93870 invoked by alias); 19 Aug 2018 19:11:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93808 invoked by uid 55); 19 Aug 2018 19:11:09 -0000 From: "uros at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86994] [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Date: Sun, 19 Aug 2018 19:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: uros at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01375.txt.bz2 Content-length: 654 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86994 --- Comment #3 from uros at gcc dot gnu.org --- Author: uros Date: Sun Aug 19 19:10:37 2018 New Revision: 263652 URL: https://gcc.gnu.org/viewcvs?rev=3D263652&root=3Dgcc&view=3Drev Log: PR target/86994 * config/i386/i386.c (ix86_rtx_costs) [case SET]: Check source for register_operand when calling ix86_set_reg_reg_cost. [case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF]: Set *total to 0 for operands that satisfy x86_64_immediate_operand predicate and to 1 otherwise. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c >>From gcc-bugs-return-613087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 19:12:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94841 invoked by alias); 19 Aug 2018 19:12:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94780 invoked by uid 48); 19 Aug 2018 19:12:07 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86994] [9 regression] 64-bit gcc.target/i386/20040112-1.c FAILs Date: Sun, 19 Aug 2018 19:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01376.txt.bz2 Content-length: 512 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86994 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail do= t com --- Comment #4 from Uro=C5=A1 Bizjak --- Fixed. >>From gcc-bugs-return-613088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 20:09:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39141 invoked by alias); 19 Aug 2018 20:09:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37259 invoked by uid 48); 19 Aug 2018 20:09:49 -0000 From: "bobogu at atlas dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] New: std::optional::operator= in constexpr context Date: Sun, 19 Aug 2018 20:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bobogu at atlas dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01377.txt.bz2 Content-length: 895 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 Bug ID: 87016 Summary: std::optional::operator=3D in constexpr context Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bobogu at atlas dot cz Target Milestone: --- Created attachment 44558 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44558&action=3Dedit preprocessed TU According to the standard, there is no assignment operator that should work= in a constexpr context, however, I am able to successfully compile and use the following snippet: // gcc -lstdc++ -std=3Dc++17 main.cpp @Linux laptop 4.17.11-arch1 x86_64 constexpr std::optional foo() { std::optional bar =3D 3; bar =3D 10; return bar; } >>From gcc-bugs-return-613089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 22:04:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41102 invoked by alias); 19 Aug 2018 22:04:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41044 invoked by uid 48); 19 Aug 2018 22:04:53 -0000 From: "development@faf-ltd.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87017] New: vector must have the same value as its allocator Date: Sun, 19 Aug 2018 22:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: development@faf-ltd.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01378.txt.bz2 Content-length: 1564 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87017 Bug ID: 87017 Summary: vector must have the same value as its allocator Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: development@faf-ltd.com Target Milestone: --- This MCVE compiles/runs with gcc 7.3, clang 6.0 and icc 18.0 [this is, what= I tested so far]: #include #include #include namespace FaF { template class Allocator { public: typedef T value_type; Allocator() throw() {} template Allocator (const Allocator&) throw() {} ~Allocator() throw() {} T* allocate (std::size_t num, const void* hint =3D 0) { (void) hint; (void) num; return new ( T ); } void deallocate (T* p, std::size_t num) { (void) num; (void) p; } }; using string =3D std::basic_string, Allocator>; using smatch =3D std::match_results>; } int main() { FaF::smatch results {}; std::cout << "OK\n"; } gcc 8.2 complains here: FaF::smatch results {}; ^--- vector must have the same value as its allocator Changing it to std::smatch then it compiles. Compiler options: -O3 -std=3Dc++17 -Werror -Wextra -Wold-style-cast -Wall Live version: https://godbolt.org/z/8wI6YS >>From gcc-bugs-return-613090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 22:14:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38390 invoked by alias); 19 Aug 2018 22:14:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38339 invoked by uid 48); 19 Aug 2018 22:14:17 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87018] New: [9 Regression] Boostrap failure on AIX Date: Sun, 19 Aug 2018 22:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01379.txt.bz2 Content-length: 3615 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87018 Bug ID: 87018 Summary: [9 Regression] Boostrap failure on AIX Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Created attachment 44559 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44559&action=3Dedit config.log from failed build This is on gcc119.fsffrance.org, in case anybody wants to reproduce. Files are in /home/tkoenig/trunk (source directory) and /home/tkoenig/trunk-bin (build-directory). Trying, from the build-directory, to run the shell script PATH=3D/opt/freeware/bin:$PATH ../trunk/configure --disable-werror --enable-languages=3Dc,c++,fortran --with-gmp=3D/opt/cfarm --with-libiconv-prefix=3D/opt/cfarm --disable-libst= dcxx-pch --with-included-gettext --prefix=3D$HOME make -j32 SHELL=3D/bin/bash CONFIG_SHELL=3D/bin/bash yields the error In file included from ../../trunk/intl/plural.y:35:0: ../../trunk/intl/plural-exp.h:102:23: error: conflicting types for 'libintl_gettextparse' # define PLURAL_PARSE libintl_gettextparse ^ ../../trunk/intl/plural.y:40:25: note: in expansion of macro 'PLURAL_PARSE' # define __gettextparse PLURAL_PARSE ^~~~~~~~~~~~ plural.c:184:5: note: in expansion of macro '__gettextparse' int __gettextparse (void); ^~~~~~~~~~~~~~ ../../trunk/intl/plural-exp.h:102:23: note: previous declaration of 'libintl_gettextparse' was here # define PLURAL_PARSE libintl_gettextparse ^ ../../trunk/intl/plural-exp.h:114:12: note: in expansion of macro 'PLURAL_PARSE' extern int PLURAL_PARSE PARAMS ((void *arg)); ^~~~~~~~~~~~ ../../trunk/intl/plural-exp.h:102:23: error: conflicting types for 'libintl_gettextparse' # define PLURAL_PARSE libintl_gettextparse ^ ../../trunk/intl/plural.y:40:25: note: in expansion of macro 'PLURAL_PARSE' # define __gettextparse PLURAL_PARSE ^~~~~~~~~~~~ plural.c:63:25: note: in expansion of macro '__gettextparse' #define yyparse __gettextparse ^~~~~~~~~~~~~~ plural.c:1129:1: note: in expansion of macro 'yyparse' yyparse (void) ^~~~~~~ ../../trunk/intl/plural-exp.h:102:23: note: previous declaration of 'libintl_gettextparse' was here # define PLURAL_PARSE libintl_gettextparse ^ ../../trunk/intl/plural-exp.h:114:12: note: in expansion of macro 'PLURAL_PARSE' extern int PLURAL_PARSE PARAMS ((void *arg)); ^~~~~~~~~~~~ plural.c: In function 'libintl_gettextparse': plural.c:64:25: error: too few arguments to function '__gettextlex' #define yylex __gettextlex ^ plural.c:1298:16: note: in expansion of macro 'yylex' yychar =3D yylex (&yylval); ^~~~~ plural.c:64:25: note: declared here #define yylex __gettextlex ^ ../../trunk/intl/plural.y:69:12: note: in expansion of macro 'yylex' static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); ^~~~~ ../../trunk/intl/plural.y:178:29: error: 'arg' undeclared (first use in this function) ((struct parse_args *) arg)->res =3D $1; ^~~ ../../trunk/intl/plural.y:178:29: note: each undeclared identifier is repor= ted only once for each function it appears in Makefile:133: recipe for target 'plural.o' failed >>From gcc-bugs-return-613091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 22:19:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42009 invoked by alias); 19 Aug 2018 22:19:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41975 invoked by uid 48); 19 Aug 2018 22:18:55 -0000 From: "welttensor at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87019] New: ICE: Static member of derived type, organized in coarray accessed Date: Sun, 19 Aug 2018 22:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: welttensor at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01380.txt.bz2 Content-length: 850 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87019 Bug ID: 87019 Summary: ICE: Static member of derived type, organized in coarray accessed Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: welttensor at web dot de Target Milestone: --- Created attachment 44560 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44560&action=3Dedit main and foo_module When inside of member routine (foo_routine) of a derived type (foo_type) a member-variable (foo_member) is accessed from a remote image, an internal compiler error is produced. This problem exists already in older versions of gfortran like 6.3 as well = as 8.2.1 >>From gcc-bugs-return-613092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 22:23:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44762 invoked by alias); 19 Aug 2018 22:23:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44659 invoked by uid 48); 19 Aug 2018 22:23:11 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87018] [9 Regression] Boostrap failure on AIX Date: Sun, 19 Aug 2018 22:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01381.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87018 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 19 23:49:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56990 invoked by alias); 19 Aug 2018 23:49:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56658 invoked by uid 48); 19 Aug 2018 23:48:36 -0000 From: "roland at rschulz dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87020] New: comparison operator isn't called for stateless allocator without is_always_equal for C++11/14 Date: Sun, 19 Aug 2018 23:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roland at rschulz dot eu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01382.txt.bz2 Content-length: 912 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87020 Bug ID: 87020 Summary: comparison operator isn't called for stateless allocator without is_always_equal for C++11/14 Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: roland at rschulz dot eu Target Milestone: --- For an empty allocator the comparison operators aren't used, unless is_always_equal=3Dstd::false_type is present. This is the correct behavior = with C++17 but for C++11/14 is_always_equal shouldn't have any effect. This is low impact because any well defined and state-less allocator should always be equal. But it isn't strictly compliant. This is present since GCC= 6. Reproducer: https://godbolt.org/z/-5IHwC >>From gcc-bugs-return-613094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 01:21:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113725 invoked by alias); 20 Aug 2018 01:21:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113691 invoked by uid 48); 20 Aug 2018 01:21:41 -0000 From: "seurer at linux dot vnet.ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87021] New: New powerpc test cases from r263570 fail Date: Mon, 20 Aug 2018 01:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at linux dot vnet.ibm.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01383.txt.bz2 Content-length: 1718 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87021 Bug ID: 87021 Summary: New powerpc test cases from r263570 fail Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: seurer at linux dot vnet.ibm.com Target Milestone: --- r263570 | willschm | 2018-08-15 15:29:04 -0500 (Wed, 15 Aug 2018) | 11 lines [testsuite] 2018-08-13 Will Schmidt * gcc.target/powerpc/fold-vec-splat-char.c: New. * gcc.target/powerpc/fold-vec-splat-floatdouble.c: New. * gcc.target/powerpc/fold-vec-splat-int.c: New. * gcc.target/powerpc/fold-vec-splat-longlong.c: New. * gcc.target/powerpc/fold-vec-splat-pixel.c: New. * gcc.target/powerpc/fold-vec-splat-short.c: New. FAIL: gcc.target/powerpc/fold-vec-splat-char.c scan-assembler-times vspltb = 24 FAIL: gcc.target/powerpc/fold-vec-splat-floatdouble.c scan-assembler-times vspltw|xxspltw 9 FAIL: gcc.target/powerpc/fold-vec-splat-floatdouble.c scan-assembler-times xxpermdi 9 FAIL: gcc.target/powerpc/fold-vec-splat-int.c scan-assembler-times vspltisw= 6 FAIL: gcc.target/powerpc/fold-vec-splat-int.c scan-assembler-times vspltw|xxspltw 24 FAIL: gcc.target/powerpc/fold-vec-splat-pixel.c scan-assembler-times vsplth= 8 FAIL: gcc.target/powerpc/fold-vec-splat-pixel.c scan-assembler-times vsplti= sh 2 FAIL: gcc.target/powerpc/fold-vec-splat-short.c scan-assembler-times vsplth= 24 FAIL: gcc.target/powerpc/fold-vec-splat-short.c scan-assembler-times vsplti= sh 6 These fail on power 8 (and probably 7). >>From gcc-bugs-return-613095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 01:54:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109413 invoked by alias); 20 Aug 2018 01:54:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109361 invoked by uid 48); 20 Aug 2018 01:54:21 -0000 From: "helloqirun at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87022] New: GCC miscompiles at -O3 on valid code Date: Mon, 20 Aug 2018 01:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: helloqirun at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01384.txt.bz2 Content-length: 1683 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87022 Bug ID: 87022 Summary: GCC miscompiles at -O3 on valid code Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: helloqirun at gmail dot com Target Milestone: --- It also affects gcc-8.1 at -O3. gcc-7.3 works fine. It appears that it starts at r253679. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-l= inux-gnu/9.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/home/absozero/trunk/root-gcc --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 9.0.0 20180819 (experimental) [trunk revision 263651] (GCC) $ gcc-trunk abc.c ; ./a.out > ref.txt $ gcc-trunk -O3 abc.c ; ./a.out > a.txt $ diff ref.txt a.txt 25,49c25,49 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 < 0 --- > 1 > 1 > 1 > 1 > 0 > 0 > 1 > 1 > 1 > 1 > 1 > 0 > 0 > 1 > 1 > 1 > 1 > 1 > 0 > 0 > 1 > 1 > 1 > 1 > 1 $ gcc-7.3 -O3 abc.c ; ./a.out > a.txt $ diff ref.txt a.txt $ $ cat abc.c void printf(); char a[7]; char b[10][7]; short c; int d, e, f, g; int main() { for (; d <=3D 4; d++) { e =3D 0; for (; e <=3D 6; e++) { if (a[c]) b[e + 3][d + 2] =3D 1; a[0] =3D 5; b[e][d + 2] =3D 0; } } for (; f < 10; f++) { g =3D 0; for (; g < 7; g++) printf("%d\n", b[f][g]); } } >>From gcc-bugs-return-613096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 03:04:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69353 invoked by alias); 20 Aug 2018 03:04:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69332 invoked by uid 48); 20 Aug 2018 03:04:44 -0000 From: "He.Hongjun at zte dot com.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87023] New: It's almost false, when c_fully_fold_internal deal with C_MAYBE_CONST_EXPR. Date: Mon, 20 Aug 2018 03:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: He.Hongjun at zte dot com.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01385.txt.bz2 Content-length: 1119 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87023 Bug ID: 87023 Summary: It's almost false, when c_fully_fold_internal deal with C_MAYBE_CONST_EXPR. Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: He.Hongjun at zte dot com.cn Target Milestone: --- in c_fully_fold_internal, C_MAYBE_CONST_EXPR's initial value is false. late= r, using add operations, it's value is always false. 1. initial value if (C_MAYBE_CONST_EXPR_INT_OPERANDS (expr)) { *maybe_const_itself =3D false; // the initial value is false inner =3D c_fully_fold_internal (inner, in_init, maybe_const_oper= ands, maybe_const_itself, true); } 2. add operations *maybe_const_itself &=3D op0_const_self; *maybe_const_itself &=3D op1_const_self; *maybe_const_itself &=3D op2_const_self; Whether the initial value should be true? >>From gcc-bugs-return-613097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 05:23:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8834 invoked by alias); 20 Aug 2018 05:23:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8760 invoked by uid 48); 20 Aug 2018 05:23:44 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87022] [8/9 Regression] miscompilation with -ftree-loop-distribution Date: Mon, 20 Aug 2018 05:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01386.txt.bz2 Content-length: 809 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87022 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |amker at gcc dot gnu.org, | |amonakov at gcc dot gnu.org Summary|GCC miscompiles at -O3 on |[8/9 Regression] |valid code |miscompilation with | |-ftree-loop-distribution --- Comment #1 from Alexander Monakov --- Yep, -O2 -ftree-loop-distribution is enough to trigger miscompilation. >>From gcc-bugs-return-613098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 05:42:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19076 invoked by alias); 20 Aug 2018 05:42:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19017 invoked by uid 48); 20 Aug 2018 05:42:45 -0000 From: "amker at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87022] [8/9 Regression] miscompilation with -ftree-loop-distribution Date: Mon, 20 Aug 2018 05:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amker at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01387.txt.bz2 Content-length: 1684 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87022 --- Comment #2 from bin cheng --- (In reply to Qirun Zhang from comment #0) > It also affects gcc-8.1 at -O3. gcc-7.3 works fine. >=20 > It appears that it starts at r253679. >=20 >=20 > $ gcc-trunk -v > Using built-in specs. > COLLECT_GCC=3Dgcc-trunk > COLLECT_LTO_WRAPPER=3D/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc- > linux-gnu/9.0.0/lto-wrapper > Target: x86_64-pc-linux-gnu > Configured with: ../gcc/configure --prefix=3D/home/absozero/trunk/root-gcc > --enable-languages=3Dc,c++ --disable-werror --enable-multilib > Thread model: posix > gcc version 9.0.0 20180819 (experimental) [trunk revision 263651] (GCC) >=20 >=20 >=20 > $ gcc-trunk abc.c ; ./a.out > ref.txt > $ gcc-trunk -O3 abc.c ; ./a.out > a.txt > $ diff ref.txt a.txt > 25,49c25,49 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > < 0 > --- > > 1 > > 1 > > 1 > > 1 > > 0 > > 0 > > 1 > > 1 > > 1 > > 1 > > 1 > > 0 > > 0 > > 1 > > 1 > > 1 > > 1 > > 1 > > 0 > > 0 > > 1 > > 1 > > 1 > > 1 > > 1 > $ gcc-7.3 -O3 abc.c ; ./a.out > a.txt > $ diff ref.txt a.txt > $ >=20 >=20 > $ cat abc.c > void printf(); > char a[7]; > char b[10][7]; > short c; > int d, e, f, g; > int main() { > for (; d <=3D 4; d++) { > e =3D 0; > for (; e <=3D 6; e++) { > if (a[c]) > b[e + 3][d + 2] =3D 1; > a[0] =3D 5; > b[e][d + 2] =3D 0; > } > } > for (; f < 10; f++) { > g =3D 0; > for (; g < 7; g++) > printf("%d\n", b[f][g]); > } > } Sorry for the breakage, I will investigate it. Thanks, bin >>From gcc-bugs-return-613099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 06:59:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21607 invoked by alias); 20 Aug 2018 06:59:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21570 invoked by uid 48); 20 Aug 2018 06:59:50 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87024] New: ICE in fold_stmt_1 Date: Mon, 20 Aug 2018 06:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01388.txt.bz2 Content-length: 3693 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87024 Bug ID: 87024 Summary: ICE in fold_stmt_1 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com CC: marxin at gcc dot gnu.org Target Milestone: --- gcc-9.0.0-alpha20180819 snapshot (r263652), as well as gcc 8.2, 7.3, 6.3, 5= .4, 4.9.4, 4.8.5 all ICE when compiling the following snippet w/ -O1 (-O2, -O3, -Ofast, -Os) -fno-tree-dce: void mp (void) { (void) __builtin_va_arg_pack_len (); } void ui (void) { mp (); } % gcc-9.0.0-alpha20180819 -O1 -fno-tree-dce -c zypn5ily.c during IPA pass: inline zypn5ily.c: In function 'ui': zypn5ily.c:8:1: internal compiler error: Segmentation fault 8 | ui (void) | ^~ 0xcb39cf crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= toplev.c:325 0xa2b33b fold_stmt_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= gimple-fold.c:4634 0xd2a293 fold_marked_statements =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-inline.c:4949 0xd376f2 optimize_inline_calls(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-inline.c:5030 0x15029fc inline_transform(cgraph_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= ipa-inline-transform.c:682 0xbd726f execute_one_ipa_transform_pass =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= passes.c:2188 0xbd726f execute_all_ipa_transforms() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= passes.c:2230 0x8cacba cgraph_node::expand() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= cgraphunit.c:2109 0x8cbd22 expand_all_functions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= cgraphunit.c:2254 0x8cbd22 symbol_table::compile() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= cgraphunit.c:2605 0x8ce189 symbol_table::compile() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= cgraphunit.c:2517 0x8ce189 symbol_table::finalize_compilation_unit() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= cgraphunit.c:2698 % gcc-9.0.0-alpha20180819 -O2 -fno-tree-dce -c zypn5ily.c during GIMPLE pass: einline zypn5ily.c: In function 'ui': zypn5ily.c:11:1: internal compiler error: Segmentation fault 11 | } | ^ 0xcb39cf crash_signal =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= toplev.c:325 0xa2b33b fold_stmt_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= gimple-fold.c:4634 0xd2a293 fold_marked_statements =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-inline.c:4949 0xd376f2 optimize_inline_calls(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-inline.c:5030 0x14f8579 early_inliner(function*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= ipa-inline.c:2796 >>From gcc-bugs-return-613100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:01:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30372 invoked by alias); 20 Aug 2018 07:01:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30330 invoked by uid 48); 20 Aug 2018 07:01:46 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86505] [6/7/8 Regression] __builtin_va_arg_pack_len() computes the number of arguments wrongly Date: Mon, 20 Aug 2018 07:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01389.txt.bz2 Content-length: 264 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86505 --- Comment #7 from Arseny Solokha --- (In reply to Richard Biener from comment #6) > I wonder if the auto-regression police can help here increasing coverage? Here you are: PR87024. >>From gcc-bugs-return-613101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:31:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7021 invoked by alias); 20 Aug 2018 07:31:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 403 invoked by uid 48); 20 Aug 2018 07:31:03 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87025] New: [9 Regression] ICE in add_record, at optinfo-emit-json.cc:175 Date: Mon, 20 Aug 2018 07:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01390.txt.bz2 Content-length: 2745 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87025 Bug ID: 87025 Summary: [9 Regression] ICE in add_record, at optinfo-emit-json.cc:175 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-9.0.0-alpha20180819 snapshot (r263652) ICEs when compiling the following snippet w/ -O1 -fsave-optimization-record -ftree-vectorize -fno-tree-scev-c= prop -fno-tree-sink: void fk (unsigned int sf) { for (;;) { if (sf !=3D 0) { while (sf !=3D 0) ++sf; while (sf < 8) ++sf; } ++sf; } } % gcc-9.0.0-alpha20180819 -O1 -fsave-optimization-record -ftree-vectorize -fno-tree-scev-cprop -fno-tree-sink -c hdtzb5rs.c during GIMPLE pass: vect hdtzb5rs.c: In function 'fk': hdtzb5rs.c:2:1: internal compiler error: in add_record, at optinfo-emit-json.cc:175 2 | fk (unsigned int sf) | ^~ 0x64094b optrecord_json_writer::add_record(json::object*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= optinfo-emit-json.cc:175 0xbc42e6 optrecord_json_writer::add_record(optinfo const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= optinfo-emit-json.cc:156 0x90ba46 dump_context::end_any_optinfo() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= dumpfile.c:1120 0x90bae0 dump_context::begin_next_optinfo(dump_location_t const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= dumpfile.c:1107 0x90dd2e dump_context::begin_scope(char const*, dump_location_t const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= dumpfile.c:1070 0xf01591 auto_dump_scope::auto_dump_scope(char const*, dump_location_t) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= dumpfile.h:537 0xf01591 vect_analyze_loop(loop*, _loop_vec_info*, vec_info_shared*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-vect-loop.c:2274 0xf1d763 try_vectorize_loop_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-vectorizer.c:867 0xf1e591 vectorize_loops() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree-vectorizer.c:1075 >>From gcc-bugs-return-613102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:32:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8314 invoked by alias); 20 Aug 2018 07:32:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8282 invoked by uid 48); 20 Aug 2018 07:32:47 -0000 From: "theonetruecamper at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Mon, 20 Aug 2018 07:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: theonetruecamper at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01391.txt.bz2 Content-length: 480 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #5 from camper --- test case (-O0): using ll =3D long long; void fillstack() { ll foo[] =3D { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; } void f(ll=3D-1,ll=3D-1,ll=3D-1,ll=3D-1,ll=3D-1,ll=3D-1,ll arg7_on_stack=3D-= 1) { throw 0; } void g() { try { f(); } catch(int) { } } int main() { fillstack(); g(); } >>From gcc-bugs-return-613103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:46:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29690 invoked by alias); 20 Aug 2018 07:46:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29560 invoked by uid 48); 20 Aug 2018 07:46:13 -0000 From: "chefmax at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/78651] Incorrect exception handling when catch clause uses local class and PIC and sanitizer are active Date: Mon, 20 Aug 2018 07:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: chefmax at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: chefmax at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01392.txt.bz2 Content-length: 154 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78651 --- Comment #10 from chefmax at gcc dot gnu.org --- Seems to be closed on GCC 8 and 7, OK to close? >>From gcc-bugs-return-613104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:47:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30769 invoked by alias); 20 Aug 2018 07:47:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30447 invoked by uid 48); 20 Aug 2018 07:46:37 -0000 From: "chefmax at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/78651] Incorrect exception handling when catch clause uses local class and PIC and sanitizer are active Date: Mon, 20 Aug 2018 07:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: chefmax at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: chefmax at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01393.txt.bz2 Content-length: 212 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78651 --- Comment #11 from chefmax at gcc dot gnu.org --- (In reply to chefmax from comment #10) > Seems to be closed on GCC 8 and 7, OK to close? s/closed/fixed/ >>From gcc-bugs-return-613105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:53:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39279 invoked by alias); 20 Aug 2018 07:53:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39210 invoked by uid 48); 20 Aug 2018 07:53:28 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Mon, 20 Aug 2018 07:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01394.txt.bz2 Content-length: 396 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #6 from Uro=C5=A1 Bizjak --- Adding CC. >>From gcc-bugs-return-613106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 07:56:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55567 invoked by alias); 20 Aug 2018 07:56:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51865 invoked by uid 48); 20 Aug 2018 07:55:54 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86107] [9 Regression] ICE: in ix86_mitigate_rop, at config/i386/i386.c:42301 with -O -funroll-loops -mavx5124fmaps -mmitigate-rop --param=hot-bb-frequency-fraction=1 Date: Mon, 20 Aug 2018 07:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01395.txt.bz2 Content-length: 464 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86107 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #7 from Uro=C5=A1 Bizjak --- -mmitigate-rop was deprecated in gcc-9. >>From gcc-bugs-return-613107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:27:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40230 invoked by alias); 20 Aug 2018 08:27:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39658 invoked by uid 48); 20 Aug 2018 08:27:06 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87026] New: [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Mon, 20 Aug 2018 08:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01396.txt.bz2 Content-length: 3448 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Bug ID: 87026 Summary: [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpc-*-linux-gnu gcc-9.0.0-alpha20180819 snapshot (r263652) ICEs when compiling the following snippet w/ -O2 (-O3, -Ofast, -Os) -fno-if-conversion: int jd; int uq (int u0) { goto al; while (jd < 1) { jd =3D 0; if (jd !=3D 0) { al: while (u0 !=3D 0) { } } } return 1 / u0; } % powerpc-e300c3-linux-gnu-gcc-9.0.0-alpha20180819 -O2 -fno-if-conversion -c sakw6h4j.c sakw6h4j.c: In function 'uq': sakw6h4j.c:22:1: error: insn does not satisfy its constraints: 22 | } | ^ (insn 56 0 0 (set (reg:SI 121) (const_int 0 [0])) 502 {*movsi_internal1} (nil)) during RTL pass: ce3 sakw6h4j.c:22:1: internal compiler error: in extract_constrain_insn_cached,= at recog.c:2218 0x61a5f9 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/rtl-error.c:108 0x61a623 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/rtl-error.c:118 0x618be5 extract_constrain_insn_cached(rtx_insn*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/recog.c:2218 0x1209abf insn_default_length(rtx_insn*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/config/rs6000/rs6000.md:7058 0xffe417 rs6000_insn_cost =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/config/rs6000/rs6000.c:34085 0x98a774 canonicalize_comparison(machine_mode, rtx_code*, rtx_def**) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/expmed.c:6249 0xbc36f1 prepare_cmp_insn =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/optabs.c:3816 0xbc402e gen_cond_trap(rtx_code, rtx_def*, rtx_def*, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/optabs.c:5288 0x13febff find_cond_trap =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/ifcvt.c:4657 0x13febff find_if_header =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/ifcvt.c:4282 0x13febff if_convert =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/ifcvt.c:5405 0x140015d execute =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20180819/wor= k/gcc-9-20180819/gcc/ifcvt.c:5553 >>From gcc-bugs-return-613108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:29:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50342 invoked by alias); 20 Aug 2018 08:29:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50310 invoked by uid 48); 20 Aug 2018 08:29:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Mon, 20 Aug 2018 08:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01397.txt.bz2 Content-length: 2824 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |sparc-linux Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-20 Summary|xgcc: fatal error: no input |Error: junk at end of line, |files |first unrecognized | |character is `i' Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- > xgcc: error: unrecognized command line option '-qversion'; did you mean '= --version'? > xgcc: fatal error: no input files That's not the problem, this error is supposed to happen, because your comp= iler doesn't recognise the -qversion option. > compilation terminated. > configure:3458: $? =3D 1 > configure:3474: /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-c= ompiled/./gcc/ -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/l= ib/ -isystem /opt/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-l= inux/sys-include -o conftest -g -O2 conftest.c >&5 > /tmp/ccvuOEZf.s: Assembler messages: > /tmp/ccvuOEZf.s:15: Error: junk at end of line, first unrecognized charac= ter is `i' > configure:3477: $? =3D 1 > configure:3665: checking for suffix of object files > configure:3687: /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-c= ompiled/./gcc/ -B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/l= ib/ -isystem /opt/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-l= inux/sys-include -c -g -O2 conftest.c >&5 > /tmp/ccookNLX.s: Assembler messages: > /tmp/ccookNLX.s:15: Error: junk at end of line, first unrecognized charac= ter is `i' This is the problem. Try compiling the source below using the command above, adding -save-temps,= and then look at the resulting .s file. See why your assembler can't process it= (do you even have an assembler for your target?) > configure:3691: $? =3D 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "GNU C Runtime Library" > | #define PACKAGE_TARNAME "libgcc" > | #define PACKAGE_VERSION "1.0" > | #define PACKAGE_STRING "GNU C Runtime Library 1.0" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" > | /* end confdefs.h. */ > |=20 > | int > | main () > | { > |=20 > | ; > | return 0; > | } > configure:3705: error: in `/media/gcc-8.2.0-compiled/sparc-linux/libgcc': > configure:3708: error: cannot compute suffix of object files: cannot comp= ile > See `config.log' for more details. >>From gcc-bugs-return-613109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:31:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52393 invoked by alias); 20 Aug 2018 08:31:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52321 invoked by uid 48); 20 Aug 2018 08:31:00 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87015] [8 Regression] miscompilation of template heavy Boost Spirit code Date: Mon, 20 Aug 2018 08:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01398.txt.bz2 Content-length: 948 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87015 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-20 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- (In reply to Daniel Starke from comment #0) > It is available here: https://sourceforge.net/projects/gcc-win64/files/8.= 2.0/ >=20 > Due to the nature of the bug I am unable to provide a reduced test case > without an better idea of what the cause of the issue is. Compiling with = -Og > or -O1 instead of -O2 did not change the behavior. As explained at https://gcc.gnu.org/bugs/ you still need to provide a preprocessed testcase, not a URL. It doesn't have to be reduced. >>From gcc-bugs-return-613110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:35:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66984 invoked by alias); 20 Aug 2018 08:35:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66910 invoked by uid 48); 20 Aug 2018 08:35:14 -0000 From: "lists at sagnix dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87027] New: lower_bound returns erroneous result, 32 bit Date: Mon, 20 Aug 2018 08:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lists at sagnix dot eu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01399.txt.bz2 Content-length: 1674 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87027 Bug ID: 87027 Summary: lower_bound returns erroneous result, 32 bit Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lists at sagnix dot eu Target Milestone: --- The program below outputs 2: /usr/bin/g++ -m32 -std=3Dc++14 ex.cpp && ./a.out Vector maximal size: 4294967295 and actual size: 2415919104 Found value 2 It should output 3 or throw std::length_error. See also https://stackoverflow.com/questions/51907247/lower-bound-algorithm-stl-usag= e-preconditions/51910011#51910011=20 // compile with -m32 switch #include #include #include #include using namespace std; int main() { try { vector v((1ULL << 28) * 9, 2); // 2.25 G entries v.back() =3D 3; // the last of which is greater cout<< "Vector maximal size: "<>From gcc-bugs-return-613111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:36:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68415 invoked by alias); 20 Aug 2018 08:36:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68369 invoked by uid 48); 20 Aug 2018 08:36:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/31413] FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test Date: Mon, 20 Aug 2018 08:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01400.txt.bz2 Content-length: 347 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D31413 --- Comment #27 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #26) > Paolo, do you remember if this testcase was specifically testing the zh_TW > locale, or just sing that as an example of a locale using wide characters? s/just sing/just using/ >>From gcc-bugs-return-613112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:44:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19661 invoked by alias); 20 Aug 2018 08:44:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18983 invoked by uid 48); 20 Aug 2018 08:44:24 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87024] ICE in fold_stmt_1 Date: Mon, 20 Aug 2018 08:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01401.txt.bz2 Content-length: 564 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87024 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-20 Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Confirmed. We end up with: EMERGENCY DUMP: ui () { : =3D 0; return; } >>From gcc-bugs-return-613113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:50:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34537 invoked by alias); 20 Aug 2018 08:50:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34418 invoked by uid 48); 20 Aug 2018 08:49:55 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/81830] missing Wunused-local-typedef on a typedef of an unnamed enum or struct Date: Mon, 20 Aug 2018 08:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01402.txt.bz2 Content-length: 692 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81830 --- Comment #4 from Jonathan Wakely --- For unnamed class and enumeration types the typedef is the name of the type= for linkage purposes, so it can be used even if it's never referred to e.g. template void use(T) { } void g (void) { typedef enum { e } F; // missing -Wunused-local-typedefs in C++ use(e); } The name 'F' is needed for the mangled name of use even though it's not = used directly in the source. So that's probably why G++ treats the typedef names= as used. Maybe it could be made smarter, so that if no name is needed for link= age purposes, then it still warns. >>From gcc-bugs-return-613114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:54:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41655 invoked by alias); 20 Aug 2018 08:54:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41598 invoked by uid 48); 20 Aug 2018 08:54:17 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87017] vector must have the same value as its allocator Date: Mon, 20 Aug 2018 08:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01403.txt.bz2 Content-length: 977 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87017 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely --- (In reply to Peter VARGA from comment #0) > using smatch =3D std::match_results Allocator>; The value type of match_result is sub_match, so you need to use Allocator> not Allocator. > Changing it to std::smatch then it compiles. Because that uses the correct allocator type. > Compiler options: > -O3 -std=3Dc++17 -Werror -Wextra -Wold-style-cast -Wall If you use -std=3Dgnu++17 then your code will be accepted, but is not porta= ble and is not valid C++. >>From gcc-bugs-return-613115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 08:57:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44795 invoked by alias); 20 Aug 2018 08:57:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44717 invoked by uid 48); 20 Aug 2018 08:57:07 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87017] vector must have the same value as its allocator Date: Mon, 20 Aug 2018 08:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01404.txt.bz2 Content-length: 1510 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87017 --- Comment #2 from Jonathan Wakely --- N.B. it only works with clang and ICC because you're using them with an old= er version of libstdc++, which didn't enforce this requirement. Saying "it compiles with three compilers all using the same standard library" is only = one data point. If you use clang's own libc++ you get a similar error: In file included from /opt/wandbox/clang-head/include/c++/v1/regex:770: /opt/wandbox/clang-head/include/c++/v1/vector:486:5: error: static_assert failed due to requirement 'is_same::value' "Allocator::value_type must be same type as value_type" static_assert((is_same::value), ^=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/wandbox/clang-head/include/c++/v1/regex:5228:23: note: in instantiatio= n of template class 'std::__1::vector >, FaF::Allocator > >' requested here __container_type __matches_; ^ prog.cc:33:15: note: in instantiation of template class 'std::__1::match_results, FaF::Allocator > >' requested here FaF::smatch results {}; ^ That's because the code is not valid according to the standard. >>From gcc-bugs-return-613116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 09:01:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55636 invoked by alias); 20 Aug 2018 09:01:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55491 invoked by uid 48); 20 Aug 2018 09:01:27 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87020] comparison operator isn't called for stateless allocator without is_always_equal for C++11/14 Date: Mon, 20 Aug 2018 09:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01405.txt.bz2 Content-length: 801 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87020 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Jonathan Wakely --- The is_always_equal trait was invented in libstdc++ before it got into the standard, and if we didn't give the same behaviour for C++11 and C++14 there would be ODR violations. So this is not going to change. The trait was added to resolve a defect report about missing 'noexcept' on container member functions, so arguably it's needed to fix defects in C++11= and C++14 anyway. >>From gcc-bugs-return-613117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 09:08:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59361 invoked by alias); 20 Aug 2018 09:08:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59299 invoked by uid 48); 20 Aug 2018 09:08:00 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87020] comparison operator isn't called for stateless allocator without is_always_equal for C++11/14 Date: Mon, 20 Aug 2018 09:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01406.txt.bz2 Content-length: 241 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87020 --- Comment #2 from Jonathan Wakely --- This property of the library is documented: https://gcc.gnu.org/onlinedocs/libstdc++/manual/bugs.html#manual.bugs.dr2108 >>From gcc-bugs-return-613118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 09:28:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14251 invoked by alias); 20 Aug 2018 09:28:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14198 invoked by uid 48); 20 Aug 2018 09:28:13 -0000 From: "anon63 at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] New: false positive -Wstringop-truncation strncpy with global variable source string Date: Mon, 20 Aug 2018 09:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anon63 at protonmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01407.txt.bz2 Content-length: 3580 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 Bug ID: 87028 Summary: false positive -Wstringop-truncation strncpy with global variable source string Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anon63 at protonmail dot com Target Milestone: --- Hi,=20 Just builded latest gcc (GCC) 9.0.0 20180820 (experimental) commit 316828699 on Debian Linux 4.17.0-1-amd64 with gcc (Debian 8.2.0-3) 8.2.0 and ldd (Deb= ian GLIBC 2.27-5) 2.27 I know there are already several -Wstringop-truncation false positive relat= ed threads but I'm not sure if this particular behaviour : emit warning when source string is global variable and does not emit warning when source stri= ng is local variable, has already been addressed.=20 //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// GLOBAL VARIABLE SOURCE STRING =3D> WARNING $ cat a.c && gcc -O2 -Wall -Wextra -S a.c char *strncpy (char *, const char *, __SIZE_TYPE__); struct S { char dest[5]; }; const char src[] =3D "1234567890"; void function(struct S *s) { strncpy(s->dest,src,sizeof(s->dest)-1); s->dest[sizeof(s->dest)-1]=3D'\0'; } //////////////////////////////////////////////////////// a.c: In function =E2=80=98function=E2=80=99: a.c:12:5: warning: =E2=80=98strncpy=E2=80=99 output truncated copying 4 byt= es from a string of length 10 [-Wstringop-truncation] strncpy(s->dest,src,sizeof(s->dest)-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// LOCAL VARIABLE SOURCE STRING =3D> NO WARNING $ cat a.c && gcc -O2 -Wall -Wextra -S a.c char *strncpy (char *, const char *, __SIZE_TYPE__); struct S { char dest[5]; }; void function(struct S *s) { const char src[] =3D "1234567890"; strncpy(s->dest,src,sizeof(s->dest)-1); s->dest[sizeof(s->dest)-1]=3D'\0'; } //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// CONSTANT SOURCE STRING =3D> WARNING $ cat a.c && gcc -O2 -Wall -Wextra -S a.c //////////////////////////////////////////////////////// char *strncpy (char *, const char *, __SIZE_TYPE__); struct S { char dest[5]; }; void function(struct S *s) { strncpy(s->dest,"1234567890",sizeof(s->dest)-1); s->dest[sizeof(s->dest)-1]=3D'\0'; } //////////////////////////////////////////////////////// a.c: In function =E2=80=98function=E2=80=99: a.c:11:5: warning: =E2=80=98strncpy=E2=80=99 output truncated copying 4 byt= es from a string of length 10 [-Wstringop-truncation] 11 | strncpy(s->dest,"1234567890",sizeof(s->dest)-1); //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// This last case, constant source string, seems to be duplicate https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84474 but I would like to kn= ow if there are any news/recommendations about this problem. Lots of codebases can't be compiled with -Werror flag now. I see lots of people, mechanically changing strncpy for memcpy. Other peopl= e do the transformation strncpy of size n =3D> strncpy of size n-1 + '\0' at ind= ex n-1. Without success for me in the "global variable" case. What would be the recommended way with the examples above ? Cheers,=20 A. >>From gcc-bugs-return-613119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 09:31:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21885 invoked by alias); 20 Aug 2018 09:31:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21832 invoked by uid 48); 20 Aug 2018 09:31:46 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52801] improve selective typedef unwrapping Date: Mon, 20 Aug 2018 09:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01408.txt.bz2 Content-length: 1959 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52801 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|error-recovery | CC|redi at gcc dot gnu.org | --- Comment #4 from Jonathan Wakely --- The only real difference between Clang and G++ here is that Clang preserves= the vector type in the output, but G++ shows vector. GCC's first line shows the=20 52801.cc:9:8: error: no match for =E2=80=98operator=3D=E2=80=99 (operand ty= pes are =E2=80=98std::__cxx11::string {aka std::__cxx11::basic_string}=E2=80= =99 and =E2=80=98std::vector=E2=80=99) This uses "aka" to relate the type shown in the source (which might be a typedef) with the canonical types shown in the later errors. If that first = line said "'vector' {aka 'std::vector'}" I think it would be fine. The fact the typedef is preserved for the string but not the vector may be because the string is declared using a typedef ("string") but the vector is= not ("Real" is a typedef, but "vector" is not). Some of the other differences are due to comparing apples with oranges: - Several more lines in GCC output, because the clang test was done with -std=3Dgnu++98 and the GCC one with -std=3Dgnu++14, so there are extra over= loads in the GCC version. Clang also prints more lines for recent standards. - Clang shows std::basic_string and gcc shows std::__cxx11::basic_string, but only because the clang test was using= GCC 4.3 headers. Using libc++ headers shows std::__1::basic_string which = is no better. N.B. GCC would be improved by PR 81239, so that the first line w= ould show "std::string {aka 'std::__cxx11::basic_string'}". I might even be able= to make that happen with a libstdc++ change. >>From gcc-bugs-return-613120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 09:59:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29038 invoked by alias); 20 Aug 2018 09:59:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28973 invoked by uid 48); 20 Aug 2018 09:59:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87027] lower_bound returns erroneous result, 32 bit Date: Mon, 20 Aug 2018 09:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01409.txt.bz2 Content-length: 527 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87027 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Jonathan Wakely --- This is the problem I reported as PR 78448 *** This bug has been marked as a duplicate of bug 78448 *** >>From gcc-bugs-return-613121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 09:59:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29168 invoked by alias); 20 Aug 2018 09:59:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28993 invoked by uid 48); 20 Aug 2018 09:59:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/78448] Container max_size() functions don't consider the range of their difference_type Date: Mon, 20 Aug 2018 09:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01410.txt.bz2 Content-length: 439 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78448 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lists at sagnix dot eu --- Comment #1 from Jonathan Wakely --- *** Bug 87027 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 10:01:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33763 invoked by alias); 20 Aug 2018 10:01:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33431 invoked by uid 48); 20 Aug 2018 10:00:45 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/78448] Container max_size() functions don't consider the range of their difference_type Date: Mon, 20 Aug 2018 10:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01411.txt.bz2 Content-length: 1743 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78448 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-20 Ever confirmed|0 |1 --- Comment #2 from Jonathan Wakely --- Testcase from PR 87027: The program below outputs 2: /usr/bin/g++ -m32 -std=3Dc++14 ex.cpp && ./a.out Vector maximal size: 4294967295 and actual size: 2415919104 Found value 2 It should output 3 or throw std::length_error. See also https://stackoverflow.com/questions/51907247/lower-bound-algorithm-stl-usag= e-preconditions/51910011#51910011=20 // compile with -m32 switch #include #include #include #include using namespace std; int main() { try { vector v((1ULL << 28) * 9, 2); // 2.25 G entries v.back() =3D 3; // the last of which is greater cout<< "Vector maximal size: "<>From gcc-bugs-return-613123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 10:02:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36589 invoked by alias); 20 Aug 2018 10:02:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36516 invoked by uid 48); 20 Aug 2018 10:02:38 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/78448] Container max_size() functions don't consider the range of their difference_type Date: Mon, 20 Aug 2018 10:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01412.txt.bz2 Content-length: 749 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78448 --- Comment #3 from Jonathan Wakely --- UBsan shows where the overflows happen: /home/jwakely/gcc/9/include/c++/9.0.0/bits/stl_vector.h:359:59: runtime err= or: pointer index expression with base 0x6760f010 overflowed to 0xf760f010 /home/jwakely/gcc/9/include/c++/9.0.0/bits/stl_algobase.h:777:20: runtime error: pointer index expression with base 0x6760f010 overflowed to 0xf760f0= 10 /home/jwakely/gcc/9/include/c++/9.0.0/bits/stl_algobase.h:778:24: runtime error: pointer index expression with base 0x6760f010 overflowed to 0xf760f0= 10 Vector maximal size: 4294967295 and actual size: 2415919104 Found value 2 We just need to fix our max_size() as per comment 0. >>From gcc-bugs-return-613124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 10:13:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103872 invoked by alias); 20 Aug 2018 10:13:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103823 invoked by uid 48); 20 Aug 2018 10:13:42 -0000 From: "development@faf-ltd.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87017] vector must have the same value as its allocator Date: Mon, 20 Aug 2018 10:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: development@faf-ltd.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01413.txt.bz2 Content-length: 488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87017 Peter VARGA changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #3 from Peter VARGA --- Jonathan, I thank you very much for your clear and simple explanation. I have fixed it now as you suggested according to the standard! >>From gcc-bugs-return-613125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 10:26:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 732 invoked by alias); 20 Aug 2018 10:26:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 714 invoked by uid 48); 20 Aug 2018 10:26:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 10:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01414.txt.bz2 Content-length: 777 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely --- The code is valid. The optional::operator=3D(U&&) assignment operator is= not used when is_scalar and is_same> (which is true here, where T=3Dint and U=3Dint). That means the assignment creates a temporary optional using the const= expr constructor, i.e. bar =3D std::optional(10); This is valid in a constexpr function. >>From gcc-bugs-return-613126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 10:41:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124343 invoked by alias); 20 Aug 2018 10:41:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124311 invoked by uid 48); 20 Aug 2018 10:41:32 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87017] vector must have the same value as its allocator Date: Mon, 20 Aug 2018 10:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01415.txt.bz2 Content-length: 509 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87017 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID --- Comment #4 from Jonathan Wakely --- Changing status back. FIXED means GCC was fixed, but GCC doesn't need fixin= g. https://gcc.gnu.org/bugzilla/page.cgi?id=3Dfields.html#bug_status >>From gcc-bugs-return-613127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 12:08:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36690 invoked by alias); 20 Aug 2018 12:08:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33989 invoked by uid 48); 20 Aug 2018 12:08:15 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Mon, 20 Aug 2018 12:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01416.txt.bz2 Content-length: 587 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-20 CC| |segher at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- Confirmed (also on 64-bit, etc.) >>From gcc-bugs-return-613128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 12:16:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11779 invoked by alias); 20 Aug 2018 12:16:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11676 invoked by uid 48); 20 Aug 2018 12:16:01 -0000 From: "welttensor at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87019] ICE: Static member of derived type, organized in coarray accessed Date: Mon, 20 Aug 2018 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: welttensor at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01417.txt.bz2 Content-length: 397 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87019 --- Comment #1 from Alexander Lehmann --- I found out that this bug was encounter in the following forum as well: https://github.com/szaghi/HASTY/issues/6 and then opened in this case: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78682 But unfortunately the ICE still persists in the current version of gfortran. >>From gcc-bugs-return-613129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 12:38:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112032 invoked by alias); 20 Aug 2018 12:38:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111990 invoked by uid 48); 20 Aug 2018 12:38:33 -0000 From: "bobogu at atlas dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 12:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bobogu at atlas dot cz X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01418.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #2 from bobogu at atlas dot cz --- Do I understand it correctly that this will get optimized into one statement saying bar =3D std::optional(10); If so, is there something that could prevent such optimizations in order to check if the code is portable? Also, just to clarify, this has nothing to do with this proposal http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0602r3.html to whi= ch someone has pointed me to? >>From gcc-bugs-return-613130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 12:52:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94937 invoked by alias); 20 Aug 2018 12:52:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94872 invoked by uid 48); 20 Aug 2018 12:52:22 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 12:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01419.txt.bz2 Content-length: 912 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #3 from Jonathan Wakely --- (In reply to bobogu from comment #2) > Do I understand it correctly that this will get optimized into one statem= ent > saying >=20 > bar =3D std::optional(10); No, it's not an optimization. When you assign an int to optional it is equivalent to constructing a temporary optional and then assigning that to the left-hand operand. > If so, is there something that could prevent such optimizations in order = to > check if the code is portable? It's not an optimization, it's the required behaviour according the the specification of std::optional in the standard. > Also, just to clarify, this has nothing to do with this proposal > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0602r3.html to > which someone has pointed me to? It's nothing to do with that. >>From gcc-bugs-return-613131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 13:14:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62264 invoked by alias); 20 Aug 2018 13:14:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62067 invoked by uid 48); 20 Aug 2018 13:14:15 -0000 From: "bobogu at atlas dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 13:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bobogu at atlas dot cz X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01420.txt.bz2 Content-length: 792 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #4 from bobogu at atlas dot cz --- (In reply to Jonathan Wakely from comment #3) > (In reply to bobogu from comment #2) > When you assign an int to optional it is equivalent to constructing a > temporary optional and then assigning that to the left-hand operand. I feel stupid, but I still don't understand how that can work in a constexpr context when the current c++17 standard doesn't specify any constexpr assignment operator.=20 The second line of this snippet std::optional bar =3D 3; bar =3D std::optional(10); would call the 3rd assignment operator (https://en.cppreference.com/w/cpp/utility/optional/operator%3D), right? And the operator isn't constexpr, but works in a constexpr function. >>From gcc-bugs-return-613132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 13:16:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64329 invoked by alias); 20 Aug 2018 13:16:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64266 invoked by uid 48); 20 Aug 2018 13:16:31 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87018] [9 Regression] Boostrap failure on AIX Date: Mon, 20 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01421.txt.bz2 Content-length: 589 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87018 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org --- Comment #1 from Segher Boessenkool --- I always use --disable-nls on AIX (and on other systems where NLS causes problems). I don't know if there is a bug here (and where), or if this is user error; but that will avoid all such problems. >>From gcc-bugs-return-613133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 13:29:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29268 invoked by alias); 20 Aug 2018 13:29:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29223 invoked by uid 55); 20 Aug 2018 13:29:26 -0000 From: "arjen.markus895 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80931] ICE on move_alloc in gimplify_expr, at gimplify.c:11335 Date: Mon, 20 Aug 2018 13:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus895 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01422.txt.bz2 Content-length: 781 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 --- Comment #8 from Arjen Markus --- Thank you! I do appreciate such comments - apart from the fun it was to write the book and experiment with all the features of Fortran, it is great to hear that other people enjoy it too. Regards, Arjen 2018-08-17 23:06 GMT+02:00 snowfed at mail dot ru : > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 > > --- Comment #7 from snowfed --- > Wow! Read your book with great pleasure! (the Russian translation of it) > > (In reply to Arjen Markus from comment #6) >> Yes, I am :). >> >> Regards, >> >> Arjen >> > > -- > You are receiving this mail because: > You are on the CC list for the bug. >>From gcc-bugs-return-613134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 13:34:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129436 invoked by alias); 20 Aug 2018 13:34:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126236 invoked by uid 48); 20 Aug 2018 13:34:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 13:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01423.txt.bz2 Content-length: 838 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #5 from Jonathan Wakely --- (In reply to bobogu from comment #4) > I feel stupid, but I still don't understand how that can work in a conste= xpr > context when the current c++17 standard doesn't specify any constexpr > assignment operator.=20 That's true, but the standard is broken. All implementations define the assignment operator as defaulted, and so the compiler makes it constexpr. In fact the p0602R3 proposal you linked to is relevant, because it would *require* implementations to define the operator as defaulted (in order to = be trivial) and so the compiler is always going to make it constexpr for std::optional. Anyway, I don't consider "I can use more things in constant expressions than the standard says" to be a bug. >>From gcc-bugs-return-613135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 13:54:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42834 invoked by alias); 20 Aug 2018 13:54:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42771 invoked by uid 55); 20 Aug 2018 13:54:28 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86963] std::tuple incorrectly assigned Date: Mon, 20 Aug 2018 13:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01424.txt.bz2 Content-length: 1441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86963 --- Comment #5 from Jonathan Wakely --- Author: redi Date: Mon Aug 20 13:53:56 2018 New Revision: 263661 URL: https://gcc.gnu.org/viewcvs?rev=3D263661&root=3Dgcc&view=3Drev Log: PR libstdc++/86963 Remove use of __tuple_base in std::tuple The _Tuple_impl base class can be used to disable copy/move assignment, without requiring an extra base class. Exception specifications on std::tuple assignment and swap functions can be defined directly using is_nothrow_swappable, instead of querying the base classes. PR libstdc++/86963 * include/std/tuple (_Tuple_impl::operator=3D): Define as deleted. (_Tuple_impl::_M_assign): New functions to perform assignment inste= ad of assignment operators. (_Tuple_impl::_M_swap): Remove exception specification. (_Tuple_impl<_Idx, _Head>): Likewise. (_TC::_NonNestedTuple, _TC::_NotSameTuple): Use __remove_cvref_t. (__tuple_base): Remove. (tuple, tuple<_T1, _T2>): Remove inheritance from __tuple_base. (tuple::operator=3D, tuple<_T1, _T2>::operator=3D): Call _M_assign. (tuple::swap, tuple<_T1, _T2>::swap): Define exception specification using __is_nothrow_swappable. (tuple<_T1, _T2>::tuple(_U1&&, _U2&&)): Use __remove_cvref_t. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/tuple >>From gcc-bugs-return-613136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 13:56:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61884 invoked by alias); 20 Aug 2018 13:56:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61837 invoked by uid 48); 20 Aug 2018 13:56:39 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87019] ICE: Static member of derived type, organized in coarray accessed Date: Mon, 20 Aug 2018 13:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01425.txt.bz2 Content-length: 505 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87019 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-20 Ever confirmed|0 |1 --- Comment #2 from Dominique d'Humieres --- Duplicate of pr77871? >>From gcc-bugs-return-613137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:00:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94504 invoked by alias); 20 Aug 2018 14:00:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92884 invoked by uid 48); 20 Aug 2018 13:59:59 -0000 From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 14:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01426.txt.bz2 Content-length: 470 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 nsz at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsz at gcc dot gnu.org --- Comment #10 from nsz at gcc dot gnu.org --- Created attachment 44561 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44561&action=3Dedit good rtl dump of combine pass >>From gcc-bugs-return-613138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:01:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98710 invoked by alias); 20 Aug 2018 14:01:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98536 invoked by uid 55); 20 Aug 2018 14:01:47 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78655] gcc doesn't exploit the fact that the result of pointer addition can not be nullptr Date: Mon, 20 Aug 2018 14:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01427.txt.bz2 Content-length: 679 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78655 --- Comment #6 from Richard Biener --- Author: rguenth Date: Mon Aug 20 14:01:05 2018 New Revision: 263662 URL: https://gcc.gnu.org/viewcvs?rev=3D263662&root=3Dgcc&view=3Drev Log: 2018-08-20 Richard Biener PR tree-optimization/78655 * tree-vrp.c (extract_range_from_binary_expr_1): Make pointer + offset nonnull if either operand is nonnull work. * gcc.dg/tree-ssa/evrp11.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/evrp11.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vrp.c >>From gcc-bugs-return-613139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:03:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100472 invoked by alias); 20 Aug 2018 14:03:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100355 invoked by uid 48); 20 Aug 2018 14:03:22 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 14:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01428.txt.bz2 Content-length: 463 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #6 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > In fact the p0602R3 proposal you linked to is relevant, because it would > *require* implementations to define the operator as defaulted (in order to > be trivial) and so the compiler is always going to make it constexpr for > std::optional. I've raised this with the standards committee. >>From gcc-bugs-return-613140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:03:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102089 invoked by alias); 20 Aug 2018 14:03:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102010 invoked by uid 48); 20 Aug 2018 14:03:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78655] gcc doesn't exploit the fact that the result of pointer addition can not be nullptr Date: Mon, 20 Aug 2018 14:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01429.txt.bz2 Content-length: 250 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78655 --- Comment #7 from Richard Biener --- Note the original testcase is already optimized with GCC 8 due to the fix f= or PR35878 and enabling it for all standard modes. >>From gcc-bugs-return-613141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:04:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104233 invoked by alias); 20 Aug 2018 14:04:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104169 invoked by uid 48); 20 Aug 2018 14:04:51 -0000 From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 14:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01430.txt.bz2 Content-length: 508 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #11 from nsz at gcc dot gnu.org --- Created attachment 44562 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44562&action=3Dedit bad rtl dump of combine pass attached good and bad dump of combine, i also tried to look at the array contents, it seems to go from (good): hello hola! goddag to (bad): goddo hola! goddag in the last option_stopwatch_a call in main (even though the array 'a' seem= s to be 'hello' before the call). >>From gcc-bugs-return-613142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:14:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118388 invoked by alias); 20 Aug 2018 14:14:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118343 invoked by uid 48); 20 Aug 2018 14:14:05 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87029] New: Add -Wredundant-move Date: Mon, 20 Aug 2018 14:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01431.txt.bz2 Content-length: 733 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87029 Bug ID: 87029 Summary: Add -Wredundant-move Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Similarly to 86981, we could also warn here about the redundant (but not pessimizing) move here: #include struct S { }; S foo (S s) { return std::move (s); } the compiler will try a move operation regardless the std::move (if the move ctor is present and accessible). Unless the parameter is const, of course. >>From gcc-bugs-return-613143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:15:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2389 invoked by alias); 20 Aug 2018 14:15:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122067 invoked by uid 48); 20 Aug 2018 14:14:59 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87029] Add -Wredundant-move warning Date: Mon, 20 Aug 2018 14:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01432.txt.bz2 Content-length: 813 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87029 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-20 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org Summary|Add -Wredundant-move |Add -Wredundant-move | |warning Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- This should be a fairly easy extension of -Wpessimizing-move. >>From gcc-bugs-return-613144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:21:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99866 invoked by alias); 20 Aug 2018 14:21:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99786 invoked by uid 55); 20 Aug 2018 14:21:32 -0000 From: "law at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86984] invalid relocation accessing a const char arrray Date: Mon, 20 Aug 2018 14:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: law at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01433.txt.bz2 Content-length: 795 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86984 --- Comment #3 from Jeffrey A. Law --- Author: law Date: Mon Aug 20 14:20:59 2018 New Revision: 263664 URL: https://gcc.gnu.org/viewcvs?rev=3D263664&root=3Dgcc&view=3Drev Log: PR target/86984 * expr.c (expand_assignment): Assert that bitpos is positive. (store_field): Likewise (expand_expr_real_1): Make sure that bitpos is positive. * config/alpha/alpha.h (CONSTANT_ADDRESS_P): Avoid signed integer overflow. PR target/86984 * gcc.target/alpha/pr86984.c: New test. Added: trunk/gcc/testsuite/gcc.target/alpha/pr86984.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/alpha/alpha.h trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:24:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45902 invoked by alias); 20 Aug 2018 14:24:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36089 invoked by uid 48); 20 Aug 2018 14:24:35 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Mon, 20 Aug 2018 14:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01434.txt.bz2 Content-length: 434 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at gcc dot gnu.org --- Comment #2 from Segher Boessenkool --- This is caused by r263591 (of a few days ago). >>From gcc-bugs-return-613146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:24:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52008 invoked by alias); 20 Aug 2018 14:24:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45985 invoked by uid 48); 20 Aug 2018 14:24:44 -0000 From: "fxcoudert at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87030] New: GCC fails to build with Xcode 10, attempting an impossible multilib build Date: Mon, 20 Aug 2018 14:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fxcoudert at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01435.txt.bz2 Content-length: 972 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87030 Bug ID: 87030 Summary: GCC fails to build with Xcode 10, attempting an impossible multilib build Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: fxcoudert at gcc dot gnu.org Target Milestone: --- Building with Xcode 10 (beta) on macOS 10.13 or 10.14 (beta), leads to a bu= ild failure because by default, configure sets GCC up for a multilib build. However, starting with Xcode 10, Apple has removed support for 32-bit: thus, the builds fails when trying to link libgcc, because it does not find the 32-bit system libc. Passing --disable-multilib fixes bootstrap. However, the default configure should detect that 32-bit is not supported and automatically build without 32-bit multilib. >>From gcc-bugs-return-613147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:31:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31293 invoked by alias); 20 Aug 2018 14:30:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30717 invoked by uid 48); 20 Aug 2018 14:30:31 -0000 From: "bobogu at atlas dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 14:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bobogu at atlas dot cz X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01436.txt.bz2 Content-length: 922 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #7 from bobogu at atlas dot cz --- (In reply to Jonathan Wakely from comment #5) > (In reply to bobogu from comment #4) > All implementations define the assignment operator as defaulted, and so t= he > compiler makes it constexpr. >=20 > In fact the p0602R3 proposal you linked to is relevant, because it would > *require* implementations to define the operator as defaulted (in order to > be trivial) and so the compiler is always going to make it constexpr for > std::optional. Ah, finally it makes sense to me! > Anyway, I don't consider "I can use more things in constant expressions t= han > the standard says" to be a bug. All right, I'm sorry then... I just thought that as this is undocumented, it could lead to producing an unportable code. Anyway, thank you for clearing it out. > I've raised this with the standards committee. Thanks! >>From gcc-bugs-return-613148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:37:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61892 invoked by alias); 20 Aug 2018 14:37:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59896 invoked by uid 48); 20 Aug 2018 14:37:47 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Mon, 20 Aug 2018 14:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01437.txt.bz2 Content-length: 473 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |segher at gcc dot g= nu.org --- Comment #3 from Segher Boessenkool --- I have a patch. >>From gcc-bugs-return-613149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 14:57:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25029 invoked by alias); 20 Aug 2018 14:57:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21868 invoked by uid 48); 20 Aug 2018 14:56:55 -0000 From: "daniel.f.starke at freenet dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87015] [8 Regression] miscompilation of template heavy Boost Spirit code Date: Mon, 20 Aug 2018 14:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.f.starke at freenet dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01438.txt.bz2 Content-length: 438 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87015 --- Comment #2 from Daniel Starke --- I am not quite sure how to do this in this case. GCC terminates without an error but the resulting application misbehaves since GCC 8.1.0. That means = the assembly output is wrong. Any idea on how to make a reproducable test case = that matches the bug reporting guidelines and works for my issue is welcome. >>From gcc-bugs-return-613151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:05:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66204 invoked by alias); 20 Aug 2018 15:05:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65703 invoked by uid 48); 20 Aug 2018 15:05:11 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84184] gcc generates wrong relocations with negative offsets in struct arrays Date: Mon, 20 Aug 2018 15:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01440.txt.bz2 Content-length: 495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84184 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #13 from Eric Botcazou --- =2E *** This bug has been marked as a duplicate of bug 86984 *** >>From gcc-bugs-return-613150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:05:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65810 invoked by alias); 20 Aug 2018 15:05:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65741 invoked by uid 48); 20 Aug 2018 15:05:12 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86984] invalid relocation accessing a const char arrray Date: Mon, 20 Aug 2018 15:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01439.txt.bz2 Content-length: 445 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86984 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |slyfox at inbox dot ru --- Comment #4 from Eric Botcazou --- *** Bug 84184 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:11:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10798 invoked by alias); 20 Aug 2018 15:11:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10749 invoked by uid 48); 20 Aug 2018 15:11:04 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 15:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01441.txt.bz2 Content-length: 481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #8 from Jonathan Wakely --- (In reply to bobogu from comment #7) > All right, I'm sorry then... I just thought that as this is undocumented,= it > could lead to producing an unportable code. It could, except that you should get the same behaviour for every correct implementation. Your example doesn't compile with libc++, but that's a bug: https://bugs.llvm.org/show_bug.cgi?id=3D38638 >>From gcc-bugs-return-613154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:18:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35969 invoked by alias); 20 Aug 2018 15:18:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35862 invoked by uid 48); 20 Aug 2018 15:18:19 -0000 From: "welttensor at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/77871] [6/7/8/9 Regression] [Coarray] [OOP] ICE in gfc_get_caf_token_offset, at fortran/trans-expr.c:1981 Date: Mon, 20 Aug 2018 15:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: welttensor at web dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01443.txt.bz2 Content-length: 447 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77871 Alexander Lehmann changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |welttensor at web dot de --- Comment #4 from Alexander Lehmann --- *** Bug 87019 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:18:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35917 invoked by alias); 20 Aug 2018 15:18:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35828 invoked by uid 48); 20 Aug 2018 15:18:18 -0000 From: "welttensor at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87019] ICE: Static member of derived type, organized in coarray accessed Date: Mon, 20 Aug 2018 15:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: welttensor at web dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01442.txt.bz2 Content-length: 807 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87019 Alexander Lehmann changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Alexander Lehmann --- True, that looks very similar though it is already two years old an still marked as "NEW". I marked mine as duplicate, now, but hope that this issue will be resolved = in near future. Unfortunately, this issue hinders the use of the combination of derived types and co-arrays which would help making code look clean. *** This bug has been marked as a duplicate of bug 77871 *** >>From gcc-bugs-return-613155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:35:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120103 invoked by alias); 20 Aug 2018 15:35:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120059 invoked by uid 48); 20 Aug 2018 15:35:39 -0000 From: "bobogu at atlas dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87016] std::optional::operator= in constexpr context Date: Mon, 20 Aug 2018 15:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bobogu at atlas dot cz X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01444.txt.bz2 Content-length: 686 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87016 --- Comment #9 from bobogu at atlas dot cz --- (In reply to Jonathan Wakely from comment #8) > (In reply to bobogu from comment #7) > > All right, I'm sorry then... I just thought that as this is undocumente= d, it > > could lead to producing an unportable code. >=20 > It could, except that you should get the same behaviour for every correct > implementation. Your example doesn't compile with libc++, but that's a bu= g: > https://bugs.llvm.org/show_bug.cgi?id=3D38638 Yes, that was just my misconception before you got me on the right track - I thought clang's behaviour was correct because of what I saw in the standard= :-) >>From gcc-bugs-return-613156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:36:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121022 invoked by alias); 20 Aug 2018 15:36:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120923 invoked by uid 48); 20 Aug 2018 15:35:59 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/87003] use nonnull attribute in libgccjit.h Date: Mon, 20 Aug 2018 15:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01445.txt.bz2 Content-length: 1902 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87003 --- Comment #1 from David Malcolm --- It would be good to make the header file be more self-documenting. In general, every pointer argument ought to be non-NULL, but a NULL will be checked for and gracefully rejected. The exception is gcc_jit_location *, which can always be NULL. libgccjit performs error-checking at the API boundary: there are many places where a NULL pointer argument will lead to a failure that puts the context = into an "invalid" state, but such a failure will be handled gracefully without segfaulting: https://gcc.gnu.org/onlinedocs/jit/topics/contexts.html#error-handling This means that e.g. C code calling into the API doesn't need to check everywhere for NULL results before passing them back in as arguments to followup calls; it can just check once at the end of populating a context. (FWIW, I notice that the Rust bindings don't do error-handling yet: https://github.com/swgillespie/gccjit.rs#error-handling ) The docs for attribute "nonnull": https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Common-Function-Attributes.htm= l#Common-Function-Attributes say it: > "...causes the compiler to check that [...] arguments [...] are > non-null. If the compiler determines that a null pointer is passed > in an argument slot marked as non-null, and the -Wnonnull option is > enabled, a warning is issued. The compiler may also choose to make > optimizations based on the knowledge that certain function arguments > will never be null" That last sentence about optimizations makes me a little wary: it *is* poss= ible for such arguments to be NULL (and my test cases make use of this to verify that the API does indeed gracefully handle these errors). But it does seem useful to mark all those arguments, and potentially warn f= or obvious "NULL in the wrong places" typos. Thoughts? >>From gcc-bugs-return-613157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:49:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92771 invoked by alias); 20 Aug 2018 15:49:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92699 invoked by uid 48); 20 Aug 2018 15:49:54 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87031] New: nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Mon, 20 Aug 2018 15:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01446.txt.bz2 Content-length: 1407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 Bug ID: 87031 Summary: nios2 optimization for size - two cases of regression relatively to 5.3.0 Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: already5chosen at yahoo dot com Target Milestone: --- Created attachment 44563 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44563&action=3Dedit first case - shifts instead of mulx Here are two cases of significant regression in optimization for size betwe= en 5.3.0 (a version supplied in Altera Nios2 SDK) and 8.2.0. Both cases compiled with -Wall -Os -ffreestanding -fbuiltin -mhw-div -mhw-m= ul -mhw-mulx It looks like in the first case -Os flag caused to compiler to forget that hw-mulx is present. The the second case, in addition to the same problem as in the first case, compiler decided to unroll the loop. An exact opposite of what one expects = from '-s'. I checked if the problems appear with similar back ends ('riscv -mabi=3Dil= p32 -march=3Drv32im' and 'mips -mabi=3D32 -mips32r6 -mcompact-branches=3Dalway= s'). The first problem (shifts instead of mulx) appear unique to nios2. The seco= nd problem (unrolling) shows up on all three architectures. >>From gcc-bugs-return-613158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 15:51:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120842 invoked by alias); 20 Aug 2018 15:51:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120811 invoked by uid 48); 20 Aug 2018 15:51:52 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Mon, 20 Aug 2018 15:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01447.txt.bz2 Content-length: 250 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 --- Comment #1 from Michael_S --- Created attachment 44564 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44564&action=3Dedit second case - loop unrolled >>From gcc-bugs-return-613159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 16:33:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39569 invoked by alias); 20 Aug 2018 16:33:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39500 invoked by uid 48); 20 Aug 2018 16:33:02 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Mon, 20 Aug 2018 16:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01448.txt.bz2 Content-length: 1420 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- This is the same issue as pr84474. The warning in all these cases is by design. There is an (undocumented) suppression mechanism in GCC to avoid warning for instances of calls that a= re followed by the nul assignment. The suppression works in the second example when GCC sees the nul assignment but not in the first or last one where the warning triggers before access to the subsequent statement is available. In both of these, the strncpy call is transformed early on to memcpy (the warn= ing is issued just before this transformation) so avoiding the diagnostic in th= ese cases would prevent diagnosing instances where the nul isn't stored next. = In effect, it's a tradeoff between false positives and false negatives, forced= by the early transformation. IMO, the early folding of strncpy to memcpy is unhelpful (it causes false negatives in buffer overflow detection) and shou= ld be done later, but so far I haven't been successful at convincing others to defer it. >>From gcc-bugs-return-613160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 16:38:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46256 invoked by alias); 20 Aug 2018 16:38:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43985 invoked by uid 48); 20 Aug 2018 16:37:57 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Mon, 20 Aug 2018 16:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on see_also everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01449.txt.bz2 Content-length: 960 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-20 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D84474 Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- The test case here is more compelling than the one in bug 84474 and I agree that it would be helpful to avoid the warning, although not at the expense = of true positives. Short of deferring the strncpy -> memcpy folding I don't s= ee a way to do it. Let me confirm this report with the hope that GCC can change= to do the folding later. >>From gcc-bugs-return-613161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 16:49:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73677 invoked by alias); 20 Aug 2018 16:49:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73593 invoked by uid 48); 20 Aug 2018 16:48:57 -0000 From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 16:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01450.txt.bz2 Content-length: 1645 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #12 from nsz at gcc dot gnu.org --- the wrong string seems to be caused by a missing ldm good main: ... mov r4, #0 str r4, [sp, #32] mov r2, #2 str r2, [sp, #36] add r2, sp, #40 str r2, [sp, #4] str r4, [sp, #8] ldm ip, {r0, r1} /// load r0 (content is 'hell') str r0, [sp, #40] /// store the right r0 strh r1, [sp, #44] @ movhi ldr r2, [sp, #66] @ unaligned str r2, [sp, #46] @ unaligned ldrh r2, [sp, #70] @ unaligned strh r2, [sp, #50] @ unaligned add r2, sp, #72 ldm r2, {r0, r1} str r0, [sp, #52] strh r1, [sp, #56] @ movhi mov r1, r3 add r0, sp, #4 bl option_stopwatch_a.5061 bad main: ... mov r4, #0 str r4, [sp, #32] mov r2, #2 str r2, [sp, #36] add r2, sp, #40 str r2, [sp, #4] str r4, [sp, #8] ldr r1, [sp, #64] str r0, [sp, #40] /// store a bad r0 (content is 'godd') strh r1, [sp, #44] @ movhi ldr r2, [sp, #66] @ unaligned str r2, [sp, #46] @ unaligned ldrh r2, [sp, #70] @ unaligned strh r2, [sp, #50] @ unaligned ldr r1, [sp, #76] str r0, [sp, #52] strh r1, [sp, #56] @ movhi mov r1, r3 add r0, sp, #4 bl option_stopwatch_a.5061 >>From gcc-bugs-return-613162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 17:12:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42630 invoked by alias); 20 Aug 2018 17:12:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42591 invoked by uid 48); 20 Aug 2018 17:12:19 -0000 From: "vadim at sukhomlinov dot co" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87032] New: incorrect nested structure with union initialization Date: Mon, 20 Aug 2018 17:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vadim at sukhomlinov dot co X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01451.txt.bz2 Content-length: 1284 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87032 Bug ID: 87032 Summary: incorrect nested structure with union initialization Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vadim at sukhomlinov dot co Target Milestone: --- For the code: /**************/ struct f1 {int x,y;}; struct f2 {int x,y,z,t;}; struct T { const char * name; union { struct f1 fn1; struct f2 fn2; } d; }; extern "C" void p(struct T); int main(){ p({"%x",{.fn2=3D{1,2,3,4}}}); } /******************/ gcc 7.3 generates: : In function 'int main()': :15:26: internal compiler error: in reshape_init_class, at cp/decl.c:5802 p({"%x",{.fn2=3D{1,2,3,4}}}); ^ mmap: Invalid argument gcc 8.1/8.2: : In function 'int main()': :15:26: error: could not convert '{"%x", {{1, 2, 3, 4}}}' from '' to 'T' p({"%x",{.fn2=3D{1,2,3,4}}}); ^ Compiler returned: 1 At the same time Clang starting 3.1 and higher generates valid code. Testing done using https://godbolt.org/ >>From gcc-bugs-return-613163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 17:12:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44785 invoked by alias); 20 Aug 2018 17:12:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44702 invoked by uid 48); 20 Aug 2018 17:12:48 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78655] gcc doesn't exploit the fact that the result of pointer addition can not be nullptr Date: Mon, 20 Aug 2018 17:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01452.txt.bz2 Content-length: 364 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78655 --- Comment #8 from Marc Glisse --- (just to put this somewhere) We have multiple ways of doing pointer arithmetic in gcc. After the recent patch, we know that g returns nonnull, but we don't know it for f. struct A{int a,b;}; int*f(A*p){return&p->b;} int*g(A*p){return(int*)p+1;} >>From gcc-bugs-return-613164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 17:21:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50878 invoked by alias); 20 Aug 2018 17:21:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50804 invoked by uid 48); 20 Aug 2018 17:21:30 -0000 From: "wilco at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 17:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: wilco at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01453.txt.bz2 Content-length: 1534 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 Wilco changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-20 CC| |wilco at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #13 from Wilco --- (In reply to nsz from comment #12) > the wrong string seems to be caused by a missing ldm Yes what happens is that it decides to combine instruction 150 and 190 and split an ldm2: insn_cost 4 for 150: r197:SI=3Dsfp:SI-0x24 ... insn_cost 0 for 190: {r0:SI=3D[r197:SI];r1:SI=3D[r197:SI+0x4];} allowing combination of insns 150 and 190 original costs 4 + 0 =3D 0 replacement costs 8 + 8 =3D 16 modifying insn i2 150: r0:SI=3D[sfp:SI-0x24] deferring rescan insn with uid =3D 150. modifying insn i3 190: r1:SI=3D[sfp:SI-0x20] deferring rescan insn with uid =3D 190. There are lots of instructions between 150 and 190, including another ldm2 which writes r0: 150: r0:SI=3D[sfp:SI-0x24] ... 163: {r0:SI=3D[r206:SI];r1:SI=3D[r206:SI+0x4];} ... 190: r1:SI=3D[sfp:SI-0x20] The combination ends up corrupting r0 because one of the loads is lifted ac= ross many instructions without checking liveness. It seems the safest way to spl= it an instruction is to place the new instructions next to each other. >>From gcc-bugs-return-613165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 17:40:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12686 invoked by alias); 20 Aug 2018 17:40:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11289 invoked by uid 48); 20 Aug 2018 17:39:59 -0000 From: "wilco at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 17:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: wilco at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01454.txt.bz2 Content-length: 465 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #14 from Wilco --- Note there is also an issue with costs, if the cost is zero then it seems to behave like infinite cost. It would be better to properly cost an instructi= on sequence given there is a new interface for this now. If the cost is still zero, it could get the default cost rather than being treated like infinite cost, resulting in non-optimal replacements. >>From gcc-bugs-return-613166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 19:01:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104693 invoked by alias); 20 Aug 2018 19:01:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104648 invoked by uid 48); 20 Aug 2018 19:01:38 -0000 From: "mfe at live dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Mon, 20 Aug 2018 19:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mfe at live dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01455.txt.bz2 Content-length: 688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 --- Comment #2 from martin --- Created attachment 44565 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44565&action=3Dedit conftest.s Attached is the generated conftest.s file of the command > /media/gcc-8.2.0-compiled/./gcc/xgcc -B/media/gcc-8.2.0-compiled/./gcc/ -= B/opt/gcc-8.2/sparc-linux/bin/ -B/opt/gcc-8.2/sparc-linux/lib/ -isystem /op= t/gcc-8.2/sparc-linux/include -isystem /opt/gcc-8.2/sparc-linux/sys-include= -c -g -O2 -save-temps conftest.c I'm afraid I don't have any assembler tools installed (Only the gcc 7.2 enviroment for C and C++) Let me know, if you need more information. >>From gcc-bugs-return-613167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 19:14:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84106 invoked by alias); 20 Aug 2018 19:14:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79411 invoked by uid 55); 20 Aug 2018 19:14:37 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Mon, 20 Aug 2018 19:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01456.txt.bz2 Content-length: 808 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #7 from hjl at gcc dot gnu.org --- Author: hjl Date: Mon Aug 20 19:14:04 2018 New Revision: 263672 URL: https://gcc.gnu.org/viewcvs?rev=3D263672&root=3Dgcc&view=3Drev Log: x86: Always update EH return address in word_mode On x86, return address is always popped in word_mode. eh_return needs to put EH return address in word_mode on stack. gcc/ PR target/87014 * config/i386/i386.md (eh_return): Always update EH return address in word_mode. gcc/testsuite/ PR target/87014 * g++.dg/torture/pr87014.C: New file. Added: trunk/gcc/testsuite/g++.dg/torture/pr87014.C Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.md trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 19:29:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18168 invoked by alias); 20 Aug 2018 19:29:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18074 invoked by uid 48); 20 Aug 2018 19:29:01 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87029] Add -Wredundant-move warning Date: Mon, 20 Aug 2018 19:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01457.txt.bz2 Content-length: 883 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87029 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D86981, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D67906, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D81159 --- Comment #2 from Eric Gallager --- See also: bug 67906 and bug 81159 >>From gcc-bugs-return-613169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 19:32:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23803 invoked by alias); 20 Aug 2018 19:32:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23700 invoked by uid 48); 20 Aug 2018 19:32:50 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49974] missing warning for indirectly returning reference to local/temporary Date: Mon, 20 Aug 2018 19:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01458.txt.bz2 Content-length: 920 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49974 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D986, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D52901 --- Comment #10 from Eric Gallager --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #1) > Isn't this related to PR986? (In reply to Jonathan Wakely from comment #2) > Maybe related, but not the same. So still worth putting under "See Also" then. >>From gcc-bugs-return-613170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 19:35:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39855 invoked by alias); 20 Aug 2018 19:35:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34071 invoked by uid 48); 20 Aug 2018 19:35:43 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49974] missing warning for indirectly returning reference to local/temporary Date: Mon, 20 Aug 2018 19:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01459.txt.bz2 Content-length: 822 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49974 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D86982 --- Comment #11 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > As pointed out in PR 52901 comment 3, this missing warning is likely to b= ite > people misusing std::move like so: >=20 > X&& f() > { > X x; > return std::move(x); > } I created PR 86982 for the special cases of std::move and std::forward, as I think they're important. This bug is for the more general case. >>From gcc-bugs-return-613171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 20:03:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45840 invoked by alias); 20 Aug 2018 20:03:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45760 invoked by uid 48); 20 Aug 2018 20:03:13 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/704] --help and --version Date: Mon, 20 Aug 2018 20:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 2.97 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_file_loc cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01460.txt.bz2 Content-length: 1043 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D704 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch URL| |https://gcc.gnu.org/ml/gcc- | |patches/2018-08/msg01104.ht | |ml CC| |iains at gcc dot gnu.org --- Comment #14 from Eric Gallager --- (In reply to Eric Gallager from comment #13) > gcc-ar, gcc-nm, and gcc-ranlib all fail for me when passed --help or > --version like this: >=20 > /usr/local/bin/gcc-ranlib: Cannot find plugin 'liblto_plugin.so' >=20 > IMO the --help or --version output should be printed before looking for t= he > plugin. Iain Sandoe has a patch for this: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01104.html >>From gcc-bugs-return-613172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 20:34:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97289 invoked by alias); 20 Aug 2018 20:34:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97249 invoked by uid 48); 20 Aug 2018 20:34:18 -0000 From: "meissner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87033] New: The compiler does not generate the LWAX instruction Date: Mon, 20 Aug 2018 20:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: meissner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01461.txt.bz2 Content-length: 833 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87033 Bug ID: 87033 Summary: The compiler does not generate the LWAX instruction Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: meissner at gcc dot gnu.org Target Milestone: --- Created attachment 44566 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44566&action=3Dedit Simple test case to show the bug The compiler does not generate LWAX instruction to load up a 32-bit integer value and sign extend it to 64-bits. This is due to the constraint for extendsi2 for the LWA being just 'Y' (offset addressing using DS mode instruction format) and it should be 'YZ'. >>From gcc-bugs-return-613173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 20:36:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108881 invoked by alias); 20 Aug 2018 20:36:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108397 invoked by uid 48); 20 Aug 2018 20:36:53 -0000 From: "meissner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87033] The compiler does not generate the LWAX instruction Date: Mon, 20 Aug 2018 20:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: meissner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cc cf_gcchost cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01462.txt.bz2 Content-length: 1125 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87033 Michael Meissner changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |powerpc64-linux-gnu-*, | |powerpc64le-linux-gnu-* CC| |dje at gcc dot gnu.org, | |meissner at gcc dot gnu.or= g, | |segher at gcc dot gnu.org, | |wschmidt at gcc dot gnu.org Host| |powerpc64-linux-gnu-*, | |powerpc64le-linux-gnu-* Build| |powerpc64-linux-gnu-*, | |powerpc64le-linux-gnu-* --- Comment #1 from Michael Meissner --- It looks like GCC 8 and GCC 7 are probably not generating LWAX also. >>From gcc-bugs-return-613174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 20:52:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70096 invoked by alias); 20 Aug 2018 20:52:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70036 invoked by uid 48); 20 Aug 2018 20:52:49 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 20:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01463.txt.bz2 Content-length: 425 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #15 from Segher Boessenkool --- (In reply to Wilco from comment #13) > It seems the safest way > to split an instruction is to place the new instructions next to each oth= er. combine can only place new insns at i2 and i3, in either order. There is code to figure out which way (if any) works; apparently it doesn't work her= e. >>From gcc-bugs-return-613175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 20:58:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121293 invoked by alias); 20 Aug 2018 20:58:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113753 invoked by uid 48); 20 Aug 2018 20:58:43 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 20:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01464.txt.bz2 Content-length: 808 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #16 from Segher Boessenkool --- (In reply to Wilco from comment #14) > Note there is also an issue with costs, if the cost is zero then it seems= to > behave like infinite cost. 0 means unknown cost. Any known cost is treated as at least as good as unknown cost. > It would be better to properly cost an > instruction sequence given there is a new interface for this now. Yup. > If the > cost is still zero, it could get the default cost rather than being treat= ed > like infinite cost, resulting in non-optimal replacements. Treating unknown cost as minimal cost is still non-optimal. It might work better for your case of course. But it means for example that combine will modify parallels less often. >>From gcc-bugs-return-613176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 21:07:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25537 invoked by alias); 20 Aug 2018 21:07:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25477 invoked by uid 55); 20 Aug 2018 21:07:18 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/84889] Ideas on revamping how we format diagnostics Date: Mon, 20 Aug 2018 21:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01465.txt.bz2 Content-length: 12646 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84889 --- Comment #11 from David Malcolm --- Author: dmalcolm Date: Mon Aug 20 21:06:46 2018 New Revision: 263675 URL: https://gcc.gnu.org/viewcvs?rev=3D263675&root=3Dgcc&view=3Drev Log: Add support for grouping of related diagnostics (PR other/84889) We often emit logically-related groups of diagnostics. A relatively simple case is this: if (warning_at (body_loc, OPT_Wmultistatement_macros, "macro expands to multiple statements")) inform (guard_loc, "some parts of macro expansion are not guarded by " "this %qs clause", guard_tinfo_to_string (keyword)); where the "note" diagnostic issued by the "inform" call is guarded by the -Wmultistatement_macros warning. More complicated examples can be seen in the C++ frontend, where e.g. print_z_candidates can lead to numerous "note" diagnostics being emitted. I'm looking at various ways to improve how we handle such related diagnostics, but, prior to this patch, there was no explicit relationship between these diagnostics: the diagnostics subsystem had no way of "knowing" that these were related. This patch introduces a simple way to group the diagnostics: an auto_diagnostic_group class: all diagnostics emitted within the lifetime of an auto_diagnostic_group instance are logically grouped. Hence in the above example, the two diagnostics can be grouped by simply adding an auto_diagnostic_group instance: auto_diagnostic_group d; if (warning_at (body_loc, OPT_Wmultistatement_macros, "macro expands to multiple statements")) inform (guard_loc, "some parts of macro expansion are not guarded by " "this %qs clause", guard_tinfo_to_string (keyword)); Some more awkard cases are of the form: if (some_condition && warning_at (...) && more_conditions) inform (...); which thus need restructuring to: if (some_condition) { auto_diagnostic_group d; warning_at (...); if (more_conditions) inform (...); } so that the lifetime of the auto_diagnostic_group groups the warning_at and the inform call. Nesting is handled by simply tracking a nesting depth within the diagnostic_context.: all diagnostics are treated as grouped until the final auto_diagnostic_group is popped. diagnostic.c uses this internally, so that all diagnostics are part of a group - those that are "by themselves" are treated as being part of a group with one element. The diagnostic_context gains optional callbacks for displaying the start of a group (when the first diagnostic is emitted within it), and the end of a group (for when the group was non-empty); these callbacks are unused by default, but a test plugin demonstrates them (and verifies that the machinery is working). As noted above, I'm looking at various ways to use the grouping to improve how we output the diagnostics. FWIW, I experimented with a more involved implementation, of the form: diagnostic_group d; if (d.warning_at (body_loc, OPT_Wmultistatement_macros, "macro expands to multiple statements")) d.inform (guard_loc, "some parts of macro expansion are not guarded by " "this %qs clause", guard_tinfo_to_string (keyword)); which had the advantage of allowing auto-detection of the places where groups were needed (by converting ::warning_at's return type to bool), but it was a much more invasive patch, especially when dealing with the places in the C++ frontend that can emit numerous notes after an error or warning (and thus having to pass the group around) Hence I went with this simpler approach. gcc/c-family/ChangeLog: PR other/84889 * c-attribs.c (common_handle_aligned_attribute): Add auto_diagnostic_group instance. * c-indentation.c (warn_for_misleading_indentation): Likewise. * c-opts.c (c_common_post_options): Likewise. * c-warn.c (warn_logical_not_parentheses): Likewise. (warn_duplicated_cond_add_or_warn): Likewise. (warn_for_multistatement_macros): Likewise. gcc/c/ChangeLog: PR other/84889 * c-decl.c (pushtag): Add auto_diagnostic_group instance. (diagnose_mismatched_decls): Likewise, in various places. (warn_if_shadowing): Likewise. (implicit_decl_warning): Likewise. (implicitly_declare): Likewise. (undeclared_variable): Likewise. (declare_label): Likewise. (grokdeclarator): Likewise. (start_function): Likewise. * c-parser.c (c_parser_declaration_or_fndef): Likewise. (c_parser_parameter_declaration): Likewise. (c_parser_binary_expression): Likewise. * c-typeck.c (c_expr_sizeof_expr): Likewise. (parser_build_binary_op): Likewise. (build_unary_op): Likewise. (error_init): Likewise. (pedwarn_init): Likewise. (warning_init): Likewise. (convert_for_assignment): Likewise. gcc/cp/ChangeLog: PR other/84889 * call.c (build_user_type_conversion_1): Add auto_diagnostic_group instance(s). (print_error_for_call_failure): Likewise. (build_op_call_1): Likewise. (build_conditional_expr_1): Likewise. (build_new_op_1): Likewise. (build_op_delete_call): Likewise. (convert_like_real): Likewise. (build_over_call): Likewise. (build_new_method_call_1): Likewise. (joust): Likewise. * class.c (check_tag): Likewise. (finish_struct_anon_r): Likewise. (one_inherited_ctor): Likewise. (finalize_literal_type_property): Likewise. (explain_non_literal_class): Likewise. (find_flexarrays): Likewise. (resolve_address_of_overloaded_function): Likewise. * constexpr.c (ensure_literal_type_for_constexpr_object): Likewise. (is_valid_constexpr_fn): Likewise. (cx_check_missing_mem_inits): Likewise. * cp-gimplify.c (cp_genericize_r): Likewise. * cvt.c (maybe_warn_nodiscard): Likewise. * decl.c (warn_extern_redeclared_static): Likewise. (check_redeclaration_exception_specification): Likewise. (check_no_redeclaration_friend_default_args): Likewise. (duplicate_decls): Likewise. (redeclaration_error_message): Likewise. (warn_misplaced_attr_for_class_type): Likewise. * decl2.c (finish_static_data_member_decl): Likewise. (no_linkage_error): Likewise. (cp_warn_deprecated_use): Likewise. * error.c (qualified_name_lookup_error): Likewise. * friend.c (make_friend_class): Likewise. (do_friend): Likewise. * init.c (perform_member_init): Likewise. (build_new_1): Likewise. (build_vec_delete_1): Likewise. (build_delete): Likewise. * lex.c (unqualified_name_lookup_error): Likewise. * name-lookup.c (check_extern_c_conflict): Likewise. (inform_shadowed): New function. (check_local_shadow): Add auto_diagnostic_group instances, replacing goto "inform_shadowed" label with call to subroutine. (set_local_extern_decl_linkage): Add auto_diagnostic_group instance(s). * parser.c (cp_parser_diagnose_invalid_type_name): Likewise. (cp_parser_namespace_name): Likewise. * pt.c (check_specialization_namespace): Likewise. (check_template_variable): Likewise. (warn_spec_missing_attributes): Likewise. (check_explicit_specialization): Likewise. (process_partial_specialization): Likewise. (lookup_template_class_1): Likewise. (finish_template_variable): Likewise. (do_auto_deduction): Likewise. * search.c (check_final_overrider): Likewise. (look_for_overrides_r): Likewise. * tree.c (maybe_warn_parm_abi): Likewise. * typeck.c (cxx_sizeof_expr): Likewise. (cp_build_function_call_vec): Likewise. (cp_build_binary_op): Likewise. (convert_for_assignment): Likewise. (maybe_warn_about_returning_address_of_local): Likewise. * typeck2.c (abstract_virtuals_error_sfinae): Likewise. (check_narrowing): Likewise. gcc/ChangeLog: PR other/84889 * attribs.c (diag_attr_exclusions): Add auto_diagnostic_group insta= nce. (decl_attributes): Likewise. * calls.c (maybe_warn_nonstring_arg): Add auto_diagnostic_group instance. * cgraphunit.c (maybe_diag_incompatible_alias): Likewise. * diagnostic-core.h (class auto_diagnostic_group): New class. * diagnostic.c (diagnostic_initialize): Initialize the new fields. (diagnostic_report_diagnostic): Handle the first diagnostics within a group. (emit_diagnostic): Add auto_diagnostic_group instance. (inform): Likewise. (inform_n): Likewise. (warning): Likewise. (warning_at): Likewise. (warning_n): Likewise. (pedwarn): Likewise. (permerror): Likewise. (error): Likewise. (error_n): Likewise. (error_at): Likewise. (sorry): Likewise. (fatal_error): Likewise. (internal_error): Likewise. (internal_error_no_backtrace): Likewise. (auto_diagnostic_group::auto_diagnostic_group): New ctor. (auto_diagnostic_group::~auto_diagnostic_group): New dtor. * diagnostic.h (struct diagnostic_context): Add fields "diagnostic_group_nesting_depth", "diagnostic_group_emission_count", "begin_group_cb", "end_group_cb". * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Add auto_diagnostic_group instance(s). (find_explicit_erroneous_behavior): Likewise. * gimple-ssa-warn-alloca.c (pass_walloca::execute): Likewise. * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Likewise. * gimplify.c (warn_implicit_fallthrough_r): Likewise. (gimplify_va_arg_expr): Likewise. * hsa-gen.c (HSA_SORRY_ATV): Likewise. (HSA_SORRY_AT): Likewise. * ipa-devirt.c (compare_virtual_tables): Likewise. (warn_odr): Likewise. * multiple_target.c (expand_target_clones): Likewise. * opts-common.c (cmdline_handle_error): Likewise. * reginfo.c (globalize_reg): Likewise. * substring-locations.c (format_warning_n_va): Likewise. * tree-inline.c (expand_call_inline): Likewise. * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Likewise. * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations): Likewise. * tree-ssa-uninit.c (warn_uninit): Likewise. * tree.c (warn_deprecated_use): Likewise. gcc/testsuite/ChangeLog: PR other/84889 * gcc.dg/plugin/diagnostic-group-test-1.c: New test. * gcc.dg/plugin/diagnostic_group_plugin.c: New test. * gcc.dg/plugin/plugin.exp (plugin_test_list): Add the new tests. Added: trunk/gcc/testsuite/gcc.dg/plugin/diagnostic-group-test-1.c trunk/gcc/testsuite/gcc.dg/plugin/diagnostic_group_plugin.c Modified: trunk/gcc/ChangeLog trunk/gcc/attribs.c trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-attribs.c trunk/gcc/c-family/c-indentation.c trunk/gcc/c-family/c-opts.c trunk/gcc/c-family/c-warn.c trunk/gcc/c/ChangeLog trunk/gcc/c/c-decl.c trunk/gcc/c/c-parser.c trunk/gcc/c/c-typeck.c trunk/gcc/calls.c trunk/gcc/cgraphunit.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/class.c trunk/gcc/cp/constexpr.c trunk/gcc/cp/cp-gimplify.c trunk/gcc/cp/cvt.c trunk/gcc/cp/decl.c trunk/gcc/cp/decl2.c trunk/gcc/cp/error.c trunk/gcc/cp/friend.c trunk/gcc/cp/init.c trunk/gcc/cp/lex.c trunk/gcc/cp/name-lookup.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/search.c trunk/gcc/cp/tree.c trunk/gcc/cp/typeck.c trunk/gcc/cp/typeck2.c trunk/gcc/diagnostic-core.h trunk/gcc/diagnostic.c trunk/gcc/diagnostic.h trunk/gcc/gimple-ssa-isolate-paths.c trunk/gcc/gimple-ssa-warn-alloca.c trunk/gcc/gimple-ssa-warn-restrict.c trunk/gcc/gimplify.c trunk/gcc/hsa-gen.c trunk/gcc/ipa-devirt.c trunk/gcc/multiple_target.c trunk/gcc/opts-common.c trunk/gcc/reginfo.c trunk/gcc/substring-locations.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/plugin/plugin.exp trunk/gcc/tree-inline.c trunk/gcc/tree-ssa-ccp.c trunk/gcc/tree-ssa-loop-niter.c trunk/gcc/tree-ssa-uninit.c trunk/gcc/tree.c >>From gcc-bugs-return-613177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 21:23:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127534 invoked by alias); 20 Aug 2018 21:23:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127441 invoked by uid 48); 20 Aug 2018 21:23:46 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/84889] Ideas on revamping how we format diagnostics Date: Mon, 20 Aug 2018 21:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01466.txt.bz2 Content-length: 195 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84889 --- Comment #12 from David Malcolm --- Another commit related to this: r263564 (add labeling of source ranges) >>From gcc-bugs-return-613178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:06:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43998 invoked by alias); 20 Aug 2018 22:06:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43932 invoked by uid 48); 20 Aug 2018 22:06:14 -0000 From: "jsm28 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87023] It's always false, when c_fully_fold_internal deal with C_MAYBE_CONST_EXPR. Date: Mon, 20 Aug 2018 22:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01467.txt.bz2 Content-length: 1091 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87023 Joseph S. Myers changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Joseph S. Myers --- This is not a bug. The comment on c_fully_fold_internal explains its semantics, which only ever involve clearing *MAYBE_CONST_OPERANDS and *MAYBE_CONST_ITSELF (pointers to variables that may have been set to true i= n a caller and then are cleared, recursively, in any nested call that discovers= a reason for the expression not to be an integer constant expression). Please see also the comment on c_fully_fold where it says "(*MAYBE_CONST should typically be set to true by callers before calling this function.)". Please use the gcc-help mailing list in future to ask questions about code = and reserve Bugzilla for when you have an actual bug in GCC to report. >>From gcc-bugs-return-613179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:25:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106916 invoked by alias); 20 Aug 2018 22:25:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106831 invoked by uid 48); 20 Aug 2018 22:25:33 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/81761] assembler error on __func__ et al. on attribute target overloads Date: Mon, 20 Aug 2018 22:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: assemble-failure, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01468.txt.bz2 Content-length: 482 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81761 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com, | |nathan at acm dot org --- Comment #2 from Eric Gallager --- cc-ing c++ FE maintainers >>From gcc-bugs-return-613181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:27:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108756 invoked by alias); 20 Aug 2018 22:27:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108213 invoked by uid 48); 20 Aug 2018 22:27:14 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45963] inconsistent and poor array initialization diagnostic Date: Mon, 20 Aug 2018 22:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.4.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01470.txt.bz2 Content-length: 496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45963 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |dodji at gcc dot gnu.org --- Comment #2 from Eric Gallager --- cc-ing diagnostics maintainers >>From gcc-bugs-return-613180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:27:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108249 invoked by alias); 20 Aug 2018 22:27:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108176 invoked by uid 48); 20 Aug 2018 22:27:10 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Mon, 20 Aug 2018 22:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01469.txt.bz2 Content-length: 332 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #17 from Segher Boessenkool --- Please do the combine dumps with details enabled; these are pretty useless. (-fdump-rtl-combine-all) A C testcase would be very helpful, too (or some magic configure command to run on some cfarm machine). >>From gcc-bugs-return-613182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:32:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114083 invoked by alias); 20 Aug 2018 22:32:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114017 invoked by uid 48); 20 Aug 2018 22:32:29 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/70694] 50 experimental/filesystem/* failures on x86_64-apple-darwin10 Date: Mon, 20 Aug 2018 22:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01471.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70694 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #7 from Eric Gallager --- Removing from WAITING since the patch was reported to work >>From gcc-bugs-return-613183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:35:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118856 invoked by alias); 20 Aug 2018 22:35:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118784 invoked by uid 48); 20 Aug 2018 22:35:44 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54006] __atomic_always_lock_free inconsistent with __GCC_ATOMIC_INT_LOCK_FREE et al. on crisv32 and hppa Date: Mon, 20 Aug 2018 22:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01472.txt.bz2 Content-length: 549 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54006 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |UNCONFIRMED Last reconfirmed|2017-07-28 00:00:00 | Ever confirmed|1 |0 --- Comment #8 from Eric Gallager --- I guess I'll put it back in UNCONFIRMED instead of leaving it in WAITING... >>From gcc-bugs-return-613184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:40:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24007 invoked by alias); 20 Aug 2018 22:40:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23823 invoked by uid 48); 20 Aug 2018 22:40:29 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54006] __atomic_always_lock_free inconsistent with __GCC_ATOMIC_INT_LOCK_FREE et al. on crisv32 and hppa Date: Mon, 20 Aug 2018 22:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01473.txt.bz2 Content-length: 914 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54006 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dave.anglin at bell dot ne= t, | |law at redhat dot com, | |schwab@linux-m68k.org --- Comment #9 from Eric Gallager --- (In reply to Hans-Peter Nilsson from comment #0) > Created attachment 27820 [details] > Testcase suitable for gcc.dg/torture >=20 > See attached test-case, which fails for crisv32-axis-linux-gnu and > "crisv32-elf -munaligned-atomic-may-use-library" and likely for e.g. m68k > coldfire and definitely for hppa*-* (only library, no patterns). cc-ing maintainers for those targets >>From gcc-bugs-return-613185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 22:54:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45898 invoked by alias); 20 Aug 2018 22:54:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45852 invoked by uid 48); 20 Aug 2018 22:54:10 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87034] New: [9 Regression] missing -Wformat-overflow on a sprintf %s with a wide string Date: Mon, 20 Aug 2018 22:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01474.txt.bz2 Content-length: 1290 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87034 Bug ID: 87034 Summary: [9 Regression] missing -Wformat-overflow on a sprintf %s with a wide string Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC 8 diagnoses the buffer overflow in the test case below, albeit with a message that isn't entirely accurate. However, as a result of r263607 GCC = 9 no longer does. $ cat f.c && gcc -O2 -S -Wall f.c typedef __WCHAR_TYPE__ wchar_t; extern int sprintf (char*, const char*, ...); struct S { char a[2]; void (*pf)(void); }; void test (struct S *p) { const char *q =3D (char*)L"\x41424344\x45464748"; sprintf (p->a, "%s", q); } f.c: In function =E2=80=98test=E2=80=99: f.c:15:21: warning: =E2=80=98sprintf=E2=80=99 writing a terminating nul pas= t the end of the destination [-Wformat-overflow=3D] sprintf (p->a, "%s", q); ^ f.c:15:3: note: =E2=80=98sprintf=E2=80=99 output 3 bytes into a destination= of size 2 sprintf (p->a, "%s", q); ^~~~~~~~~~~~~~~~~~~~~~~ >>From gcc-bugs-return-613186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:04:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71884 invoked by alias); 20 Aug 2018 23:04:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71843 invoked by uid 55); 20 Aug 2018 23:04:27 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87034] [9 Regression] missing -Wformat-overflow on a sprintf %s with a wide string Date: Mon, 20 Aug 2018 23:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01475.txt.bz2 Content-length: 550 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87034 --- Comment #1 from Martin Sebor --- Author: msebor Date: Mon Aug 20 23:03:55 2018 New Revision: 263676 URL: https://gcc.gnu.org/viewcvs?rev=3D263676&root=3Dgcc&view=3Drev Log: PR tree-optimization/87034 - missing -Wformat-overflow on a sprintf %s with= a wide string gcc/testsuite/ChangeLog: * gcc.dg/builtin-sprintf-warn-20.c: New test. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-20.c Modified: trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:06:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75446 invoked by alias); 20 Aug 2018 23:06:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 75325 invoked by uid 48); 20 Aug 2018 23:06:17 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54006] __atomic_always_lock_free inconsistent with __GCC_ATOMIC_INT_LOCK_FREE et al. on crisv32 and hppa Date: Mon, 20 Aug 2018 23:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01477.txt.bz2 Content-length: 622 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54006 John David Anglin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |danglin at gcc dot gnu.org --- Comment #10 from John David Anglin --- The test passes on hppa. The hppa-linux target has a kernel helper to implement compare and swap. The hpux target isn't "lock free". There is a debate as to whether the linux implementation Is "lock free" or not. See PR83638. >>From gcc-bugs-return-613187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:06:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74654 invoked by alias); 20 Aug 2018 23:06:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74619 invoked by uid 48); 20 Aug 2018 23:06:06 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Mon, 20 Aug 2018 23:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01476.txt.bz2 Content-length: 266 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 --- Comment #2 from Michael_S --- After playing with the 2nd case on godbolt I found that it's not target specific. The regression occurred at all targets between gcc6 and gcc7. >>From gcc-bugs-return-613189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:34:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54633 invoked by alias); 20 Aug 2018 23:34:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54585 invoked by uid 48); 20 Aug 2018 23:34:45 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/67958] The tests changed by r223498 now FAILs on darwin Date: Mon, 20 Aug 2018 23:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01478.txt.bz2 Content-length: 483 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67958 --- Comment #5 from Eric Gallager --- (In reply to Dominique d'Humieres from comment #4) > > > Created attachment 39731 [details] > > > Patch fixing the failures with the patches for pr71767 > > > > please send this patch to gcc-patches for review >=20 > This patch has never been intended to be submitted for review: it does not > take into account comment 2. can't that part be done separately? >>From gcc-bugs-return-613190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:38:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57290 invoked by alias); 20 Aug 2018 23:38:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57222 invoked by uid 48); 20 Aug 2018 23:38:01 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/60723] Line directives with incorrect system header flag Date: Mon, 20 Aug 2018 23:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dodji at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01479.txt.bz2 Content-length: 1557 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60723 --- Comment #30 from Eric Gallager --- (In reply to Steve Ellcey from comment #29) > I posted this question on gcc@gcc.gnu.org and got not response so I thoug= ht > I would ask here on the bug report. >=20 > I am trying to understand the status of this bug and the patch > that fixes it. It looks like a patch was submitted and checked > in for 5.0 to fix the problem reported and I see the new=20 > behavior caused by the patch in GCC 5.X compilers. This behavior > caused a number of issues with configures and scripts that examined > preprocessed output as is mentioned in this bug report. > There was a later bug, 64864, complaining about the behavior and > that was closed as invalid. >=20 > But when I look at GCC 6.X or ToT (7.X) compilers I do not see the same > behavior as 5.X. Was this patch reverted or was a new patch submitted > that undid some of this patches behavior? I couldn't find any revert or > new patch to replace the original one so I am not sure when or why > the code changed back after the 5.X releases. >=20 > Here is a test case that I am preprocessing with g++ -E: >=20 > #include > class foo { > void operator=3D ( bool bit); > operator bool() const; > }; >=20 > GCC 5.4 breaks up the operator delcarations with line markers and GCC 6.2 > does not. This is the right link for where it is in the archives, right?=20 https://gcc.gnu.org/ml/gcc/2016-11/msg00116.html Probably got lost in the change-of-the-month rollover... >>From gcc-bugs-return-613191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:44:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78477 invoked by alias); 20 Aug 2018 23:44:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78359 invoked by uid 48); 20 Aug 2018 23:44:05 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/62234] warnings/errors from LTO cannot be tested Date: Mon, 20 Aug 2018 23:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01480.txt.bz2 Content-length: 727 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62234 --- Comment #10 from Eric Gallager --- (In reply to Martin Sebor from comment #9) > (In reply to David Malcolm from comment #6) > > I added support for this in r256801: > > dg-lto-warning and dg-lto-message > > https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00257.html >=20 > Awesome! It might be worth an email to the dev list to let people aware = of > the limitation know about this enhancement -- I know of least two bugs th= at > I should add tests for now that this works. >=20 > It might also be helpful to update the README and mention this and the ot= her > dg-lto- directives. Let me post one. Did you do this? If so, link? >>From gcc-bugs-return-613192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 20 23:47:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86145 invoked by alias); 20 Aug 2018 23:47:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86066 invoked by uid 55); 20 Aug 2018 23:47:10 -0000 From: "meissner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87033] The compiler does not generate the LWAX instruction Date: Mon, 20 Aug 2018 23:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: meissner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01481.txt.bz2 Content-length: 840 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87033 --- Comment #2 from Michael Meissner --- Author: meissner Date: Mon Aug 20 23:46:37 2018 New Revision: 263678 URL: https://gcc.gnu.org/viewcvs?rev=3D263678&root=3Dgcc&view=3Drev Log: [gcc] 2018-08-20 Michael Meissner PR target/87033 * config/rs6000/rs6000.md (extendsi2): Change constraints from 'Y' to 'YZ' to enable the LWAX instruction to be generated for indexed loads. [gcc/testsuite] 2018-08-20 Michael Meissner PR target/87033 * gcc.target/powerpc/pr87033.c: New test. Added: trunk/gcc/testsuite/gcc.target/powerpc/pr87033.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/rs6000/rs6000.md trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 00:07:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102180 invoked by alias); 21 Aug 2018 00:07:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101484 invoked by uid 48); 21 Aug 2018 00:07:04 -0000 From: "He.Hongjun at zte dot com.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87023] It's always false, when c_fully_fold_internal deal with C_MAYBE_CONST_EXPR. Date: Tue, 21 Aug 2018 00:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: He.Hongjun at zte dot com.cn X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01482.txt.bz2 Content-length: 856 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87023 --- Comment #2 from hhj --- (In reply to Joseph S. Myers from comment #1) > This is not a bug. The comment on c_fully_fold_internal explains its > semantics, which only ever involve clearing *MAYBE_CONST_OPERANDS and > *MAYBE_CONST_ITSELF (pointers to variables that may have been set to true= in > a caller and then are cleared, recursively, in any nested call that > discovers a reason for the expression not to be an integer constant > expression). Please see also the comment on c_fully_fold where it says > "(*MAYBE_CONST should typically be set to true by callers before calling > this function.)". >=20 > Please use the gcc-help mailing list in future to ask questions about code > and reserve Bugzilla for when you have an actual bug in GCC to report. thanks >>From gcc-bugs-return-613194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 02:46:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111346 invoked by alias); 21 Aug 2018 02:46:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111306 invoked by uid 48); 21 Aug 2018 02:46:44 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug translation/80191] diagnostic placeholder "new initializer" must be marked for translation Date: Tue, 21 Aug 2018 02:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: translation X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: minor X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01483.txt.bz2 Content-length: 741 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80191 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-21 Ever confirmed|0 |1 --- Comment #8 from Eric Gallager --- (In reply to Eric Gallager from comment #7) > Changing component to translation, but leaving UNCONFIRMED since there se= ems > to be disagreement Putting in WAITING in the hopes that someone else will decide one way or another whether this bug is valid or not. >>From gcc-bugs-return-613195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 05:58:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81503 invoked by alias); 21 Aug 2018 05:58:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81436 invoked by uid 48); 21 Aug 2018 05:58:46 -0000 From: "sw at weilnetz dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86832] [8/9 Regression] GCC v8.2.0 tries to use native TLS with -fstack-protector-strong on Windows (mingw-w64) Date: Tue, 21 Aug 2018 05:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sw at weilnetz dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01484.txt.bz2 Content-length: 521 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86832 Stefan Weil changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sw at weilnetz dot de --- Comment #4 from Stefan Weil --- Related bug reports for other software: https://sourceforge.net/p/mingw-w64/bugs/755/ http://lists.nongnu.org/archive/html/qemu-devel/2018-08/msg04140.html >>From gcc-bugs-return-613196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 06:23:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38353 invoked by alias); 21 Aug 2018 06:23:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37745 invoked by uid 48); 21 Aug 2018 06:23:16 -0000 From: "blitzrakete at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] New: Can't shadow global const int with unnamed enum in class Date: Tue, 21 Aug 2018 06:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blitzrakete at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01485.txt.bz2 Content-length: 695 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 Bug ID: 87035 Summary: Can't shadow global const int with unnamed enum in class Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: blitzrakete at gmail dot com Target Milestone: --- const int N =3D 5; struct X { int Array[N]; // int[5] enum { N }; // fails, redeclaration }; This is well-formed, as the enum value N is in another scope and so shadows ::N. Removing the array declaration makes the code also compile. >>From gcc-bugs-return-613197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 06:34:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86787 invoked by alias); 21 Aug 2018 06:34:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86752 invoked by uid 48); 21 Aug 2018 06:34:01 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] Can't shadow global const int with unnamed enum in class Date: Tue, 21 Aug 2018 06:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01486.txt.bz2 Content-length: 981 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski --- Actually no this is invalid code at least according to the standard. Since= N definition has to be the same when used and at the end of the scope. In th= is case, you have a different one. The error message is very clear about that too: t8.cc:5:10: error: declaration of =E2=80=98N=E2=80=99 [-fpermissive] enum { N }; // fails, redeclaration ^ t8.cc:1:11: error: changes meaning of =E2=80=98N=E2=80=99 from =E2=80=98con= st int N=E2=80=99 [-fpermissive] const int N =3D 5; ^ Maybe just the use of N is not in the error message. >>From gcc-bugs-return-613198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 06:58:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74591 invoked by alias); 21 Aug 2018 06:58:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67645 invoked by uid 48); 21 Aug 2018 06:58:23 -0000 From: "blitzrakete at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] Can't shadow global const int with unnamed enum in class Date: Tue, 21 Aug 2018 06:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blitzrakete at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01487.txt.bz2 Content-length: 272 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 --- Comment #2 from Nicolas Lesser --- Huh, interesting. TIL. Where's that rule in the standard? Because I can't f= ind it in [class.mem]. Is it somewhere else or did I just overlook it? >>From gcc-bugs-return-613199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:06:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83832 invoked by alias); 21 Aug 2018 07:06:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83803 invoked by uid 48); 21 Aug 2018 07:06:10 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] Can't shadow global const int with unnamed enum in class Date: Tue, 21 Aug 2018 07:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01488.txt.bz2 Content-length: 616 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 --- Comment #3 from Andrew Pinski --- (In reply to Nicolas Lesser from comment #2) > Huh, interesting. TIL. Where's that rule in the standard? Because I can't > find it in [class.mem]. Is it somewhere else or did I just overlook it? C++98 paragraph numbers: See 3.3.6/1 [...] 2) A name N used in a class S shall refer to the same declaration in its context and when reevaluated in the completed scope of S. No diagnostic is required for a violation of this rule. I think that is the same as [basic.scope.class]. >>From gcc-bugs-return-613200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:07:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85293 invoked by alias); 21 Aug 2018 07:07:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85250 invoked by uid 48); 21 Aug 2018 07:07:50 -0000 From: "blitzrakete at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] Can't shadow global const int with unnamed enum in class Date: Tue, 21 Aug 2018 07:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blitzrakete at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01489.txt.bz2 Content-length: 141 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 --- Comment #4 from Nicolas Lesser --- Nice, thank you! >>From gcc-bugs-return-613201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:08:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86021 invoked by alias); 21 Aug 2018 07:08:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85972 invoked by uid 48); 21 Aug 2018 07:08:00 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] Can't shadow global const int with unnamed enum in class Date: Tue, 21 Aug 2018 07:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01490.txt.bz2 Content-length: 335 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 --- Comment #5 from Andrew Pinski --- [basic.scope.class] p2: "A name N used in a class S shall refer to the same declaration in its cont= ext and when re-evaluated in the completed scope of S. No diagnostic is required for a violation of this rule." >>From gcc-bugs-return-613202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:25:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115610 invoked by alias); 21 Aug 2018 07:25:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115521 invoked by uid 48); 21 Aug 2018 07:24:55 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Tue, 21 Aug 2018 07:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01491.txt.bz2 Content-length: 474 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |segher at gcc dot g= nu.org --- Comment #18 from Segher Boessenkool --- I have a patch. >>From gcc-bugs-return-613203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:26:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117303 invoked by alias); 21 Aug 2018 07:26:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117252 invoked by uid 48); 21 Aug 2018 07:26:44 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86987] ICE in simplify_binary_operation_1, at simplify-rtx.c:3515 on ppc64le Date: Tue, 21 Aug 2018 07:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01492.txt.bz2 Content-length: 385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86987 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |segher at gcc dot g= nu.org >>From gcc-bugs-return-613204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:34:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122396 invoked by alias); 21 Aug 2018 07:34:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122353 invoked by uid 48); 21 Aug 2018 07:34:02 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86832] [8/9 Regression] GCC v8.2.0 tries to use native TLS with -fstack-protector-strong on Windows (mingw-w64) Date: Tue, 21 Aug 2018 07:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01493.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86832 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 >>From gcc-bugs-return-613205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:35:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123697 invoked by alias); 21 Aug 2018 07:35:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123613 invoked by uid 48); 21 Aug 2018 07:35:20 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/86834] [9 regression] several tests fail with ICE starting with r263245 Date: Tue, 21 Aug 2018 07:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01494.txt.bz2 Content-length: 572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86834 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-21 Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #3 from Richard Biener --- Has this been fixed? If so please close. >>From gcc-bugs-return-613206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:35:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124720 invoked by alias); 21 Aug 2018 07:35:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124642 invoked by uid 48); 21 Aug 2018 07:35:52 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86835] [8 Regression] Bogus "is used uninitialized" warning with -ffast-math Date: Tue, 21 Aug 2018 07:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01495.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86835 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 >>From gcc-bugs-return-613207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:36:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 472 invoked by alias); 21 Aug 2018 07:36:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129442 invoked by uid 48); 21 Aug 2018 07:36:41 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86836] internal compiler error on structured bindings with shadow parameter on templated function Date: Tue, 21 Aug 2018 07:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01496.txt.bz2 Content-length: 404 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86836 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.0 --- Comment #9 from Richard Biener --- Fixed on trunk(?). Is this a regression? >>From gcc-bugs-return-613208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:40:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13136 invoked by alias); 21 Aug 2018 07:40:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13098 invoked by uid 48); 21 Aug 2018 07:40:11 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86840] __attribute__((optimize("exceptions"))) is silently ignored Date: Tue, 21 Aug 2018 07:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01497.txt.bz2 Content-length: 598 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86840 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #2 from Richard Biener --- Hmm, we have DECL_FUNCTION_PERSONALITY which is used for keying. I guess "late" processing of -fexceptions doesn't cause that to be "set". So likely the optimize attributes are not processed at the time the personality is set. >>From gcc-bugs-return-613209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:41:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21095 invoked by alias); 21 Aug 2018 07:41:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20982 invoked by uid 48); 21 Aug 2018 07:41:14 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86844] [8/9 regression] wrong code caused by store merging pass Date: Tue, 21 Aug 2018 07:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01498.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86844 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 >>From gcc-bugs-return-613210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:44:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24498 invoked by alias); 21 Aug 2018 07:44:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24439 invoked by uid 48); 21 Aug 2018 07:44:36 -0000 From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87036] New: -O1/-O2 affects floating point precision on at least i686 and ppc64el Date: Tue, 21 Aug 2018 07:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 6.4.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01499.txt.bz2 Content-length: 2013 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87036 Bug ID: 87036 Summary: -O1/-O2 affects floating point precision on at least i686 and ppc64el Product: gcc Version: 6.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- [forwarded from http://bugs.debian.org/906753] no difference in the results on x86_64-linux-gnu, the bug submitter claims = that clang 6.0 is working as expected. Seen on at least i686 and ppc64el. Same behaviour down to GCC 5 on both archs. on ppc64el: $ g++ -O0 tst.cc && ./a.out $ g++ -O2 tst.cc && ./a.out different mass sq values: 2.42 2.42 difference is : 3.55271e-15 on i686: $ g++ -O0 tst.cc && ./a.out $ g++ -O2 tst.cc && ./a.out different mass sq values: 2.42 2.42 difference is : 1.77636e-15 $cat tst.cc #include #include // for swap #include namespace HepMC { class FourVector { public: double m_x, m_y, m_z, m_t; FourVector( double xin, double yin, double zin, double tin=3D0) : m_x(xin= ), m_y(yin), m_z(zin), m_t(tin) {} inline double m2() const { return m_t*m_t - (m_x*m_x + m_y*m_y + m_z*m_z); } inline double m() const { double mm =3D m2(); return mm < 0.0 ? -std::sqrt(-mm) : std::sqrt(mm); } }; } // HepMC int main() { double eps =3D 1.e-15; // allowed differnce between doubles // FourVector HepMC::FourVector vector(1.1,2.2,3.3,4.4); HepMC::FourVector v4 (1.1,2.2,3.3,4.4); //vector =3D v4; double masssq1 =3D v4.m2(); double mass1 =3D v4.m(); double masssq2 =3D vector.m2(); double mass2 =3D vector.m(); if( fabs( masssq1 - masssq2 ) > eps ) { std::cout << "different mass sq values: " << masssq1 << " " << masssq2= << std::endl; std::cout << "difference is : " << ( masssq1 - masssq2 ) << std::endl; } return 0; } >>From gcc-bugs-return-613211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:46:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26294 invoked by alias); 21 Aug 2018 07:46:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26183 invoked by uid 48); 21 Aug 2018 07:46:15 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/86845] libgccjit.so.0.0.1 build error with in-tree isl: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC Date: Tue, 21 Aug 2018 07:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01500.txt.bz2 Content-length: 1375 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86845 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |build CC| |dmalcolm at gcc dot gnu.org --- Comment #1 from Richard Biener --- Well, looks like all the static libs of the in-tree prerequesites have to be compiled with -fPIC. We have host_modules=3D { module=3D mpfr; lib_path=3Dsrc/.libs; bootstrap=3Dtrue; extra_configure_flags=3D'--disable-shared @extra_mpfr_configure_flags@'; extra_make_flags=3D'AM_CFLAGS=3D"-DNO_ASM"'; no_install=3D true; }; host_modules=3D { module=3D mpc; lib_path=3Dsrc/.libs; bootstrap=3Dtrue; extra_configure_flags=3D'--disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode'; no_install=3D true; }; host_modules=3D { module=3D isl; lib_path=3D.libs; bootstrap=3Dtrue; extra_configure_flags=3D'--disable-shared @extra_isl_gmp_configure_flags@'; extra_make_flags=3D'V=3D1'; no_install=3D true; }; David? This is really only required for libjit ... :/ >>From gcc-bugs-return-613212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:53:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46844 invoked by alias); 21 Aug 2018 07:53:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46754 invoked by uid 48); 21 Aug 2018 07:53:14 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87036] -O1/-O2 affects floating point precision on at least i686 and ppc64el Date: Tue, 21 Aug 2018 07:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01501.txt.bz2 Content-length: 204 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87036 --- Comment #1 from Andrew Pinski --- For powerpc at least this is due to fma. Use -ffp-contract=3Doff to turn it= off. >>From gcc-bugs-return-613213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:54:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71945 invoked by alias); 21 Aug 2018 07:54:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64758 invoked by uid 48); 21 Aug 2018 07:54:17 -0000 From: "thopre01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/86834] [9 regression] several tests fail with ICE starting with r263245 Date: Tue, 21 Aug 2018 07:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: thopre01 at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01502.txt.bz2 Content-length: 618 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86834 Thomas Preud'homme changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #4 from Thomas Preud'homme --- As pointed by Jakub, commit was reverted in r263252. New iteration of the p= atch (currently still in testing) has been checked it doesn't have this regressi= on. Best regards, Thomas >>From gcc-bugs-return-613214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:55:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92778 invoked by alias); 21 Aug 2018 07:55:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92715 invoked by uid 48); 21 Aug 2018 07:55:40 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87036] -O1/-O2 affects floating point precision on at least i686 and ppc64el Date: Tue, 21 Aug 2018 07:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01503.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87036 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski --- For x86, this is due to using 80bit fp. See PR 323 for that one. >>From gcc-bugs-return-613215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:55:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95500 invoked by alias); 21 Aug 2018 07:55:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93461 invoked by uid 48); 21 Aug 2018 07:55:51 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87037] New: vector :: erase return value should be marked "must use" Date: Tue, 21 Aug 2018 07:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01504.txt.bz2 Content-length: 887 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87037 Bug ID: 87037 Summary: vector :: erase return value should be marked "must use" Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Given the following C++ source code # include using namespace std; void f( vector < int > & vec) { for (auto i =3D vec.begin(); i !=3D vec.end(); ++i) { vec.erase( i); } } then there is an obvious bug that the return value from the erase isn't used for loop control. gcc seems strangely silent on the issue: $ ~/gcc/results.263644/bin/gcc -c -g -O2 -Wall -Wextra aug21a.cc $ >>From gcc-bugs-return-613216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 07:56:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96346 invoked by alias); 21 Aug 2018 07:56:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96283 invoked by uid 55); 21 Aug 2018 07:56:03 -0000 From: "doko at ubuntu dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87036] -O1/-O2 affects floating point precision on at least i686 and ppc64el Date: Tue, 21 Aug 2018 07:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at ubuntu dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01505.txt.bz2 Content-length: 420 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87036 --- Comment #3 from Matthias Klose --- On 21.08.2018 09:53, pinskia at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87036 >=20 > --- Comment #1 from Andrew Pinski --- > For powerpc at least this is due to fma. Use -ffp-contract=3Doff to turn = it off. yes, -ffp-contract=3Doff helps. >>From gcc-bugs-return-613217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 08:09:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47301 invoked by alias); 21 Aug 2018 08:09:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47122 invoked by uid 48); 21 Aug 2018 08:09:15 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87037] vector :: erase return value should be marked "must use" Date: Tue, 21 Aug 2018 08:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01506.txt.bz2 Content-length: 743 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87037 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely --- There's nothing strange about that at all. There are plenty of uses for era= se where it's totally fine to ignore the return value. auto iter =3D std::find(v.begin(), v.end(), val); if (iter !=3D v.end()) { do_something(*iter); v.erase(iter); } How do you propose to mark it so it only complains when you have a bug? >>From gcc-bugs-return-613218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 08:26:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73933 invoked by alias); 21 Aug 2018 08:26:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73294 invoked by uid 48); 21 Aug 2018 08:25:22 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87035] Add "note: used here" to permerror about redeclaration changing the meaning of a name at class scope Date: Tue, 21 Aug 2018 08:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on resolution short_desc everconfirmed bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01507.txt.bz2 Content-length: 1753 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87035 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|RESOLVED |NEW Last reconfirmed| |2018-08-21 Resolution|INVALID |--- Summary|Can't shadow global const |Add "note: used here" to |int with unnamed enum in |permerror about |class |redeclaration changing the | |meaning of a name at class | |scope Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #6 from Jonathan Wakely --- Yup, this is ill-formed; no diagnostic required.(In reply to Andrew Pinski = from comment #1) > Actually no this is invalid code at least according to the standard. Sin= ce Yup, ill-formed; no diagnostic required. GCC has been getting smarter about diagnosing these cases. > Maybe just the use of N is not in the error message. Yes, maybe a note pointing to the use of the name would be useful. t8.cc:5:10: error: declaration of =E2=80=98N=E2=80=99 [-fpermissive] enum { N }; // fails, redeclaration ^ t8.cc:1:11: error: changes meaning of =E2=80=98N=E2=80=99 from =E2=80=98con= st int N=E2=80=99 [-fpermissive] const int N =3D 5; ^ t8.cc:4:13: note: used here int Array[N]; // int[5] ^ Re-opening as a diagnostic bug. >>From gcc-bugs-return-613219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 08:58:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33352 invoked by alias); 21 Aug 2018 08:58:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33146 invoked by uid 55); 21 Aug 2018 08:57:53 -0000 From: "edlinger at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86121] [9 Regression] missing -Wstringop-overflow on strcpy followed by strcat Date: Tue, 21 Aug 2018 08:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: edlinger at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01508.txt.bz2 Content-length: 754 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86121 --- Comment #4 from Bernd Edlinger --- Author: edlinger Date: Tue Aug 21 08:56:11 2018 New Revision: 263693 URL: https://gcc.gnu.org/viewcvs?rev=3D263693&root=3Dgcc&view=3Drev Log: 2018-08-21 Bernd Edlinger PR middle-end/86121 * tree-ssa-strlen.c (adjust_last_stmt): Avoid folding away undefined behaviour. testsuite: 2018-08-21 Bernd Edlinger PR middle-end/86121 * gcc.dg/Wstringop-overflow-6.c: Remove xfail. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/Wstringop-overflow-6.c trunk/gcc/tree-ssa-strlen.c >>From gcc-bugs-return-613220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 09:22:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58083 invoked by alias); 21 Aug 2018 09:22:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46996 invoked by uid 48); 21 Aug 2018 09:22:28 -0000 From: "steinar+gcc at gunderson dot no" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] New: diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Tue, 21 Aug 2018 09:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: steinar+gcc at gunderson dot no X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01509.txt.bz2 Content-length: 1440 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 Bug ID: 87038 Summary: diagnostics: Please add warning for jumping over initializers with switch/case in C mode Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: steinar+gcc at gunderson dot no Target Milestone: --- The other day, I had to debug (production!) code that essentially did this: void func(int x) { switch (x) { case 1: { int foo =3D 3; case 0: printf("foo is %d\n", foo); } } } If func is called with 0, =E2=80=9Cfoo=E2=80=9D is uninitialized, even thou= gh it doesn't look like it. There's a similar construction with goto: void func2(int x) { if (x =3D=3D 0) goto lbl; int foo =3D 3; lbl: printf("foo is %d\n", foo); } In C++ mode, both constructs are rightfully rejected as an error. However, = when compiling as C, there's not even a warning; sometimes, control flow analysis may detect that foo is used uninitialized, but not always. Would it be possible to have a warning in C mode that mirrors the C++ error? Ie. =E2=80=9Cjump to case label crosses initialization of 'int foo'=E2=80= =9D. >>From gcc-bugs-return-613221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 09:38:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65116 invoked by alias); 21 Aug 2018 09:38:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64306 invoked by uid 48); 21 Aug 2018 09:37:58 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Tue, 21 Aug 2018 09:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01510.txt.bz2 Content-length: 1128 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Jonathan Wakely --- Confirmed. Clang warns consistently, even at -O0: 87038.c:5:30: warning: variable 'foo' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case 0: ^ 87038.c:6:55: note: uninitialized use occurs here printf("foo is %d\n", foo); ^~~ 87038.c:4:25: note: variable 'foo' is declared here int foo =3D 3; ^ 1 warning generated. >>From gcc-bugs-return-613222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 09:39:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90941 invoked by alias); 21 Aug 2018 09:39:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87047 invoked by uid 48); 21 Aug 2018 09:39:03 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Tue, 21 Aug 2018 09:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01511.txt.bz2 Content-length: 684 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 --- Comment #2 from Jonathan Wakely --- And for the goto case Clang says: 87038.c:2:13: warning: variable 'foo' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (x =3D=3D 0) goto lbl; ^~~~~~ 87038.c:5:31: note: uninitialized use occurs here printf("foo is %d\n", foo); ^~~ 87038.c:2:9: note: remove the 'if' if its condition is always false if (x =3D=3D 0) goto lbl; ^~~~~~~~~~~~~~~~~~~~ 87038.c:3:9: note: variable 'foo' is declared here int foo =3D 3; ^ 1 warning generated. >>From gcc-bugs-return-613223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:25:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113701 invoked by alias); 21 Aug 2018 10:25:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113555 invoked by uid 48); 21 Aug 2018 10:24:59 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86847] [9 Regression] Switch code size growth Date: Tue, 21 Aug 2018 10:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01512.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86847 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:27:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117062 invoked by alias); 21 Aug 2018 10:27:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117009 invoked by uid 48); 21 Aug 2018 10:27:16 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86850] ubsan: runtime error: member call on null pointer Date: Tue, 21 Aug 2018 10:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01513.txt.bz2 Content-length: 684 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86850 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-21 CC| |rguenth at gcc dot gnu.org, | |rsandifo at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Can you post a backtrace? Probably vectorizer code. >>From gcc-bugs-return-613225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:29:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123955 invoked by alias); 21 Aug 2018 10:29:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123888 invoked by uid 48); 21 Aug 2018 10:29:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86853] [7/8 Regression] sprintf optimization for wide strings doesn't account for conversion failure Date: Tue, 21 Aug 2018 10:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cf_known_to_work target_milestone short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01514.txt.bz2 Content-length: 855 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86853 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Known to work| |9.0 Target Milestone|--- |7.4 Summary|sprintf optimization for |[7/8 Regression] sprintf |wide strings doesn't |optimization for wide |account for conversion |strings doesn't account for |failure |conversion failure Known to fail|9.0 | --- Comment #3 from Richard Biener --- I assume trunk is fixed. This is a regression. >>From gcc-bugs-return-613226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:36:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37594 invoked by alias); 21 Aug 2018 10:36:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37541 invoked by uid 48); 21 Aug 2018 10:36:31 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86860] Reject valid overloads of subclass ostream operator<< Date: Tue, 21 Aug 2018 10:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01515.txt.bz2 Content-length: 134 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86860 --- Comment #3 from Richard Biener --- So INVALID? >>From gcc-bugs-return-613229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:37:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40293 invoked by alias); 21 Aug 2018 10:37:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40222 invoked by uid 48); 21 Aug 2018 10:37:51 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87039] [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp Date: Tue, 21 Aug 2018 10:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01518.txt.bz2 Content-length: 630 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87039 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 CC| |aoliva at gcc dot gnu.org, | |jakub at gcc dot gnu.org, | |mark at gcc dot gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-613228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:37:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39528 invoked by alias); 21 Aug 2018 10:37:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39462 invoked by uid 48); 21 Aug 2018 10:37:37 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86864] [9 Regression] ICE in commit_one_edge_insertion, at cfgrtl.c:2025 since r261795 Date: Tue, 21 Aug 2018 10:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01517.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86864 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|ASSIGNED |NEW Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org >>From gcc-bugs-return-613227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:37:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38812 invoked by alias); 21 Aug 2018 10:37:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38782 invoked by uid 48); 21 Aug 2018 10:37:26 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87039] New: [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp Date: Tue, 21 Aug 2018 10:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01516.txt.bz2 Content-length: 2383 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87039 Bug ID: 87039 Summary: [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: wrong-debug Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Starting from r257510, GCC emits debug info about which elfutils is not hap= py about: $ cat filter.ii template void e(a, d, b); template void g(double[][f]) { for (int c; c;) ; } template void i(int, int, int, int, int, int, int, int, double[], double[], double *= [], int) { #pragma omp parallel { int j; double k[1][h]; e(j, h, k); g(k); } } double *l; int m; double n[1], o[1]; void p() { i(0, 0, 1, 0, 0, 1, 0, 0, n, o, &l, m); } $ g++ filter.ii -c -g -O2 -fopenmp && /home/marxin/Programming/elfutils/tests/varlocs -e filter.o module 'filter.o' [b] CU 'filter.ii'@0 [229] inlined function 'i'@20 [24e] parameter '' [254] parameter '' [25a] parameter '' [260] parameter '' [266] parameter '' [26c] parameter '' [272] parameter '' [278] parameter '' [27e] parameter '' [20,30) {addr(0x38), stack_value} [28e] parameter '' [20,30) {addr(0x30), stack_value} [29e] parameter '' [20,30) {addr(0x48), stack_value} [2ae] parameter '' [20,2f) {addr(0x40)} [18f] function '_Z1iIcLi1ELi0EEviiiiiiiiPdS0_PS0_i._omp_fn.0'@0 frame_base: XXX zero address [1a6] parameter '' [0,b) {reg5} [b,1a) {GNU_entry_value(1) {reg5}, stack_value} [13d] inlined function 'g<1>'@15 [162] parameter '' [15,1a) {/home/marxin/Programming/elfutils/tests/varlocs: DW_OP_fbreg used without a frame base The test-case is isolated from Inkscape program. >>From gcc-bugs-return-613230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:39:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41777 invoked by alias); 21 Aug 2018 10:39:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41689 invoked by uid 48); 21 Aug 2018 10:39:40 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87040] New: ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Tue, 21 Aug 2018 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01519.txt.bz2 Content-length: 2751 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87040 Bug ID: 87040 Summary: ICE in extract_constrain_insn_cached, at recog.c:2218 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: segher at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: ppc64le-linux-gnu Following ICEs: $ ./xgcc -B. /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030605-1= .c -fif-conversion2 -Og /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030605-1= .c: In function =E2=80=98set_bh_page=E2=80=99: /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030605-1= .c:12:1: error: insn does not satisfy its constraints: 12 | } | ^ (insn 25 0 0 (set (reg:DI 121) (const_int 4095 [0xfff])) 441 {*movdi_internal64} (nil)) during RTL pass: ce3 /home/marxin/Programming/gcc/gcc/testsuite/gcc.c-torture/compile/20030605-1= .c:12:1: internal compiler error: in extract_constrain_insn_cached, at recog.c:2218 0xfa3b95 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /home/marxin/Programming/gcc/gcc/rtl-error.c:108 0xfa3bf9 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) /home/marxin/Programming/gcc/gcc/rtl-error.c:118 0xf47798 extract_constrain_insn_cached(rtx_insn*) /home/marxin/Programming/gcc/gcc/recog.c:2218 0x17b165d insn_default_length(rtx_insn*) /home/marxin/Programming/gcc/gcc/config/rs6000/rs6000.md:6831 0xb90531 get_attr_length_1 /home/marxin/Programming/gcc/gcc/final.c:407 0xb90566 get_attr_length(rtx_insn*) /home/marxin/Programming/gcc/gcc/final.c:425 0x14fb201 rs6000_insn_cost /home/marxin/Programming/gcc/gcc/config/rs6000/rs6000.c:34085 0xfb2b71 insn_cost(rtx_insn*, bool) /home/marxin/Programming/gcc/gcc/rtlanal.c:5435 0xb574bb canonicalize_comparison(machine_mode, rtx_code*, rtx_def**) /home/marxin/Programming/gcc/gcc/expmed.c:6249 0xeab7af prepare_cmp_insn /home/marxin/Programming/gcc/gcc/optabs.c:3816 0xeafb35 gen_cond_trap(rtx_code, rtx_def*, rtx_def*, rtx_def*) /home/marxin/Programming/gcc/gcc/optabs.c:5288 0x1a5960f find_cond_trap /home/marxin/Programming/gcc/gcc/ifcvt.c:4657 0x1a58840 find_if_header /home/marxin/Programming/gcc/gcc/ifcvt.c:4282 0x1a5b381 if_convert /home/marxin/Programming/gcc/gcc/ifcvt.c:5405 0x1a5b801 execute /home/marxin/Programming/gcc/gcc/ifcvt.c:5599 >>From gcc-bugs-return-613231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:43:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45615 invoked by alias); 21 Aug 2018 10:43:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45558 invoked by uid 48); 21 Aug 2018 10:43:54 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86869] ICE when taking address of array member of __memx struct pointer Date: Tue, 21 Aug 2018 10:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01520.txt.bz2 Content-length: 503 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86869 --- Comment #1 from Richard Biener --- #ifndef POINTERS_EXTEND_UNSIGNED gcc_assert (GET_MODE (x) =3D=3D to_mode || GET_MODE (x) =3D=3D VOIDmode); return x; #else /* defined(POINTERS_EXTEND_UNSIGNED) */ scalar_int_mode pointer_mode, address_mode, from_mode; rtx temp; So clearly avr has to define POINTERS_EXTEND_UNSIGNED in the correct way and/or the assert needs to be ajdusted for pointer/address_mode of as. >>From gcc-bugs-return-613232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:46:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56109 invoked by alias); 21 Aug 2018 10:46:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56057 invoked by uid 48); 21 Aug 2018 10:46:19 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86990] [9 Regression] wrong code at -O2 on x86_64-linux-gnu in 64-bit mode Date: Tue, 21 Aug 2018 10:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work version keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01521.txt.bz2 Content-length: 1155 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86990 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |8.2.0 Version|unknown |9.0 Keywords| |wrong-code Last reconfirmed| |2018-08-21 CC| |ebotcazou at gcc dot gnu.o= rg, | |marxin at gcc dot gnu.org Ever confirmed|0 |1 Summary|wrong code at -O2 on |[9 Regression] wrong code |x86_64-linux-gnu in 64-bit |at -O2 on x86_64-linux-gnu |mode |in 64-bit mode Target Milestone|--- |9.0 Known to fail| |9.0 --- Comment #1 from Martin Li=C5=A1ka --- Confirmed, started with r261089. >>From gcc-bugs-return-613233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:47:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91125 invoked by alias); 21 Aug 2018 10:47:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88721 invoked by uid 48); 21 Aug 2018 10:47:06 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86875] [8/9 Regression] ICE in tsubst_copy, at cp/pt.c:15478 Date: Tue, 21 Aug 2018 10:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01522.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86875 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |8.3 >>From gcc-bugs-return-613235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:49:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106091 invoked by alias); 21 Aug 2018 10:49:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105832 invoked by uid 48); 21 Aug 2018 10:48:54 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86991] [8/9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6919 Date: Tue, 21 Aug 2018 10:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01523.txt.bz2 Content-length: 1002 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86991 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 CC| |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Target Milestone|--- |8.3 Summary|internal compiler error: in |[8/9 Regression] ICE in |vectorizable_reduction, at |vectorizable_reduction, at |tree-vect-loop.c:6919 |tree-vect-loop.c:6919 Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Confirmed, started with r250382. >>From gcc-bugs-return-613234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:49:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106013 invoked by alias); 21 Aug 2018 10:49:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104759 invoked by uid 48); 21 Aug 2018 10:48:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86877] ICE in vectorizable_load, at tree-vect-stmts.c:8038 Date: Tue, 21 Aug 2018 10:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc blocked target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01524.txt.bz2 Content-length: 552 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86877 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org Blocks| |53947 Target Milestone|9.0 |--- Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53947 [Bug 53947] [meta-bug] vectorizer missed-optimizations >>From gcc-bugs-return-613236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:50:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122333 invoked by alias); 21 Aug 2018 10:50:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119957 invoked by uid 48); 21 Aug 2018 10:49:57 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86860] Reject valid overloads of subclass ostream operator<< Date: Tue, 21 Aug 2018 10:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01525.txt.bz2 Content-length: 441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86860 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Jonathan Wakely --- Yep, let's close it. >>From gcc-bugs-return-613237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:54:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44326 invoked by alias); 21 Aug 2018 10:54:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38289 invoked by uid 48); 21 Aug 2018 10:53:57 -0000 From: "achurch+gcc at achurch dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] New: GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Tue, 21 Aug 2018 10:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: achurch+gcc at achurch dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01526.txt.bz2 Content-length: 1834 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 Bug ID: 87041 Summary: GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: achurch+gcc at achurch dot org Target Milestone: --- In GCC 8, the following code compiled with -O1 -Wformat warns about passing NULL to a %s format token even though the call can never be executed: extern int printf(const char *, ...); void foo(void) { const char * const s =3D 0; if (s) printf("%s\n", s); } foo.c: In function 'foo': foo.c:4:5: warning: reading through null pointer (argument 2) [-Wformat=3D] if (s) printf("%s\n", s); ^~ This breaks testing macros of the following style, which worked fine through GCC 7.3.0: #define CHECK_STREQUAL(value, expected) do { \ const char * const _value =3D value; = \ const char * const _expected =3D expected; = \ if (!_value && _expected) FAIL("Got NULL, expected [%s]", _expected); \ if (_value && !_expected) FAIL("Got [%s], expected NULL", _value); \ if (_value && _expected && strcmp(_value, _expected) !=3D 0) = \ FAIL("Got [%s], expected [%s]", _value, _expected); \ } while (0) Here, passing NULL for the value of "expected" triggers the warning on the final FAIL() invocation, even though that case will never be executed when "expected" is NULL. The warning disappears at -O0 or if the variable is not const (e.g., "const char *s" instead of "const char * const s"). >>From gcc-bugs-return-613238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 10:56:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34202 invoked by alias); 21 Aug 2018 10:56:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34125 invoked by uid 48); 21 Aug 2018 10:56:40 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86891] [9 Regression] wrong code with -O -frerun-cse-after-loop -fno-tree-dominator-opts -fno-tree-fre Date: Tue, 21 Aug 2018 10:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01527.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86891 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:01:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37706 invoked by alias); 21 Aug 2018 11:01:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37588 invoked by uid 48); 21 Aug 2018 11:01:07 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Tue, 21 Aug 2018 11:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01528.txt.bz2 Content-length: 678 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 CC| |jakub at gcc dot gnu.org, | |marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Started on trunk in r254930 to report the warning. >>From gcc-bugs-return-613240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:02:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41920 invoked by alias); 21 Aug 2018 11:02:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41827 invoked by uid 48); 21 Aug 2018 11:02:50 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error Date: Tue, 21 Aug 2018 11:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01529.txt.bz2 Content-length: 352 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86900 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Priority|P3 |P2 >>From gcc-bugs-return-613241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:03:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62504 invoked by alias); 21 Aug 2018 11:03:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57009 invoked by uid 48); 21 Aug 2018 11:03:50 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86902] [9 Regression] ICE: in as_a, at machmode.h:356 at -O Date: Tue, 21 Aug 2018 11:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01530.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86902 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:05:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104817 invoked by alias); 21 Aug 2018 11:05:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104761 invoked by uid 48); 21 Aug 2018 11:05:21 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86907] [9 Regression] bogus warning "No location in expression near" Date: Tue, 21 Aug 2018 11:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01532.txt.bz2 Content-length: 554 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86907 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Target Milestone|--- |9.0 Summary|[9.0 regression] bogus |[9 Regression] bogus |warning "No location in |warning "No location in |expression near" |expression near" >>From gcc-bugs-return-613242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:05:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103763 invoked by alias); 21 Aug 2018 11:05:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103667 invoked by uid 48); 21 Aug 2018 11:05:00 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86905] [6/7/8/9 Regression] g++ ICE on valid code: verify_cgraph_node failed Date: Tue, 21 Aug 2018 11:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-checking X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_known_to_work version target_milestone short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01531.txt.bz2 Content-length: 735 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86905 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-checking Known to work| |4.9.4 Version|unknown |9.0 Target Milestone|--- |6.5 Summary|g++ ICE on valid code: |[6/7/8/9 Regression] g++ |verify_cgraph_node failed |ICE on valid code: | |verify_cgraph_node failed Known to fail| |5.1.0 >>From gcc-bugs-return-613244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:07:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110710 invoked by alias); 21 Aug 2018 11:07:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110640 invoked by uid 48); 21 Aug 2018 11:07:50 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86850] ubsan: runtime error: member call on null pointer Date: Tue, 21 Aug 2018 11:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01533.txt.bz2 Content-length: 2084 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86850 --- Comment #2 from David Binderman --- Indeed it does look like vectorizer code. Here are 20 frames, found by using the UBSAN_OPTIONS=3Dprint_stacktrace=3D1 option: ../../trunk/gcc/vec.h:1688:5: runtime error: member call on null pointer of type 'struct vec' #0 0x2be4a24 in vec<_slp_tree*, va_heap, vl_ptr>::splice(vec<_slp_tree*, va_ heap, vl_ptr> const&) ../../trunk/gcc/vec.h:1688 #1 0x2be4a24 in vect_build_slp_tree_2 ../../trunk/gcc/tree-vect-slp.c:1= 492 #2 0x2bd779e in vect_build_slp_tree ../../trunk/gcc/tree-vect-slp.c:1105 #3 0x2bdba6c in vect_build_slp_tree_2 ../../trunk/gcc/tree-vect-slp.c:1= 257 #4 0x2bd779e in vect_build_slp_tree ../../trunk/gcc/tree-vect-slp.c:1105 #5 0x2bdba6c in vect_build_slp_tree_2 ../../trunk/gcc/tree-vect-slp.c:1= 257 #6 0x2bd779e in vect_build_slp_tree ../../trunk/gcc/tree-vect-slp.c:1105 #7 0x2bf1e80 in vect_analyze_slp_instance ../../trunk/gcc/tree-vect-slp.c:19 56 #8 0x2bfa002 in vect_analyze_slp(vec_info*, unsigned int) ../../trunk/gcc/tr ee-vect-slp.c:2154 #9 0x2bfaf63 in vect_slp_analyze_bb_1 ../../trunk/gcc/tree-vect-slp.c:2= 839 #10 0x2bfaf63 in vect_slp_bb(basic_block_def*) ../../trunk/gcc/tree-vect-slp .c:2973 #11 0x2c0d5bc in execute ../../trunk/gcc/tree-vectorizer.c:1271 #12 0x1b4e1ac in execute_one_pass(opt_pass*) ../../trunk/gcc/passes.c:2= 446 #13 0x1b51cf7 in execute_pass_list_1 ../../trunk/gcc/passes.c:2535 #14 0x1b51d3e in execute_pass_list_1 ../../trunk/gcc/passes.c:2536 #15 0x1b51d3e in execute_pass_list_1 ../../trunk/gcc/passes.c:2536 #16 0x1b51e18 in execute_pass_list(function*, opt_pass*) ../../trunk/gcc/pas ses.c:2546 #17 0xc9d9da in cgraph_node::expand() ../../trunk/gcc/cgraphunit.c:2116 #18 0xca2db4 in expand_all_functions ../../trunk/gcc/cgraphunit.c:2254 #19 0xca2db4 in symbol_table::compile() ../../trunk/gcc/cgraphunit.c:26= 05 #20 0xcaca6a in symbol_table::finalize_compilation_unit() ../../trunk/gcc/cg raphunit.c:2698 >>From gcc-bugs-return-613245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:12:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41536 invoked by alias); 21 Aug 2018 11:12:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41479 invoked by uid 48); 21 Aug 2018 11:12:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Tue, 21 Aug 2018 11:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01534.txt.bz2 Content-length: 1139 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #6 from Richard Biener --- (In reply to Jonathan Wakely from comment #1) > No, your program has undefined behaviour. To make it valid you either need > to use std::launder, or use the pointer that is returned by the placement > new. >=20 > The compiler is allowed to assume that the dynamic type of &strategy does > not change (that's why you need to use std::launder). You need to use std::launder at every use of the object, right? I wonder why static_cast() isn't a good enough "hint" here that the type of strategy changed (from QOI perspective, std::launder is new). I guess a better testcase would be to declare strategy as AStrategy and placement-new BaseStrategy over it or does the standard guaranteee that AStrategy fits in the storage of BaseStrategy? >>From gcc-bugs-return-613246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:19:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106188 invoked by alias); 21 Aug 2018 11:19:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106104 invoked by uid 48); 21 Aug 2018 11:19:03 -0000 From: "wilco at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Tue, 21 Aug 2018 11:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: wilco at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01535.txt.bz2 Content-length: 1505 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #19 from Wilco --- (In reply to Segher Boessenkool from comment #16) > (In reply to Wilco from comment #14) > > Note there is also an issue with costs, if the cost is zero then it see= ms to > > behave like infinite cost. >=20 > 0 means unknown cost. Any known cost is treated as at least as good as > unknown cost. >=20 > > It would be better to properly cost an > > instruction sequence given there is a new interface for this now. >=20 > Yup. >=20 > > If the > > cost is still zero, it could get the default cost rather than being tre= ated > > like infinite cost, resulting in non-optimal replacements. >=20 > Treating unknown cost as minimal cost is still non-optimal. It might work > better for your case of course. But it means for example that combine wi= ll > modify parallels less often. Well insn_cost() uses COSTS_N_INSNS (1) for instructions with unknown (zero) costs. That's a reasonable default and gives more accurate cost comparisons, eg. 0 + 4 vs 0 + 8 now becomes 4 + 4 vs 4 + 8. With insn_cost() the ldm's get cost 8+8, so the comparison is 4 + 16 vs 8 += 8, and thus the substitution will happen (though it's not clear it's useful for the selected CPU). With those changes I think there will be far fewer cases with unknown costs. There will be cases where target insn_cost needs to be improved to more accurately model complex instructions, but that will result in even better code. >>From gcc-bugs-return-613247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:19:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107965 invoked by alias); 21 Aug 2018 11:19:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107009 invoked by uid 55); 21 Aug 2018 11:19:28 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86850] ubsan: runtime error: member call on null pointer Date: Tue, 21 Aug 2018 11:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01536.txt.bz2 Content-length: 1318 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86850 --- Comment #3 from rguenther at suse dot de --- On Tue, 21 Aug 2018, dcb314 at hotmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86850 >=20 > --- Comment #2 from David Binderman --- > Indeed it does look like vectorizer code. Here are 20 frames, > found by using the UBSAN_OPTIONS=3Dprint_stacktrace=3D1 option: OK, I suppose we're creating a SLP node for a PHI where there are zero operands and thus no children and SLP_TREE_CHILDREN (node).create (nops); will not create a vector but a splice of an empty vector will barf when splicing into it. Index: gcc/tree-vect-slp.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/tree-vect-slp.c (revision 263656) +++ gcc/tree-vect-slp.c (working copy) @@ -1489,7 +1489,9 @@ fail: node =3D vect_create_new_slp_node (stmts); SLP_TREE_TWO_OPERATORS (node) =3D two_operators; - SLP_TREE_CHILDREN (node).splice (children); + gcc_assert (children.length () =3D=3D nops); + if (!children.is_empty ()) + SLP_TREE_CHILDREN (node).splice (children); return node; } >>From gcc-bugs-return-613248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:26:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121304 invoked by alias); 21 Aug 2018 11:26:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121255 invoked by uid 48); 21 Aug 2018 11:26:00 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5OTddIGVycm9yOiBjYWxsIG9mIG92ZXJsb2FkZWQg4oCY?= =?UTF-8?B?Tm9EZXN0cnVjdG9yKDxicmFjZS1lbmNsb3NlZCBpbml0aWFsaXplciBsaXN0?= =?UTF-8?B?PinigJkgaXMgYW1iaWd1b3Vz?= Date: Tue, 21 Aug 2018 11:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01537.txt.bz2 Content-length: 230 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86997 --- Comment #2 from Martin Li=C5=A1ka --- (In reply to Jonathan Wakely from comment #1) > Looks like a dup of PR 59389 Any easy workaround for it? >>From gcc-bugs-return-613249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:31:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126447 invoked by alias); 21 Aug 2018 11:31:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126377 invoked by uid 48); 21 Aug 2018 11:31:28 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvODY5OTddIGVycm9yOiBjYWxsIG9mIG92ZXJsb2FkZWQg4oCY?= =?UTF-8?B?Tm9EZXN0cnVjdG9yKDxicmFjZS1lbmNsb3NlZCBpbml0aWFsaXplciBsaXN0?= =?UTF-8?B?PinigJkgaXMgYW1iaWd1b3Vz?= Date: Tue, 21 Aug 2018 11:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01538.txt.bz2 Content-length: 405 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86997 --- Comment #3 from Jonathan Wakely --- Don't write weird code? Either of these works fine and is obvious what it is supposed to do: NoDestructor b; NoDestructor b{}; The original is weird. Is it trying to construct an 'a' object and pass tha= t to the NoDestructor? Or just default construct the NoDestructor object? >>From gcc-bugs-return-613250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:40:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12999 invoked by alias); 21 Aug 2018 11:40:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12959 invoked by uid 48); 21 Aug 2018 11:40:45 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Tue, 21 Aug 2018 11:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01539.txt.bz2 Content-length: 1913 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 --- Comment #7 from Jonathan Wakely --- (In reply to Richard Biener from comment #6) > (In reply to Jonathan Wakely from comment #1) > > No, your program has undefined behaviour. To make it valid you either n= eed > > to use std::launder, or use the pointer that is returned by the placeme= nt > > new. > >=20 > > The compiler is allowed to assume that the dynamic type of &strategy do= es > > not change (that's why you need to use std::launder). >=20 > You need to use std::launder at every use of the object, right? Or just launder the pointer once and then use that: auto laundered =3D std::launder(&strategy); laundered->doIt(); //=20 > I wonder > why static_cast() isn't a good enough "hint" here that > the type of strategy changed (from QOI perspective, std::launder is new). Casting from type X* to Y* where X and Y happen to be the same type can hap= pen in generic code that was already written years ago, and doesn't play these = sort of dirty tricks. It would be a shame to prevent useful optimisations becaus= e of a no-op cast. We don't need to make it easier to play nasty games with the type system. T= here are ways to do this sanely, without undefined behaviour, even without std::launder (just using the pointer returned by the placement new-expressi= on should be good enough, instead of accessing through &strategy every time). > I guess a better testcase would be to declare strategy as AStrategy > and placement-new BaseStrategy over it or does the standard guaranteee > that AStrategy fits in the storage of BaseStrategy? For these types, with the Itanium ABI, it fits, and you could add a static_assert to verify it. Either way you need to placement new the original type back again, otherwise the wrong destructor gets called on scope exit, which adds more undefined behaviour. >>From gcc-bugs-return-613251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 11:47:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11606 invoked by alias); 21 Aug 2018 11:47:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11568 invoked by uid 48); 21 Aug 2018 11:47:33 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86909] Missing common subexpression elimination for types other than int Date: Tue, 21 Aug 2018 11:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01540.txt.bz2 Content-length: 2724 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86909 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 CC| |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- Similar "bad" code for using 'unsigned int'. With 'int' the reassoc pass combines the repetitive checks to [local count: 840525100]: _8 =3D (unsigned int) _9; _15 =3D _8 <=3D 7; if (_15 !=3D 0) goto ; [50.00%] else goto ; [50.00%] [local count: 532808861]: iftmp.1_6 =3D &in_3(D)->a; [local count: 1073741824]: # _1 =3D PHI return _1; with char or unsigned int it fails to do that which is because we are testing different vars: [local count: 840525100]: i_36 =3D (int) _9; if (i_36 =3D=3D 0) goto ; [50.00%] else goto ; [50.00%] [local count: 420262550]: if (_9 =3D=3D 0) goto ; [71.00%] else goto ; [29.00%] [local count: 532808861]: iftmp.1_6 =3D &in_3(D)->a; goto ; [100.00%] [local count: 303654184]: if (i_36 =3D=3D 1) goto ; [67.33%] else goto ; [32.67%] [local count: 182536110]: if (_9 =3D=3D 1) goto ; [43.66%] else goto ; [56.34%] same for char. We're somehow not seeing the equivalence _9 =3D MEM[(unsigned int *)in_3(D) + 4B]; i_36 =3D (int) _9; when we know either is of a specific value. Jump threading and/or CSE should do this job. Btw, the initial code is quite convoluted and needs lot of threading to get to the above "nice" state. EVRP figures out the equivalencies but is confused by the initial : _24 =3D MEM[(unsigned int *)in_5(D) + 4B]; if (_24 !=3D 4294967295) goto ; [78.28%] else goto ; [21.72%] : iftmp.0_20 =3D (long long unsigned int) _24; : # iftmp.0_18 =3D PHI <18446744073709551615(2), iftmp.0_20(3)> i_7 =3D (int) iftmp.0_18; which has to be jump-threaded away first with later : if (_24 !=3D 4294967295) goto ; [78.28%] else goto ; [21.72%] : if (_24 =3D=3D 6) goto ; [55.78%] else goto ; [44.22%] : or alternatively the initial sequence needs to be phi-opted earlier. In the end it appears to be a pass-ordering issue. >>From gcc-bugs-return-613252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 12:01:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100259 invoked by alias); 21 Aug 2018 12:01:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100135 invoked by uid 48); 21 Aug 2018 12:01:35 -0000 From: "jvg1981 at aim dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined Date: Tue, 21 Aug 2018 12:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvg1981 at aim dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01541.txt.bz2 Content-length: 1152 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63303 Joshua Green changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvg1981 at aim dot com --- Comment #17 from Joshua Green --- "But if we don't know which pointer is greater, it gets more complicated: .= .." I'm not sure that this is true. For types that are larger than 1 byte, it seems that one can do the subtraction after any division(s), hence only cos= ting an additional division (or shift): T * p; T * q; . . . intptr_t pVal =3D ((uintptr_t) p)/(sizeof *p); intptr_t qVal =3D ((uintptr_t) q)/(sizeof *q); ptrdiff_t p_q =3D pVal - qVal; This should work in well-defined cases, for if p and q are pointers into the same array then (presumably) ((uintptr_t) p) and ((uintptr_t) q) must have = the same remainder modulo sizeof(T). Of course, even an additional shift may be too expensive in some cases, so = it's not entirely clear that this change should be made. >>From gcc-bugs-return-613253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 12:05:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103079 invoked by alias); 21 Aug 2018 12:05:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103033 invoked by uid 48); 21 Aug 2018 12:05:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86914] [8/9 Regression] -O2 generates wrong code with strlen() of pointers within one-element arrays of structures Date: Tue, 21 Aug 2018 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01542.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86914 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |8.3 >>From gcc-bugs-return-613254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 12:07:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104470 invoked by alias); 21 Aug 2018 12:07:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104405 invoked by uid 55); 21 Aug 2018 12:07:06 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined Date: Tue, 21 Aug 2018 12:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01543.txt.bz2 Content-length: 454 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63303 --- Comment #18 from joseph at codesourcery dot com --- On Tue, 21 Aug 2018, jvg1981 at aim dot com wrote: > intptr_t pVal =3D ((uintptr_t) p)/(sizeof *p); > intptr_t qVal =3D ((uintptr_t) q)/(sizeof *q); Note that this can be expanded like an exact division (right shift and=20 multiply by reciprocal). See bug 67999 comment 24 and bug 81801 comment 4. >>From gcc-bugs-return-613255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 12:17:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109890 invoked by alias); 21 Aug 2018 12:17:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109579 invoked by uid 48); 21 Aug 2018 12:16:59 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86917] [6/7/8/9 Regression] ICE in verify_ctor_sanity, at cp/constexpr.c:2798 Date: Tue, 21 Aug 2018 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01544.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86917 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |6.5 >>From gcc-bugs-return-613256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 12:17:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111069 invoked by alias); 21 Aug 2018 12:17:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110990 invoked by uid 48); 21 Aug 2018 12:17:50 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined Date: Tue, 21 Aug 2018 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01545.txt.bz2 Content-length: 150 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63303 --- Comment #19 from Marc Glisse --- This seems fixed in gcc-8, no? >>From gcc-bugs-return-613257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 12:41:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9692 invoked by alias); 21 Aug 2018 12:41:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9640 invoked by uid 48); 21 Aug 2018 12:41:45 -0000 From: "fro0m.spam at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Tue, 21 Aug 2018 12:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fro0m.spam at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01546.txt.bz2 Content-length: 1003 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 --- Comment #8 from Kostya Frumkin --- > Either way you need to placement new the original type back again, otherw= ise > the wrong destructor gets called on scope exit, which adds more undefined > behaviour. There should not be undefined behavior because the size of both classes is = same and destructors executes same code (in the case it is noop). So the memory to be freed up is same. The behavior must be defined by ISO committee because it is counterintuitive when the base methods are being called. (where to ask?) At the same time this design pattern (strategy) with placement-new is more efficient than with common new. So it has no rationale if the base methods = are used when using placement-new. At the same time other compilers generates c= ode where the derived method is callsed after placement-new.=20 So I see two ways: - Ask the community to define behavior. or - Define behavior in gcc itself. >>From gcc-bugs-return-613258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:02:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25419 invoked by alias); 21 Aug 2018 13:02:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25371 invoked by uid 48); 21 Aug 2018 13:02:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86919] strlen of a multidimensional array element with non-constant offset not folded Date: Tue, 21 Aug 2018 13:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01547.txt.bz2 Content-length: 799 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86919 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed. But you'll have a hard time here since in _6 =3D (sizetype) j_3(D); _1 =3D &b + _6; _2 =3D __builtin_strlen (_1); the fact that you access a different dimension is lost. Consider const char b[][3] =3D { "123", "2" }; where the "123" string overflows into the next dimension when you ask for strlen (b). >>From gcc-bugs-return-613259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:11:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66424 invoked by alias); 21 Aug 2018 13:11:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66383 invoked by uid 48); 21 Aug 2018 13:11:21 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86922] Invoking templated PTMF on subclass gives false strict-aliasing warning Date: Tue, 21 Aug 2018 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: diagnostic, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01548.txt.bz2 Content-length: 1669 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86922 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, wrong-code --- Comment #1 from Richard Biener --- It warns about dereferencing (int (*) () * *) &((const struct B *) obj)->D.2305 which is built via #2 0x0000000000b585af in cp_build_indirect_ref_1 ( ptr=3D, errorstring=3DRO_NULL, complain=3D3,=20 do_fold=3Dtrue) at /tmp/trunk/gcc/cp/typeck.c:3155 #3 0x0000000000b58938 in cp_build_fold_indirect_ref ( pointer=3D) at /tmp/trunk/gcc/cp/typeck.c:3232 #4 0x0000000000b59a5e in get_member_function_from_ptrfunc ( instance_ptrptr=3D0x7fffffffc868, function=3D,=20 complain=3D3) at /tmp/trunk/gcc/cp/typeck.c:3565 #5 0x000000000097aabd in build_offset_ref_call_from_tree ( fn=3D, args=3D0x7fffffffc958, complain=3D3) at /tmp/trunk/gcc/cp/decl2.c:5095 #6 0x0000000000ab9d26 in tsubst_copy_and_build (t=3D,=20 args=3D, complain=3D3,=20 in_decl=3D, function_p=3Dfalse= ,=20 integral_constant_expression_p=3Dfalse) at /tmp/trunk/gcc/cp/pt.c:18485 the fnptr type has an alias-set that isn't compatible with that of struct B. Not sure where that int return type comes from ... Fishy. And possibly wrong-code afterwards because of that alias set. >>From gcc-bugs-return-613260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:16:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80215 invoked by alias); 21 Aug 2018 13:16:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80155 invoked by uid 48); 21 Aug 2018 13:16:20 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86924] tree-slp-vectorize may create unaligned memory access, causing segmentation fault Date: Tue, 21 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01549.txt.bz2 Content-length: 977 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86924 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-w64-mingw32 Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-21 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- The question is where rcx comes from and why it isn't suitably aligned. Th= is is very likely an issue in chromium, not gcc. The workaround patch shows t= he things to look at, namely the type declarations of *cpi and ordered_bwd and where they are allocated. Please attach preprocessed source for encoder.c as you use it when compiling for x86_64-w64-mingw32 (just add -save-temps to the compile that reproduces= the failure). >>From gcc-bugs-return-613261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:17:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81834 invoked by alias); 21 Aug 2018 13:17:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81735 invoked by uid 48); 21 Aug 2018 13:17:01 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86926] [8/9 Regression] ICE for a recursive generic lambda Date: Tue, 21 Aug 2018 13:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01550.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86926 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |8.3 >>From gcc-bugs-return-613262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:18:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85469 invoked by alias); 21 Aug 2018 13:18:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85397 invoked by uid 48); 21 Aug 2018 13:18:50 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86932] [8/9 Regression] Empty non-type template parameter pack not considered for SFINAE. Date: Tue, 21 Aug 2018 13:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01551.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86932 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.3 >>From gcc-bugs-return-613263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:19:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87477 invoked by alias); 21 Aug 2018 13:19:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87390 invoked by uid 48); 21 Aug 2018 13:19:45 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86908] static_cast(&derivedClassObject)->virtualMehod() calls base version of virtualMethod() Date: Tue, 21 Aug 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01552.txt.bz2 Content-length: 996 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86908 --- Comment #9 from Jonathan Wakely --- (In reply to Kostya Frumkin from comment #8) > At the same time this design pattern (strategy) with placement-new is more > efficient than with common new. That's fine, but you can't use &strategy to access the AStrategy object you created at that position. You have several choices: - use an untyped buffer and create objects in there: alignas(AStrategy) unsigned char buf[sizeof(AStrategy)]; - use std::launder - use the pointer returned by the placement new-expression, which has the r= ight type There are ways to do this safely in C++ today, but your original code is not one of those ways. You should fix your code. > So it has no rationale if the base methods > are used when using placement-new. At the same time other compilers > generates code where the derived method is callsed after placement-new.=20 It's undefined behaviour, so anything can happen. >>From gcc-bugs-return-613264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:24:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96847 invoked by alias); 21 Aug 2018 13:24:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96243 invoked by uid 48); 21 Aug 2018 13:24:07 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87042] New: UBSAN: poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long int' Date: Tue, 21 Aug 2018 13:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter blocked target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01553.txt.bz2 Content-length: 3477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87042 Bug ID: 87042 Summary: UBSAN: poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long int' Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Blocks: 63426 Target Milestone: --- Maybe a dup of PR85164, but: $ cat strlen.i const char a[] =3D {}; b() { '\0' =3D=3D a[9223372036854775807]; } $ UBSAN_OPTIONS=3Dprint_stacktrace=3D1 ./xgcc -B. strlen.i -O1 strlen.i:2:1: warning: return type defaults to =E2=80=98int=E2=80=99 [-Wimp= licit-int] 2 | b() { '\0' =3D=3D a[9223372036854775807]; } | ^ ../../gcc/poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long int' #0 0xb98b74 in poly_int<1u, poly_result::is_poly>::type, poly_coeff_pair_traits::is_poly>::type>::result_kind>::t= ype> operator*<1u, long, int>(poly_int_pod<1u, long> const&, int const&) ../../gcc/poly-int.h:1095 #1 0x23cc1c9 in fully_constant_vn_reference_p(vn_reference_s*) ../../gcc/tree-ssa-sccvn.c:1373 #2 0x23d61f7 in vn_reference_lookup(tree_node*, tree_node*, vn_lookup_k= ind, vn_reference_s**, bool) ../../gcc/tree-ssa-sccvn.c:2540 #3 0x23e1b38 in visit_reference_op_load ../../gcc/tree-ssa-sccvn.c:3798 #4 0x23e34a3 in visit_use ../../gcc/tree-ssa-sccvn.c:4163 #5 0x23e43e2 in process_scc ../../gcc/tree-ssa-sccvn.c:4346 #6 0x23e5812 in extract_and_process_scc_for_name ../../gcc/tree-ssa-sccvn.c:4467 #7 0x23e5bc4 in DFS ../../gcc/tree-ssa-sccvn.c:4517 #8 0x23ea154 in sccvn_dom_walker::before_dom_children(basic_block_def*) ../../gcc/tree-ssa-sccvn.c:4956 #9 0x3ada486 in dom_walker::walk(basic_block_def*) ../../gcc/domwalk.c:= 353 #10 0x23ead4e in run_scc_vn(vn_lookup_kind) ../../gcc/tree-ssa-sccvn.c:= 5063 #11 0x23f2aa0 in execute ../../gcc/tree-ssa-sccvn.c:6044 #12 0x1a2a1fc in execute_one_pass(opt_pass*) ../../gcc/passes.c:2446 #13 0x1a2ab8d in execute_pass_list_1 ../../gcc/passes.c:2535 #14 0x1a2ac42 in execute_pass_list_1 ../../gcc/passes.c:2536 #15 0x1a2ace1 in execute_pass_list(function*, opt_pass*) ../../gcc/passes.c:2546 #16 0x1a251da in do_per_function_toporder(void (*)(function*, void*), void*) ../../gcc/passes.c:1688 #17 0x1a2d2b4 in execute_ipa_pass_list(opt_pass*) ../../gcc/passes.c:28= 94 #18 0xdb3593 in ipa_passes ../../gcc/cgraphunit.c:2407 #19 0xdb434b in symbol_table::compile() ../../gcc/cgraphunit.c:2543 #20 0xdb522e in symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2788 #21 0x1e2d777 in compile_file ../../gcc/toplev.c:480 #22 0x1e349df in do_compile ../../gcc/toplev.c:2170 #23 0x1e3500d in toplev::main(int, char**) ../../gcc/toplev.c:2305 #24 0x3f49d8a in main ../../gcc/main.c:39 #25 0x7ffff5ca3fea in __libc_start_main ../csu/libc-start.c:308 #26 0x84a529 in _start (/home/marxin/Programming/gcc2/objdir/gcc/cc1+0x84a529) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=3Dundefined >>From gcc-bugs-return-613265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:25:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97486 invoked by alias); 21 Aug 2018 13:25:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96548 invoked by uid 48); 21 Aug 2018 13:24:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86936] strnlen() of a constant not folded due to laddress transformation Date: Tue, 21 Aug 2018 13:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01554.txt.bz2 Content-length: 481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86936 --- Comment #3 from Richard Biener --- Note to GIMPLE &a[1][i_3(D)] is just address-computation and carries no semantics so you can't assume that i_3(D) isn't negative and thus ends up accessing "123". For the C testcase you of course can, but once we're in GIMPLE you cannot. If there's a load like _7 =3D a[1][i_3(D)]; you _can_ assume that i_3(D) fits in the respective array types domain. >>From gcc-bugs-return-613266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 13:28:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105461 invoked by alias); 21 Aug 2018 13:28:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104818 invoked by uid 48); 21 Aug 2018 13:28:36 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86943] [8/9 Regression] Wrong code when converting stateless generic lambda to function pointer Date: Tue, 21 Aug 2018 13:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01555.txt.bz2 Content-length: 353 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86943 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target Milestone|9.0 |8.3 >>From gcc-bugs-return-613267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 14:06:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111879 invoked by alias); 21 Aug 2018 14:06:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111806 invoked by uid 48); 21 Aug 2018 14:06:07 -0000 From: "pvitt at posteo dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87043] New: maybe-uninitialized warning for initialized variable Date: Tue, 21 Aug 2018 14:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pvitt at posteo dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01556.txt.bz2 Content-length: 3777 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87043 Bug ID: 87043 Summary: maybe-uninitialized warning for initialized variable Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: pvitt at posteo dot de Target Milestone: --- We have a MWE that provokes a "may be uninitialized" warning despite the va= lue being initialized in all cases. Additionally, this warning is only created = with -O[1,2,3,s,fast}, but not with -O{g}. The gcc is from Arch Linux. $ gfortran -v -save-temps -O3 -Wmaybe-uninitialized uninitialized.f90 Driving: gfortran -v -save-temps -O3 -Wmaybe-uninitialized uninitialized.f9= 0 -l gfortran -l m -shared-libgcc Using built-in specs. COLLECT_GCC=3Dgfortran COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=3Drelease --enable-default-pie --enable-default-ssp Thread model: posix gcc version 8.1.1 20180531 (GCC) COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-O3' '-Wmaybe-uninitialized' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/f951 uninitialized.f90 -quiet -dump= base uninitialized.f90 -mtune=3Dgeneric -march=3Dx86-64 -auxbase uninitialized -= O3 -Wmaybe-uninitialized -version -fintrinsic-modules-path /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/finclude -o uninitialized.s GNU Fortran (GCC) version 8.1.1 20180531 (x86_64-pc-linux-gnu) compiled by GNU C version 8.1.1 20180531, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU Fortran2008 (GCC) version 8.1.1 20180531 (x86_64-pc-linux-gnu) compiled by GNU C version 8.1.1 20180531, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 uninitialized.f90:20:0: max_err_len =3D maxval(len_trim(error_messages)) Warning: =E2=80=98error_messages.dim[0].ubound=E2=80=99 may be used uniniti= alized in this function [-Wmaybe-uninitialized] [stripped assembler output...] $ cat uninitialized.f90 module m implicit none integer, parameter :: error_buflen =3D 80 integer :: world_rank, world_size contains subroutine test() character(len=3Derror_buflen), allocatable :: error_messages(:) integer :: allocstat, max_err_len max_err_len =3D 0 if (world_rank =3D=3D 0 ) then allocate(error_messages(world_size), stat=3Dallocstat) else allocate(error_messages(0)) end if if (world_rank =3D=3D 0) then max_err_len =3D maxval(len_trim(error_messages)) end if if (max_err_len > error_buflen-10) then write(*,'(a)') 'Note...' end if end subroutine test end module program uninitialized use m implicit none read(*,*) world_rank world_size =3D 2 call test() end program >>From gcc-bugs-return-613268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 14:20:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1779 invoked by alias); 21 Aug 2018 14:20:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1726 invoked by uid 48); 21 Aug 2018 14:20:34 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] [8/9 Regression] BUG with optimisation of select case statement in gfortran Date: Tue, 21 Aug 2018 14:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01557.txt.bz2 Content-length: 1046 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P4 |P2 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #6 from Richard Biener --- Confirmed. Likely caused by CFG cleanup convert_single_case_switch which generates a range test which is done in a signed type: : id.8_1 =3D CHAIN.11->id; _3 =3D id.8_1 - -2147483648; _4 =3D (unsigned int) _3; if (_4 <=3D 2147483647) when forwprop then combines this we fold (unsigned int) _3 <=3D 2147483647 = to _3 >=3D 2147483647 which then is folded as id.8_1 - -2147483648 >=3D 214748= 3647 which is then folded to id.8_1 >=3D 2147483647 + -2147483648. But something goes wrong end we end up simplifying it as true. >>From gcc-bugs-return-613269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 14:37:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28517 invoked by alias); 21 Aug 2018 14:37:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28458 invoked by uid 48); 21 Aug 2018 14:36:55 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] [8/9 Regression] BUG with optimisation of select case statement in gfortran Date: Tue, 21 Aug 2018 14:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01558.txt.bz2 Content-length: 521 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 --- Comment #7 from Richard Biener --- With -fsanitize=3Dundefined we get even at -O0 id=3D 1 : runtime error: signed integer overflow: 1 - -2147483647 cannot be represented in type 'integer(kind=3D4)' ierr1, OK =3D 0 T : runtime error: signed integer overflow: 1 - -2147483648 cannot be represented in type 'integer(kind=3D4)' ierr2, OK =3D 0 T so both foo1 and foo2 do not "work". >>From gcc-bugs-return-613270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 14:40:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39241 invoked by alias); 21 Aug 2018 14:40:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38639 invoked by uid 48); 21 Aug 2018 14:40:08 -0000 From: "contact at ligh dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86924] tree-slp-vectorize may create unaligned memory access, causing segmentation fault Date: Tue, 21 Aug 2018 14:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: contact at ligh dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01559.txt.bz2 Content-length: 538 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86924 --- Comment #2 from Mario Rohkr=C3=A4mer --- Unfortunately, I do not have much experience in running a compile manually.= I only let the "media-autobuild suite" batch run. https://github.com/jb-alvarado/media-autobuild_suite/ I would not know for sure where to manipulate these batch/shell files to add the requested argument, or how to manually run the compilation for one spec= ific file. It's all automated. But I will ask around and try to get advice. >>From gcc-bugs-return-613271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 14:41:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45460 invoked by alias); 21 Aug 2018 14:41:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44933 invoked by uid 48); 21 Aug 2018 14:41:41 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] [8/9 Regression] BUG with optimisation of select case statement in gfortran Date: Tue, 21 Aug 2018 14:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01560.txt.bz2 Content-length: 326 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 --- Comment #8 from Richard Biener --- C testcase: void __attribute__((noinline,noipa)) foo(int id) { switch (id) { case (-__INT_MAX__ - 1)...-1: __builtin_abort (); default:; } } int main() { foo(1); return 0; } >>From gcc-bugs-return-613272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:13:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118509 invoked by alias); 21 Aug 2018 15:13:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109549 invoked by uid 48); 21 Aug 2018 15:13:49 -0000 From: "contact at ligh dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86924] tree-slp-vectorize may create unaligned memory access, causing segmentation fault Date: Tue, 21 Aug 2018 15:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: contact at ligh dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01561.txt.bz2 Content-length: 385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86924 --- Comment #3 from Mario Rohkr=C3=A4mer --- Created attachment 44567 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44567&action=3Dedit Zipped temp output encoder.i by lupo... This is the "-save-temps" output which user lupo... attached in comment 12 = to the Chromium bug report I linked above. >>From gcc-bugs-return-613273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:16:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12705 invoked by alias); 21 Aug 2018 15:16:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12674 invoked by uid 48); 21 Aug 2018 15:16:22 -0000 From: "barmie.brace at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87044] New: stl_construct.h not interoperable with allocators with custom reference types Date: Tue, 21 Aug 2018 15:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: barmie.brace at outlook dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01562.txt.bz2 Content-length: 2283 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87044 Bug ID: 87044 Summary: stl_construct.h not interoperable with allocators with custom reference types Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: barmie.brace at outlook dot com Target Milestone: --- Created attachment 44568 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44568&action=3Dedit Custom allocator with custom reference object type. STL containers don't seem to be interoperable with allocators with custom reference types due to stl_construct.h's use of std::__addressof() instead = of the allocator's address() member. Attached is a simple example using an allocator with a custom reference typ= e. [xiii@ea1c9ec7dba3 custom_allocator_test]$ make g++ test.cpp -o test -std=3Dgnu++14 -O3 In file included from /usr/include/c++/8.2.0/vector:62, from test.cpp:1: /usr/include/c++/8.2.0/bits/stl_construct.h: In instantiation of 'void std::_Destroy(_ForwardIterator, _ForwardIterator, _Allocator&) [with _ForwardIterator =3D custom_ptr; _Allocator =3D custom_allocator]= ': /usr/include/c++/8.2.0/bits/stl_vector.h:567:15: required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp =3D int; _Alloc =3D custom_allocator]' test.cpp:12:43: required from here /usr/include/c++/8.2.0/bits/stl_construct.h:198:46: error: cannot bind non-const lvalue reference of type 'custom_ref&' to an rvalue of type 'custom_ptr::reference' {aka 'custom_ref'} __traits::destroy(__alloc, std::__addressof(*__first)); ^~~~~~~~ In file included from /usr/include/c++/8.2.0/bits/stl_pair.h:59, from /usr/include/c++/8.2.0/bits/stl_algobase.h:64, from /usr/include/c++/8.2.0/vector:60, from test.cpp:1: /usr/include/c++/8.2.0/bits/move.h:47:5: note: initializing argument 1 of 'constexpr _Tp* std::__addressof(_Tp&) [with _Tp =3D custom_ref]' __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT ^~~~~~~~~~~ make: *** [Makefile:2: test] Error 1 >>From gcc-bugs-return-613274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:26:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97861 invoked by alias); 21 Aug 2018 15:26:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97122 invoked by uid 55); 21 Aug 2018 15:25:54 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65043] Expected narrowing conversion during list initialization of bool from double Date: Tue, 21 Aug 2018 15:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01563.txt.bz2 Content-length: 994 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65043 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Tue Aug 21 15:25:17 2018 New Revision: 263739 URL: https://gcc.gnu.org/viewcvs?rev=3D263739&root=3Dgcc&view=3Drev Log: PR c++/65043 * call.c (standard_conversion): Set check_narrowing. * typeck2.c (check_narrowing): Use CP_INTEGRAL_TYPE_P rather than comparing with INTEGER_TYPE. * g++.dg/concepts/pr67595.C: Add dg-warning. * g++.dg/cpp0x/Wnarrowing11.C: New test. * g++.dg/cpp0x/Wnarrowing12.C: New test. * g++.dg/cpp0x/rv-cast5.C: Add static_cast. Added: trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing11.C trunk/gcc/testsuite/g++.dg/cpp0x/Wnarrowing12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/concepts/pr67595.C trunk/gcc/testsuite/g++.dg/cpp0x/rv-cast5.C >>From gcc-bugs-return-613275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:26:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100022 invoked by alias); 21 Aug 2018 15:26:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98957 invoked by uid 48); 21 Aug 2018 15:26:27 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65043] Expected narrowing conversion during list initialization of bool from double Date: Tue, 21 Aug 2018 15:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01564.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65043 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Marek Polacek --- Fixed. >>From gcc-bugs-return-613276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:36:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31089 invoked by alias); 21 Aug 2018 15:36:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31045 invoked by uid 48); 21 Aug 2018 15:36:23 -0000 From: "valeryweber at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87045] New: pointer to array of character Date: Tue, 21 Aug 2018 15:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: valeryweber at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01565.txt.bz2 Content-length: 1117 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87045 Bug ID: 87045 Summary: pointer to array of character Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: valeryweber at hotmail dot com Target Milestone: --- hi all i m getting a weird error with the following code. many thanks v cat t2.f90 program test character(:), dimension(:), allocatable, target :: t character(:), pointer, dimension(:) :: p allocate( character(3) :: t(2) ) t(1) =3D "abc" t(2) =3D "123" write(*,*) t p =3D> t write(*,*) p(1) write(*,*) p(2) end program test gfortran-8.1.0 t2.f90 -g -fcheck=3Dall ./a.out=20 abc123 At line 8 of file t2.f90 Fortran runtime error: Unequal character lengths (-3262553545697656832/3) in pointer assignment Error termination. Backtrace: #0 0x402548 in test at /home/vwe/work/axv/pkg/build/t2.f90:8 #1 0x402724 in main at /home/vwe/work/axv/pkg/build/t2.f90:11 >>From gcc-bugs-return-613277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:39:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34364 invoked by alias); 21 Aug 2018 15:39:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34290 invoked by uid 55); 21 Aug 2018 15:39:08 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86981] Add Clang's -Wpessimizing-move warning Date: Tue, 21 Aug 2018 15:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01566.txt.bz2 Content-length: 1498 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86981 --- Comment #1 from Marek Polacek --- Author: mpolacek Date: Tue Aug 21 15:38:36 2018 New Revision: 263741 URL: https://gcc.gnu.org/viewcvs?rev=3D263741&root=3Dgcc&view=3Drev Log: PR c++/86981, Implement -Wpessimizing-move. * c.opt (Wpessimizing-move): New option. * typeck.c (decl_in_std_namespace_p): New. (is_std_move_p): New. (maybe_warn_pessimizing_move): New. (can_do_nrvo_p): New, factored out of ... (check_return_expr): ... here. Warn about potentially harmful std::move in a return statement. * doc/invoke.texi: Document -Wpessimizing-move. * g++.dg/cpp0x/Wpessimizing-move1.C: New test. * g++.dg/cpp0x/Wpessimizing-move2.C: New test. * g++.dg/cpp0x/Wpessimizing-move3.C: New test. * g++.dg/cpp0x/Wpessimizing-move4.C: New test. * g++.dg/cpp1z/Wpessimizing-move1.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move1.C trunk/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C trunk/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move3.C trunk/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move4.C trunk/gcc/testsuite/g++.dg/cpp1z/Wpessimizing-move1.C Modified: trunk/gcc/ChangeLog trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c.opt trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/doc/invoke.texi trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:39:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40885 invoked by alias); 21 Aug 2018 15:39:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38239 invoked by uid 48); 21 Aug 2018 15:39:47 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86981] Add Clang's -Wpessimizing-move warning Date: Tue, 21 Aug 2018 15:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01567.txt.bz2 Content-length: 438 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86981 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Marek Polacek --- Done for GCC 9. >>From gcc-bugs-return-613279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 15:42:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60797 invoked by alias); 21 Aug 2018 15:42:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58562 invoked by uid 48); 21 Aug 2018 15:42:22 -0000 From: "yates at cscs dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87046] New: Incorrect vectorization of fma with -O3 Date: Tue, 21 Aug 2018 15:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yates at cscs dot ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01568.txt.bz2 Content-length: 1793 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87046 Bug ID: 87046 Summary: Incorrect vectorization of fma with -O3 Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: yates at cscs dot ch Target Milestone: --- Created attachment 44569 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44569&action=3Dedit Stripped preprocessed source of minimal test case. In some circumstances, vectorization of fma at -O3 on broadwell and haswell incorrectly uses the wrong data for the addition component. While the sample code was tested with gcc version 7.3.0 with -march=3Dhaswell, the same prob= lem arises with gcc 6.4.0. Disabling tree-slp-vectorize restores correct behaviour.=20 I've attached a stripped down preprocessed source that demonstrates the bug. gcc -v output: Using built-in specs. COLLECT_GCC=3D/opt/gcc/7.3.0/bin/../snos/bin/gcc COLLECT_LTO_WRAPPER=3D/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3= .0/lto-wrapper Target: x86_64-suse-linux Configured with: ../cray-gcc-7.3.0-201801270210.d61239fc6000b/configure --prefix=3D/opt/gcc/7.3.0/snos --disable-nls --libdir=3D/opt/gcc/7.3.0/snos= /lib --enable-languages=3Dc,c++,fortran --with-gxx-include-dir=3D/opt/gcc/7.3.0/snos/include/g++ --with-slibdir=3D/opt/gcc/7.3.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=3Dx86_64-suse-linux --with-ppl --with-cloog --disable-multilib Thread model: posix gcc version 7.3.0 20180125 (Cray Inc.) (GCC)=20 Compilation command line and program output: $ gcc -O3 -march=3Dhaswell fma-reduced-bug.i=20 $ ./a.out=20 Aborted (core dumped) >>From gcc-bugs-return-613280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:13:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71590 invoked by alias); 21 Aug 2018 16:13:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71505 invoked by uid 48); 21 Aug 2018 16:13:43 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87046] Incorrect vectorization of fma with -O3 Date: Tue, 21 Aug 2018 16:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01569.txt.bz2 Content-length: 1132 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87046 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org Component|target |tree-optimization --- Comment #1 from Alexander Monakov --- This appears recently fixed, gcc-8.1 still got this wrong but gcc-8.2 is ok. Possibly went away with PR 85597 fix, but not sure about that. On gcc-8.1 SLP incorrectly produced vectp.1_29 =3D u_4(D); vect__26.2_27 =3D MEM[(const double *)vectp.1_29]; _65 =3D MEM[(const double *)u_4(D) + 24B]; vectp.4_22 =3D v_7(D); vect__28.5_17 =3D MEM[(const double *)vectp.4_22]; _67 =3D MEM[(const double *)v_7(D) + 24B]; vectp.7_64 =3D w_10(D); vect__30.8_66 =3D MEM[(const double *)vectp.7_64]; _69 =3D MEM[(const double *)w_10(D) + 24B]; _68 =3D {_26, _39, _52, _65}; vect_cst__15 =3D _68; vect__31.9_25 =3D vect__26.2_27 * vect__28.5_17 + vect_cst__15; >>From gcc-bugs-return-613281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:16:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74140 invoked by alias); 21 Aug 2018 16:16:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73575 invoked by uid 48); 21 Aug 2018 16:16:15 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87044] stl_construct.h not interoperable with allocators with custom reference types Date: Tue, 21 Aug 2018 16:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01570.txt.bz2 Content-length: 407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87044 --- Comment #1 from Jonathan Wakely --- This is correct: custom reference types are not supported at all, and never will be. And that's not a bug. The container requirements in the standard require X::reference to be X::value_type&, and the allocator requirements do not have any reference/const_reference member types at all. >>From gcc-bugs-return-613282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:18:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77276 invoked by alias); 21 Aug 2018 16:18:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77203 invoked by uid 55); 21 Aug 2018 16:18:07 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Tue, 21 Aug 2018 16:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01571.txt.bz2 Content-length: 934 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #8 from hjl at gcc dot gnu.org --- Author: hjl Date: Tue Aug 21 16:17:35 2018 New Revision: 263743 URL: https://gcc.gnu.org/viewcvs?rev=3D263743&root=3Dgcc&view=3Drev Log: x86: Always update EH return address in word_mode On x86, return address is always popped in word_mode. eh_return needs to put EH return address in word_mode on stack. gcc/ Backport from mainline PR target/87014 * config/i386/i386.md (eh_return): Always update EH return address in word_mode. gcc/testsuite/ Backport from mainline PR target/87014 * g++.dg/torture/pr87014.C: New file. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/torture/pr87014.C Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/i386/i386.md branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:19:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79196 invoked by alias); 21 Aug 2018 16:19:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79083 invoked by uid 48); 21 Aug 2018 16:19:27 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87044] stl_construct.h not interoperable with allocators with custom reference types Date: Tue, 21 Aug 2018 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01572.txt.bz2 Content-length: 604 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87044 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely --- The address() member was removed from the allocator requirements for C++11,= so it's wrong to expect it to be used. https://en.cppreference.com/w/cpp/named_req/Allocator#Requirements >>From gcc-bugs-return-613284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:26:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85807 invoked by alias); 21 Aug 2018 16:26:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85779 invoked by uid 48); 21 Aug 2018 16:26:22 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87044] stl_construct.h not interoperable with allocators with custom reference types Date: Tue, 21 Aug 2018 16:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01573.txt.bz2 Content-length: 268 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87044 --- Comment #3 from Jonathan Wakely --- See also https://cplusplus.github.io/LWG/lwg-closed.html#1318 which request= ed that custom references be put back, and was closed as Not A Defect. >>From gcc-bugs-return-613285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:28:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87220 invoked by alias); 21 Aug 2018 16:27:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87177 invoked by uid 55); 21 Aug 2018 16:27:56 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Tue, 21 Aug 2018 16:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01574.txt.bz2 Content-length: 934 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #9 from hjl at gcc dot gnu.org --- Author: hjl Date: Tue Aug 21 16:27:22 2018 New Revision: 263744 URL: https://gcc.gnu.org/viewcvs?rev=3D263744&root=3Dgcc&view=3Drev Log: x86: Always update EH return address in word_mode On x86, return address is always popped in word_mode. eh_return needs to put EH return address in word_mode on stack. gcc/ Backport from mainline PR target/87014 * config/i386/i386.md (eh_return): Always update EH return address in word_mode. gcc/testsuite/ Backport from mainline PR target/87014 * g++.dg/torture/pr87014.C: New file. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr87014.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/i386/i386.md branches/gcc-7-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:38:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53657 invoked by alias); 21 Aug 2018 16:38:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48340 invoked by uid 55); 21 Aug 2018 16:38:50 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Tue, 21 Aug 2018 16:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01575.txt.bz2 Content-length: 935 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 --- Comment #10 from hjl at gcc dot gnu.org --- Author: hjl Date: Tue Aug 21 16:38:17 2018 New Revision: 263745 URL: https://gcc.gnu.org/viewcvs?rev=3D263745&root=3Dgcc&view=3Drev Log: x86: Always update EH return address in word_mode On x86, return address is always popped in word_mode. eh_return needs to put EH return address in word_mode on stack. gcc/ Backport from mainline PR target/87014 * config/i386/i386.md (eh_return): Always update EH return address in word_mode. gcc/testsuite/ Backport from mainline PR target/87014 * g++.dg/torture/pr87014.C: New file. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr87014.C Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/i386/i386.md branches/gcc-6-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 16:39:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102217 invoked by alias); 21 Aug 2018 16:39:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96020 invoked by uid 48); 21 Aug 2018 16:39:30 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87014] [x32] __builtin_eh_return should use 64-bit mov to set return address Date: Tue, 21 Aug 2018 16:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status version resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01576.txt.bz2 Content-length: 558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87014 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Version|unknown |9.0 Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #11 from H.J. Lu --- Fixed for GCC 9 and on GCC 6/7/8 branches. >>From gcc-bugs-return-613288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 18:32:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6069 invoked by alias); 21 Aug 2018 18:31:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6024 invoked by uid 48); 21 Aug 2018 18:31:55 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87047] New: gcc 7 & 8 - performance regression because of if-conversion Date: Tue, 21 Aug 2018 18:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01577.txt.bz2 Content-length: 1967 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 Bug ID: 87047 Summary: gcc 7 & 8 - performance regression because of if-conversion Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: already5chosen at yahoo dot com Target Milestone: --- Created attachment 44570 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44570&action=3Dedit demonstrate performance regression because of if-conversion Very significant performance regression from gcc 6.x to 7.x and 8.x cause by if-conversion of predictable branch. Compilation flags: -O2 -Wall Target: x86-64 (my test machine is IvyBridge) It is possible that the problem is specific to x86-64 target. I tested (by observing compiler output) aarch64 target and it looks o.k. The problem occurs here: if ((i & 15)=3D=3D0) { const uint64_t PROD_ONE =3D (uint64_t)(1) << 19; uint64_t prod =3D umulh(invRange, range); invRange =3D umulh(invRange, (PROD_ONE*2-1-prod)<<44)<<1; } The condition has low probability and is easily predicted by branch predict= or, while code within if has relatively high latency. gcc, starting from gcc.7.x and up to the latest, is convinced that always executing the inner part of the if is a bright idea. Measurements, on my real-world code, do not agree and show 30% slowdown. I'm sure that on artificial sequences I can demonstrate a slowdown of 100% and more. What is special about this case is that compiler is VERY confident in its stupid decision. It does not change its mind even when I replace=20 if ((i & 15)=3D=3D0) { by if (__builtin_expect((i & 15)=3D=3D0, 0)) { I found only two ways of forcing sane code generation: 1. -fno-if-conversion 2. if ((i & 15)=3D=3D0) { asm volatile(""); ... } >>From gcc-bugs-return-613289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 18:37:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38795 invoked by alias); 21 Aug 2018 18:37:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38754 invoked by uid 55); 21 Aug 2018 18:37:55 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86499] lambda-expressions with capture-default are allowed at namespace scope Date: Tue, 21 Aug 2018 18:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01578.txt.bz2 Content-length: 753 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86499 --- Comment #2 from Marek Polacek --- Author: mpolacek Date: Tue Aug 21 18:37:23 2018 New Revision: 263749 URL: https://gcc.gnu.org/viewcvs?rev=3D263749&root=3Dgcc&view=3Drev Log: PR c++/86499 * parser.c (cp_parser_lambda_introducer): Give error if a non-local lambda has a capture-default. * g++.dg/cpp0x/lambda/lambda-non-local.C: New test. * g++.dg/cpp0x/lambda/lambda-this10.C: Adjust dg-error. Added: trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-local.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this10.C >>From gcc-bugs-return-613290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 18:38:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39655 invoked by alias); 21 Aug 2018 18:38:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39599 invoked by uid 48); 21 Aug 2018 18:38:28 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86499] lambda-expressions with capture-default are allowed at namespace scope Date: Tue, 21 Aug 2018 18:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01579.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86499 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Marek Polacek --- Fixed. >>From gcc-bugs-return-613291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 18:49:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91697 invoked by alias); 21 Aug 2018 18:49:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91612 invoked by uid 55); 21 Aug 2018 18:49:41 -0000 From: "koenigni at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/25829] [F03] Asynchronous IO support Date: Tue, 21 Aug 2018 18:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: koenigni at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: koenigni at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01580.txt.bz2 Content-length: 5619 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D25829 --- Comment #55 from Nicolas Koenig --- Author: koenigni Date: Tue Aug 21 18:48:59 2018 New Revision: 263750 URL: https://gcc.gnu.org/viewcvs?rev=3D263750&root=3Dgcc&view=3Drev Log: 2018-08-21 Nicolas Koenig Thomas Koenig PR fortran/25829 * gfortran.texi: Add description of asynchronous I/O. * trans-decl.c (gfc_finish_var_decl): Treat asynchronous variables as volatile. * trans-io.c (gfc_build_io_library_fndecls): Rename st_wait to st_wait_async and change argument spec from ".X" to ".w". (gfc_trans_wait): Pass ID argument via reference. 2018-08-21 Nicolas Koenig Thomas Koenig PR fortran/25829 * gfortran.dg/f2003_inquire_1.f03: Add write statement. * gfortran.dg/f2003_io_1.f03: Add wait statement. 2018-08-21 Nicolas Koenig Thomas Koenig PR fortran/25829 * Makefile.am: Add async.c to gfor_io_src. Add async.h to gfor_io_headers. * Makefile.in: Regenerated. * gfortran.map: Add _gfortran_st_wait_async. * io/async.c: New file. * io/async.h: New file. * io/close.c: Include async.h. (st_close): Call async_wait for an asynchronous unit. * io/file_pos.c (st_backspace): Likewise. (st_endfile): Likewise. (st_rewind): Likewise. (st_flush): Likewise. * io/inquire.c: Add handling for asynchronous PENDING and ID arguments. * io/io.h (st_parameter_dt): Add async bit. (st_parameter_wait): Correct. (gfc_unit): Add au pointer. (st_wait_async): Add prototype. (transfer_array_inner): Likewise. (st_write_done_worker): Likewise. * io/open.c: Include async.h. (new_unit): Initialize asynchronous unit. * io/transfer.c (async_opt): New struct. (wrap_scalar_transfer): New function. (transfer_integer): Call wrap_scalar_transfer to do the work. (transfer_real): Likewise. (transfer_real_write): Likewise. (transfer_character): Likewise. (transfer_character_wide): Likewise. (transfer_complex): Likewise. (transfer_array_inner): New function. (transfer_array): Call transfer_array_inner. (transfer_derived): Call wrap_scalar_transfer. (data_transfer_init): Check for asynchronous I/O. Perform a wait operation on any pending asynchronous I/O if the data transfer is synchronous. Copy PDT and enqueue thread for data transfer. (st_read_done_worker): New function. (st_read_done): Enqueue transfer or call st_read_done_worker. (st_write_done_worker): New function. (st_write_done): Enqueue transfer or call st_read_done_worker. (st_wait): Document as no-op for compatibility reasons. (st_wait_async): New function. * io/unit.c (insert_unit): Use macros LOCK, UNLOCK and TRYLOCK; add NOTE where necessary. (get_gfc_unit): Likewise. (init_units): Likewise. (close_unit_1): Likewise. Call async_close if asynchronous. (close_unit): Use macros LOCK and UNLOCK. (finish_last_advance_record): Likewise. (newunit_alloc): Likewise. * io/unix.c (find_file): Likewise. (flush_all_units_1): Likewise. (flush_all_units): Likewise. * libgfortran.h (generate_error_common): Add prototype. * runtime/error.c: Include io.h and async.h. (generate_error_common): New function. 2018-08-21 Nicolas Koenig Thomas Koenig PR fortran/25829 * testsuite/libgomp.fortran/async_io_1.f90: New test. * testsuite/libgomp.fortran/async_io_2.f90: New test. * testsuite/libgomp.fortran/async_io_3.f90: New test. * testsuite/libgomp.fortran/async_io_4.f90: New test. * testsuite/libgomp.fortran/async_io_5.f90: New test. * testsuite/libgomp.fortran/async_io_6.f90: New test. * testsuite/libgomp.fortran/async_io_7.f90: New test. Added: trunk/libgfortran/io/async.c trunk/libgfortran/io/async.h trunk/libgomp/testsuite/libgomp.fortran/async_io_1.f90 trunk/libgomp/testsuite/libgomp.fortran/async_io_2.f90 trunk/libgomp/testsuite/libgomp.fortran/async_io_3.f90 trunk/libgomp/testsuite/libgomp.fortran/async_io_4.f90 trunk/libgomp/testsuite/libgomp.fortran/async_io_5.f90 trunk/libgomp/testsuite/libgomp.fortran/async_io_6.f90 trunk/libgomp/testsuite/libgomp.fortran/async_io_7.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/gfortran.texi trunk/gcc/fortran/trans-decl.c trunk/gcc/fortran/trans-io.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/f2003_inquire_1.f03 trunk/gcc/testsuite/gfortran.dg/f2003_io_1.f03 trunk/libgfortran/ChangeLog trunk/libgfortran/Makefile.am trunk/libgfortran/Makefile.in trunk/libgfortran/gfortran.map trunk/libgfortran/io/close.c trunk/libgfortran/io/file_pos.c trunk/libgfortran/io/inquire.c trunk/libgfortran/io/io.h trunk/libgfortran/io/open.c trunk/libgfortran/io/read.c trunk/libgfortran/io/transfer.c trunk/libgfortran/io/unit.c trunk/libgfortran/io/unix.c trunk/libgfortran/libgfortran.h trunk/libgfortran/runtime/error.c trunk/libgomp/ChangeLog >>From gcc-bugs-return-613292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 19:31:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101748 invoked by alias); 21 Aug 2018 19:31:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101694 invoked by uid 48); 21 Aug 2018 19:31:28 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87008] [8/9 Regression] gimple mem-to-mem assignment badly optimized Date: Tue, 21 Aug 2018 19:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01581.txt.bz2 Content-length: 752 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87008 --- Comment #1 from Marc Glisse --- struct A { double a, b; }; struct B : A {}; templatevoid cp(T&a,T const&b){a=3Db;} double f(B x){ B y; cp(y,x); B z; cp(z,x); return y.a - z.a; } This is not quite equivalent because RTL manages to optimize this case, but gimple, with -Ofast, still gets the ugly: ISRA.1 =3D MEM[(const struct A &)&x]; SR.9_9 =3D MEM[(struct A *)&ISRA.1]; ISRA.1 =3D MEM[(const struct A &)&x]; SR.8_10 =3D MEM[(struct A *)&ISRA.1]; _3 =3D SR.9_9 - SR.8_10; return _3; Writing cp instead of cp makes it work, and the main difference start= s in SRA. I expect (didn't check) this is another victim of r255510 . >>From gcc-bugs-return-613293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 19:40:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110398 invoked by alias); 21 Aug 2018 19:40:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110352 invoked by uid 48); 21 Aug 2018 19:40:38 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87048] New: [9 Regression] array_constructor_8.f90 failure on armeb Date: Tue, 21 Aug 2018 19:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01582.txt.bz2 Content-length: 650 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87048 Bug ID: 87048 Summary: [9 Regression] array_constructor_8.f90 failure on armeb Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Since r263082, array_constructor_8.f90 fails on armeb. PR 25829 contains debugging info on that, see also https://gcc.gnu.org/ml/fortran/2018-08/msg00010.html and the following discussion. >>From gcc-bugs-return-613294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 19:41:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111324 invoked by alias); 21 Aug 2018 19:41:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111243 invoked by uid 48); 21 Aug 2018 19:41:07 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87048] [9 Regression] array_constructor_8.f90 failure on armeb Date: Tue, 21 Aug 2018 19:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: blocked target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01583.txt.bz2 Content-length: 462 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87048 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |25829 Target Milestone|--- |9.0 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D25829 [Bug 25829] [F03] Asynchronous IO support >>From gcc-bugs-return-613295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 20:30:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79852 invoked by alias); 21 Aug 2018 20:30:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79748 invoked by uid 48); 21 Aug 2018 20:30:47 -0000 From: "bunk at stusta dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87049] New: __clear_cache() prototype confusion Date: Tue, 21 Aug 2018 20:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bunk at stusta dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01584.txt.bz2 Content-length: 1859 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87049 Bug ID: 87049 Summary: __clear_cache() prototype confusion Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bunk at stusta dot de Target Milestone: --- $ cat test.cc extern "C" void __clear_cache(char *beg, char *end); $ g++-5 -c test.cc test.cc:1:51: warning: new declaration 'void __clear_cache(char*, char*)' ambiguates built-in declaration 'void __clear_cache(void*, void*)' extern "C" void __clear_cache(char *beg, char *end); ^ $ g++-7 -c test.cc test.cc:1:17: warning: new declaration 'void __clear_cache(char*, char*)' ambiguates built-in declaration 'void __clear_cache(void*, void*)' [-Wbuiltin-declaration-mismatch] extern "C" void __clear_cache(char *beg, char *end); ^~~~~~~~~~~~~ $ g++-8 -c test.cc test.cc:1:17: error: new declaration 'void __clear_cache(char*, char*)' ambiguates built-in declaration 'void __clear_cache(void*, void*)' [-fpermissive] extern "C" void __clear_cache(char *beg, char *end); ^~~~~~~~~~~~~ $=20 The bug is not that g++ became more strict, the bug is that the built-in declaration differs from the documented declaration. Relevant part of the gcc sources: gcc/builtins.def:DEF_EXT_LIB_BUILTIN (BUILT_IN_CLEAR_CACHE, "__clear_cac= he", BT_FN_VOID_PTR_PTR, ATTR_NOTHROW_LEAF_LIST) gcc/doc/extend.texi:@deftypefn {Built-in Function} void __builtin___clear_c= ache (char *@var{begin}, char *@var{end}) libgcc/libgcc2.h:extern void __clear_cache (char *, char *); Doesn't seem to be a new issue: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20130513/079828.html >>From gcc-bugs-return-613297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 20:31:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81041 invoked by alias); 21 Aug 2018 20:31:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80931 invoked by uid 48); 21 Aug 2018 20:31:49 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/79342] [6 Regression] ICE in output_index_string, at dwarf2out.c:25635 with -gsplit-dwarf Date: Tue, 21 Aug 2018 20:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01586.txt.bz2 Content-length: 434 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79342 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #8 from H.J. Lu --- *** Bug 70578 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 20:31:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81001 invoked by alias); 21 Aug 2018 20:31:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80892 invoked by uid 48); 21 Aug 2018 20:31:48 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf Date: Tue, 21 Aug 2018 20:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ccoutant at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01585.txt.bz2 Content-length: 480 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70578 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |DUPLICATE --- Comment #10 from H.J. Lu --- Dup. *** This bug has been marked as a duplicate of bug 79342 *** >>From gcc-bugs-return-613298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 20:33:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83187 invoked by alias); 21 Aug 2018 20:33:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83138 invoked by uid 48); 21 Aug 2018 20:33:49 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87008] [8/9 Regression] gimple mem-to-mem assignment badly optimized Date: Tue, 21 Aug 2018 20:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01587.txt.bz2 Content-length: 591 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87008 --- Comment #2 from Marc Glisse --- Or just: struct A { double a, b; }; struct B : A {}; double f(B x){ B y; A*px=3D&x; A*py=3D&y; *py=3D*px; return y.a; } MEM[(struct A *)&y] =3D MEM[(const struct A &)&x]; y_6 =3D MEM[(struct A *)&y]; y =3D{v} {CLOBBER}; return y_6; where y_6 should be read directly from x. SRA doesn't dare touch it. SCCVN = does see that reading from y is equivalent to reading from x, but unless somethi= ng else is already reading from x, it keeps the read from y. >>From gcc-bugs-return-613299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 20:40:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89334 invoked by alias); 21 Aug 2018 20:40:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89291 invoked by uid 48); 21 Aug 2018 20:40:53 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] New: Bump wwwdocs to html5 Date: Tue, 21 Aug 2018 20:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01588.txt.bz2 Content-length: 1182 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 Bug ID: 87050 Summary: Bump wwwdocs to html5 Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: web Assignee: unassigned at gcc dot gnu.org Reporter: jb at gcc dot gnu.org Target Milestone: --- Currently the GCC website is "XHTML 1.0 Transitional". This specification = has been superseded in favor of the latest HTML version, currently 5.2 (see https://www.w3.org/TR/xhtml1/ ). Reasons to update - Easier to hand-edit, e.g. in many cases no need for closing tags, and in general more forgiving parsing. - XHTML, and in particular XHTML delivered as text/html, is a technological dead end. People will only get less and less familiar with it. For a relatively simple set of pages like the GCC wwwdocs that doesn't use = any particularly exotic features, HTML5 is more or less completely backwards compatible with XHTML 1.0 (for details, see https://www.w3.org/TR/html5-dif= f/ ). So apart from the headers, little work ought to be needed for the conver= sion itself. >>From gcc-bugs-return-613300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 20:47:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75593 invoked by alias); 21 Aug 2018 20:47:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70234 invoked by uid 48); 21 Aug 2018 20:47:08 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87040] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Tue, 21 Aug 2018 20:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cf_gcchost assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01589.txt.bz2 Content-length: 739 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87040 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Target|ppc64le-linux-gnu |powerpc*-*-* Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-21 Host|x86_64-linux-gnu | Assignee|unassigned at gcc dot gnu.org |segher at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- This is a dup of some other PR I already have a patch for. >>From gcc-bugs-return-613301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 21:16:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70709 invoked by alias); 21 Aug 2018 21:16:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70622 invoked by uid 48); 21 Aug 2018 21:16:06 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Tue, 21 Aug 2018 21:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01590.txt.bz2 Content-length: 1411 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #20 from Segher Boessenkool --- (In reply to Wilco from comment #19) > Well insn_cost() uses COSTS_N_INSNS (1) for instructions with unknown (ze= ro) > costs. That's a reasonable default and gives more accurate cost compariso= ns, > eg. 0 + 4 vs 0 + 8 now becomes 4 + 4 vs 4 + 8. You're talking about the default insn_cost, which uses pattern_cost to do t= he work; pattern_cost returns COSTS_N_INSNS (1) if there is a single SET (or a single SET and a single SET of COMPARE), and set_src_cost of that SET says = it is cost 0. It does not say cost 0 for a PARALLEL of two SETs, like you have here. A target-specific insn_cost can return a saner cost for all insns, including for those that are a "real" PARALLEL. (COSTS_N_INSNS (1) isn't minimal of course, it is 4 like you already point out; it is the default insn cost). It never is clear that 0+4 is better than 0+8, because the 0's usually are = not the cost of the same insn. > With those changes I think there will be far fewer cases with unknown cos= ts. I'm not sure what changes you propose. > There will be cases where target insn_cost needs to be improved to more > accurately model complex instructions, but that will result in even better > code. The arm port does not _have_ the insn_cost hook implemented; doing that will probably help, sure. >>From gcc-bugs-return-613302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 21:27:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86702 invoked by alias); 21 Aug 2018 21:27:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86597 invoked by uid 55); 21 Aug 2018 21:27:13 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Tue, 21 Aug 2018 21:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01591.txt.bz2 Content-length: 315 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 --- Comment #3 from joseph at codesourcery dot com --- This is Wjump-misses-init. Is this a request to make some other option=20 such as -Wall or -Wextra enable that option (rather than just -Wc++-compat= =20 as at present)? >>From gcc-bugs-return-613303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 21:34:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94901 invoked by alias); 21 Aug 2018 21:34:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94667 invoked by uid 48); 21 Aug 2018 21:34:13 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Tue, 21 Aug 2018 21:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01592.txt.bz2 Content-length: 1021 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 CC| |amonakov at gcc dot gnu.org Component|middle-end |rtl-optimization Summary|gcc 7 & 8 - performance |[7/8/9 Regression] |regression because of |performance regression |if-conversion |because of if-conversion Ever confirmed|0 |1 --- Comment #1 from Alexander Monakov --- Indeed, on first glance something is suspicious in RTL if-conversion, the b= lock is quite large and should not be transformed. Unfortunately the pass doesn't dump estimated costs :( >>From gcc-bugs-return-613304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 21:38:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100855 invoked by alias); 21 Aug 2018 21:38:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100336 invoked by uid 48); 21 Aug 2018 21:38:33 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Tue, 21 Aug 2018 21:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01593.txt.bz2 Content-length: 258 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #2 from Andrew Pinski --- I suspect it is treating cost 0 as being free rather than unknown cost. And the x86 backend is returning 0 cost for the upper multiple. >>From gcc-bugs-return-613305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 22:12:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52466 invoked by alias); 21 Aug 2018 22:12:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52418 invoked by uid 48); 21 Aug 2018 22:12:26 -0000 From: "arthur.j.odwyer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87051] New: is_trivially_move_constructible wrongly gives `false` for class with user-provided non-const copy constructor Date: Tue, 21 Aug 2018 22:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arthur.j.odwyer at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01594.txt.bz2 Content-length: 1085 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87051 Bug ID: 87051 Summary: is_trivially_move_constructible wrongly gives `false` for class with user-provided non-const copy constructor Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- cat > test.cc <>From gcc-bugs-return-613306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 22:29:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122975 invoked by alias); 21 Aug 2018 22:29:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117763 invoked by uid 48); 21 Aug 2018 22:29:48 -0000 From: "steinar+gcc at gunderson dot no" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Tue, 21 Aug 2018 22:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: steinar+gcc at gunderson dot no X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01595.txt.bz2 Content-length: 218 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 --- Comment #4 from Steinar H. Gunderson = --- Oh, it exists? Yes, if so, please count this as a request for enabling on -Wextra. >>From gcc-bugs-return-613307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 22:36:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7037 invoked by alias); 21 Aug 2018 22:36:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7012 invoked by uid 48); 21 Aug 2018 22:36:19 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Tue, 21 Aug 2018 22:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01596.txt.bz2 Content-length: 413 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gerald at gcc dot gnu.org --- Comment #1 from Jonathan Wakely --- Makes sense to me. CCing Gerald. >>From gcc-bugs-return-613308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 22:39:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62001 invoked by alias); 21 Aug 2018 22:39:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61963 invoked by uid 48); 21 Aug 2018 22:39:53 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87051] is_trivially_move_constructible wrongly gives `false` for class with user-provided non-const copy constructor Date: Tue, 21 Aug 2018 22:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01597.txt.bz2 Content-length: 476 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87051 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-21 CC| |ville at gcc dot gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-613309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 23:19:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5537 invoked by alias); 21 Aug 2018 23:19:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5437 invoked by uid 48); 21 Aug 2018 23:19:06 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/82076] inconsistencies between sanitizer and -Wstringop-overflow Date: Tue, 21 Aug 2018 23:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01598.txt.bz2 Content-length: 455 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82076 --- Comment #3 from Martin Sebor --- I think the problem in this case is that a) the sanitizers don't instrument calls to built-in functions like memcpy (the reason for the missing runtime error in the case of -DN=3D3), and b) -Wstringop-overflow doesn't handle ME= M_REF (which is what memcpy with a small power-of-2 size is transformed into). B= oth should be solvable. >>From gcc-bugs-return-613310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 23:33:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21432 invoked by alias); 21 Aug 2018 23:33:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18462 invoked by uid 48); 21 Aug 2018 23:33:14 -0000 From: "ville.voutilainen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87051] is_trivially_move_constructible wrongly gives `false` for class with user-provided non-const copy constructor Date: Tue, 21 Aug 2018 23:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ville.voutilainen at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ville.voutilainen at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01599.txt.bz2 Content-length: 588 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87051 Ville Voutilainen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |ville.voutilainen at gmail= dot com Assignee|unassigned at gcc dot gnu.org |ville.voutilainen a= t gmail dot com --- Comment #1 from Ville Voutilainen = --- I'll take a look. >>From gcc-bugs-return-613311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 23:57:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59734 invoked by alias); 21 Aug 2018 23:57:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59050 invoked by uid 48); 21 Aug 2018 23:57:45 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87052] New: STRING_CST printing incomplete in Gimple dumps Date: Tue, 21 Aug 2018 23:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01600.txt.bz2 Content-length: 1338 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87052 Bug ID: 87052 Summary: STRING_CST printing incomplete in Gimple dumps Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- STRING_CST nodes with embedded nuls are formatted in Gimple dumps only up to the first nul. Characters beyond the first nul are not printed. This makes the dumps incomplete (and raises the question of whether the code is even correct.) This has recently been exacerbated by transforming braced-list initialized constant character arrays into STRING_CSTs (r263511). $ cat f.c && gcc -O2 -S -Wall -fdump-tree-gimple=3D/dev/stdout f.c void f (char *d) { const char a[3] =3D "\000ab"; __builtin_strcpy (d, a); } void g (char *d) { const char a[] =3D { 0, 'a', 'b', 'b' }; __builtin_strcpy (d, a); } f (char * d) { const char a[3]; try { a =3D ""; __builtin_strcpy (d, &a); } finally { a =3D {CLOBBER}; } } g (char * d) { const char a[4]; try { a =3D ""; __builtin_strcpy (d, &a); } finally { a =3D {CLOBBER}; } } >>From gcc-bugs-return-613312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 21 23:58:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61580 invoked by alias); 21 Aug 2018 23:58:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61565 invoked by uid 48); 21 Aug 2018 23:58:29 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87052] STRING_CST printing incomplete in Gimple dumps Date: Tue, 21 Aug 2018 23:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01601.txt.bz2 Content-length: 490 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87052 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-21 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Ever confirmed|0 |1 >>From gcc-bugs-return-613314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 00:28:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90737 invoked by alias); 22 Aug 2018 00:28:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90557 invoked by uid 48); 22 Aug 2018 00:28:53 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Wed, 22 Aug 2018 00:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01603.txt.bz2 Content-length: 452 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #4 from Segher Boessenkool --- *** Bug 87040 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 00:28:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90677 invoked by alias); 22 Aug 2018 00:28:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90533 invoked by uid 48); 22 Aug 2018 00:28:52 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87040] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Wed, 22 Aug 2018 00:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01602.txt.bz2 Content-length: 510 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87040 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |DUPLICATE --- Comment #2 from Segher Boessenkool --- Dup of PR87026. *** This bug has been marked as a duplicate of bug 87026 *** >>From gcc-bugs-return-613315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 01:53:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116837 invoked by alias); 22 Aug 2018 01:53:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116747 invoked by uid 48); 22 Aug 2018 01:53:20 -0000 From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636 Date: Wed, 22 Aug 2018 01:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01604.txt.bz2 Content-length: 201 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86519 --- Comment #19 from qinzhao at gcc dot gnu.org --- which sparc machine was used to repeat the failure, and what's the configure and make options? >>From gcc-bugs-return-613316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 02:14:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64333 invoked by alias); 22 Aug 2018 02:14:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63513 invoked by uid 48); 22 Aug 2018 02:14:30 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] Optimization breaks an unformatted read with implicit loop on Mac OS X Date: Wed, 22 Aug 2018 02:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01605.txt.bz2 Content-length: 503 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Ever confirmed|0 |1 --- Comment #3 from Jerry DeLisle --- Confirmed on current trunk. >>From gcc-bugs-return-613317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 02:57:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58102 invoked by alias); 22 Aug 2018 02:57:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58054 invoked by uid 48); 22 Aug 2018 02:57:16 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87052] STRING_CST printing incomplete in Gimple dumps Date: Wed, 22 Aug 2018 02:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01606.txt.bz2 Content-length: 422 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87052 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01324.html >>From gcc-bugs-return-613318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 02:58:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59208 invoked by alias); 22 Aug 2018 02:58:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59083 invoked by uid 48); 22 Aug 2018 02:58:00 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87034] [9 Regression] missing -Wformat-overflow on a sprintf %s with a wide string Date: Wed, 22 Aug 2018 02:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01607.txt.bz2 Content-length: 675 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87034 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-22 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01321.html >>From gcc-bugs-return-613319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 03:16:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89141 invoked by alias); 22 Aug 2018 03:16:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89012 invoked by uid 48); 22 Aug 2018 03:15:49 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87053] New: wrong code with c_strlen Date: Wed, 22 Aug 2018 03:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01608.txt.bz2 Content-length: 1367 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87053 Bug ID: 87053 Summary: wrong code with c_strlen Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de Target Milestone: --- $ cat u.c const union { struct { char x[4]; char y[4]; }; struct { char z[8]; }; } u =3D {{"1234", "567"}}; int test() { return __builtin_strlen(u.z); } $ gcc -S u.c $=20 cat u.s .file "u.c" .text .globl u .section .rodata .align 8 .type u, @object .size u, 8 u: .ascii "1234" .string "567" .text .globl test .type test, @function test: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl $4, %eax popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size test, .-test .ident "GCC: (GNU) 9.0.0 20180821 (experimental)" .section .note.GNU-stack,"",@progbits which Looks wrong. expected: not folded, or evaluate to 7. >>From gcc-bugs-return-613320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 05:41:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110528 invoked by alias); 22 Aug 2018 05:41:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110427 invoked by uid 48); 22 Aug 2018 05:41:37 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87054] New: misaligned asm output is turned into dereferenced pointer-to-aligned Date: Wed, 22 Aug 2018 05:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter dependson target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01609.txt.bz2 Content-length: 2093 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87054 Bug ID: 87054 Summary: misaligned asm output is turned into dereferenced pointer-to-aligned Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: aoliva at gcc dot gnu.org Depends on: 80334 Target Milestone: --- This bug came up while attempting to trigger the bug 80334, that was suspec= ted to be latent in earlier versions. I managed to trigger the latent problem = with a variant of the testcase below, but attempting to further minimize it, I f= ound a way to trigger it even in GCC 8 and trunk: #ifndef T # define T long #endif #ifndef R # define R "r" #endif typedef T A; // #define T to long or __int128 struct B { char d; A c; } __attribute__((packed)); B b[50]; // many elements to avoid loop unrolling int main () { for (int i =3D 0; i < sizeof(b) / sizeof(*b); i++) { asm ("" : "+" R (b[i].unpacked)); // #define R to "r" on ppc or "x" on x86_64 } } The gimplifier introduces a pointer to the misaligned field for the asm out= put, discarding the information about the misalignment, and that pointer is dereferenced as if the object was aligned. There is a (broken) patch in th= at bug that works around the problem, but that fails to build libstdc++-v3 (unbound template names). https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80334#c12 FTR, the testcase that exercises the bug in older compilers, before the fix= was backported, has a "manual reload" of the asm operand, compared with the abo= ve: auto r =3D b[i].unpacked; // aligned access to unaligned address asm ("" : "+" R (r)); // #define R to "r" on ppc or "x" on x86_64 b[i].unpacked =3D r; // pretend the loop has externally-visible effects Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80334 [Bug 80334] [5 Regression] Segfault when taking address of copy of unaligned struct >>From gcc-bugs-return-613321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 05:49:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115191 invoked by alias); 22 Aug 2018 05:49:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115025 invoked by uid 48); 22 Aug 2018 05:48:47 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/80334] [5 Regression] Segfault when taking address of copy of unaligned struct Date: Wed, 22 Aug 2018 05:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01610.txt.bz2 Content-length: 418 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80334 --- Comment #14 from Alexandre Oliva --- Done, bug 87054. The patch in comment 13 fails libstdc++-v3; the language-independent get_object_alignment can't deal with unresolved template expressions, so us= ing the same logic you added to ivopts to adjust the type of the compiler-introduced pointer won't do in build_fold_addr_expr_loc. >>From gcc-bugs-return-613322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:14:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58369 invoked by alias); 22 Aug 2018 07:14:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58089 invoked by uid 48); 22 Aug 2018 07:14:41 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Wed, 22 Aug 2018 07:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01611.txt.bz2 Content-length: 407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 --- Comment #2 from Janne Blomqvist --- The validation script that runs upon committing a change and sends email li= kely needs to change too. There is https://validator.github.io/validator/ that = can be run as a batch script (needs java), or one can use a publically available hosted service (a few listed on the page above). >>From gcc-bugs-return-613323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:21:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54483 invoked by alias); 22 Aug 2018 07:21:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51702 invoked by uid 48); 22 Aug 2018 07:21:14 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8/9 Regression] memory hog Date: Wed, 22 Aug 2018 07:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01612.txt.bz2 Content-length: 438 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2014-09-03 00:00:00 |2018-8-22 Known to fail| |8.2.0 --- Comment #16 from Richard Biener --- Re-confirmed. >>From gcc-bugs-return-613324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:28:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88088 invoked by alias); 22 Aug 2018 07:28:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88021 invoked by uid 48); 22 Aug 2018 07:27:57 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87055] New: Unoptimal address calculation Date: Wed, 22 Aug 2018 07:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01613.txt.bz2 Content-length: 781 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87055 Bug ID: 87055 Summary: Unoptimal address calculation Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target Milestone: --- Following testcase: --cut here-- int a[256]; int foo (int i) { return a[i+1]; } --cut here-- compiles on x86_64 (-O2) to: addl $1, %edi movslq %edi, %rdi movl a(,%rdi,4), %eax ret clang merges the addition with the address: movslq %edi, %rax movl a+4(,%rax,4), %eax retq Related: PR54589 >>From gcc-bugs-return-613325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:33:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95903 invoked by alias); 22 Aug 2018 07:33:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95862 invoked by uid 48); 22 Aug 2018 07:33:13 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54589] struct offset add should be folded into address calculation Date: Wed, 22 Aug 2018 07:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01614.txt.bz2 Content-length: 832 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54589 --- Comment #4 from Uro=C5=A1 Bizjak --- clang generates for x86_64: movzbl (%rsi), %eax shlq $4, %rax movl 16(%rdi,%rax), %eax movl %eax, (%rdx) retq and for i?86: movl 8(%esp), %edx movl 4(%esp), %ecx movl 12(%esp), %eax movzbl (%edx), %edx shll $4, %edx movl 16(%ecx,%edx), %ecx movl %ecx, (%eax) retl for the later case (-m32), gcc generates: movl 8(%esp), %eax movzbl (%eax), %eax addl $1, %eax sall $4, %eax addl 4(%esp), %eax movl (%eax), %edx movl 12(%esp), %eax movl %edx, (%eax) ret so, two extra additions. >>From gcc-bugs-return-613326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:35:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98206 invoked by alias); 22 Aug 2018 07:35:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98104 invoked by uid 48); 22 Aug 2018 07:35:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86947] Erroneous code generated with O2 and O3 for PPC Date: Wed, 22 Aug 2018 07:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cc component everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01615.txt.bz2 Content-length: 800 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86947 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |powerpc Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-22 CC| |rguenth at gcc dot gnu.org Component|c |target Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Can you possibly provide a driver (main() function) that calls abort() when the miscompilation occurs and exits without error if not? >>From gcc-bugs-return-613327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:38:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100306 invoked by alias); 22 Aug 2018 07:38:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100241 invoked by uid 48); 22 Aug 2018 07:38:09 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] [6/7/8/9 Regression] compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Wed, 22 Aug 2018 07:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cf_known_to_work target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01616.txt.bz2 Content-length: 400 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Known to work| |5.4.0 Target Milestone|--- |6.5 >>From gcc-bugs-return-613328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:42:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103683 invoked by alias); 22 Aug 2018 07:42:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103584 invoked by uid 48); 22 Aug 2018 07:41:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/86957] gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use Date: Wed, 22 Aug 2018 07:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibhagatgnu at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01617.txt.bz2 Content-length: 328 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86957 --- Comment #2 from Richard Biener --- I wonder if for assessing the quality of a profile it is somehow possible to dump all functions that got never executed during training? Because all those functions will be optimized as cold by GCC AFAIK. >>From gcc-bugs-return-613329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:43:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105248 invoked by alias); 22 Aug 2018 07:43:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105170 invoked by uid 48); 22 Aug 2018 07:42:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86960] [8/9 Regression] internal compiler error: in coerce_template_parms Date: Wed, 22 Aug 2018 07:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority cf_known_to_work target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01618.txt.bz2 Content-length: 681 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86960 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Priority|P3 |P2 Known to work| |7.3.0 Target Milestone|--- |8.3 Summary|[Regression] internal |[8/9 Regression] internal |compiler error: in |compiler error: in |coerce_template_parms |coerce_template_parms >>From gcc-bugs-return-613330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:44:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107009 invoked by alias); 22 Aug 2018 07:44:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106910 invoked by uid 48); 22 Aug 2018 07:44:22 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] [8/9 Regression] Optimization breaks an unformatted read with implicit loop Date: Wed, 22 Aug 2018 07:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone short_desc cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01619.txt.bz2 Content-length: 887 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Target Milestone|--- |8.3 Summary|Optimization breaks an |[8/9 Regression] |unformatted read with |Optimization breaks an |implicit loop on Mac OS X |unformatted read with | |implicit loop Build|x86_64-darwin | --- Comment #4 from Dominique d'Humieres --- The change occurred between revisions r248853 (2017-06-03, OK) and r249632 (2017-06-25, wrong code), r249092 (pr80988) or r248877 (pr35339)? >>From gcc-bugs-return-613331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 07:55:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120801 invoked by alias); 22 Aug 2018 07:55:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120502 invoked by uid 48); 22 Aug 2018 07:55:38 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86964] Too many debug symbols included, especially for extern globals Date: Wed, 22 Aug 2018 07:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01620.txt.bz2 Content-length: 1190 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86964 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |rguenth at gcc dot gnu.org, | |vries at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed. Debug info is now more complete. Note -feliminate-unused-debug-symbols is only implemented for STABS debugging, n= ot for DWARF and from my reading implementing it for DWARF is what you'd like to see. If you use GCC 8 or newer and LTO and apply dwarf compression using the dwz tool the final debug info will be smaller than with GCC 4.9. Unfortunately dwarf compression doesn't help when not using LTO as it seems to be "confus= ed" by location attributes. Let's make this bug a request for implementing -feliminate-unused-debug-sym= bols for DWARF. >>From gcc-bugs-return-613332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:03:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103751 invoked by alias); 22 Aug 2018 08:01:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99674 invoked by uid 48); 22 Aug 2018 08:00:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86969] [8/9 Regression] ICE (in tsubst_copy) for a generic recursive lambda Date: Wed, 22 Aug 2018 08:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01621.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86969 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |8.3 >>From gcc-bugs-return-613333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:06:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110505 invoked by alias); 22 Aug 2018 08:06:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110429 invoked by uid 48); 22 Aug 2018 08:06:54 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86970] Rejected constexpr expression involving lambdas and inheritance, "use of this in a constant expression" Date: Wed, 22 Aug 2018 08:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01622.txt.bz2 Content-length: 554 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86970 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- clang accepts it. >>From gcc-bugs-return-613334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:09:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113145 invoked by alias); 22 Aug 2018 08:09:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113015 invoked by uid 55); 22 Aug 2018 08:08:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86945] [8/9 Regression] BUG with optimisation of select case statement in gfortran Date: Wed, 22 Aug 2018 08:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01623.txt.bz2 Content-length: 618 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 --- Comment #9 from Richard Biener --- Author: rguenth Date: Wed Aug 22 08:07:36 2018 New Revision: 263761 URL: https://gcc.gnu.org/viewcvs?rev=3D263761&root=3Dgcc&view=3Drev Log: 2018-08-22 Richard Biener PR tree-optimization/86945 * tree-cfg.c (generate_range_test): Use unsigned arithmetic. * gcc.dg/torture/pr86945.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr86945.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-cfg.c >>From gcc-bugs-return-613335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:11:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116387 invoked by alias); 22 Aug 2018 08:11:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115693 invoked by uid 48); 22 Aug 2018 08:10:10 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86971] -Wabi warns it will not warn about anything. Date: Wed, 22 Aug 2018 08:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01624.txt.bz2 Content-length: 525 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86971 --- Comment #4 from Richard Biener --- (In reply to Alexander Monakov from comment #2) > I think the wording of the opening line can be made unambiguous, which is > probably nice for translators. Can we change it to say e.g.: >=20 > cc1plus: warning: -Wabi by itself does not issue any warnings Maybe cc1plus: warning: -Wabi without specified version does not issue any warnin= gs ? Btw, is that true when I use -fabi-version=3D11 -Wabi? >>From gcc-bugs-return-613336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:16:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119127 invoked by alias); 22 Aug 2018 08:15:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118064 invoked by uid 48); 22 Aug 2018 08:13:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86973] [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Wed, 22 Aug 2018 08:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cc target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01625.txt.bz2 Content-length: 418 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 CC| |matz at gcc dot gnu.org Target Milestone|--- |6.5 >>From gcc-bugs-return-613337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:19:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4780 invoked by alias); 22 Aug 2018 08:19:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129300 invoked by uid 48); 22 Aug 2018 08:18:54 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86945] [8 Regression] BUG with optimisation of select case statement in gfortran Date: Wed, 22 Aug 2018 08:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01626.txt.bz2 Content-length: 723 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86945 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Component|fortran |tree-optimization Known to work| |9.0 Summary|[8/9 Regression] BUG with |[8 Regression] BUG with |optimisation of select case |optimisation of select case |statement in gfortran |statement in gfortran Known to fail|9.0 | --- Comment #10 from Richard Biener --- Fixed on trunk sofar. >>From gcc-bugs-return-613338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:20:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11528 invoked by alias); 22 Aug 2018 08:20:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10888 invoked by uid 48); 22 Aug 2018 08:19:57 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86974] Support Clang's require_constant_initialization attribute Date: Wed, 22 Aug 2018 08:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01627.txt.bz2 Content-length: 169 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86974 --- Comment #1 from Richard Biener --- Hmm, can't the thing be just marked constexpr? >>From gcc-bugs-return-613339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:22:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34795 invoked by alias); 22 Aug 2018 08:22:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34704 invoked by uid 48); 22 Aug 2018 08:22:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86979] [9 Regression] ICE: in maybe_record_trace_start, at dwarf2cfi.c:2348 with -m32 on darwin Date: Wed, 22 Aug 2018 08:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01628.txt.bz2 Content-length: 362 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86979 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-apple-darwin Target Milestone|--- |9.0 >>From gcc-bugs-return-613340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:29:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41600 invoked by alias); 22 Aug 2018 08:29:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41484 invoked by uid 48); 22 Aug 2018 08:29:16 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86983] documentation inconsistent with always_inline diagnostics for computed goto Date: Wed, 22 Aug 2018 08:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01629.txt.bz2 Content-length: 1705 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86983 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |documentation Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |hubicka at gcc dot gnu.org, | |jsm28 at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- case GIMPLE_GOTO: t =3D gimple_goto_dest (stmt); /* We will not inline a function which uses computed goto. The addresses of its local labels, which may be tucked into global storage, are of course not constant across instantiations, which causes unexpected behavior. */ if (TREE_CODE (t) !=3D LABEL_DECL) { inline_forbidden_reason =3D G_("function %q+F can never be inlined " "because it contains a computed goto"); *handled_ops_p =3D true; return t; } we have to assume that the goto is to labels of the function or functions inlined into it. We do not seem to compute whether any of those escape (your testcase returns them though). So the wording is correct and the Labels-as-Values documentation is wrong. Of course if we get enough analysis GCC might decide to inline, all the wording always applies to a concrete implementation and is not to be treated as language specification. >>From gcc-bugs-return-613341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:32:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53032 invoked by alias); 22 Aug 2018 08:32:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43676 invoked by uid 48); 22 Aug 2018 08:31:23 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86974] Support Clang's require_constant_initialization attribute Date: Wed, 22 Aug 2018 08:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01630.txt.bz2 Content-length: 209 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86974 --- Comment #2 from Jonathan Wakely --- No because that also makes it const, i.e. immutable. It's useful for non-const globals. >>From gcc-bugs-return-613342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:42:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72226 invoked by alias); 22 Aug 2018 08:42:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71910 invoked by uid 48); 22 Aug 2018 08:42:02 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86984] invalid relocation accessing a const char array Date: Wed, 22 Aug 2018 08:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01631.txt.bz2 Content-length: 438 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86984 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Richard Biener --- Fixed I assume. >>From gcc-bugs-return-613343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:43:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74125 invoked by alias); 22 Aug 2018 08:43:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74080 invoked by uid 48); 22 Aug 2018 08:43:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86985] Generated DWARF does not distinguish between zero-length and flexible array types Date: Wed, 22 Aug 2018 08:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01632.txt.bz2 Content-length: 558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86985 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |vries at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Richard Biener --- Confirmed. >>From gcc-bugs-return-613344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:43:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75050 invoked by alias); 22 Aug 2018 08:43:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 75005 invoked by uid 48); 22 Aug 2018 08:43:47 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86986] [6/7/8/9 Regression] Unexpected errors for template parameter pack in a template template parameter Date: Wed, 22 Aug 2018 08:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01633.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86986 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |6.5 >>From gcc-bugs-return-613345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:52:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98058 invoked by alias); 22 Aug 2018 08:52:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98004 invoked by uid 48); 22 Aug 2018 08:52:05 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86971] -Wabi warns it will not warn about anything. Date: Wed, 22 Aug 2018 08:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01634.txt.bz2 Content-length: 511 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86971 --- Comment #5 from Jonathan Wakely --- (In reply to Richard Biener from comment #4) > ? Btw, is that true when I use -fabi-version=3D11 -Wabi? That will give warnings. -Wabi (with no =3Dn value) is only useless without an explicit -fabi-versio= n, because it means "warn about incompatibilities with the default -fabi-versi= on". If you don't use -fabi-version then you're using the default, and so there = are no differences. >>From gcc-bugs-return-613346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:52:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98876 invoked by alias); 22 Aug 2018 08:52:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98790 invoked by uid 55); 22 Aug 2018 08:52:22 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636 Date: Wed, 22 Aug 2018 08:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01635.txt.bz2 Content-length: 478 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86519 --- Comment #20 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #19 from qinzhao at gcc dot gnu.org --- > which sparc machine was used to repeat the failure, and what's the config= ure > and make options? I just saw there are gcc210 and gcc211 in the compile farm running Solaris 10 and 11 respectively. No specific configure options should be necessary to reproduce this. >>From gcc-bugs-return-613347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:54:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101286 invoked by alias); 22 Aug 2018 08:54:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101221 invoked by uid 48); 22 Aug 2018 08:54:33 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86988] [7/9 Regression] ICE: tree check: expected integer_cst, have var_decl in get_len, at tree.h:5563 Date: Wed, 22 Aug 2018 08:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01636.txt.bz2 Content-length: 1069 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86988 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-22 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Target Milestone|--- |7.4 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Testing diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 24e089b019b..ead19f15996 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -4581,6 +4581,7 @@ vrp_prop::check_mem_ref (location_t location, tree re= f, tree reftype =3D TREE_TYPE (arg); if (POINTER_TYPE_P (reftype) || !COMPLETE_TYPE_P (reftype) + || TREE_CODE (TYPE_SIZE_UNIT (reftype)) !=3D INTEGER_CST || RECORD_OR_UNION_TYPE_P (reftype)) return; for trunk. >>From gcc-bugs-return-613348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:55:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103153 invoked by alias); 22 Aug 2018 08:55:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103075 invoked by uid 48); 22 Aug 2018 08:55:48 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86990] [9 Regression] wrong code at -O2 on x86_64-linux-gnu in 64-bit mode Date: Wed, 22 Aug 2018 08:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01637.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86990 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 >>From gcc-bugs-return-613349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:56:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104069 invoked by alias); 22 Aug 2018 08:56:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104005 invoked by uid 48); 22 Aug 2018 08:56:19 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86991] [8/9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6919 Date: Wed, 22 Aug 2018 08:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01638.txt.bz2 Content-length: 524 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86991 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #2 from Richard Biener --- I will have a look. >>From gcc-bugs-return-613350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 08:56:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104966 invoked by alias); 22 Aug 2018 08:56:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104888 invoked by uid 48); 22 Aug 2018 08:56:48 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86993] [6/7/8/9 Regression] assignment of read-only variable error reported at wrong location Date: Wed, 22 Aug 2018 08:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01639.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86993 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |6.5 >>From gcc-bugs-return-613351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:01:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79797 invoked by alias); 22 Aug 2018 09:01:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79726 invoked by uid 48); 22 Aug 2018 09:01:38 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86995] [9 regression] c-c++-common/torture/builtin-arith-overflow-17.c etc. FAIL Date: Wed, 22 Aug 2018 09:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01640.txt.bz2 Content-length: 1107 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86995 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Priority|P3 |P1 CC| |law at gcc dot gnu.org --- Comment #1 from Richard Biener --- =46rom looking at svn log it must be caused by r263591 | law | 2018-08-16 18:33:43 +0200 (Thu, 16 Aug 2018) | 8 lines * expmed.h (canonicalize_comparison): New declaration. * expmed.c (canonicalize_comparison, equivalent_cmp_code): New function. * expmed.c (emit_store_flag_1): Add call to canonicalize_comparison. * optabs.c (prepare_cmp_insn): Likewise. * rtl.h (unsigned_condition_p): New function which checks if a comparison operator is unsigned. * gcc.target/aarch64/imm_choice_comparison.c: New test. Vlad doesn't seem to have a bugzilla account. >>From gcc-bugs-return-613352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:02:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80563 invoked by alias); 22 Aug 2018 09:02:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80528 invoked by uid 48); 22 Aug 2018 09:02:00 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] New: [9 Regression] GCC does not work when using -pipe Date: Wed, 22 Aug 2018 09:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01641.txt.bz2 Content-length: 1727 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 Bug ID: 87056 Summary: [9 Regression] GCC does not work when using -pipe Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Probably starting from r263679 I see: $ gcc /tmp/empty.c -c -pipe gcc: error: close: No such file or directory abuild@kunlun:~> /tmp/empty.c:1:1: fatal error: error closing -: Broken pipe 1 | int main() {} | ^~~ compilation terminated. when running in GDB: Breakpoint 1, 0x00007ffff7b03520 in close () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff7b03520 in close () from /lib64/libc.so.6 #1 0x0000000000445f21 in pex_run_in_environment (err=3D0x7fffffffe71c, errname=3D, orig_outname=3D, env=3D0x0, argv= =3D, executable=3D, flags=3D, obj=3D0x53fbe0= ) at ../../libiberty/pex-common.c:359 #2 pex_run (obj=3D0x53fbe0, flags=3D, executable=3D, argv=3D, orig_outname=3D, errname=3D, err=3D0x7fffffffe71c) at ../../libiberty/pex-common.c:374 #3 0x000000000045534d in execute() () at ../../gcc/gcc.c:3166 #4 0x0000000000453e29 in do_spec(char const*) () at ../../gcc/gcc.c:4957 #5 0x00000000004535bc in driver::do_spec_on_infiles() const () at ../../gcc/gcc.c:8107 #6 0x0000000000447ae6 in driver::main(int, char**) () at ../../gcc/gcc.c:7= 334 #7 0x0000000000447cb4 in main (argc=3D4, argv=3D0x7fffffffea38) at ../../gcc/gcc-main.c:47 >>From gcc-bugs-return-613353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:04:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109054 invoked by alias); 22 Aug 2018 09:04:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109034 invoked by uid 48); 22 Aug 2018 09:04:48 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] [9 Regression] GCC does not work when using -pipe Date: Wed, 22 Aug 2018 09:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01642.txt.bz2 Content-length: 1337 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-22 Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Would be related to: gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/marxin/Programming/gcc/libiberty/../include -W -Wall -Wwrite-strin= gs -Wc++-compat -Wstrict-prototypes -Wshadow=3Dlocal -pedantic -D_GNU_SOURCE /home/marxin/Programming/gcc/libiberty/pex-unix.c -o pex-unix.o /home/marxin/Programming/gcc/libiberty/pex-unix.c: In function =E2=80=98pex_unix_exec_child=E2=80=99: /home/marxin/Programming/gcc/libiberty/pex-unix.c:659:6: warning: declarati= on of =E2=80=98err=E2=80=99 shadows a parameter [-Wshadow=3Dlocal] int err =3D errno; ^~~ /home/marxin/Programming/gcc/libiberty/pex-unix.c:569:47: note: shadowed declaration is here int toclose, const char **errmsg, int *err) ~~~~~^~~ I'm going to fix it. >>From gcc-bugs-return-613354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:06:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110675 invoked by alias); 22 Aug 2018 09:05:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110617 invoked by uid 48); 22 Aug 2018 09:05:55 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86999] missed FMA optimization with -fassociative-math Date: Wed, 22 Aug 2018 09:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc component short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01643.txt.bz2 Content-length: 961 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86999 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|wrong-code | Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |rguenth at gcc dot gnu.org Component|middle-end |tree-optimization Summary|Incorrect code generation |missed FMA optimization |and missing optimization |with -fassociative-math |with -fno-signed-zeros. | Ever confirmed|0 |1 --- Comment #4 from Richard Biener --- So as far as I understand comment#1 remains. The FMA pass should handle (x +- 1)*y and (1 - x)*y. >>From gcc-bugs-return-613355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:08:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20576 invoked by alias); 22 Aug 2018 09:08:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20530 invoked by uid 48); 22 Aug 2018 09:08:46 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/77854] std::deque doesn't use allocator's size_type and difference_type Date: Wed, 22 Aug 2018 09:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01644.txt.bz2 Content-length: 928 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77854 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |documentation Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org --- Comment #1 from Jonathan Wakely --- Our other containers do the same, which is OK. The standard requires that difference_type "is identical to the difference = type of X::iterator and X::const_iterator" and "size_type can represent any non-negative value of difference_type". So in fact they need to correspond to the container's iterators, not come f= rom the allocator. We do need to document the types though, because they're implementation-defined. >>From gcc-bugs-return-613356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:09:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21572 invoked by alias); 22 Aug 2018 09:09:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21538 invoked by uid 48); 22 Aug 2018 09:09:35 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87006] Stack Protection with Large File support Date: Wed, 22 Aug 2018 09:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01645.txt.bz2 Content-length: 428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87006 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Richard Biener --- =2E >>From gcc-bugs-return-613357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:10:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23068 invoked by alias); 22 Aug 2018 09:10:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23025 invoked by uid 48); 22 Aug 2018 09:10:46 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87007] [8/9 Regression] 10% slowdown with -march=skylake-avx512 Date: Wed, 22 Aug 2018 09:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01646.txt.bz2 Content-length: 362 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87007 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target Milestone|--- |8.3 >>From gcc-bugs-return-613358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:17:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37427 invoked by alias); 22 Aug 2018 09:17:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35763 invoked by uid 48); 22 Aug 2018 09:17:07 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87008] [8/9 Regression] gimple mem-to-mem assignment badly optimized Date: Wed, 22 Aug 2018 09:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01647.txt.bz2 Content-length: 1700 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87008 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |jamborm at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Target Milestone|--- |8.3 Ever confirmed|0 |1 --- Comment #3 from Richard Biener --- (In reply to Marc Glisse from comment #2) > Or just: >=20 > struct A { double a, b; }; > struct B : A {}; > double f(B x){ > B y; > A*px=3D&x; > A*py=3D&y; > *py=3D*px; > return y.a; > } >=20 > MEM[(struct A *)&y] =3D MEM[(const struct A &)&x]; > y_6 =3D MEM[(struct A *)&y]; > y =3D{v} {CLOBBER}; > return y_6; >=20 > where y_6 should be read directly from x. SRA doesn't dare touch it. SCCVN > does see that reading from y is equivalent to reading from x, but unless > something else is already reading from x, it keeps the read from y. Yeah, SCCVN doesn't change the read to one from x because generally it cannot know y will go away and reading from x possibly enlarges its lifetime (no stack sharing). To really handle this we need to expose the way we'd expand such aggregate copies to RTL already at GIMPLE stage. SRA could be the pass that should eventually do that (but of course avoid exposing copy loops or calls to memcpy we might expand to ...). So it boils down to heuristics again... >>From gcc-bugs-return-613359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:26:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117571 invoked by alias); 22 Aug 2018 09:26:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117526 invoked by uid 48); 22 Aug 2018 09:26:14 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] [9 Regression] GCC does not work when using -pipe Date: Wed, 22 Aug 2018 09:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01648.txt.bz2 Content-length: 568 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |nathan at gcc dot gnu.org Assignee|marxin at gcc dot gnu.org |unassigned at gcc d= ot gnu.org --- Comment #2 from Martin Li=C5=A1ka --- No, the warning was here even before.. >>From gcc-bugs-return-613360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:31:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124109 invoked by alias); 22 Aug 2018 09:31:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123401 invoked by uid 48); 22 Aug 2018 09:31:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87008] [8/9 Regression] gimple mem-to-mem assignment badly optimized Date: Wed, 22 Aug 2018 09:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01649.txt.bz2 Content-length: 1428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87008 --- Comment #4 from Richard Biener --- (In reply to Marc Glisse from comment #1) > struct A { double a, b; }; > struct B : A {}; > templatevoid cp(T&a,T const&b){a=3Db;} > double f(B x){ > B y; cp(y,x); > B z; cp(z,x); > return y.a - z.a; > } >=20 > This is not quite equivalent because RTL manages to optimize this case, b= ut > gimple, with -Ofast, still gets the ugly: >=20 > ISRA.1 =3D MEM[(const struct A &)&x]; > SR.9_9 =3D MEM[(struct A *)&ISRA.1]; > ISRA.1 =3D MEM[(const struct A &)&x]; > SR.8_10 =3D MEM[(struct A *)&ISRA.1]; > _3 =3D SR.9_9 - SR.8_10; > return _3; >=20 > Writing cp instead of cp makes it work, and the main difference sta= rts > in SRA. I expect (didn't check) this is another victim of r255510 . The initial IL is too convoluted for early FRE to figure out the equivalenc= es. For the above which is visible to the late FRE the issue is that the redundant aggregate copy gets in the way which isn't detected in early FRE and FRE also doesn't try to remove or detect redundant aggregate copies because we don't really "value-number" aggregate stores. To sum up it - aggregate copies are bad ;) But they also sometimes help - all the vn_reference_op_lookup_3 tricks wouldn't work without them unless you end up with store pieces that always fully cover all downstream loads. >>From gcc-bugs-return-613361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:32:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5934 invoked by alias); 22 Aug 2018 09:32:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5662 invoked by uid 48); 22 Aug 2018 09:32:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87009] Can't find XOR pattern applying De Morgan sequentially Date: Wed, 22 Aug 2018 09:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on component everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01650.txt.bz2 Content-length: 533 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87009 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Component|tree-optimization |middle-end Ever confirmed|0 |1 >>From gcc-bugs-return-613362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:36:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64492 invoked by alias); 22 Aug 2018 09:36:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59179 invoked by uid 48); 22 Aug 2018 09:36:31 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87011] [9 Regression] partially dead memset before strcpy not eliminated Date: Wed, 22 Aug 2018 09:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01651.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87011 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:37:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120124 invoked by alias); 22 Aug 2018 09:37:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114023 invoked by uid 48); 22 Aug 2018 09:37:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87012] [7/8/9 Regression] ICE in verify_unstripped_args_1 Date: Wed, 22 Aug 2018 09:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01652.txt.bz2 Content-length: 557 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87012 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Priority|P3 |P2 Target Milestone|--- |7.4 Summary|[Regression] ICE in |[7/8/9 Regression] ICE in |verify_unstripped_args_1 |verify_unstripped_args_1 >>From gcc-bugs-return-613364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:46:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19834 invoked by alias); 22 Aug 2018 09:45:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19601 invoked by uid 48); 22 Aug 2018 09:45:22 -0000 From: "Hi-Angel at yandex dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] New: in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 09:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Hi-Angel at yandex dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01653.txt.bz2 Content-length: 1977 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 Bug ID: 87057 Summary: in compilation error, gcc should note about deleted copy-constructor Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Hi-Angel at yandex dot ru Target Milestone: --- When, in a code, a copy-constructor deleted but used, GCC issues an absolut= ely unhelpful message that it couldn't convert the argument. "Why can't it?". I= t's extremely difficult to diagnose =E2=80=94 e.g. in my case I had to go down = from a project code to the minimal example below before I could figure it out. The= re's really no other way, except as of magically guessing that some of fields us= ed in the struct being copied has its copy-constructor deleted. FTR: to fix the code below you need to replace `return {ret}` with `return {move(ret)}`. # Steps to reproduce: $ cat test.cpp=20=20=20=20=20=20=20=20=20 #include #include struct PacketErr { std::unique_ptr failed_devices; }; std::variant deserialize(){ PacketErr ret; return {ret}; } int main() {} $ g++ test.cpp -std=3Dc++17 test.cpp: In function =E2=80=98std::variant deserialize()=E2=80=99: test.cpp:10:16: error: could not convert =E2=80=98{ret}=E2=80=99 fr= om =E2=80=98=E2=80=99 to =E2=80=98std::variant=E2=80=99 return {ret}; # Expected GCC should mention that a copy is not possible since there's a copy-constru= ctor deleted. # Actual GCC basically says there's some error at the line =E2=80=94 go figure what = problem is it. >>From gcc-bugs-return-613365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:48:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28653 invoked by alias); 22 Aug 2018 09:48:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28340 invoked by uid 48); 22 Aug 2018 09:48:38 -0000 From: "vinay.m.engg at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86947] Erroneous code generated with O2 and O3 for PPC Date: Wed, 22 Aug 2018 09:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vinay.m.engg at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01654.txt.bz2 Content-length: 504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86947 Vinay Kumar changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vinay.m.engg at gmail dot = com --- Comment #2 from Vinay Kumar --- Created attachment 44571 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44571&action=3Dedit Testcase t1.c >>From gcc-bugs-return-613366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:49:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29748 invoked by alias); 22 Aug 2018 09:49:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29708 invoked by uid 48); 22 Aug 2018 09:49:29 -0000 From: "vinay.m.engg at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86947] Erroneous code generated with O2 and O3 for PPC Date: Wed, 22 Aug 2018 09:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vinay.m.engg at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01655.txt.bz2 Content-length: 236 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86947 --- Comment #3 from Vinay Kumar --- Created attachment 44572 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44572&action=3Dedit Testcase t2.c >>From gcc-bugs-return-613367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:50:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32558 invoked by alias); 22 Aug 2018 09:50:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32511 invoked by uid 48); 22 Aug 2018 09:50:20 -0000 From: "vinay.m.engg at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86947] Erroneous code generated with O2 and O3 for PPC Date: Wed, 22 Aug 2018 09:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vinay.m.engg at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01656.txt.bz2 Content-length: 401 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86947 --- Comment #4 from Vinay Kumar --- Hi Richard, Thanks for checking the bug. Please find attached the testcase that would exit with message "Should NOT BE here" on miscompilation. The behavior is same with other targets as well. We have checked it with latest X86 and Aarch64 targets. gcc t1.c t2.c -O2 -m64 -lm >>From gcc-bugs-return-613368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:52:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34398 invoked by alias); 22 Aug 2018 09:52:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34358 invoked by uid 48); 22 Aug 2018 09:52:10 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Wed, 22 Aug 2018 09:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01657.txt.bz2 Content-length: 523 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at gcc dot gnu.org --- Comment #3 from Richard Biener --- .loc 1 15 1 is_stmt 0 we don't seem to have an assembler test for is_stmt support. Alex? Martin, can you attach gcc/config.log? >>From gcc-bugs-return-613369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:57:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39102 invoked by alias); 22 Aug 2018 09:57:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39063 invoked by uid 48); 22 Aug 2018 09:57:05 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87015] [8/9 Regression] miscompilation of template heavy Boost Spirit code Date: Wed, 22 Aug 2018 09:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01658.txt.bz2 Content-length: 755 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87015 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org Target Milestone|--- |8.3 Summary|[8 Regression] |[8/9 Regression] |miscompilation of template |miscompilation of template |heavy Boost Spirit code |heavy Boost Spirit code --- Comment #3 from Richard Biener --- Can you check with a snapshot of the GCC 8 branch after 2018-08-17 (includi= ng the fix for PR86763)? >>From gcc-bugs-return-613370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 09:58:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40775 invoked by alias); 22 Aug 2018 09:58:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40717 invoked by uid 48); 22 Aug 2018 09:58:28 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87022] [8/9 Regression] miscompilation with -ftree-loop-distribution Date: Wed, 22 Aug 2018 09:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cf_known_to_work version target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01659.txt.bz2 Content-length: 455 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87022 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Known to work| |7.3.0 Version|unknown |8.2.1 Target Milestone|--- |8.3 >>From gcc-bugs-return-613371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:05:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49096 invoked by alias); 22 Aug 2018 10:05:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49037 invoked by uid 48); 22 Aug 2018 10:05:19 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/4898] adding an option to verify exception specifications Date: Wed, 22 Aug 2018 10:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01660.txt.bz2 Content-length: 344 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D4898 --- Comment #5 from Eric Gallager --- (In reply to Jonathan Wakely from comment #4) > Dynamic exception specifications are no longer part of the C++ language > anyway. Well, in newer standards at least, but they were at one point in an older standard, right? >>From gcc-bugs-return-613372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:07:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51016 invoked by alias); 22 Aug 2018 10:07:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50941 invoked by uid 48); 22 Aug 2018 10:07:45 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused Date: Wed, 22 Aug 2018 10:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01661.txt.bz2 Content-length: 611 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79695 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dodji at gcc dot gnu.org --- Comment #4 from Eric Gallager --- (In reply to Martin Sebor from comment #1) > Let me correct that: GCC warns on the first two variables, not on the loc= al > one defined in function g(). It used to warn on it until r145440. cc-ing Dodji who did that commit >>From gcc-bugs-return-613373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:08:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52085 invoked by alias); 22 Aug 2018 10:08:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52021 invoked by uid 48); 22 Aug 2018 10:08:23 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87024] ICE in fold_stmt_1 Date: Wed, 22 Aug 2018 10:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status version assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01662.txt.bz2 Content-length: 520 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87024 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Version|unknown |9.0 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #2 from Richard Biener --- Testing patch. >>From gcc-bugs-return-613374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:08:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55222 invoked by alias); 22 Aug 2018 10:08:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54561 invoked by uid 48); 22 Aug 2018 10:08:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87024] [6/7/8/9 Regression] ICE in fold_stmt_1 Date: Wed, 22 Aug 2018 10:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01663.txt.bz2 Content-length: 483 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87024 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |6.5 Summary|ICE in fold_stmt_1 |[6/7/8/9 Regression] ICE in | |fold_stmt_1 >>From gcc-bugs-return-613376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:09:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57666 invoked by alias); 22 Aug 2018 10:09:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57613 invoked by uid 48); 22 Aug 2018 10:09:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Wed, 22 Aug 2018 10:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01665.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:09:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56943 invoked by alias); 22 Aug 2018 10:09:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56880 invoked by uid 48); 22 Aug 2018 10:09:31 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87025] [9 Regression] ICE in add_record, at optinfo-emit-json.cc:175 Date: Wed, 22 Aug 2018 10:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc version target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01664.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87025 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org Version|unknown |9.0 Target Milestone|--- |9.0 >>From gcc-bugs-return-613377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:12:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64320 invoked by alias); 22 Aug 2018 10:12:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64087 invoked by uid 48); 22 Aug 2018 10:12:12 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/43454] warning with -Wall despite __attribute__ ((__unused__)) Date: Wed, 22 Aug 2018 10:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.4.3 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01666.txt.bz2 Content-length: 496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D43454 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |dodji at gcc dot gnu.org --- Comment #3 from Eric Gallager --- cc-ing diagnostics maintainers >>From gcc-bugs-return-613378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:20:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96189 invoked by alias); 22 Aug 2018 10:20:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96140 invoked by uid 48); 22 Aug 2018 10:20:18 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/87058] New: FAIL: gnat.dg/slice7.adb (test for excess errors) Date: Wed, 22 Aug 2018 10:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01667.txt.bz2 Content-length: 1688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87058 Bug ID: 87058 Summary: FAIL: gnat.dg/slice7.adb (test for excess errors) Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- I see this extra fail when running the testsuite with --enable-checking=3Dy= es on the branch. It is +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+^M | 8.2.1 20180822 (x86_64-pc-linux-gnu) in add_expr, at tree.c:7277 = |^M | Error detected around /space/rguenther/src/svn/gcc-8-branch/gcc/testsuite/gnat.dg/slice7.adb:35:3= |^M | Please submit a bug report; see https://gcc.gnu.org/bugs/ . = |^M | Use a subject line meaningful to you and us to track the bug. = |^M | Include the entire contents of this bug box in the report. = |^M | Include the exact command that you entered. = |^M | Also include sources listed below. = |^M +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= +^M case INTEGER_CST: gcc_checking_assert (!(flags & OEP_ADDRESS_OF)); for (i =3D 0; i < TREE_INT_CST_EXT_NUNITS (t); i++) >>From gcc-bugs-return-613379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:36:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59464 invoked by alias); 22 Aug 2018 10:36:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59407 invoked by uid 48); 22 Aug 2018 10:36:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Wed, 22 Aug 2018 10:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc component everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01668.txt.bz2 Content-length: 1304 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Component|target |tree-optimization Ever confirmed|0 |1 --- Comment #3 from Richard Biener --- size: 24-3, last_iteration: 19-3 Loop size: 24 Estimated size after unrolling: 24 so GCC estimates that unrolling doesn't change size. It arrives here by applying it's "unrolling saves 1/3 of insns" heuristic. First of all this isn't controlled by a --param but hard-coded. Second, it wasn't reduced after we improved estimates of what is optimized away. Third, we probably shouldn't apply this when optimizing the loop for size (aka UL_NO_GROWTH). Honza? Any opinion on the above? Did you ever try removing that * 2/3 completely? >>From gcc-bugs-return-613380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:38:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61316 invoked by alias); 22 Aug 2018 10:38:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61256 invoked by uid 48); 22 Aug 2018 10:38:27 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87033] The compiler does not generate the LWAX instruction Date: Wed, 22 Aug 2018 10:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01669.txt.bz2 Content-length: 385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87033 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #3 from Richard Biener --- fixed? >>From gcc-bugs-return-613381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:39:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73568 invoked by alias); 22 Aug 2018 10:39:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73430 invoked by uid 48); 22 Aug 2018 10:39:05 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87034] [9 Regression] missing -Wformat-overflow on a sprintf %s with a wide string Date: Wed, 22 Aug 2018 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01670.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87034 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:40:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99024 invoked by alias); 22 Aug 2018 10:40:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98886 invoked by uid 48); 22 Aug 2018 10:40:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Wed, 22 Aug 2018 10:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01671.txt.bz2 Content-length: 154 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 --- Comment #5 from Richard Biener --- I think even -Wall makes sense. >>From gcc-bugs-return-613383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:41:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99988 invoked by alias); 22 Aug 2018 10:41:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99892 invoked by uid 48); 22 Aug 2018 10:41:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87039] [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp Date: Wed, 22 Aug 2018 10:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01672.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87039 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.3 >>From gcc-bugs-return-613384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:43:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97681 invoked by alias); 22 Aug 2018 10:43:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92433 invoked by uid 48); 22 Aug 2018 10:42:55 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] [8/9 Regression] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Wed, 22 Aug 2018 10:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01673.txt.bz2 Content-length: 693 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Target Milestone|--- |8.3 Summary|GCC 8 regression: -Wformat |[8/9 Regression] GCC 8 |"reading through null |regression: -Wformat |pointer" on unreachable |"reading through null |code |pointer" on unreachable | |code >>From gcc-bugs-return-613385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:49:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112086 invoked by alias); 22 Aug 2018 10:49:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111965 invoked by uid 48); 22 Aug 2018 10:49:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87042] UBSAN: poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long int' Date: Wed, 22 Aug 2018 10:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01674.txt.bz2 Content-length: 783 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87042 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Hmm. Those poly_offset params should have got poly_offset_int instead of poly_uint64 (they were HOST_WIDE_INT though, not offset_int). Well, we should fix it nevertheless, but fixing comes at a cost :/ The particular case might be fixed by simply guarding the fold_ctor_referen= ce call for too big offset. >>From gcc-bugs-return-613386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:57:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118022 invoked by alias); 22 Aug 2018 10:57:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117966 invoked by uid 48); 22 Aug 2018 10:57:50 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87043] maybe-uninitialized warning for initialized variable Date: Wed, 22 Aug 2018 10:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01675.txt.bz2 Content-length: 1888 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87043 --- Comment #1 from Richard Biener --- In .original I see if (world_rank =3D=3D 0) { ... stat.0 =3D 0; error_messages.data =3D (void * restrict) __builtin_mal= loc (MAX_EXPR ); if (__builtin_expect ((integer(kind=3D8)) (error_messages.data =3D=3D 0B), 0, 40)) { stat.0 =3D 5014; } } } if (stat.0 =3D=3D 0) { error_messages.dim[0].lbound =3D 1; error_messages.dim[0].ubound =3D (integer(kind=3D8)) world_= size; error_messages.dim[0].stride =3D 1; error_messages.offset =3D -1; } if (__builtin_expect ((integer(kind=3D8)) (stat.0 !=3D 0), 0, 4= 0)) goto L.2; L.2:; allocstat =3D stat.0; } ... L.1:; if (world_rank =3D=3D 0) { { integer(kind=3D4) limit.4; character(kind=3D1)[0:][1:80] * restrict D.3813; integer(kind=3D8) D.3814; integer(kind=3D8) D.3815; integer(kind=3D8) D.3816; limit.4 =3D -2147483648; D.3813 =3D (character(kind=3D1)[0:][1:80] * restrict) error_messages.data; D.3814 =3D error_messages.offset; D.3815 =3D error_messages.dim[0].lbound; D.3816 =3D error_messages.dim[0].ubound; so when error_messages allocation fails then you access uninitialized error_messages. Not sure if allocate(error_messages(world_size), stat=3Dallocstat) max_err_len =3D maxval(len_trim(error_messages)) is well-defined fortran iff allocation fails? I suppose not, so warning is correct, testcase is broken? >>From gcc-bugs-return-613387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 10:59:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120670 invoked by alias); 22 Aug 2018 10:59:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120609 invoked by uid 48); 22 Aug 2018 10:59:11 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87046] Incorrect vectorization of fma with -O3 Date: Wed, 22 Aug 2018 10:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01676.txt.bz2 Content-length: 566 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87046 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-bisection CC| |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- Martin, can you bisect what fixed this? >>From gcc-bugs-return-613388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:02:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125585 invoked by alias); 22 Aug 2018 11:02:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125446 invoked by uid 55); 22 Aug 2018 11:02:30 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86988] [7/9 Regression] ICE: tree check: expected integer_cst, have var_decl in get_len, at tree.h:5563 Date: Wed, 22 Aug 2018 11:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01677.txt.bz2 Content-length: 599 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86988 --- Comment #2 from Richard Biener --- Author: rguenth Date: Wed Aug 22 11:01:58 2018 New Revision: 263762 URL: https://gcc.gnu.org/viewcvs?rev=3D263762&root=3Dgcc&view=3Drev Log: 2018-08-22 Richard Biener PR tree-optimization/86988 * tree-vrp.c (vrp_prop::check_mem_ref): Bail out on VLAs. * g++.dg/pr86988.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/pr86988.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vrp.c >>From gcc-bugs-return-613389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:03:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127271 invoked by alias); 22 Aug 2018 11:03:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127200 invoked by uid 48); 22 Aug 2018 11:03:30 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Wed, 22 Aug 2018 11:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget component target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01678.txt.bz2 Content-length: 419 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-*, i?86-*-* Component|rtl-optimization |target Target Milestone|--- |7.4 >>From gcc-bugs-return-613390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:04:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128203 invoked by alias); 22 Aug 2018 11:04:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128172 invoked by uid 48); 22 Aug 2018 11:04:14 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/87048] [9 Regression] array_constructor_8.f90 failure on armeb Date: Wed, 22 Aug 2018 11:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01679.txt.bz2 Content-length: 408 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87048 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |armeb --- Comment #1 from Richard Biener --- Odd bisection result so not exact revision? >>From gcc-bugs-return-613391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:07:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18508 invoked by alias); 22 Aug 2018 11:07:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18469 invoked by uid 48); 22 Aug 2018 11:07:35 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87049] __clear_cache() prototype confusion Date: Wed, 22 Aug 2018 11:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01680.txt.bz2 Content-length: 653 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87049 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |daney at gcc dot gnu.org Component|c |middle-end Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- probably easiest to rectify the builtin type. >>From gcc-bugs-return-613392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:11:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40263 invoked by alias); 22 Aug 2018 11:11:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40184 invoked by uid 48); 22 Aug 2018 11:11:21 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87033] The compiler does not generate the LWAX instruction Date: Wed, 22 Aug 2018 11:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01681.txt.bz2 Content-length: 655 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87033 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc64-linux-gnu-*, |powerpc*-*-* |powerpc64le-linux-gnu-* | Host|powerpc64-linux-gnu-*, | |powerpc64le-linux-gnu-* | Build|powerpc64-linux-gnu-*, | |powerpc64le-linux-gnu-* | --- Comment #4 from Segher Boessenkool --- Backports are wanted still. >>From gcc-bugs-return-613393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:22:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77596 invoked by alias); 22 Aug 2018 11:22:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77481 invoked by uid 48); 22 Aug 2018 11:22:00 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87054] misaligned asm output is turned into dereferenced pointer-to-aligned Date: Wed, 22 Aug 2018 11:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01682.txt.bz2 Content-length: 1922 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87054 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 CC| |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- there's no member 'unpacked'. With chaning 'c' to unpacked and using "+x" = on x86_64 I see _2 =3D &b[i].unpacked; _3 =3D *_2; __asm__("" : "=3Dx" *_2 : "0" _3); which is probably what you refer to. Can you test the following? The code indeed seems to be overly simplistic.= .. diff --git a/gcc/gimplify.c b/gcc/gimplify.c index e35137aec2c..117e5fcedc9 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -12540,9 +12540,15 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, /* An lvalue will do. Take the address of the expression, store it in a temporary, and replace the expression with an INDIRECT_REF of that temporary. */ + tree ref_alias_type =3D reference_alias_ptr_type (*expr_p); + unsigned int ref_align =3D get_object_alignment (*expr_p); + tree ref_type =3D TREE_TYPE (*expr_p); tmp =3D build_fold_addr_expr_loc (input_location, *expr_p); gimplify_expr (&tmp, pre_p, post_p, is_gimple_reg, fb_rvalue); - *expr_p =3D build_simple_mem_ref (tmp); + if (TYPE_ALIGN (ref_type) !=3D ref_align) + ref_type =3D build_aligned_type (ref_type, ref_align); + *expr_p =3D build2 (MEM_REF, ref_type, + tmp, build_zero_cst (ref_alias_type)); } else if ((fallback & fb_rvalue) && is_gimple_reg_rhs_or_call (*expr_p)) { >>From gcc-bugs-return-613394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:30:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83411 invoked by alias); 22 Aug 2018 11:30:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83087 invoked by uid 48); 22 Aug 2018 11:30:00 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87046] Incorrect vectorization of fma with -O3 Date: Wed, 22 Aug 2018 11:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01683.txt.bz2 Content-length: 142 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87046 --- Comment #3 from Martin Li=C5=A1ka --- Fixed in r259840. >>From gcc-bugs-return-613396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:37:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113232 invoked by alias); 22 Aug 2018 11:37:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109319 invoked by uid 55); 22 Aug 2018 11:37:35 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52795] FAIL: gcc.dg/tree-prof/pr34999.c compilation, -fprofile-use -D_PROFILE_USE on {x86_64,i386}-apple-darwin{10,11} at -m64 Date: Wed, 22 Aug 2018 11:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01685.txt.bz2 Content-length: 770 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52795 --- Comment #10 from Iain Sandoe --- Author: iains Date: Wed Aug 22 11:37:02 2018 New Revision: 263763 URL: https://gcc.gnu.org/viewcvs?rev=3D263763&root=3Dgcc&view=3Drev Log: Fix FDE labels for Darwin gcc/ PR bootstrap/81033 PR target/81733 PR target/52795 * gcc/dwarf2out.c (FUNC_SECOND_SECT_LABEL): New. (dwarf2out_switch_text_section): Generate a local label for the sec= ond function sub-section and apply it as the second FDE start label. * gcc/final.c (final_scan_insn_1): Emit second FDE label after the second sub-section start. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/final.c >>From gcc-bugs-return-613397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:37:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113390 invoked by alias); 22 Aug 2018 11:37:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109204 invoked by uid 55); 22 Aug 2018 11:37:35 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/81733] stage1 libgcc_s.dylib fails to link on Darwin 11/x86_64 Date: Wed, 22 Aug 2018 11:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01686.txt.bz2 Content-length: 770 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81733 --- Comment #18 from Iain Sandoe --- Author: iains Date: Wed Aug 22 11:37:02 2018 New Revision: 263763 URL: https://gcc.gnu.org/viewcvs?rev=3D263763&root=3Dgcc&view=3Drev Log: Fix FDE labels for Darwin gcc/ PR bootstrap/81033 PR target/81733 PR target/52795 * gcc/dwarf2out.c (FUNC_SECOND_SECT_LABEL): New. (dwarf2out_switch_text_section): Generate a local label for the sec= ond function sub-section and apply it as the second FDE start label. * gcc/final.c (final_scan_insn_1): Emit second FDE label after the second sub-section start. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/final.c >>From gcc-bugs-return-613395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:37:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113048 invoked by alias); 22 Aug 2018 11:37:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109478 invoked by uid 55); 22 Aug 2018 11:37:35 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/81033] [8/9 Regression] there are cases where ld64 is not able to determine correct atom boundaries from the output GCC currently produces Date: Wed, 22 Aug 2018 11:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: build, patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01684.txt.bz2 Content-length: 770 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81033 --- Comment #45 from Iain Sandoe --- Author: iains Date: Wed Aug 22 11:37:02 2018 New Revision: 263763 URL: https://gcc.gnu.org/viewcvs?rev=3D263763&root=3Dgcc&view=3Drev Log: Fix FDE labels for Darwin gcc/ PR bootstrap/81033 PR target/81733 PR target/52795 * gcc/dwarf2out.c (FUNC_SECOND_SECT_LABEL): New. (dwarf2out_switch_text_section): Generate a local label for the sec= ond function sub-section and apply it as the second FDE start label. * gcc/final.c (final_scan_insn_1): Emit second FDE label after the second sub-section start. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/final.c >>From gcc-bugs-return-613398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:39:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29704 invoked by alias); 22 Aug 2018 11:39:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29658 invoked by uid 48); 22 Aug 2018 11:39:52 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Wed, 22 Aug 2018 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01687.txt.bz2 Content-length: 1002 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 Alexandre Oliva changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot g= nu.org --- Comment #4 from Alexandre Oliva --- Created attachment 44573 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44573&action=3Dedit untested candidate patch Yeah, it looks like we never checked for is_stmt support; we had it in unconditionally, but it was never exercised, so it didn't come up. This patch should be enough to avoid the problem, provided that gcc/configu= re and gcc/config.in are regenerated after putting the configure.ac change in. I'll turn that into a proper patch eventually, but I'd appreciate confirmat= ion that it does solve the problem indeed. Thanks, >>From gcc-bugs-return-613400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:42:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58806 invoked by alias); 22 Aug 2018 11:42:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58685 invoked by uid 48); 22 Aug 2018 11:42:18 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/85597] [6 Regression] internal compiler error: in compute_live_loop_exits, at tree-ssa-loop-manip.c:229 Date: Wed, 22 Aug 2018 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01689.txt.bz2 Content-length: 441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85597 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yates at cscs dot ch --- Comment #9 from Richard Biener --- *** Bug 87046 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:42:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58748 invoked by alias); 22 Aug 2018 11:42:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58643 invoked by uid 48); 22 Aug 2018 11:42:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87046] Incorrect vectorization of fma with -O3 Date: Wed, 22 Aug 2018 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01688.txt.bz2 Content-length: 493 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87046 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Richard Biener --- Dup. *** This bug has been marked as a duplicate of bug 85597 *** >>From gcc-bugs-return-613401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:43:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76683 invoked by alias); 22 Aug 2018 11:43:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74165 invoked by uid 48); 22 Aug 2018 11:43:35 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/4898] adding an option to verify exception specifications Date: Wed, 22 Aug 2018 11:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01690.txt.bz2 Content-length: 1093 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D4898 --- Comment #6 from Jonathan Wakely --- Yes, but IMHO it would be a huge waste of time to add a ton of new machiner= y to the compiler to check for "correct" usage of an obsolete feature. Most C++98 code didn't even use them, because they were not useful. Most code still us= ing them should never have used them in the first place, because they don't work the way people think. C++ is not Java. =46rom the original rationale: (In reply to luc.maisonobe from comment #0) > C++ allows to specify exceptions in the function declaration > but do not enforces it. When lots of classes and methods are > involved, maintaining up-to-date specifications is very > difficult, and every missed exception create runtime > problems (unexpected exception -> abort -> core dumped). For That's a reason to avoid using them, not a reason to complicate the compile= r. > the moment the lack of support tools prevents developers > from using these specifications effectively. Even with tooling they can't be used effectively. >>From gcc-bugs-return-613402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:49:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110674 invoked by alias); 22 Aug 2018 11:49:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110179 invoked by uid 48); 22 Aug 2018 11:48:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/4898] adding an option to verify exception specifications Date: Wed, 22 Aug 2018 11:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01691.txt.bz2 Content-length: 1228 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D4898 --- Comment #7 from Jonathan Wakely --- (In reply to Martin Sebor from comment #2) > I agree a new warning would be useful. For example, the following code sh= ould > be diagnosed: >=20 > struct S { S () throw () { throw 0; } }; This is still relevant in current standards, where throw() is equivalent to noexcept. Clang warns: throw.cc:1:28: warning: 'S' has a non-throwing exception specification but = can still throw [-Wexceptions] struct S { S () throw () { throw 0; } }; ^ throw.cc:1:12: note: function declared non-throwing here struct S { S () throw () { throw 0; } }; ^ ~~~~~~~~ 1 warning generated. GCC only warns if we replace throw() with noexcept: struct S { S () noexcept { throw 0; } }; throw.cc: In constructor 'S::S()': throw.cc:1:34: warning: throw will always call terminate() [-Wterminate] 1 | struct S { S () noexcept { throw ""; } }; | ^~ We should warn for the equivalent throw() as well. > as should this: >=20 > struct S { S () throw (int) { throw ""; } }; Clang doesn't bother warning about this, with -std=3Dc++98 or any other mod= e. >>From gcc-bugs-return-613403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:52:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118585 invoked by alias); 22 Aug 2018 11:52:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118522 invoked by uid 48); 22 Aug 2018 11:52:18 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87055] Unoptimal address calculation Date: Wed, 22 Aug 2018 11:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01692.txt.bz2 Content-length: 1889 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87055 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |x86_64-*-*, i?86-*-* Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Isn't that a target (cost) issue? Failed to match this instruction: (set (reg:SI 94) (mem:SI (plus:DI (sign_extract:DI (mult:DI (subreg:DI (plus:SI (reg/v:S= I 89 [ i ]) (const_int 1 [0x1])) 0) (const_int 4 [0x4])) (const_int 34 [0x22]) (const_int 0 [0])) (symbol_ref:DI ("a") [flags 0x2] ))= [1 a S4 A32])) looks like the usual type issue to me since it works with i being long where combine then successfully matches (set (reg:SI 93) (mem:SI (plus:DI (mult:DI (reg/v:DI 89 [ i ]) (const_int 4 [0x4])) (const:DI (plus:DI (symbol_ref:DI ("a") [flags 0x2] ) (const_int 4 [0x4])))) [1 a S4 A32])) I guess we need to exploit the undefined overflow of i+1 on GIMPLE though which would mean handling this in a IVOPTs-like pass (SLSR?). Or we need to promote address computation parts (array indexes) earlier. Or we need to avoid using a DImode multiply for SImode indexes... (we only need a widening multiply). Anyway, clang correctly doesn't optimize int a[256]; int foo (unsigned int i) { return a[i+1]; } I think we have a duplicate of this bug somewhere. >>From gcc-bugs-return-613404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:53:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119523 invoked by alias); 22 Aug 2018 11:53:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119437 invoked by uid 48); 22 Aug 2018 11:53:01 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] [9 Regression] GCC does not work when using -pipe Date: Wed, 22 Aug 2018 11:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01693.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 11:55:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105088 invoked by alias); 22 Aug 2018 11:55:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104969 invoked by uid 48); 22 Aug 2018 11:55:44 -0000 From: "anton at samba dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87059] New: internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Wed, 22 Aug 2018 11:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anton at samba dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01694.txt.bz2 Content-length: 3646 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Bug ID: 87059 Summary: internal compiler error: in set_value_range, at tree-vrp.c:289 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: anton at samba dot org CC: meissner at gcc dot gnu.org, segher at gcc dot gnu.org, wschmidt at gcc dot gnu.org Target Milestone: --- Target: powerpc64le-linux The following test case: #include void d(void); char *a, *b; void c(void) { if (b =3D=3D a) return; if (strncmp(a, "", b - a)) d(); } hits an ICE on trunk: gcc -O2 test.c during RTL pass: expand test.c: In function =E2=80=98c=E2=80=99: test.c:9:7: internal compiler error: in set_value_range, at tree-vrp.c:289 9 | if (strncmp(a, "", b - a)) | ^~~~~~~~~~~~~~~~~~~~~ 0x10d3ceb7 set_value_range(value_range*, value_range_type, tree_node*, tree_node*, bitmap_head*) ../../gcc/gcc/tree-vrp.c:289 0x10d4106f extract_range_from_binary_expr_1(value_range*, tree_code, tree_node*, value_range*, value_range*) ../../gcc/gcc/tree-vrp.c:1893 0x10d43a2b determine_value_range_1 ../../gcc/gcc/tree-vrp.c:6866 0x10d43cbf determine_value_range(tree_node*, generic_wide_int*, generic_wide_int*) ../../gcc/gcc/tree-vrp.c:6901 0x1036385b get_size_range(tree_node*, tree_node**, bool) ../../gcc/gcc/calls.c:1258 0x10369c5b maybe_warn_nonstring_arg(tree_node*, tree_node*) ../../gcc/gcc/calls.c:1617 0x1036c003 initialize_argument_information ../../gcc/gcc/calls.c:2197 0x1036d367 expand_call(tree_node*, rtx_def*, int) ../../gcc/gcc/calls.c:3577 0x103454ef expand_builtin_strncmp ../../gcc/gcc/builtins.c:4793 0x10355f5b expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/gcc/builtins.c:7445 0x1052816f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:10943 0x10542cc3 expand_expr ../../gcc/gcc/expr.h:279 0x10542cc3 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/gcc/expr.c:8456 0x10528703 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:11230 0x1053958f expand_expr ../../gcc/gcc/expr.h:279 0x1053958f store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc/gcc/expr.c:5556 0x1053b6a3 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/gcc/expr.c:5420 0x10388133 expand_call_stmt ../../gcc/gcc/cfgexpand.c:2685 0x10388133 expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3575 0x10388133 expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:3734 The CI that tripped up on this started failing at: commit 9e4ef9eec6c786e3edbdcb7f26a1d735c9d7f4b9 Author: aldyh Date: Tue Aug 21 06:27:14 2018 +0000 * wide-int-range.cc (wide_int_range_abs): New. (wide_int_range_order_set): Rename from wide_int_range_min_max. * wide-int-range.h (wide_int_range_abs): New. (wide_int_range_min_max): New. * tree-vrp.c (extract_range_from_unary_expr): Rewrite ABS_EXPR case to call wide_int_range_abs. Rewrite MIN/MAX_EXPR to call wide_int_range_min_max. (extract_range_from_abs_expr): Delete. >>From gcc-bugs-return-613406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:02:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110239 invoked by alias); 22 Aug 2018 12:02:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110196 invoked by uid 48); 22 Aug 2018 12:02:10 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 12:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01695.txt.bz2 Content-length: 3048 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 --- Comment #1 from Jonathan Wakely --- (In reply to Konstantin Kharlamov from comment #0) > When, in a code, a copy-constructor deleted but used, GCC issues an > absolutely unhelpful message that it couldn't convert the argument. "Why > can't it?". It's extremely difficult to diagnose =E2=80=94 e.g. in my cas= e I had to > go down from a project code to the minimal example below before I could > figure it out. There's really no other way, except as of magically guessi= ng > that some of fields used in the struct being copied has its copy-construc= tor > deleted. >=20 > FTR: to fix the code below you need to replace `return {ret}` with `return > {move(ret)}`. >=20 > # Steps to reproduce: >=20 > $ cat test.cpp=20=20=20=20=20=20=20=20=20 > #include > #include >=20 > struct PacketErr { > std::unique_ptr failed_devices; > }; >=20 > std::variant deserialize(){ > PacketErr ret; > return {ret}; > } >=20 > int main() {} > $ g++ test.cpp -std=3Dc++17 > test.cpp: In function =E2=80=98std::variant > deserialize()=E2=80=99: > test.cpp:10:16: error: could not convert =E2=80=98{ret}=E2=80=99 from = =E2=80=98 initializer list>=E2=80=99 to =E2=80=98std::variant=E2=80=99 > return {ret}; >=20 > # Expected >=20 > GCC should mention that a copy is not possible since there's a > copy-constructor deleted. I don't think that's really plausible. If fails because you cannot construct the variant type from a PacketErr lvalue, because it fails the SFINAE constraints. For the compiler to tell you why it fails them it would have to analyse tho= se constraints and tell you that __is_accepted_index returns variant_npos, bec= ause none of the alternatives can be constructed from PacketErr&. It would then = have to look at each alternative and see why each one fails, and then whether th= at is worth reporting to the user. So it would have to try to convert PacketEr= r& to monostate, and decide if any of the reasons for failure was useful to report. Then it would have to try to convert PacketErr& to PacketErr, and s= ee if any of the reasons for failure was useful to report. That would require a lot of special-casing just for std::variant. Clang does print a lot more info, including this: /home/jwakely/gcc/latest/lib/gcc/x86_64-pc-linux-gnu/9.0.0/../../../../incl= ude/c++/9.0.0/variant:1093:2: note: candidate template ignored: substitution failure [with _Tp =3D Packet= Err &, $1 =3D void, $2 =3D void]: implicit instantiation of undefined template 'std::variant::__to_type_impl<18446744073709551615, false>' variant(_Tp&& __t) ^ But that still doesn't come close to telling you that the type is not copya= ble. N.B. If you just write "return ret;" it will compile fine. In general "retu= rn x;" is better than "return {x};" because it doesn't prevent NRVO. >>From gcc-bugs-return-613407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:11:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17968 invoked by alias); 22 Aug 2018 12:11:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17494 invoked by uid 48); 22 Aug 2018 12:11:17 -0000 From: "Hi-Angel at yandex dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 12:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: Hi-Angel at yandex dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01696.txt.bz2 Content-length: 1599 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 --- Comment #2 from Konstantin Kharlamov --- (In reply to Jonathan Wakely from comment #1) > That would require a lot of special-casing just for std::variant. Well, I think, in place of std::variant there could be any struct-wrapper; = but I get it. > Clang does print a lot more info, including this: >=20 > /home/jwakely/gcc/latest/lib/gcc/x86_64-pc-linux-gnu/9.0.0/../../../../ > include/c++/9.0.0/variant:1093:2: note: candidate template ignored: > substitution failure [with _Tp =3D PacketErr &, $1 =3D void, $2 =3D void]: > implicit instantiation of undefined template > 'std::variant PacketErr>::__to_type_impl<18446744073709551615, false>' > variant(_Tp&& __t) > ^ >=20 > But that still doesn't come close to telling you that the type is not > copyable. Actually, GCC does give the like output if you'd replace `return {ret}` with explicit `return std::variant{ret}`, though it doesn't hint about the type being non-copyable either. > N.B. If you just write "return ret;" it will compile fine. In general > "return x;" is better than "return {x};" because it doesn't prevent NRVO. Thanks, I prefer the `{x}` to just `x` because in the latter I'm being expl= icit that the `x` is not the type I'm returning, but there's some other type that it's being wrapped to. As far as such trivial optimizations concerned, I'd prefer to rely on the compiler figuring that out =E2=80=94 in the end, that's why we don't write = assembly, right? =3D) >>From gcc-bugs-return-613410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:12:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21363 invoked by alias); 22 Aug 2018 12:12:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21272 invoked by uid 48); 22 Aug 2018 12:12:50 -0000 From: "Hi-Angel at yandex dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 12:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: Hi-Angel at yandex dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01699.txt.bz2 Content-length: 277 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 --- Comment #3 from Konstantin Kharlamov --- (In reply to Konstantin Kharlamov from comment #2) > Thanks, I prefer the `{x}` to just `x` because in the latter I'm being *"in the former", sorry. >>From gcc-bugs-return-613408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:12:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19021 invoked by alias); 22 Aug 2018 12:12:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18889 invoked by uid 55); 22 Aug 2018 12:11:50 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/77854] std::deque doesn't use allocator's size_type and difference_type Date: Wed, 22 Aug 2018 12:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01697.txt.bz2 Content-length: 731 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77854 --- Comment #2 from Jonathan Wakely --- Author: redi Date: Wed Aug 22 12:11:17 2018 New Revision: 263767 URL: https://gcc.gnu.org/viewcvs?rev=3D263767&root=3Dgcc&view=3Drev Log: PR libstdc++/77854 document size_type for containers PR libstdc++/77854 * doc/xml/manual/status_cxx1998.xml: Document size_type and difference_type for containers. * doc/html/*: Regenerate. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/doc/html/manual/abi.html trunk/libstdc++-v3/doc/html/manual/bugs.html trunk/libstdc++-v3/doc/html/manual/status.html trunk/libstdc++-v3/doc/xml/manual/status_cxx1998.xml >>From gcc-bugs-return-613409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:12:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19998 invoked by alias); 22 Aug 2018 12:12:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19944 invoked by uid 48); 22 Aug 2018 12:12:16 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/77854] std::deque doesn't use allocator's size_type and difference_type Date: Wed, 22 Aug 2018 12:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01698.txt.bz2 Content-length: 477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77854 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #3 from Jonathan Wakely --- Done. >>From gcc-bugs-return-613411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:13:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24875 invoked by alias); 22 Aug 2018 12:13:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24816 invoked by uid 55); 22 Aug 2018 12:13:18 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/704] --help and --version Date: Wed, 22 Aug 2018 12:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 2.97 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: enhancement X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01700.txt.bz2 Content-length: 558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D704 --- Comment #15 from Iain Sandoe --- Author: iains Date: Wed Aug 22 12:12:46 2018 New Revision: 263768 URL: https://gcc.gnu.org/viewcvs?rev=3D263768&root=3Dgcc&view=3Drev Log: Make the gcc-ar,nm, strip tools respond correctly to --help and --version when there's no plugin built. gcc/ PR other/704 * gcc-ar.c (main): Don=E2=80=99t try to invoke the plug-in if we=E2= =80=99re not building it. Modified: trunk/gcc/ChangeLog trunk/gcc/gcc-ar.c >>From gcc-bugs-return-613412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:21:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71873 invoked by alias); 22 Aug 2018 12:21:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71856 invoked by uid 48); 22 Aug 2018 12:21:36 -0000 From: "pvitt at posteo dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87043] maybe-uninitialized warning for initialized variable Date: Wed, 22 Aug 2018 12:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pvitt at posteo dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01701.txt.bz2 Content-length: 222 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87043 --- Comment #2 from Peter Vitt --- Oh, I see your point. But then still the question is why this warning is not shown when compiling with -Og. >>From gcc-bugs-return-613413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:31:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47698 invoked by alias); 22 Aug 2018 12:31:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47657 invoked by uid 48); 22 Aug 2018 12:31:54 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87049] __clear_cache() prototype confusion Date: Wed, 22 Aug 2018 12:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01702.txt.bz2 Content-length: 208 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87049 --- Comment #2 from Richard Earnshaw --- But won't that give problems for C++ because now you'll need to cast the pointers? >>From gcc-bugs-return-613414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:38:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128121 invoked by alias); 22 Aug 2018 12:38:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127836 invoked by uid 48); 22 Aug 2018 12:38:03 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Wed, 22 Aug 2018 12:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01703.txt.bz2 Content-length: 2963 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #3 from Uro=C5=A1 Bizjak --- (In reply to Andrew Pinski from comment #2) > I suspect it is treating cost 0 as being free rather than unknown cost. = And > the x86 backend is returning 0 cost for the upper multiple. There is no truncate RTX present in the dumps. But in any case, moving 10+ insns out of THEN block seems excessive: IF-THEN-JOIN block found, pass 1, test 34, then 35, join 15 scanning new insn with uid =3D 320. scanning new insn with uid =3D 321. scanning new insn with uid =3D 322. scanning new insn with uid =3D 323. scanning new insn with uid =3D 324. scanning new insn with uid =3D 325. scanning new insn with uid =3D 326. scanning new insn with uid =3D 327. scanning new insn with uid =3D 328. scanning new insn with uid =3D 329. scanning new insn with uid =3D 330. if-conversion succeeded through noce_try_cmove_arith Removing jump 225. deleting insn with uid =3D 225. deleting insn with uid =3D 235. deleting insn with uid =3D 286. deleting insn with uid =3D 232. deleting insn with uid =3D 231. deleting insn with uid =3D 230. deleting insn with uid =3D 229. deleting insn with uid =3D 284. deleting insn with uid =3D 227. deleting block 35 Conversion succeeded on pass 1. ... * 224: flags:CCZ=3Dcmp(r245:SI,0) * REG_DEAD r245:SI 225: pc=3D{(flags:CCZ!=3D0)?L222:pc} REG_DEAD flags:CCZ REG_BR_PROB 536870916 226: NOTE_INSN_BASIC_BLOCK 40 227: {r246:TI=3Dzero_extend(r91:DI)*zero_extend(r136:DI);clobber flags:CC= ;} REG_UNUSED flags:CC 284: r262:DI=3Dr246:TI#8 REG_DEAD r246:TI 229: r249:DI=3D0xfffff 230: {r248:DI=3Dr249:DI-r262:DI;clobber flags:CC;} REG_DEAD r262:DI REG_DEAD r249:DI REG_UNUSED flags:CC 231: {r250:DI=3Dr248:DI<<0x2c;clobber flags:CC;} REG_DEAD r248:DI REG_UNUSED flags:CC 232: {r251:TI=3Dzero_extend(r250:DI)*zero_extend(r91:DI);clobber flags:CC= ;} REG_DEAD r250:DI REG_DEAD r91:DI REG_UNUSED flags:CC 286: r264:DI=3Dr251:TI#8 REG_DEAD r251:TI 235: {r91:DI=3Dr264:DI<<0x1;clobber flags:CC;} REG_DEAD r264:DI REG_UNUSED flags:CC ... is moved to: ... * 224: flags:CCZ=3Dcmp(r245:SI,0) * REG_DEAD r245:SI 320: {r246:TI=3Dzero_extend(r91:DI)*zero_extend(r136:DI);clobber flags:CC= ;} 321: r262:DI=3Dr246:TI#8 322: r249:DI=3D0xfffff 323: {r248:DI=3Dr249:DI-r262:DI;clobber flags:CC;} 324: {r250:DI=3Dr248:DI<<0x2c;clobber flags:CC;} 325: {r251:TI=3Dzero_extend(r250:DI)*zero_extend(r91:DI);clobber flags:CC= ;} 326: r264:DI=3Dr251:TI#8 327: {r270:DI=3Dr264:DI<<0x1;clobber flags:CC;} 328: {r269:DI=3Dr243:DI<<0xf;clobber flags:CC;} * 329: flags:CCZ=3Dcmp(r245:SI,0) 330: r91:DI=3D{(flags:CCZ!=3D0)?r269:DI:r270:DI} ... (not to mention that (insn 224) in front should be removed as well, it is duplicated as (insn 329)). I don't think x86 declares all moved insn costs as 0. >>From gcc-bugs-return-613415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:39:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129630 invoked by alias); 22 Aug 2018 12:39:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129511 invoked by uid 48); 22 Aug 2018 12:39:34 -0000 From: "znerol at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86964] Too many debug symbols included, especially for extern globals Date: Wed, 22 Aug 2018 12:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: znerol at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01704.txt.bz2 Content-length: 1230 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86964 --- Comment #2 from Joe Lorenz --- (In reply to Richard Biener from comment #1) > Confirmed. Debug info is now more complete. Note > -feliminate-unused-debug-symbols is only implemented for STABS debugging, > not for DWARF and from > my reading implementing it for DWARF is what you'd like to see. >=20 > If you use GCC 8 or newer and LTO and apply dwarf compression using the d= wz > tool the final debug info will be smaller than with GCC 4.9. Unfortunate= ly > dwarf compression doesn't help when not using LTO as it seems to be > "confused" > by location attributes. >=20 > Let's make this bug a request for implementing > -feliminate-unused-debug-symbols > for DWARF. If implementing that option for DWARF will achieve the same behavior as the= 4.9 version, then yes, I think that would be exactly what I'm after. I think it= 's fine if the default behavior (with no added option) stays as it is. But hav= ing control over it is essential when working with the nature of the source tre= e I am saddled with. I'm grateful for your focus and effort and I hesitate to ask, but what sort= of time frame are we talking for a change like this? >>From gcc-bugs-return-613416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 12:53:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14632 invoked by alias); 22 Aug 2018 12:53:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14559 invoked by uid 48); 22 Aug 2018 12:53:27 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode Date: Wed, 22 Aug 2018 12:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01705.txt.bz2 Content-length: 659 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87038 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg --- Comment #6 from Eric Gallager --- (In reply to Richard Biener from comment #5) > I think even -Wall makes sense. Maybe eventually, but I think a good compromise would be to put it in -Wext= ra for gcc 9, and then move it to -Wall for gcc 10, so people have time to adj= ust to the gradual strictening >>From gcc-bugs-return-613417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 13:01:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27319 invoked by alias); 22 Aug 2018 13:01:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27243 invoked by uid 55); 22 Aug 2018 13:01:46 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/86964] Too many debug symbols included, especially for extern globals Date: Wed, 22 Aug 2018 13:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01706.txt.bz2 Content-length: 1637 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86964 --- Comment #3 from rguenther at suse dot de --- On Wed, 22 Aug 2018, znerol at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86964 >=20 > --- Comment #2 from Joe Lorenz --- > (In reply to Richard Biener from comment #1) > > Confirmed. Debug info is now more complete. Note > > -feliminate-unused-debug-symbols is only implemented for STABS debuggin= g, > > not for DWARF and from > > my reading implementing it for DWARF is what you'd like to see. > >=20 > > If you use GCC 8 or newer and LTO and apply dwarf compression using the= dwz > > tool the final debug info will be smaller than with GCC 4.9. Unfortuna= tely > > dwarf compression doesn't help when not using LTO as it seems to be > > "confused" > > by location attributes. > >=20 > > Let's make this bug a request for implementing > > -feliminate-unused-debug-symbols > > for DWARF. >=20 > If implementing that option for DWARF will achieve the same behavior as t= he 4.9 > version, then yes, I think that would be exactly what I'm after. I think = it's > fine if the default behavior (with no added option) stays as it is. But h= aving > control over it is essential when working with the nature of the source t= ree I > am saddled with. >=20 > I'm grateful for your focus and effort and I hesitate to ask, but what so= rt of > time frame are we talking for a change like this? Well, implementing shouldn't take more than a day or so but that day has to be carved out of somebodies spare time to work on GCC. Eventually Tom can help out. >>From gcc-bugs-return-613419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 13:03:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36130 invoked by alias); 22 Aug 2018 13:03:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35520 invoked by uid 55); 22 Aug 2018 13:03:21 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86725] ICE: Segmentation fault (in vect_get_vec_def_for_operand_1) Date: Wed, 22 Aug 2018 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01708.txt.bz2 Content-length: 2549 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86725 --- Comment #3 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Wed Aug 22 13:02:48 2018 New Revision: 263774 URL: https://gcc.gnu.org/viewcvs?rev=3D263774&root=3Dgcc&view=3Drev Log: [2/2] Fix bogus inner induction (PR 86725) This patch is the second part of the fix for PR 86725. The problem in the original test is that for: outer1: x_1 =3D PHI ; ... inner: x_2 =3D PHI ; ... x_3 =3D ...; ... outer2: x_4 =3D PHI ; ... there are corner cases in which it is possible to classify the inner phi as an induction but not the outer phi. The -4.c test is a more direct example. After failing to classify x_1 as an induction, we go on to classify it as a double reduction (which is basically true). But we still classified the inner phi as an induction rather than as part of a reduction, leading to an ICE when trying to vectorise the outer phi. We analyse the phis for outer loops first, so the simplest fix is not to classify the phi as an induction if outer loop analysis said that it should be a reduction. The -2.c test is from the original PR. The -3.c test is a version in which "wo" really is used a reduction; this was already correctly rejected, but for the wrong reason ("inner-loop induction only used outside of the outer vectorized loop"). The -4.c test is another way of tickling the original problem without relying on the undefinedness of signed overflow. The -5.c test shows an (uninteresting) example in which the patch prevents a spurious failure to vectorise the outer loop. 2018-08-22 Richard Sandiford gcc/ PR tree-optimization/86725 * tree-vect-loop.c (vect_inner_phi_in_double_reduction_p): New function. (vect_analyze_scalar_cycles_1): Check it. gcc/testsuite/ PR tree-optimization/86725 * gcc.dg/vect/no-scevccp-pr86725-2.c: New test. * gcc.dg/vect/no-scevccp-pr86725-3.c: Likewise. * gcc.dg/vect/no-scevccp-pr86725-4.c: Likewise. * gcc.dg/vect/no-scevccp-pr86725-5.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/vect/no-scevccp-pr86725-2.c trunk/gcc/testsuite/gcc.dg/vect/no-scevccp-pr86725-3.c trunk/gcc/testsuite/gcc.dg/vect/no-scevccp-pr86725-4.c trunk/gcc/testsuite/gcc.dg/vect/no-scevccp-pr86725-5.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-loop.c >>From gcc-bugs-return-613418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 13:03:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35272 invoked by alias); 22 Aug 2018 13:03:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34916 invoked by uid 55); 22 Aug 2018 13:03:11 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86725] ICE: Segmentation fault (in vect_get_vec_def_for_operand_1) Date: Wed, 22 Aug 2018 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01707.txt.bz2 Content-length: 1604 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86725 --- Comment #2 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Wed Aug 22 13:02:39 2018 New Revision: 263773 URL: https://gcc.gnu.org/viewcvs?rev=3D263773&root=3Dgcc&view=3Drev Log: [1/2] Fix bogus double reduction (PR 86725) This patch is the first part of the fix for PR 86725. We would treat x_1 in: outer1: x_1 =3D PHI ; ... inner: x_2 =3D ...x_1...; ... x_3 =3D ...; ... outer2: x_4 =3D PHI ; ... as a double reduction without checking what kind of statement x_2 is. In practice it has to be a phi, since for other x_2, x_1 would simply be a loop invariant that gets used for every inner loop iteration. The idea with doing this patch first is that, by checking x_2 really is a phi, we can hand off the validation of the rest of the reduction to the phi analysis in the inner loop. The test case is a variant of the one in the PR. 2018-08-22 Richard Sandiford gcc/ PR tree-optimization/86725 * tree-vect-loop.c (vect_is_simple_reduction): When treating an outer loop phi as a double reduction, make sure that the single user of the phi result is an inner loop phi. gcc/testsuite/ PR tree-optimization/86725 * gcc.dg/vect/no-scevccp-pr86725-1.c: New test. Added: trunk/gcc/testsuite/gcc.dg/vect/no-scevccp-pr86725-1.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-loop.c >>From gcc-bugs-return-613420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 13:04:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64861 invoked by alias); 22 Aug 2018 13:04:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64775 invoked by uid 48); 22 Aug 2018 13:04:21 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86725] ICE: Segmentation fault (in vect_get_vec_def_for_operand_1) Date: Wed, 22 Aug 2018 13:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01709.txt.bz2 Content-length: 161 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86725 --- Comment #4 from rsandifo at gcc dot gnu.org --- Fixed on trunk so far. >>From gcc-bugs-return-613421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 13:16:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120943 invoked by alias); 22 Aug 2018 13:16:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120593 invoked by uid 48); 22 Aug 2018 13:15:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Wed, 22 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component version target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01710.txt.bz2 Content-length: 761 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aldyh at gcc dot gnu.org Component|target |tree-optimization Version|unknown |9.0 Target Milestone|--- |9.0 Summary|internal compiler error: in |[9 Regression] internal |set_value_range, at |compiler error: in |tree-vrp.c:289 |set_value_range, at | |tree-vrp.c:289 >>From gcc-bugs-return-613422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 13:47:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126108 invoked by alias); 22 Aug 2018 13:47:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126038 invoked by uid 48); 22 Aug 2018 13:47:54 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Wed, 22 Aug 2018 13:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01711.txt.bz2 Content-length: 394 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gn= u.org --- Comment #1 from Aldy Hernandez --- Mine. >>From gcc-bugs-return-613423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 14:09:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114486 invoked by alias); 22 Aug 2018 14:09:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113448 invoked by uid 48); 22 Aug 2018 14:09:47 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Wed, 22 Aug 2018 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01712.txt.bz2 Content-length: 890 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #4 from Alexander Monakov --- This is probably due to logic issue in PR 78120 fix. Its Changelog said, (noce_process_if_block): Compute an estimate for the original cost = when optimizing for speed, using the minimum of then and else block cost= s. but the change was + if (else_bb =3D=3D NULL) + if_info->original_cost +=3D then_cost; + else if (speed_p) + if_info->original_cost +=3D MIN (then_cost, else_cost); + else + if_info->original_cost +=3D then_cost + else_cost; so when there's no else_bb, it effectively treats its cost as infinite rath= er than zero. As a result GCC wrongly decides that replacing conditionally executed block with cost 80 by a sequence with cost 72 is fine. It also seems strange that costs are not scaled by edge probabilities. >>From gcc-bugs-return-613424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 14:19:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90366 invoked by alias); 22 Aug 2018 14:19:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90294 invoked by uid 48); 22 Aug 2018 14:19:40 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le Date: Wed, 22 Aug 2018 14:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01713.txt.bz2 Content-length: 385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86684 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |segher at gcc dot g= nu.org >>From gcc-bugs-return-613425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 14:32:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14876 invoked by alias); 22 Aug 2018 14:32:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14835 invoked by uid 48); 22 Aug 2018 14:32:21 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] [9 Regression] GCC does not work when using -pipe Date: Wed, 22 Aug 2018 14:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01714.txt.bz2 Content-length: 187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 --- Comment #3 from Nathan Sidwell --- not able to reproduce, (both build using 7.3.0 and bootstrapping) >>From gcc-bugs-return-613426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 14:41:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54782 invoked by alias); 22 Aug 2018 14:41:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54732 invoked by uid 48); 22 Aug 2018 14:41:35 -0000 From: "daniel.f.starke at freenet dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87015] [8/9 Regression] miscompilation of template heavy Boost Spirit code Date: Wed, 22 Aug 2018 14:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.f.starke at freenet dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01715.txt.bz2 Content-length: 216 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87015 --- Comment #4 from Daniel Starke --- Sure, but it will take some days as I am currently reducing a testcase for another bug. >>From gcc-bugs-return-613427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 15:12:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52482 invoked by alias); 22 Aug 2018 15:12:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52144 invoked by uid 48); 22 Aug 2018 15:12:46 -0000 From: "iii at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/80080] S390: Isses with emitted cs-instructions for __atomic builtins. Date: Wed, 22 Aug 2018 15:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: iii at linux dot ibm.com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01716.txt.bz2 Content-length: 1650 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80080 --- Comment #12 from Ilya Leoshkevich --- I've investigated foo3, foo4 and foo5, and came to the following conclusions: When foo3 is compiled with -march=3Dz10 or later, cprop1 pass propagates global's SYMBOL_REF value into UNSPECV_CAS. On previous machines it does not happen, because the result is rejected by insn_invalid_p (). Then, reload realizes that SYMBOL_REF cannot be a legitimate UNSPECV_CAS argument, and loads it into a pseudo right before. The net result is that loading of SYMBOL_REF is moved from outside of the loop into the loop. So we need to somehow inhibit constant propagation for this case. Jump threading in foo4 does not work, because it's done only during `jump' pass, at which point there are insns with side-effects in the basic block of the 2nd jump. They are later deleted by the `combine' pass, but we don't request CLEANUP_THREADING after that. I wonder if we could introduce it? In addition, when foo4 is compiled with -O2 or -O3, we don't use conditional return, because our return sequence contains a PARALLEL, which is rejected by bb_is_just_return (). This can also be improved. Finally, in foo5 `cs' is generated by s390_expand_cs_tdsi (), and comparison is generated by common expansion logic, so it doesn't look possible to improve the situation solely in the back-end. We need to somehow make gcc aware that (oldval =3D=3D 0) and (retval !=3D 0) are equivalent after `cs', but I'm not sure at which point we could and should do this - in theory doing this on tree rather than RTL level can help other architectures. >>From gcc-bugs-return-613428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 15:13:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55567 invoked by alias); 22 Aug 2018 15:13:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55422 invoked by uid 48); 22 Aug 2018 15:13:45 -0000 From: "yso at melexis dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87060] New: Condition check is optimized out for volatile unsigned char / short Date: Wed, 22 Aug 2018 15:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yso at melexis dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01717.txt.bz2 Content-length: 1048 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87060 Bug ID: 87060 Summary: Condition check is optimized out for volatile unsigned char / short Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yso at melexis dot com Target Milestone: --- Compilers from http://gcc.godbolt.org/ are used to reproduce the issue. Compiler: x86-64 gcc (trunk); gcc (GCC-Explorer-Build) 9.0.0 20180821 (experimental)=20 Options: -Os Test code:=20=20 ``` volatile unsigned char u8; void test_u8 (void) { if (u8 + 1) { u8 =3D 1; } } ``` Disassembly:=20=20 ``` test_u8: mov al, BYTE PTR u8[rip] mov BYTE PTR u8[rip], 1 ret ``` Condition check is optimized out, while unsigned overflow is perfectly legitimate operation. - also can be reproduced in gcc 8/7/6/5 and 4 (after 4.1.2) - also with unsigned short type >>From gcc-bugs-return-613429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 15:28:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77260 invoked by alias); 22 Aug 2018 15:28:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77225 invoked by uid 48); 22 Aug 2018 15:28:11 -0000 From: "yso at melexis dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87060] Condition check is optimized out for volatile unsigned char / short Date: Wed, 22 Aug 2018 15:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yso at melexis dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01718.txt.bz2 Content-length: 273 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87060 --- Comment #1 from Yevheniy Soloshenko --- Ok, my fault. Integer promotion in action.=20 The code below is fine. ``` void test_u8 (void) { if ((unsigned char)(u8 + 1)) { u8 =3D 1; } } ``` >>From gcc-bugs-return-613430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 15:52:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35760 invoked by alias); 22 Aug 2018 15:52:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35641 invoked by uid 48); 22 Aug 2018 15:52:23 -0000 From: "matz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86973] [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Wed, 22 Aug 2018 15:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: matz at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01719.txt.bz2 Content-length: 770 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 --- Comment #1 from Michael Matz --- I can reproduce the same error without any va-args: % cat bug.i extern void foo(void *); __attribute__((sysv_abi)) void a(__attribute__((__vector_size__(8 * sizeof(double)))) double b){ foo(0); } % ./cc1 -mabi=3Dms -mavx512f pr86973.i pr86973.i:4:5: internal compiler error: in expand_call, at calls.c:4218 4 | foo(0); So, are you absolutely sure that r222173 (which delayed expansion of va_arg until pass_stdarg) is the one that introduced this error? As far as I can determine this is some interaction between backend and call setup going wrong, which specifically is about a sysv_abi function (with large param) calling a ms_abi function. >>From gcc-bugs-return-613431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:01:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87185 invoked by alias); 22 Aug 2018 16:01:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86946 invoked by uid 48); 22 Aug 2018 16:01:02 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86973] [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Wed, 22 Aug 2018 16:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01720.txt.bz2 Content-length: 1257 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|5.4.0 | Known to fail| |4.9.0, 5.4.0 --- Comment #2 from Martin Li=C5=A1ka --- (In reply to Michael Matz from comment #1) > I can reproduce the same error without any va-args: >=20 > % cat bug.i > extern void foo(void *); > __attribute__((sysv_abi)) > void a(__attribute__((__vector_size__(8 * sizeof(double)))) double b){ > foo(0); > } > % ./cc1 -mabi=3Dms -mavx512f pr86973.i > pr86973.i:4:5: internal compiler error: in expand_call, at calls.c:4218 > 4 | foo(0); >=20 > So, are you absolutely sure that r222173 (which delayed expansion of va_a= rg > until pass_stdarg) is the one that introduced this error? As far as I can > determine this is some interaction between backend and call setup going > wrong, which specifically is about a sysv_abi function (with large param) > calling a ms_abi function. Yes, I can confirm this test-case is as old as GCC 4.9.0 where the AVX512 extension was added. >>From gcc-bugs-return-613432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:03:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89194 invoked by alias); 22 Aug 2018 16:03:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89141 invoked by uid 48); 22 Aug 2018 16:03:06 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/87003] use nonnull attribute in libgccjit.h Date: Wed, 22 Aug 2018 16:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01721.txt.bz2 Content-length: 772 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87003 --- Comment #2 from Tom Tromey --- I don't really know the best thing to do. I see your point about graceful failure being a useful feature, in cases where the result of some gcc-jit function is passed as an argument to another one. Maybe there are some arguments that truly cannot be NULL? If any exist I think it would be fine to mark them as nonnull and have the implementation simply assert. Perhaps there aren't many of these though. Another thing that would be useful would be a section in the manual explaining the null-handling approach. I see there is some text about this but perhaps it could be made more prominent, like having a whole section just dedicated to this topic? >>From gcc-bugs-return-613433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:03:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90078 invoked by alias); 22 Aug 2018 16:03:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89951 invoked by uid 48); 22 Aug 2018 16:03:17 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Wed, 22 Aug 2018 16:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01722.txt.bz2 Content-length: 715 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #2 from Aldy Hernandez --- I can't reproduce with a cross to powerpc64le-linux. I'm trying this: void d(void); char *a, *b; void c(void) { if (b =3D=3D a) return; if (__builtin_strncmp(a, "", b - a)) d(); } I also tried using x86-64 linux headers, which I assume are sufficiently similar: typedef long unsigned int size_t; extern int strncmp (const char *__s1, const char *__s2, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); etc etc Could someone provide a preprocessed source just in case my definitions abo= ve are wrong? >>From gcc-bugs-return-613434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:04:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91744 invoked by alias); 22 Aug 2018 16:04:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91639 invoked by uid 55); 22 Aug 2018 16:04:43 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Wed, 22 Aug 2018 16:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01723.txt.bz2 Content-length: 629 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 --- Comment #21 from Segher Boessenkool --- Author: segher Date: Wed Aug 22 16:04:09 2018 New Revision: 263780 URL: https://gcc.gnu.org/viewcvs?rev=3D263780&root=3Dgcc&view=3Drev Log: [ fix changelog ] 2018-08-22 Segher Boessenkool PR rtl-optimization/86771 * combine.c (try_combine): Do not allow splitting a resulting PARAL= LEL of two SETs into those two SETs, one to be placed at i2, if that SE= Ts destination is modified between i2 and i3. Modified: trunk/gcc/ChangeLog >>From gcc-bugs-return-613435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:32:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111431 invoked by alias); 22 Aug 2018 16:32:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111335 invoked by uid 48); 22 Aug 2018 16:32:43 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86983] documentation inconsistent with always_inline diagnostics for computed goto Date: Wed, 22 Aug 2018 16:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01724.txt.bz2 Content-length: 1767 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86983 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #2 from Alexander Monakov --- We are doing it wrong, both on documentation and implementation sides. What matters is taking the address of a label. Looking through goto argument like the quoted code does is poor logic: as inlining can remap normal label= s, it should be equally able to remap address-taken labels. In other words: decisions whether some BB or function may be duplicated sho= uld be driven by whether they have address-taken labels, not indirect gotos. We are inconsistent in whether labels are similar to automatic variables or function-scope static variables. The documentation explains them mostly as = if they are similar to automatic variables, but then it allows using their addresses in constant expression context, for which they act similar to sta= tic variables. We should make the distinction between 'auto' and 'static' labels clear bot= h in documentation and implementation. What I suggest is to make labels fully auto-like, implying their addresses = are not constant expressions. Auto labels can be safely remapped during inlinin= g. For static labels we could require declaring them with 'static __label', an= d to keep backwards compatibility also deduce that a label should be static if i= ts address needs to be usable in a constant expression. PR 80053 gives an example where we miscompile due to a similar confusion. Does my proposed way forward make sense? >>From gcc-bugs-return-613436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:32:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111738 invoked by alias); 22 Aug 2018 16:32:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111392 invoked by uid 48); 22 Aug 2018 16:32:46 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87030] GCC fails to build with Xcode 10, attempting an impossible multilib build Date: Wed, 22 Aug 2018 16:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01725.txt.bz2 Content-length: 1031 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87030 Iain Sandoe changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iains at gcc dot gnu.org --- Comment #1 from Iain Sandoe --- (In reply to Francois-Xavier Coudert from comment #0) > Building with Xcode 10 (beta) on macOS 10.13 or 10.14 (beta), leads to a > build failure because by default, configure sets GCC up for a multilib > build. However, starting with Xcode 10, Apple has removed support for > 32-bit: thus, the builds fails when trying to link libgcc, because it does > not find the 32-bit system libc. >=20 > Passing --disable-multilib fixes bootstrap. However, the default configure > should detect that 32-bit is not supported and automatically build without > 32-bit multilib. Agreed; I was kinda expecting this - do you have a patch? ( or I can add it to the TODO ;) ) >>From gcc-bugs-return-613437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:43:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6061 invoked by alias); 22 Aug 2018 16:43:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5987 invoked by uid 48); 22 Aug 2018 16:43:30 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87052] STRING_CST printing incomplete in Gimple dumps Date: Wed, 22 Aug 2018 16:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01726.txt.bz2 Content-length: 1355 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87052 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Status|RESOLVED |ASSIGNED Resolution|FIXED |--- --- Comment #2 from Martin Sebor --- Patch committed in r263781. --- Comment #3 from Martin Sebor --- Author: msebor Date: Wed Aug 22 16:42:56 2018 New Revision: 263781 URL: https://gcc.gnu.org/viewcvs?rev=3D263781&root=3Dgcc&view=3Drev Log: PR middle-end/87052 - STRING_CST printing incomplete in Gimple dumps gcc/testsuite/ChangeLog: PR middle-end/87052 * gcc.dg/pr87052.c: New test. * gcc.dg/tree-ssa/dump-3.c: Adjust. gcc/ChangeLog: PR middle-end/87052 * tree-pretty-print.c (pretty_print_string): Add argument. (dump_generic_node): Call to pretty_print_string with string size. Added: trunk/gcc/testsuite/gcc.dg/pr87052.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/dump-3.c trunk/gcc/tree-pretty-print.c >>From gcc-bugs-return-613438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:43:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6073 invoked by alias); 22 Aug 2018 16:43:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5990 invoked by uid 55); 22 Aug 2018 16:43:30 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87052] STRING_CST printing incomplete in Gimple dumps Date: Wed, 22 Aug 2018 16:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01727.txt.bz2 Content-length: 1355 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87052 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Status|RESOLVED |ASSIGNED Resolution|FIXED |--- --- Comment #2 from Martin Sebor --- Patch committed in r263781. --- Comment #3 from Martin Sebor --- Author: msebor Date: Wed Aug 22 16:42:56 2018 New Revision: 263781 URL: https://gcc.gnu.org/viewcvs?rev=3D263781&root=3Dgcc&view=3Drev Log: PR middle-end/87052 - STRING_CST printing incomplete in Gimple dumps gcc/testsuite/ChangeLog: PR middle-end/87052 * gcc.dg/pr87052.c: New test. * gcc.dg/tree-ssa/dump-3.c: Adjust. gcc/ChangeLog: PR middle-end/87052 * tree-pretty-print.c (pretty_print_string): Add argument. (dump_generic_node): Call to pretty_print_string with string size. Added: trunk/gcc/testsuite/gcc.dg/pr87052.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/dump-3.c trunk/gcc/tree-pretty-print.c >>From gcc-bugs-return-613439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 16:56:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33505 invoked by alias); 22 Aug 2018 16:56:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33440 invoked by uid 48); 22 Aug 2018 16:56:38 -0000 From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/64949] jit linking fails when building with in-tree libraries (mpc etc...) Date: Wed, 22 Aug 2018 16:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01728.txt.bz2 Content-length: 460 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64949 qinzhao at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |qinzhao at gcc dot gnu.org --- Comment #1 from qinzhao at gcc dot gnu.org --- GCC7, 8, and 9 all have the same issue as my latest experiments. Will a fix to this issue be available soon? >>From gcc-bugs-return-613440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:09:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84944 invoked by alias); 22 Aug 2018 17:09:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84840 invoked by uid 48); 22 Aug 2018 17:09:11 -0000 From: "matz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86973] [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Wed, 22 Aug 2018 17:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: matz at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01729.txt.bz2 Content-length: 971 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 --- Comment #3 from Michael Matz --- A testcase that doesn't need -mabi cmdline args: extern __attribute__((ms_abi)) void foo(void); __attribute__((sysv_abi)) void a(__attribute__((__vector_size__(8 * sizeof(double)))) double b){ foo(); } For very old GCCs (starting with r206947 from 2014) we actually get a sorry, and then the known ICE: pr86973.i: In function =E2=80=98a=E2=80=99: pr86973.i:4:8: sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it foo(); ^ pr86973.i:4:8: internal compiler error: in expand_call, at calls.c:3471 0x6ed0b1 expand_call(tree_node*, rtx_def*, int) ../../gcc/gcc/calls.c:3469 Indeed adding -maccumulate-outgoing-args removes the error. That revision simply changed the default for that option. We lost the sorry with r207677, but retained the ICE. Since then we ICE. >>From gcc-bugs-return-613441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:10:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91728 invoked by alias); 22 Aug 2018 17:10:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91653 invoked by uid 55); 22 Aug 2018 17:10:32 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86888] [F08] allocatable components of indirectly recursive type Date: Wed, 22 Aug 2018 17:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01730.txt.bz2 Content-length: 1629 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86888 --- Comment #2 from janus at gcc dot gnu.org --- Author: janus Date: Wed Aug 22 17:10:00 2018 New Revision: 263782 URL: https://gcc.gnu.org/viewcvs?rev=3D263782&root=3Dgcc&view=3Drev Log: fix PR 86888 2018-08-22 Janus Weil PR fortran/86888 * decl.c (gfc_match_data_decl): Allow allocatable components of indirectly recursive type. * resolve.c (resolve_component): Remove two errors messages ... (resolve_fl_derived): ... and replace them by a new one. 2018-08-22 Janus Weil PR fortran/86888 * gfortran.dg/alloc_comp_basics_6.f90: Update an error message and = add an additional case. * gfortran.dg/alloc_comp_basics_7.f90: New test case. * gfortran.dg/class_17.f03: Update error message. * gfortran.dg/class_55.f90: Ditto. * gfortran.dg/dtio_11.f90: Update error messages. * gfortran.dg/implicit_actual.f90: Add an error message. * gfortran.dg/typebound_proc_12.f90: Update error message. Added: trunk/gcc/testsuite/gfortran.dg/alloc_comp_basics_7.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/alloc_comp_basics_6.f90 trunk/gcc/testsuite/gfortran.dg/class_17.f03 trunk/gcc/testsuite/gfortran.dg/class_55.f90 trunk/gcc/testsuite/gfortran.dg/dtio_11.f90 trunk/gcc/testsuite/gfortran.dg/implicit_actual.f90 trunk/gcc/testsuite/gfortran.dg/typebound_proc_12.f90 >>From gcc-bugs-return-613442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:19:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35069 invoked by alias); 22 Aug 2018 17:19:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34785 invoked by uid 48); 22 Aug 2018 17:19:49 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87061] New: [9 Regression] regex cannot be compiled with -std=c++1z -D_GLIBCXX_USE_CXX11_ABI=0 Date: Wed, 22 Aug 2018 17:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01731.txt.bz2 Content-length: 9487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87061 Bug ID: 87061 Summary: [9 Regression] regex cannot be compiled with -std=3Dc++1z -D_GLIBCXX_USE_CXX11_ABI=3D0 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- Using the regex header (like in the code snippet below) with the the options "-std=3Dc++1z -D_GLIBCXX_USE_CXX11_ABI=3D0" results in an error message. This is a regression introduced between 2018-07-26 and 2018-08-17. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In file included from /gcc-9/include/c++/9.0.0/string:52, from /gcc-9/include/c++/9.0.0/bitset:47, from /gcc-9/include/c++/9.0.0/regex:39, from bug.cc:1: /gcc-9/include/c++/9.0.0/bits/basic_string.h: In instantiation of 'class std::basic_string, std::pmr::polymorphic_allocator >': /gcc-9/include/c++/9.0.0/regex:77:41: required from here /gcc-9/include/c++/9.0.0/bits/basic_string.h:3103:63: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3103 | typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3116:68: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3116 | typedef __gnu_cxx::__normal_iterator=20 iterator; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3118:61: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3118 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 const_iterator; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3119:53: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3119 | typedef std::reverse_iterator const_reverse_iterator; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3120:52: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3120 | typedef std::reverse_iterator reverse_iterator; | ^~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5233:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5233 | find(const _Tp& __svt, size_type __pos =3D 0) const | ^~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5311:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5311 | rfind(const _Tp& __svt, size_type __pos =3D npos) const | ^~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5395:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5395 | find_first_of(const _Tp& __svt, size_type __pos =3D 0) const | ^~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5479:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5479 | find_last_of(const _Tp& __svt, size_type __pos =3D npos) const | ^~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5560:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5560 | find_first_not_of(const _Tp& __svt, size_type __pos =3D 0) const | ^~~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5642:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5642 | find_last_not_of(const _Tp& __svt, size_type __pos =3D npos) const | ^~~~~~~~~~~~~~~~ In file included from bug.cc:3: /gcc-9/include/c++/9.0.0/regex:77:57: error: template argument 1 is invalid 77 | using smatch =3D match_results; | ^ In file included from /gcc-9/include/c++/9.0.0/string:52, from /gcc-9/include/c++/9.0.0/bitset:47, from /gcc-9/include/c++/9.0.0/regex:39, from bug.cc:1: /gcc-9/include/c++/9.0.0/bits/basic_string.h: In instantiation of 'class std::basic_string, std::pmr::polymorphic_allocator >': /gcc-9/include/c++/9.0.0/regex:80:42: required from here /gcc-9/include/c++/9.0.0/bits/basic_string.h:3103:63: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3103 | typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3116:68: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3116 | typedef __gnu_cxx::__normal_iterator=20 iterator; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3118:61: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3118 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 const_iterator; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3119:53: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3119 | typedef std::reverse_iterator const_reverse_iterator; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:3120:52: error: no class templ= ate named 'rebind' in 'class std::pmr::polymorphic_allocator' 3120 | typedef std::reverse_iterator reverse_iterator; | ^~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5233:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5233 | find(const _Tp& __svt, size_type __pos =3D 0) const | ^~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5311:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5311 | rfind(const _Tp& __svt, size_type __pos =3D npos) const | ^~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5395:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5395 | find_first_of(const _Tp& __svt, size_type __pos =3D 0) const | ^~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5479:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5479 | find_last_of(const _Tp& __svt, size_type __pos =3D npos) const | ^~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5560:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5560 | find_first_not_of(const _Tp& __svt, size_type __pos =3D 0) const | ^~~~~~~~~~~~~~~~~ /gcc-9/include/c++/9.0.0/bits/basic_string.h:5642:2: error: no class templa= te named 'rebind' in 'class std::pmr::polymorphic_allocator' 5642 | find_last_not_of(const _Tp& __svt, size_type __pos =3D npos) const | ^~~~~~~~~~~~~~~~ In file included from bug.cc:3: /gcc-9/include/c++/9.0.0/regex:80:58: error: template argument 1 is invalid 80 | using wsmatch =3D match_results; | ^ >>From gcc-bugs-return-613444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:31:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45827 invoked by alias); 22 Aug 2018 17:31:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45727 invoked by uid 48); 22 Aug 2018 17:31:54 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/39627] [meta-bug] Fortran 2008 support Date: Wed, 22 Aug 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: enhancement X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01733.txt.bz2 Content-length: 483 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D39627 Bug 39627 depends on bug 86888, which changed state. Bug 86888 Summary: [F08] allocatable components of indirectly recursive type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86888 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-613443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:31:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45819 invoked by alias); 22 Aug 2018 17:31:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45719 invoked by uid 48); 22 Aug 2018 17:31:54 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86888] [F08] allocatable components of indirectly recursive type Date: Wed, 22 Aug 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01732.txt.bz2 Content-length: 477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86888 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #3 from janus at gcc dot gnu.org --- Fixed on 9-trunk with r263782. Closing. >>From gcc-bugs-return-613445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:32:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48865 invoked by alias); 22 Aug 2018 17:32:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48791 invoked by uid 48); 22 Aug 2018 17:32:36 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] [8/9 Regression] Optimization breaks an unformatted read with implicit loop Date: Wed, 22 Aug 2018 17:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01734.txt.bz2 Content-length: 382 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot = gnu.org >>From gcc-bugs-return-613446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:38:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56253 invoked by alias); 22 Aug 2018 17:38:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55719 invoked by uid 48); 22 Aug 2018 17:38:43 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Wed, 22 Aug 2018 17:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01735.txt.bz2 Content-length: 589 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #3 from Martin Li=C5=A1ka --- Created attachment 44574 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44574&action=3Dedit pre-processed test-case Here it is, however I can't reproduce that with a cross compiler on x86_64. >>From gcc-bugs-return-613447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:40:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58499 invoked by alias); 22 Aug 2018 17:40:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58429 invoked by uid 48); 22 Aug 2018 17:40:22 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87062] New: mis-optimized code with -O3 and std::pair Date: Wed, 22 Aug 2018 17:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01736.txt.bz2 Content-length: 1128 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87062 Bug ID: 87062 Summary: mis-optimized code with -O3 and std::pair Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- I'm filing this on behalf of someone who posted this bug on reddit. https://www.reddit.com/r/cpp/comments/99e1ri/interesting_gcc_optimizer_bug/ Copying text from there: Looks like there is an interesting gcc optimizer bug in gcc 7+. #include std::pair fret(long i) { return {i, i}; } =E2=80=8B With -O2 gcc generates the expected: mov rdx, rdi mov rax, rdi But with -O3 it generates: mov QWORD PTR [rsp-24], rdi movq xmm0, QWORD PTR [rsp-24] punpcklqdq xmm0, xmm0 movaps XMMWORD PTR [rsp-24], xmm0 mov rax, QWORD PTR [rsp-24] mov rdx, QWORD PTR [rsp-16] https://godbolt.org/z/lXoaA4 >>From gcc-bugs-return-613448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:41:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61154 invoked by alias); 22 Aug 2018 17:41:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60683 invoked by uid 48); 22 Aug 2018 17:41:32 -0000 From: "tromey at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87062] mis-optimized code with -O3 and std::pair Date: Wed, 22 Aug 2018 17:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01737.txt.bz2 Content-length: 187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87062 --- Comment #1 from Tom Tromey --- Analysis in the comments there puts the blame on -ftree-slp-vectorize >>From gcc-bugs-return-613449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:42:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62130 invoked by alias); 22 Aug 2018 17:42:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62059 invoked by uid 48); 22 Aug 2018 17:42:11 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Wed, 22 Aug 2018 17:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01738.txt.bz2 Content-length: 935 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Known to work| |8.2.0 Ever confirmed|0 |1 Known to fail| |9.0 --- Comment #4 from Martin Li=C5=A1ka --- Maybe it will help: (gdb) p debug_tree(min) constant 1> $4 =3D void (gdb) p debug_tree(max) constant -1> $5 =3D void (gdb) p cmp $6 =3D 1 Please use e.g. gcc112 machine, one can reproduce that there. >>From gcc-bugs-return-613450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:47:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68878 invoked by alias); 22 Aug 2018 17:47:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68809 invoked by uid 48); 22 Aug 2018 17:47:13 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Wed, 22 Aug 2018 17:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01739.txt.bz2 Content-length: 598 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #5 from Alexander Monakov --- ... and avoiding the wrong branch fixes this bug without regressing pr78120= .c testcase: --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -3413,7 +3413,7 @@ noce_process_if_block (struct noce_if_info *if_info) &if_info->else_simple)) return false; - if (else_bb =3D=3D NULL) + if (0 && else_bb =3D=3D NULL) if_info->original_cost +=3D then_cost; else if (speed_p) if_info->original_cost +=3D MIN (then_cost, else_cost); >>From gcc-bugs-return-613451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 17:48:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71600 invoked by alias); 22 Aug 2018 17:48:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70636 invoked by uid 48); 22 Aug 2018 17:48:38 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87062] mis-optimized code with -O3 and std::pair Date: Wed, 22 Aug 2018 17:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01740.txt.bz2 Content-length: 650 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87062 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |x86_64-linux-gnu Component|c++ |target --- Comment #2 from Andrew Pinski --- (In reply to Tom Tromey from comment #1) > Analysis in the comments there puts the blame on -ftree-slp-vectorize Actually it is a cost model issue ... >>From gcc-bugs-return-613452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 18:11:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6930 invoked by alias); 22 Aug 2018 18:11:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6865 invoked by uid 48); 22 Aug 2018 18:11:00 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87060] Condition check is optimized out for volatile unsigned char / short Date: Wed, 22 Aug 2018 18:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01741.txt.bz2 Content-length: 480 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87060 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski --- Not a bug as unsigned char + 1 is promoted to int(u8) + 1 >>From gcc-bugs-return-613453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 18:39:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128853 invoked by alias); 22 Aug 2018 18:39:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128796 invoked by uid 48); 22 Aug 2018 18:39:16 -0000 From: "gerald at pfeifer dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Wed, 22 Aug 2018 18:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: gerald at pfeifer dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gerald at pfeifer dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01742.txt.bz2 Content-length: 968 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 Gerald Pfeifer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-22 CC| |gerald at pfeifer dot com Assignee|unassigned at gcc dot gnu.org |gerald at pfeifer d= ot com Ever confirmed|0 |1 --- Comment #3 from Gerald Pfeifer --- Agreed, and I've started to work on this earlier this year. There are a number of posts to gcc-patches@ with work in that direction; as usual the devil is in the detail (such as being replaced by <... id=3D"...">, alas with different restrictions). Are you willing to help with the conversation of the HTML pages? >>From gcc-bugs-return-613454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 18:43:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5603 invoked by alias); 22 Aug 2018 18:43:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5563 invoked by uid 48); 22 Aug 2018 18:43:52 -0000 From: "wandersys at aim dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87063] New: Const subobject with const assignment operator, but operator anyway deleted Date: Wed, 22 Aug 2018 18:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wandersys at aim dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01743.txt.bz2 Content-length: 1937 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87063 Bug ID: 87063 Summary: Const subobject with const assignment operator, but operator anyway deleted Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: wandersys at aim dot com Target Milestone: --- Hello! Here is an example: class bar { public: bar() {} bar const & operator=3D(bar const &) const { return *this; } }; class foo { bar const v; }; int main() { foo a; a =3D foo(); } Here are the relevant points of the standard: ------ 7) A defaulted copy/move assignment operator for class X is defined as dele= ted if X has: (7.1) a variant member with a non-trivial corresponding assignment operator= and X is a union-like class, or (7.2) a non-static data member of const non-class type (or array thereof), = or (7.3) a non-static data member of reference type, or (7.4) a direct non-static data member of class type M (or array thereof) or= a direct base class M that cannot be copied/moved because overload resolution= , as applied to find M's corresponding assignment operator, results in an ambigu= ity or a function that is deleted or inaccessible from the defaulted assignment operator. ------ Thus, the operator can be `deleted` because of clause 7.4, which relies on overload resolution rules. If we remove the const qualification from the assignment operator, then this clause will be executed, since we cannot all= ow assignment overloading for a constant object (in this way). Currently, by adding the const-qualification of the operator, I hope to disable this rule because overload resolution becomes possible. However, the compiler forbids= me. This code works fine in vc++ and clang, but not in gcc. >>From gcc-bugs-return-613455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 18:51:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102360 invoked by alias); 22 Aug 2018 18:51:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102281 invoked by uid 48); 22 Aug 2018 18:51:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87061] [9 Regression] regex cannot be compiled with -std=c++1z -D_GLIBCXX_USE_CXX11_ABI=0 Date: Wed, 22 Aug 2018 18:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01744.txt.bz2 Content-length: 688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87061 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-22 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Those std::pmr type aliases should only be defined for the new ABI, because= the old std::string doesn't support C++11 allocators. >>From gcc-bugs-return-613456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 18:52:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103815 invoked by alias); 22 Aug 2018 18:52:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103733 invoked by uid 55); 22 Aug 2018 18:52:04 -0000 From: "fdumont at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68222] _Safe_iterator provides operators the wrapped iterator can't actually support Date: Wed, 22 Aug 2018 18:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: fdumont at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fdumont at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01745.txt.bz2 Content-length: 9901 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68222 --- Comment #2 from Fran=C3=A7ois Dumont --- Author: fdumont Date: Wed Aug 22 18:51:25 2018 New Revision: 263786 URL: https://gcc.gnu.org/viewcvs?rev=3D263786&root=3Dgcc&view=3Drev Log: 2018-08-22 Fran=C3=A7ois Dumont PR libstdc++/68222 * include/debug/safe_iterator.h (_Safe_iterator<_It, _Sq, _Cat>): Add category template parameter. (_Safe_iterator<>::_Const_iterator): Remove. (_Safe_iterator<>::_IsConstant): New. (_Safe_iterator<>::_OtherIterator): New. (_Safe_iterator<_It, _Sq, _Cat>::_Safe_iterator<_MutIte>( const _Safe_iterator<_MutIte, _Sq, _Cat>&)): Add _IsConstant::__val= ue in __gnu_cxx::__enable_if condition. (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to): New. (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_from_begin): New. (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to_end): New. (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>): New. (_Safe_iterator<_It, _Sq, _Cat>::operator--()): Move... (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag> ::operator--()): ...here. (_Safe_iterator<_It, _Sq, _Cat>::operator--(int)): Move... (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag> ::operator--(int)): ...here. (_Safe_iterator<_It, _Sq, _Cat>::_M_decrementable()): Move... (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag> ::_M_decrementable()): ...here. (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>): New. (_Safe_iterator<_It, _Sq, _Cat>::operator[](const difference_type&)= ): Move... (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> ::operator[](const difference_type&)): ...here. (_Safe_iterator<_It, _Sq, _Cat>::operator+=3D(const difference_type= &)): Move... (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> ::operator+=3D(const difference_type&)): ...here. (_Safe_iterator<_It, _Sq, _Cat>::operator+(const difference_type&)): Move... (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> ::operator+(const difference_type&)): ...here. (_Safe_iterator<_It, _Sq, _Cat>::operator-=3D(const difference_type= &)): Move... (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> ::operator-=3D(const difference_type&)): ...here. (_Safe_iterator<_It, _Sq, _Cat>::operator-(const difference_type&)): Move... (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> ::operator-(const difference_type&)): ...here. (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)): Constraint to random access iterators. (operator<=3D(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. (operator>=3D(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. (operator+(const difference_type&, const _Safe_iterator<>&)): Likew= ise. (__check_dereferenceable(const _Safe_iterator<>&)): Remove. (__get_distance): Remove. (__get_distance_from_begin): Remove. (__get_distance_to_end): Remove. (struct __is_safe_random_iterator<_Safe_iterator<>>): Remove partial specialization. (__base(const _Safe_iterator<>&, std::input_iterator_tag)): Remove. (__base(const _Safe_iterator<>&, std::random_access_iterator_tag)): Remove. (__base(const _Safe_iterator<>&)): Constraint to random access iterator. * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_get_distance_from_begin()): New. (_Safe_iterator<>::_M_get_distance_to_end()): New. (_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator<>&)): Ne= w. (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag> ::_M_valid_range): New. * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Const_local_iterator): Remove. (_Safe_local_iterator<>::_IsConstant): New. (_Safe_local_iterator<>::_OtherIterator): New. (_Safe_local_iterator<_It, _Cont>::_Safe_local_iterator<_MutIte, _Cont>( const _Safe_local_iterator<_MutIte, _Seq>&)): Add _IsConstant::__va= lue in __gnu_cxx::__enable_if condition. If singular compare base itera= tor with _MutIte rather than _It. (_Safe_local_iterator<>::_S_constant): Make constexpr. (_Safe_local_iterator<>::_M_get_distance_to): New. (__check_dereferenceable(const _Safe_local_iterator<>&)): Remove. (__get_distance(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&, std::input_iterator_tag)): Remove. (__valid_range(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&)): New. * include/debug/safe_local_iterator.tcc (_Safe_local_iterator<>::_M_get_distance_to): New. * include/debug/deque (std::__debug::deque<>): Add ::__gnu_debug::_Safe_iterator<> friend declaration. * include/debug/forward_list (std::__debug::forward_list<>): Likewi= se. * include/debug/list (std::__debug::list<>): Likewise. * include/debug/map.h (std::__debug::map<>): Likewise. * include/debug/multimap.h (std::__debug::multimap<>): Likewise. * include/debug/set.h (std::__debug::set<>): Likewise. * include/debug/multiset.h (std::__debug::multiset<>): Likewise. * include/debug/string (std::__debug::basic_string<>): Likewise. * include/debug/unordered_map (std::__debug::unordered_map<>): Like= wise and add ::__gnu_debug::_Safe_local_iterator<> friend declaration. (std::__debug::unordered_multimap<>): Likewise. * include/debug/unordered_set (std::__debug::unordered_set<>): Likewise. (std::__debug::unordered_multiset<>): Likewise. * include/debug/formatter.h: Adapt. * include/debug/helper_functions.h (__gnu_debug::_Safe_local_iterator<>): Add declaration. (__get_distance<_Ite>(_Ite, _Ite, std::random_access_iterator_tag): Pass parameter by copy. (__get_distance<_Ite>(_Ite, _Ite, std::input_iterator_tag): Likewis= e. (__get_distance<_Ite>(_Ite, _Ite): Likewise. (__valid_range_aux<_Integral>): Pass _Integral by copy. (__valid_range<_InputIterator>): Pass _InputIterator by copy. (__valid_range<>(const _Safe_iterator<>&, const _Safe_iterator<>&, typename _Distance_traits<>::__type&)): Declare. (__valid_range(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&, typename _Distance_traits<>::__type&= )): Declare. (__valid_range<>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Declare. (__valid_range(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&)): Declare. (__can_advance): Adapt. (struct __is_safe_random_iterator<>): Remove. (struct _SIter_base<>): Remove. * include/debug/functions.h: Include . (__check_dereferenceable): Remove. (__foreign_iterator_aux4, __foreign_iterator_aux3): Adapt. (__foreign_iterator_aux2, __foreign_iterator_aux): Adapt. (__foreign_iterator): Adapt. * include/debug/stl_iterator.h (__is_safe_random_iterator>): Remove. (__base(const std::reverse_iterator<_Safe_iterator<_It, _Sq>)): Constraint for random access iterators. (__niter_base): Adapt. * testsuite/util/testsuite_containers.h: Include . (iterator_concept_checks<_It, _Mutable, _Category>): New. (citerator<_Cont>::forward_members::forward_members()): Instantiate latter for container iterator and const_iterator. * testsuite/23_containers/list/68222_neg.cc: New. * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: Ad= apt line number. * testsuite/23_containers/unordered_set/debug/debug_functions.cc: (test01): Remove. * testsuite/23_containers/vector/debug/debug_functions.cc (test01): Remove. Added: trunk/libstdc++-v3/testsuite/23_containers/list/68222_neg.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/debug/deque trunk/libstdc++-v3/include/debug/formatter.h trunk/libstdc++-v3/include/debug/forward_list trunk/libstdc++-v3/include/debug/functions.h trunk/libstdc++-v3/include/debug/helper_functions.h trunk/libstdc++-v3/include/debug/list trunk/libstdc++-v3/include/debug/map.h trunk/libstdc++-v3/include/debug/multimap.h trunk/libstdc++-v3/include/debug/multiset.h trunk/libstdc++-v3/include/debug/safe_iterator.h trunk/libstdc++-v3/include/debug/safe_iterator.tcc trunk/libstdc++-v3/include/debug/safe_local_iterator.h trunk/libstdc++-v3/include/debug/safe_local_iterator.tcc trunk/libstdc++-v3/include/debug/set.h trunk/libstdc++-v3/include/debug/stl_iterator.h trunk/libstdc++-v3/include/debug/string trunk/libstdc++-v3/include/debug/unordered_map trunk/libstdc++-v3/include/debug/unordered_set trunk/libstdc++-v3/include/debug/vector =20=20=20 trunk/libstdc++-v3/testsuite/23_containers/unordered_set/debug/debug_functi= ons.cc =20=20=20 trunk/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_debug_n= eg.cc trunk/libstdc++-v3/testsuite/23_containers/vector/debug/debug_functions= .cc trunk/libstdc++-v3/testsuite/util/testsuite_containers.h >>From gcc-bugs-return-613457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 18:54:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109133 invoked by alias); 22 Aug 2018 18:54:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109081 invoked by uid 48); 22 Aug 2018 18:54:25 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 18:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01746.txt.bz2 Content-length: 1342 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 --- Comment #4 from Jonathan Wakely --- (In reply to Konstantin Kharlamov from comment #2) > (In reply to Jonathan Wakely from comment #1) > > That would require a lot of special-casing just for std::variant. >=20 > Well, I think, in place of std::variant there could be any struct-wrapper; If you have an example with a simple struct then please show it, maybe we c= an improve that case. std::variant is hundreds of lines of complex metaprogramming, not a struct-wrapper. > > N.B. If you just write "return ret;" it will compile fine. In general > > "return x;" is better than "return {x};" because it doesn't prevent NRV= O. >=20 > Thanks, I prefer the `{x}` to just `x` because in the latter I'm being > explicit that the `x` is not the type I'm returning, but there's some oth= er > type that it's being wrapped to. Which means you pessimize the code, because you force a copy, not an elidab= le move. > As far as such trivial optimizations concerned, I'd prefer to rely on the > compiler figuring that out =E2=80=94 in the end, that's why we don't writ= e assembly, > right? =3D) If you write "return ret;" the compiler is allowed to move from the variabl= e, and is allowed to use the NVRO. It's not allowed to do that if you write "return {ret};". >>From gcc-bugs-return-613458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 19:01:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23377 invoked by alias); 22 Aug 2018 19:01:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23310 invoked by uid 48); 22 Aug 2018 19:01:36 -0000 From: "fdumont at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68222] _Safe_iterator provides operators the wrapped iterator can't actually support Date: Wed, 22 Aug 2018 19:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: fdumont at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fdumont at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01747.txt.bz2 Content-length: 601 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68222 Fran=C3=A7ois Dumont changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #3 from Fran=C3=A7ois Dumont --- Now _Safe_iterator has the iterator category in its type and operators are constraint depending on this category. >>From gcc-bugs-return-613459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 19:15:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45280 invoked by alias); 22 Aug 2018 19:15:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44958 invoked by uid 48); 22 Aug 2018 19:15:04 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 19:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01748.txt.bz2 Content-length: 2792 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > (In reply to Konstantin Kharlamov from comment #2) > > (In reply to Jonathan Wakely from comment #1) > > > That would require a lot of special-casing just for std::variant. > >=20 > > Well, I think, in place of std::variant there could be any struct-wrapp= er; >=20 > If you have an example with a simple struct then please show it, maybe we > can improve that case. std::variant is hundreds of lines of complex > metaprogramming, not a struct-wrapper. Given: #include struct PacketErr { std::unique_ptr failed_devices; }; struct V { PacketErr p; }; V deserialize() { PacketErr ret; return {ret}; } GCC says: s.cc: In function 'V deserialize()': s.cc:14:14: error: use of deleted function 'PacketErr::PacketErr(const PacketErr&)' 14 | return {ret}; | ^ s.cc:3:8: note: 'PacketErr::PacketErr(const PacketErr&)' is implicitly dele= ted because the default definition would be ill-formed: 3 | struct PacketErr { | ^~~~~~~~~ s.cc:3:8: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp =3D char; _Dp = =3D std::default_delete]' In file included from /home/jwakely/gcc/9/include/c++/9.0.0/memory:80, from s.cc:1: /home/jwakely/gcc/9/include/c++/9.0.0/bits/unique_ptr.h:394:7: note: declar= ed here 394 | unique_ptr(const unique_ptr&) =3D delete; | ^~~~~~~~~~ This seems pretty damn good. As I said, the problem is that std::variant consists of hundreds of lines of complex metaprogramming. When a variant can't be constructed from Y& t= he failure happens deep inside a nested template metaprogram. It's very diffic= ult for the compiler to guess what outcome you expected and to print an error explaining why that didn't happen. >=20 > > > N.B. If you just write "return ret;" it will compile fine. In general > > > "return x;" is better than "return {x};" because it doesn't prevent N= RVO. > >=20 > > Thanks, I prefer the `{x}` to just `x` because in the latter I'm being > > explicit that the `x` is not the type I'm returning, but there's some o= ther > > type that it's being wrapped to. >=20 > Which means you pessimize the code, because you force a copy, not an > elidable move. >=20 > > As far as such trivial optimizations concerned, I'd prefer to rely on t= he > > compiler figuring that out =E2=80=94 in the end, that's why we don't wr= ite assembly, > > right? =3D) >=20 > If you write "return ret;" the compiler is allowed to move from the > variable, and is allowed to use the NVRO. It's not allowed to do that if = you > write "return {ret};". >>From gcc-bugs-return-613460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 19:32:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69535 invoked by alias); 22 Aug 2018 19:32:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69504 invoked by uid 55); 22 Aug 2018 19:32:12 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86935] Bad locus in ASSOCIATE statement Date: Wed, 22 Aug 2018 19:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01749.txt.bz2 Content-length: 833 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86935 --- Comment #2 from janus at gcc dot gnu.org --- Author: janus Date: Wed Aug 22 19:31:40 2018 New Revision: 263787 URL: https://gcc.gnu.org/viewcvs?rev=3D263787&root=3Dgcc&view=3Drev Log: fix PR 86935 2018-08-22 Janus Weil PR fortran/86935 * match.c (gfc_match_associate): Improve diagnostics for the ASSOCI= ATE statement. 2018-08-22 Janus Weil PR fortran/86935 * gfortran.dg/associate_3.f90: Update error message. * gfortran.dg/associate_39.f90: New test case. Added: trunk/gcc/testsuite/gfortran.dg/associate_39.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/associate_3.f03 >>From gcc-bugs-return-613461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 19:37:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74712 invoked by alias); 22 Aug 2018 19:37:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74608 invoked by uid 48); 22 Aug 2018 19:37:04 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/79342] [6 Regression] ICE in output_index_string, at dwarf2out.c:25635 with -gsplit-dwarf Date: Wed, 22 Aug 2018 19:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01750.txt.bz2 Content-length: 194 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79342 --- Comment #9 from H.J. Lu --- A patch is posted at https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01389.html >>From gcc-bugs-return-613462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 19:41:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114919 invoked by alias); 22 Aug 2018 19:41:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 112899 invoked by uid 48); 22 Aug 2018 19:41:31 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86935] Bad locus in ASSOCIATE statement Date: Wed, 22 Aug 2018 19:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01751.txt.bz2 Content-length: 477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86935 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #3 from janus at gcc dot gnu.org --- Fixed on 9-trunk with r263787. Closing. >>From gcc-bugs-return-613463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:03:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74503 invoked by alias); 22 Aug 2018 20:03:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74456 invoked by uid 48); 22 Aug 2018 20:03:41 -0000 From: "ibhagatgnu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/86957] gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use Date: Wed, 22 Aug 2018 20:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: ibhagatgnu at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibhagatgnu at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01752.txt.bz2 Content-length: 1443 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86957 --- Comment #3 from Indu Bhagat --- Currently, GCC dumps some information in the dump files regarding functions= not being executed in the training run (And, I agree its not satisfactorily direct). First, in the "Symbol table:" dump section in the .*i.profile dumpfile - a. functions which are not executed in the training run (hence, zero count profiles) are shown as "unlikely_executed". Thats the case when profiles= =20=20 are not estimated.=20 b. If function profiles are estimated however (in -O1, -fguess-branch-probability is enabled), an "estimated_locally" appears alongside "unlikely_executed", e.g., ["Function flags: count: XXX (estimated locally, globally 0) body unlikely_executed"]. I see deeper classification in profile_count::dump (FILE *f) const API (whi= ch needs closer look), but I agree that we can improve the presented informati= on regarding the quality of the profile. Perhaps abstracting out the somewhat= =20 superfluous information (in the current context), e.g., "globally 0" vs=20 "globally 0 adjusted"... Why not additionally dump a clear "Profile Feedback" : "Run/Not run" per=20 function in the dump file ? I need to take a closer look at the information being dumped currently befo= re I make a proposal. But I agree that gcc can give clearer information. Will be happy to work on this as another CR. >>From gcc-bugs-return-613464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:18:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126486 invoked by alias); 22 Aug 2018 20:18:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126426 invoked by uid 48); 22 Aug 2018 20:18:37 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Wed, 22 Aug 2018 20:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01753.txt.bz2 Content-length: 522 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 --- Comment #4 from Michael_S --- It's fine that you moved the 2nd case to 'tree-optimization'. I suppose tha= t's where it belongs. But I just saw the second case by chance in the process of reduction of the first case to bare minimum. For me it (the second case) is not really important. What I care about is the first case.=20 Could you please mark it as 'target', so persons responsible for Nios2 back= end wouldn't overlook it? >>From gcc-bugs-return-613465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:20:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1692 invoked by alias); 22 Aug 2018 20:20:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 914 invoked by uid 48); 22 Aug 2018 20:20:00 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87021] New powerpc test cases from r263570 fail Date: Wed, 22 Aug 2018 20:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01754.txt.bz2 Content-length: 317 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87021 --- Comment #1 from Will Schmidt --- These should clear up once the gimple-folding for vec_splat() code goes in. If that patch is held up much longer (relatively), i will probably disable = the scan-assembler counts for those tests. >>From gcc-bugs-return-613466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:20:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2502 invoked by alias); 22 Aug 2018 20:20:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2459 invoked by uid 48); 22 Aug 2018 20:20:21 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Wed, 22 Aug 2018 20:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01755.txt.bz2 Content-length: 522 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 --- Comment #5 from Michael_S --- It's fine that you moved the 2nd case to 'tree-optimization'. I suppose tha= t's where it belongs. But I just saw the second case by chance in the process of reduction of the first case to bare minimum. For me it (the second case) is not really important. What I care about is the first case.=20 Could you please mark it as 'target', so persons responsible for Nios2 back= end wouldn't overlook it? >>From gcc-bugs-return-613467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:25:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6322 invoked by alias); 22 Aug 2018 20:25:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6100 invoked by uid 48); 22 Aug 2018 20:25:02 -0000 From: "Hi-Angel at yandex dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 20:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: Hi-Angel at yandex dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01756.txt.bz2 Content-length: 3013 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 --- Comment #6 from Konstantin Kharlamov --- (In reply to Jonathan Wakely from comment #4) > (In reply to Konstantin Kharlamov from comment #2) > > As far as such trivial optimizations concerned, I'd prefer to rely on t= he > > compiler figuring that out =E2=80=94 in the end, that's why we don't wr= ite assembly, > > right? =3D) >=20 > If you write "return ret;" the compiler is allowed to move from the > variable, and is allowed to use the NVRO. It's not allowed to do that if = you > write "return {ret};". Hmm=E2=80=A6 But, isn't any optimization allowed that doesn't change semant= ic of the program? And, at the very least, if a struct have no explicit copy- and mov= e- constructors, then replacing copy with a move wherever possible shouldn't go noticed by the program. (In reply to Jonathan Wakely from comment #5) > (In reply to Jonathan Wakely from comment #4) > > (In reply to Konstantin Kharlamov from comment #2) > > > (In reply to Jonathan Wakely from comment #1) > > > > That would require a lot of special-casing just for std::variant. > > >=20 > > > Well, I think, in place of std::variant there could be any struct-wra= pper; > >=20 > > If you have an example with a simple struct then please show it, maybe = we > > can improve that case. std::variant is hundreds of lines of complex > > metaprogramming, not a struct-wrapper. >=20 > Given: >=20 > #include >=20 > struct PacketErr { > std::unique_ptr failed_devices; > }; >=20 > struct V > { > PacketErr p; > }; >=20 > V deserialize() { > PacketErr ret; > return {ret}; > } >=20 > GCC says: >=20 > s.cc: In function 'V deserialize()': > s.cc:14:14: error: use of deleted function 'PacketErr::PacketErr(const > PacketErr&)' > 14 | return {ret}; > | ^ > s.cc:3:8: note: 'PacketErr::PacketErr(const PacketErr&)' is implicitly > deleted because the default definition would be ill-formed: > 3 | struct PacketErr { > | ^~~~~~~~~ > s.cc:3:8: error: use of deleted function 'std::unique_ptr<_Tp, > _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp =3D char; _D= p =3D > std::default_delete]' > In file included from /home/jwakely/gcc/9/include/c++/9.0.0/memory:80, > from s.cc:1: > /home/jwakely/gcc/9/include/c++/9.0.0/bits/unique_ptr.h:394:7: note: > declared here > 394 | unique_ptr(const unique_ptr&) =3D delete; > | ^~~~~~~~~~ >=20 > This seems pretty damn good. >=20 > As I said, the problem is that std::variant consists of hundreds of lines= of > complex metaprogramming. When a variant can't be constructed from Y& > the failure happens deep inside a nested template metaprogram. It's very > difficult for the compiler to guess what outcome you expected and to print > an error explaining why that didn't happen. Oh, hmm, indeed it does print that there's a copy-constructor missing. Oh w= ell, I think the bug can probably be closed as WONTFIX :) >>From gcc-bugs-return-613468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:26:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7820 invoked by alias); 22 Aug 2018 20:26:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7790 invoked by uid 48); 22 Aug 2018 20:26:06 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87064] New: [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Wed, 22 Aug 2018 20:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01757.txt.bz2 Content-length: 3765 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 Bug ID: 87064 Summary: [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- Note this fails on powerpc64 le but not be # of expected passes 11 # of unexpected failures 1 FAIL: libgomp.oacc-fortran/reduction-3.f90 -DACC_DEVICE_TYPE_host=3D1 -DACC_MEM_SHARED=3D1 -O1 execution test -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D- bisectgcc: Tried [263705 - 263777] bisectgcc: 263750 had no unexpected test case failures bisectgcc: 263751 had unexpected test case failures bisectgcc: make -k check-target-libgomp RUNTESTFLAGS=3Dfortran.exp=3Dlibgomp.oacc-fortran/reduction-3.f90 spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/libgomp/testsuite/libgomp.oacc-fortran/reduction= -3.f90 -B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/ -B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= .libs -I/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp -I/home/seurer/gcc/gcc-trunk/libgomp/testsuite/../../include -I/home/seurer/gcc/gcc-trunk/libgomp/testsuite/.. -fmessage-length=3D0 -fno-diagnostics-show-caret -Wno-hsa -fdiagnostics-color=3Dnever -fopenacc -B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= ../libquadmath/.libs/ -DACC_DEVICE_TYPE_host=3D1 -DACC_MEM_SHARED=3D1 -O1 -B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= ../libgfortran/.libs -fintrinsic-modules-path=3D/home/seurer/gcc/build/gcc-trunk/powerpc64le-unk= nown-linux-gnu/./libgomp -L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= .libs -L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= ../libquadmath/.libs/ -L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= ../libgfortran/.libs -lgfortran -foffload=3D-lgfortran -lm -o ./reduction-3.exe PASS: libgomp.oacc-fortran/reduction-3.f90 -DACC_DEVICE_TYPE_host=3D1 -DACC_MEM_SHARED=3D1 -O1 (test for excess errors) Setting LD_LIBRARY_PATH to .:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/= .libs:/home/seurer/gcc/build/gcc-trunk/gcc:/home/seurer/gcc/build/gcc-trunk= /powerpc64le-unknown-linux-gnu/./libgomp/../libgfortran/.libs:/home/seurer/= gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/../libquadmath/= .libs:.:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./li= bgomp/.libs:/home/seurer/gcc/build/gcc-trunk/gcc:/home/seurer/gcc/build/gcc= -trunk/powerpc64le-unknown-linux-gnu/./libgomp/../libgfortran/.libs:/home/s= eurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libgomp/../libqua= dmath/.libs:/home/seurer/gcc/build/gcc-trunk/./gmp/.libs:/home/seurer/gcc/b= uild/gcc-trunk/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-trunk/./mpfr/src= /.libs:/home/seurer/gcc/build/gcc-trunk/./prev-mpfr/src/.libs:/home/seurer/= gcc/build/gcc-trunk/./mpc/src/.libs:/home/seurer/gcc/build/gcc-trunk/./prev= -mpc/src/.libs:/home/seurer/gcc/build/gcc-trunk/./isl/.libs:/home/seurer/gc= c/build/gcc-trunk/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64 Execution timeout is: 300 spawn [open ...] STOP 11 FAIL: libgomp.oacc-fortran/reduction-3.f90 -DACC_DEVICE_TYPE_host=3D1 -DACC_MEM_SHARED=3D1 -O1 execution test >>From gcc-bugs-return-613469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:42:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53424 invoked by alias); 22 Aug 2018 20:42:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 53368 invoked by uid 48); 22 Aug 2018 20:41:58 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87065] New: ice in trunc_int_for_mode Date: Wed, 22 Aug 2018 20:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01758.txt.bz2 Content-length: 1279 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 Bug ID: 87065 Summary: ice in trunc_int_for_mode Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 44575 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44575&action=3Dedit C source code The attached C code, when compiled by flags -c -w -O3 -march=3Dnative, does this: destDir/testFile.5246.c: In function =E2=80=98func_12=E2=80=99: destDir/testFile.5246.c:1626:1: internal compiler error: in trunc_int_for_m= ode,=20 at explow.c:59 0x5baff7 trunc_int_for_mode(long, machine_mode) ../../trunk/gcc/explow.c:59 0x103a468 trunc_int_for_mode(poly_int<1u, long>, machine_mode) ../../trunk/gcc/explow.c:87 0xfd6258 gen_int_mode(poly_int<1u, long>, machine_mode) ../../trunk/gcc/emit-rtl.c:532 0x1fcc72b neg_const_int ../../trunk/gcc/simplify-rtx.c:69 /proc/cpuinfo says model name : AMD FX(tm)-8350 Eight-Core Processor I'll have my usual go at reducing the code and finding a range of revisions where it went wrong. >>From gcc-bugs-return-613470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:44:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92260 invoked by alias); 22 Aug 2018 20:44:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90292 invoked by uid 48); 22 Aug 2018 20:44:32 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87065] ice in trunc_int_for_mode Date: Wed, 22 Aug 2018 20:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01759.txt.bz2 Content-length: 377 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 --- Comment #1 from David Binderman --- Reduced C code is this: a, b, c, d, e; f() { short *g =3D b; int h =3D 1; for (; h <=3D 1; h++) g =3D &c; unsigned i; for (; c; c++) { for (; i <=3D 1; i++) ; a ^=3D (a > 0 <=3D i) + ((e +=3D d) =3D=3D 0 ?: (*g =3D 8)); } } >>From gcc-bugs-return-613471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 20:46:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127125 invoked by alias); 22 Aug 2018 20:46:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85935 invoked by uid 48); 22 Aug 2018 20:46:02 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87065] ice in trunc_int_for_mode Date: Wed, 22 Aug 2018 20:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01760.txt.bz2 Content-length: 203 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 --- Comment #2 from David Binderman --- It also seems to have been going wrong since sometime before=20 revision 262835. >>From gcc-bugs-return-613472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 21:51:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88762 invoked by alias); 22 Aug 2018 21:51:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88619 invoked by uid 48); 22 Aug 2018 21:51:50 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87057] in compilation error, gcc should note about deleted copy-constructor Date: Wed, 22 Aug 2018 21:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01761.txt.bz2 Content-length: 434 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87057 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #7 from Jonathan Wakely --- Closing then. >>From gcc-bugs-return-613473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 22:14:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31346 invoked by alias); 22 Aug 2018 22:14:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31202 invoked by uid 48); 22 Aug 2018 22:14:20 -0000 From: "okannen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87066] New: new expression and potential destructor invokation Date: Wed, 22 Aug 2018 22:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: okannen at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01762.txt.bz2 Content-length: 1155 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87066 Bug ID: 87066 Summary: new expression and potential destructor invokation Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: okannen at gmail dot com Target Milestone: --- In the c++ standard [expr.new]: >> if the new-expression creates an array of objects of class type, the des= tructor is potentially invoked. And potentially invoked means that it is odr-used [basic.odr.def]. Gcc seems to apply this rule chaotically: #include struct A { ~A() =3D delete; std::string s; }; struct B { ~B() =3D delete; }; int main() { new A{}; //accepted new B{}; //error: use of deleted function ~B() //this is not a odr-use of ~B because this is not //an array creation new B; //accepted new B[1]{}; //wrongly accepted: array creation odr-use the deleted destructor new B[1]; //wrongly accepted: array creation odr-use the deleted=20 } >>From gcc-bugs-return-613474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 22:23:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52599 invoked by alias); 22 Aug 2018 22:23:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52553 invoked by uid 55); 22 Aug 2018 22:23:12 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/78448] Container max_size() functions don't consider the range of their difference_type Date: Wed, 22 Aug 2018 22:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01763.txt.bz2 Content-length: 2429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78448 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Wed Aug 22 22:22:40 2018 New Revision: 263789 URL: https://gcc.gnu.org/viewcvs?rev=3D263789&root=3Dgcc&view=3Drev Log: PR libstdc++/78448 limit vector::max_size and deque::max_size The container requirements imply that max_size() can't exceed the maximum value of the container's difference_type. Enforce this for std::vector and std::deque, and add checks to ensure the container doesn't grow larger than that. PR libstdc++/78448 * include/bits/deque.tcc (deque::_M_range_initialize): Use _S_check_init_len to check size. (deque::_M_push_back_aux, deque::_M_push_front_aux): Throw length error if size would exceed max_size(). * include/bits/stl_deque.h (_Deque_base::size_type): Remove typedef. (_Deque_base(_Deque_base&&, const allocator_type&, size_t)): Use size_t instead of size_type. (deq(size_type, const allocator_type&) (deq(size_type, const value_type&, const allocator_type&) (deque::_M_initialize_dispatch): Use _S_check_init_len to check siz= e. (deque::max_size): Call _S_max_size. (deque::_S_check_init_len, deque::_S_max_size): New functions. * include/bits/stl_vector.h (vector(size_type, const allocator_type= &)) (vector(size_type, const value_type&, const allocator_type&)) (vector::_M_initialize_dispatch, vector::_M_range_initialize): Use _S_check_init_len to check size. (vector::max_size): Call _S_max_size. (vector::_M_check_len): Prevent max from being expanded as a function-like macro. (vector::_S_check_init_len, vector::_S_max_size): New functions. * include/bits/vector.tcc (vector::_M_assign_aux): Use _S_check_init_len to check size. * testsuite/23_containers/deque/capacity/max_size.cc: New test. * testsuite/23_containers/vector/capacity/max_size.cc: New test. Added: trunk/libstdc++-v3/testsuite/23_containers/deque/capacity/max_size.cc trunk/libstdc++-v3/testsuite/23_containers/vector/capacity/max_size.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/deque.tcc trunk/libstdc++-v3/include/bits/stl_deque.h trunk/libstdc++-v3/include/bits/stl_vector.h trunk/libstdc++-v3/include/bits/vector.tcc >>From gcc-bugs-return-613475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 22:25:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54576 invoked by alias); 22 Aug 2018 22:25:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54147 invoked by uid 48); 22 Aug 2018 22:24:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/78448] Container max_size() functions don't consider the range of their difference_type Date: Wed, 22 Aug 2018 22:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01764.txt.bz2 Content-length: 590 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78448 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Jonathan Wakely --- Fixed for std::vector and std::deque. For the other containers the overhead of the nodes means that the allocator= 's max_size will never be larger than ptrdiff_t anyway. >>From gcc-bugs-return-613477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 22:54:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104141 invoked by alias); 22 Aug 2018 22:54:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103478 invoked by uid 48); 22 Aug 2018 22:54:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87061] [9 Regression] regex cannot be compiled with -std=c++1z -D_GLIBCXX_USE_CXX11_ABI=0 Date: Wed, 22 Aug 2018 22:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01766.txt.bz2 Content-length: 425 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87061 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Jonathan Wakely --- Fixed. >>From gcc-bugs-return-613476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 22:54:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100926 invoked by alias); 22 Aug 2018 22:54:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 100859 invoked by uid 48); 22 Aug 2018 22:53:59 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87066] new expression and potential destructor invokation Date: Wed, 22 Aug 2018 22:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01765.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87066 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-22 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- This looks related to PR 59238. >>From gcc-bugs-return-613478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 22 22:55:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106074 invoked by alias); 22 Aug 2018 22:55:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106001 invoked by uid 55); 22 Aug 2018 22:55:07 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87061] [9 Regression] regex cannot be compiled with -std=c++1z -D_GLIBCXX_USE_CXX11_ABI=0 Date: Wed, 22 Aug 2018 22:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01767.txt.bz2 Content-length: 1965 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87061 --- Comment #3 from Jonathan Wakely --- Author: redi Date: Wed Aug 22 22:54:33 2018 New Revision: 263791 URL: https://gcc.gnu.org/viewcvs?rev=3D263791&root=3Dgcc&view=3Drev Log: PR libstdc++/87061 remove pmr type aliases for COW strings The pmr aliases for basic_string and match_results are incompatible with the gcc4-compatible ABI because the Copy-On-Write basic_string class doesn't support C++11 allocators. PR libstdc++/87061 * include/experimental/regex [!_GLIBCXX_USE_CXX11_ABI] (experimental::pmr::match_results, experimental::pmr::cmatch) (experimental::pmr::smatch, experimental::pmr::wcmatch) (experimental::pmr::wsmatch): Do not declare for gcc4-compatible AB= I, because COW strings don't support C++11 allocator model. * include/experimental/string [!_GLIBCXX_USE_CXX11_ABI] (experimental::pmr::basic_string, experimental::pmr::string) (experimental::pmr::u16string, experimental::pmr::u32string) (experimental::pmr::wstring): Likewise. * include/std/regex [!_GLIBCXX_USE_CXX11_ABI] (pmr::match_results) (pmr::cmatch, pmr::smatch, pmr::wcmatch, pmr::wsmatch): Likewise. * include/std/string [!_GLIBCXX_USE_CXX11_ABI] (pmr::basic_string) (pmr::string, pmr::u16string, pmr::u32string, pmr::wstring): Likewi= se. * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Require cxx11-abi. * testsuite/28_regex/match_results/pmr_typedefs.cc: Likewise. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/experimental/regex trunk/libstdc++-v3/include/experimental/string trunk/libstdc++-v3/include/std/regex trunk/libstdc++-v3/include/std/string trunk/libstdc++-v3/testsuite/21_strings/basic_string/types/pmr_typedefs= .cc trunk/libstdc++-v3/testsuite/28_regex/match_results/pmr_typedefs.cc >>From gcc-bugs-return-613479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 02:31:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57428 invoked by alias); 23 Aug 2018 02:31:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 56997 invoked by uid 48); 23 Aug 2018 02:31:50 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/77684] many tree-prof testsuite failures in parallel make check Date: Thu, 23 Aug 2018 02:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01768.txt.bz2 Content-length: 193 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77684 --- Comment #9 from Martin Sebor --- Andi, we keep seeing intermittent failures in these tests. Can you help? >>From gcc-bugs-return-613480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 03:01:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72711 invoked by alias); 23 Aug 2018 03:01:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 53977 invoked by uid 48); 23 Aug 2018 03:01:13 -0000 From: "amker at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87022] [8/9 Regression] miscompilation with -ftree-loop-distribution Date: Thu, 23 Aug 2018 03:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amker at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01769.txt.bz2 Content-length: 717 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87022 bin cheng changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 Ever confirmed|0 |1 --- Comment #3 from bin cheng --- This was first introduced enabling loop nest distribution. Reason is we compute wrong dependence direction for two partitions. I suspect it kind of relates with PR85804 which in essence a fusion issue, while this is distribution. Will keep investigating. >>From gcc-bugs-return-613481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 04:51:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76430 invoked by alias); 23 Aug 2018 04:51:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76362 invoked by uid 48); 23 Aug 2018 04:51:41 -0000 From: "kelledin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87067] New: [8.1, 8.2] LTO-related ICE when running armv7 binutils test suite Date: Thu, 23 Aug 2018 04:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kelledin at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01770.txt.bz2 Content-length: 3797 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87067 Bug ID: 87067 Summary: [8.1, 8.2] LTO-related ICE when running armv7 binutils test suite Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: kelledin at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- I'm attempting to build gcc-8.2.0+binutils-2.31.1 native compiler for ARMv7, and the binutils test-suite is noticing a LOT of test failures (63 to be precise), mostly due to gcc ICEing during the link phase, i.e.: gcc -B/usr/src/binutils-build/ld/tmpdir/ld/ -I/usr/src/binutils-2.31.1/ld/testsuite/ld-plugin -g -O2 -march=3Darmv7-a -mfpu=3Dneon -mhard-float -c -g -O2 -march=3Darmv7-a -mfpu=3Dneon -flto -fuse-linker-plugin -c /usr/src/binutils-2.31.1/ld/testsuite/ld-plugin/lto-= 1a.c -o tmpdir/lto-1a.o gcc -B/usr/src/binutils-build/ld/tmpdir/ld/ -I/usr/src/binutils-2.31.1/ld/testsuite/ld-plugin -g -O2 -march=3Darmv7-a -mfpu=3Dneon -mhard-float -c -g -O2 -march=3Darmv7-a -mfpu=3Dneon -flto -fuse-linker-plugin -c /usr/src/binutils-2.31.1/ld/testsuite/ld-plugin/lto-= 1b.c -o tmpdir/lto-1b.o gcc -B/usr/src/binutils-build/ld/tmpdir/ld/ -mhard-float -L/lib -L/usr/l= ib -L/usr/local/lib -L/usr/arm-linux-gnueabihf/lib -o tmpdir/lto-1.exe=20 -L/usr/src/binutils-2.31.1/ld/testsuite/ld-plugin -O2 -flto -fuse-linker-pl= ugin tmpdir/lto-1a.o tmpdir/lto-1b.o In function 'main': lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. The ICE errors seem to be related to LTO with -march optimizations: remove either the -flto flag or the -march=3Darmv7-a flag from the above commands,= and gcc succeeds. Removing any other flags doesn't seem to make a difference. (For reference, similar failures happen with gcc-8.1.0+binutils-2.30. I had hoped the newer toolchain versions might help, but no dice.) The platform is a SolidRun MacchiatoBin (Marvell Armada 8040, Cortex-A72), = but running under a linux32 chroot (such that `uname -m`=3D=3Darmv8l) for build= ing 32-bit software. FWIW I saw no such failures when bringing up a native AAr= ch64 compiler (gcc 8.1.0+binutils 2.30). I can accept this is possibly a binuti= ls bug rather than a gcc bug--but even in that case, gcc should handle it a li= ttle more gracefully than an ICE. "gcc -v" says: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/arm-linux-gnueabihf/8.2.0/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../gcc-8.2.0/configure --prefix=3D/usr --libdir=3D/usr/lib --enable-threads=3Dposix --enable-__cxa_atexit --enable-languages=3Dc,c++ --enable-install-libiberty --enable-multiarch --enable-multilib --enable-sh= ared --enable-static --disable-bootstrap --with-system-zlib --with-float=3Dhard --with-fpu=3Dneon --host=3Darm-linux-gnueabihf --target=3Darm-linux-gnueabi= hf --build=3Darm-linux-gnueabihf Thread model: posix gcc version 8.2.0 (GCC)=20 I'm trying to build binutils with: ../binutils-2.31.1/configure --prefix=3D/usr --libdir=3D/usr/lib/arm-linux-gnueabihf --with-lib-path=3D/lib:/usr/lib:/usr/local/lib --enable-shared --enable-gol= d=3Dyes --enable-plugins --enable-threads --disable-werror --with-system-zlib --host=3Darm-linux-gnueabihf --target=3Darm-linux-gnueabihf --build=3Darm-linux-gnueabihf=20 I can post the ld.log if anyone wants it, but it's 111K even when compresse= d.=20 I figured it might be nicer to post specific failure reports. >>From gcc-bugs-return-613482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 05:59:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111271 invoked by alias); 23 Aug 2018 05:59:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111188 invoked by uid 48); 23 Aug 2018 05:59:14 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87066] new expression and potential destructor invokation Date: Thu, 23 Aug 2018 05:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01771.txt.bz2 Content-length: 569 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87066 --- Comment #2 from Marc Glisse --- I am not convinced that rejecting new B[1] is a good idea, you could also change the standard to say that it is ok. The destructor is only useful here if, for new B[2], the first B is constructed ok but the constructor of the second throws an exception. If the constructor is noexcept, there is no need for the destructor. And the last subobject of the aggregate does not need a destructor, which for an array of size 1 means no destructor is needed. >>From gcc-bugs-return-613483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 06:28:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49609 invoked by alias); 23 Aug 2018 06:28:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49554 invoked by uid 55); 23 Aug 2018 06:28:27 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86863] [OOP][F2008] type-bound module procedure name not recognized Date: Thu, 23 Aug 2018 06:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01772.txt.bz2 Content-length: 743 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86863 --- Comment #3 from Paul Thomas --- Author: pault Date: Thu Aug 23 06:27:54 2018 New Revision: 263799 URL: https://gcc.gnu.org/viewcvs?rev=3D263799&root=3Dgcc&view=3Drev Log: 2017-08-23 Paul Thomas PR fortran/86863 * resolve.c (resolve_typebound_call): If the TBP is not marked as a subroutine, check the specific symbol. 2017-08-23 Paul Thomas PR fortran/86863 * gfortran.dg/submodule_32.f08: New test. Added: trunk/gcc/testsuite/gfortran.dg/submodule_32.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 07:26:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41296 invoked by alias); 23 Aug 2018 07:26:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41249 invoked by uid 48); 23 Aug 2018 07:26:45 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87018] Boostrap problems on AIX Date: Thu, 23 Aug 2018 07:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01773.txt.bz2 Content-length: 987 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87018 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Component|bootstrap |target Summary|[9 Regression] Boostrap |Boostrap problems on AIX |failure on AIX | --- Comment #2 from Thomas Koenig --- This would appear to have been a local configuration / user error, because other people can still bootstrap AIX. Apparently, AIX is not supported to the degree that a normal developer can just work with it, see also https://gcc.gnu.org/ml/fortran/2018-08/msg00097.html . Removing regression marker and re-assigning to "target". It is very hard to avoid breaking bootstrap on a platform that does not have adequate support so that a normal developer can not bootstrap gcc there in the first place. >>From gcc-bugs-return-613485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 07:35:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55728 invoked by alias); 23 Aug 2018 07:35:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55629 invoked by uid 48); 23 Aug 2018 07:35:45 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvODU5MTBdIGNvbmZpZy9hYXJjaDY0L2FhcmNoNjQuYzox?= =?UTF-8?B?NTY1MzoxMjogd2FybmluZzogZHVwbGljYXRlZCDigJhpZuKAmSBjb25kaXRp?= =?UTF-8?B?b24=?= Date: Thu, 23 Aug 2018 07:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01774.txt.bz2 Content-length: 398 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85910 rsandifo at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rsandifo at gcc dot= gnu.org >>From gcc-bugs-return-613486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 07:41:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60013 invoked by alias); 23 Aug 2018 07:41:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59919 invoked by uid 48); 23 Aug 2018 07:41:07 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87067] [8.1, 8.2] LTO-related ICE when running armv7 binutils test suite Date: Thu, 23 Aug 2018 07:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01775.txt.bz2 Content-length: 593 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87067 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-23 Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Can you please attach some small bunch of pre-processed source files (-E) t= hat can be used to reproduce that? >>From gcc-bugs-return-613487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 07:43:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68430 invoked by alias); 23 Aug 2018 07:43:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68365 invoked by uid 48); 23 Aug 2018 07:43:31 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84353] [8/9 Regression] [graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:206 Date: Thu, 23 Aug 2018 07:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01776.txt.bz2 Content-length: 3263 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84353 --- Comment #9 from Arseny Solokha --- (In reply to Richard Biener from comment #5) > Getting more testcase for this is nice though. int pl, ag; void g9 (unsigned __int128 zo, int ji) { if (ag =3D=3D 0) __builtin_abort (); while (ag < 1) ++ag; if (zo !=3D ji) for (pl =3D 0; pl < 2; ++pl) { } __builtin_abort (); } % gcc-9.0.0-alpha20180819 -O2 -floop-parallelize-all -fno-tree-loop-im -w -c vlwdxwlb.c during GIMPLE pass: graphite vlwdxwlb.c: In function 'g9': vlwdxwlb.c:4:1: internal compiler error: in set_codegen_error, at graphite-isl-ast-to-gimple.c:205 4 | g9 (unsigned __int128 zo, int ji) | ^~ 0x73843a translate_isl_ast_to_gimple::set_codegen_error() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:205 0x7384cb translate_isl_ast_to_gimple::set_codegen_error() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= tree.h:3243 0x7384cb translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int(tree_node*, isl_ast_expr*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:308 0x14ad73b translate_isl_ast_to_gimple::binary_op_to_tree(tree_node*, isl_ast_expr*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:340 0x14ae044 translate_isl_ast_to_gimple::graphite_create_new_guard(edge_def*, isl_ast_expr*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:873 0x14af5e7 translate_isl_ast_to_gimple::translate_isl_ast_node_if(loop*, isl_ast_node*, edge_def*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:892 0x14af564 translate_isl_ast_to_gimple::translate_isl_ast_node_block(loop*, isl_ast_node*, edge_def*, std::map, std::allocator > >&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:859 0x14af947 graphite_regenerate_ast_isl(scop*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite-isl-ast-to-gimple.c:1505 0x14abc1c graphite_transform_loops() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite.c:413 0x14ac020 graphite_transforms =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite.c:475 0x14ac020 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180819/work/gcc-9-20180819/gcc/= graphite.c:552 (r263652) >>From gcc-bugs-return-613488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 08:26:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39590 invoked by alias); 23 Aug 2018 08:24:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39186 invoked by uid 55); 23 Aug 2018 08:23:59 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Thu, 23 Aug 2018 08:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01777.txt.bz2 Content-length: 877 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 --- Comment #6 from rguenther at suse dot de --- On Wed, 22 Aug 2018, already5chosen at yahoo dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 >=20 > --- Comment #5 from Michael_S --- > It's fine that you moved the 2nd case to 'tree-optimization'. I suppose t= hat's > where it belongs. > But I just saw the second case by chance in the process of reduction of t= he > first case to bare minimum. For me it (the second case) is not really > important. > What I care about is the first case.=20 > Could you please mark it as 'target', so persons responsible for Nios2 ba= ck end > wouldn't overlook it? We should split the issue - having multiple ones in one bug usually doesn't help. So - can you open a separate one for the first issue? >>From gcc-bugs-return-613489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 08:53:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48037 invoked by alias); 23 Aug 2018 08:53:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42271 invoked by uid 55); 23 Aug 2018 08:53:42 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvODU5MTBdIGNvbmZpZy9hYXJjaDY0L2FhcmNoNjQuYzox?= =?UTF-8?B?NTY1MzoxMjogd2FybmluZzogZHVwbGljYXRlZCDigJhpZuKAmSBjb25kaXRp?= =?UTF-8?B?b24=?= Date: Thu, 23 Aug 2018 08:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01778.txt.bz2 Content-length: 944 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85910 --- Comment #2 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Thu Aug 23 08:51:38 2018 New Revision: 263803 URL: https://gcc.gnu.org/viewcvs?rev=3D263803&root=3Dgcc&view=3Drev Log: Fix aarch64_evpc_tbl guard (PR 85910) This patch fixes a typo in aarch64_expand_vec_perm_const_1 that I introduced as part of the SVE changes. I don't know of any cases in which it has any practical effect, since we'll eventually try to use TBL as a variable permute instead. Having the code is still an important part of defining the interface properly and so we shouldn't simply drop it. 2018-08-23 Richard Sandiford gcc/ PR target/85910 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Fix aarch64_evpc_tbl guard. Modified: trunk/gcc/ChangeLog trunk/gcc/config/aarch64/aarch64.c >>From gcc-bugs-return-613490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 08:53:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48389 invoked by alias); 23 Aug 2018 08:53:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43488 invoked by uid 48); 23 Aug 2018 08:53:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87067] [8.1, 8.2] LTO-related ICE when running armv7 binutils test suite Date: Thu, 23 Aug 2018 08:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01779.txt.bz2 Content-length: 644 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87067 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |lto Component|lto |target --- Comment #2 from Richard Biener --- I suppose that with your compiler a simple int main() {} would exhibit the same issue when doing gcc -c -flto -march=3Darmv7-a t.c gcc -o t t.o -flto ? That is, somehow target specific option handling wrecks things here. >>From gcc-bugs-return-613491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 08:57:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52294 invoked by alias); 23 Aug 2018 08:57:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52228 invoked by uid 48); 23 Aug 2018 08:57:10 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Thu, 23 Aug 2018 08:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01780.txt.bz2 Content-length: 1173 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at gcc dot gnu.org --- Comment #5 from Aldy Hernandez --- Confirmed on a stage1 compiler natively. Breakpoint 2, extract_range_from_binary_expr_1 (vr=3D0x3fffffffb1f0, code=3DMIN_EXPR, expr_type=3D0x3fffaf1a0150, vr0_=3D0x3fffffffb138, vr1_=3D0x3fffffffb118) at /home/aldyh/src/gcc/gcc/tree-vrp.c:1600 (gdb) p vr0.dump() [1, +INF] $78 =3D void (gdb) p debug_generic_stmt(vr0.max) 18446744073709551615 $80 =3D void (gdb) p/x 18446744073709551615 $82 =3D 0xffffffffffffffff (gdb) p sign $81 =3D SIGNED It looks like extract_range_from_binary_expr_1 is being passed a nonsensical range. VR0 is suppsed to be SIGNED, but yet the range is: [1, 0xffffffffffffffff] If the range should be really [1, +INF], I would've expected it to be [1, 0x7ffffff...] Obviously MIN/MAX handling in VRP will get confused by this ;-). I'll investigate. >>From gcc-bugs-return-613492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:08:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64647 invoked by alias); 23 Aug 2018 09:08:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62956 invoked by uid 48); 23 Aug 2018 09:06:21 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87065] [7/8/9 Regression] combine causes ICE in trunc_int_for_mode Date: Thu, 23 Aug 2018 09:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work target_milestone short_desc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01781.txt.bz2 Content-length: 1947 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 CC| |segher at gcc dot gnu.org Known to work| |6.4.1 Target Milestone|--- |7.4 Summary|ice in trunc_int_for_mode |[7/8/9 Regression] combine | |causes ICE in | |trunc_int_for_mode Ever confirmed|0 |1 Known to fail| |7.1.0, 7.3.1 --- Comment #3 from Richard Biener --- Confirmed. We can simplify_binary_operation with (gdb) p debug_rtx (op0) (reg:V4SI 195) $2 =3D void (gdb) p debug_rtx (op1) (const_int 1 [0x1]) (gdb) p code $6 =3D MINUS via #8 0x0000000001bec108 in combine_simplify_rtx (x=3D0x7ffff6a65228,=20 op0_mode=3DE_V4SImode, in_dest=3D0, in_cond=3D0) at /space/rguenther/src/gcc-sccvn/gcc/combine.c:5730 5730 temp =3D simplify_binary_operation (code, mode, XEXP (x, 0), = XEXP (x, 1)); (gdb) p debug_rtx (x) (minus:V4SI (reg:V4SI 195) (const_int 1 [0x1])) ... #11 0x0000000001bee30e in combine_simplify_rtx (x=3D0x7ffff6a3dc40,=20 op0_mode=3DE_V4SImode, in_dest=3D0, in_cond=3D0) at /space/rguenther/src/gcc-sccvn/gcc/combine.c:6367 6367 return simplify_if_then_else (x); (gdb) p debug_rtx (x) (if_then_else:V4SI (eq:V4SI (reg:V4SI 134 [ vect__6.22 ]) (reg:V4SI 169)) (minus:V4SI (reg:V4SI 195) (eq:V4SI (reg:V4SI 134 [ vect__6.22 ]) (reg:V4SI 169))) (reg:V4SI 196)) segher? Use -O3 -march=3Dbdver2 >>From gcc-bugs-return-613493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:09:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70372 invoked by alias); 23 Aug 2018 09:09:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69765 invoked by uid 48); 23 Aug 2018 09:09:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Thu, 23 Aug 2018 09:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01782.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Component|other |testsuite Target Milestone|--- |9.0 --- Comment #1 from Richard Biener --- The testcase probably needs adjustment. >>From gcc-bugs-return-613495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:22:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117145 invoked by alias); 23 Aug 2018 09:22:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115447 invoked by uid 48); 23 Aug 2018 09:21:54 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87061] [9 Regression] regex cannot be compiled with -std=c++1z -D_GLIBCXX_USE_CXX11_ABI=0 Date: Thu, 23 Aug 2018 09:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01784.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87061 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:22:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116885 invoked by alias); 23 Aug 2018 09:22:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114918 invoked by uid 48); 23 Aug 2018 09:21:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87062] mis-optimized code with -O3 and std::pair Date: Thu, 23 Aug 2018 09:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on blocked everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01783.txt.bz2 Content-length: 1491 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87062 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 Blocks| |53947 Ever confirmed|0 |1 --- Comment #3 from Richard Biener --- A dup of PR84101 and others. The vectorizer has a hard time accounting for ABI details of parameter passing and return value handling because those are not reflected in GIMPLE. There's a patch posted that maybe handles this case, but I don't see a RESULT_DECL in the IL so it might not: fret (long int i) { struct pair D.7982; [local count: 1073741825]: MEM[(struct pair *)&D.7982] =3D i_2(D); MEM[(struct pair *)&D.7982 + 8B] =3D i_2(D); return D.7982; } that is, the vectorizer doesn't know D.7982 is forcefully allocated to a rax/rdx register pair but thinks it is memory (it is memory in GIMPLE). A heuristic besides the one in the posted patch would be to slightly pessimize non-TREE_ADDRESSABLE sources/destinations for vectorization, but if the ABI would return std::pair in %xmm0 we'd lose. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53947 [Bug 53947] [meta-bug] vectorizer missed-optimizations >>From gcc-bugs-return-613497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:23:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119273 invoked by alias); 23 Aug 2018 09:23:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118814 invoked by uid 48); 23 Aug 2018 09:23:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/84101] [7/8/9 Regression] -O3 and -ftree-vectorize trying too hard for function returning trivial pair-of-uint64_t-structure Date: Thu, 23 Aug 2018 09:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01786.txt.bz2 Content-length: 446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84101 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu.org --- Comment #3 from Richard Biener --- *** Bug 87062 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:23:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118927 invoked by alias); 23 Aug 2018 09:23:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118777 invoked by uid 48); 23 Aug 2018 09:23:15 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87062] mis-optimized code with -O3 and std::pair Date: Thu, 23 Aug 2018 09:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01785.txt.bz2 Content-length: 514 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87062 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Richard Biener --- Actually quite exact dup. *** This bug has been marked as a duplicate of bug 84101 *** >>From gcc-bugs-return-613498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:23:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119438 invoked by alias); 23 Aug 2018 09:23:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118871 invoked by uid 48); 23 Aug 2018 09:23:18 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations Date: Thu, 23 Aug 2018 09:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: meta-bug, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01787.txt.bz2 Content-length: 471 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53947 Bug 53947 depends on bug 87062, which changed state. Bug 87062 Summary: mis-optimized code with -O3 and std::pair https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87062 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE >>From gcc-bugs-return-613499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:25:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126593 invoked by alias); 23 Aug 2018 09:25:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121927 invoked by uid 48); 23 Aug 2018 09:25:19 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Thu, 23 Aug 2018 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01788.txt.bz2 Content-length: 337 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 --- Comment #2 from Janne Blomqvist --- I'm a bit confused, r263751 should only affect behavior wrt NaN's and possi= bly signed zeroes, and AFAICS none of those are present in the testcase. Can you print out the values of rv and vresult just before it stops? >>From gcc-bugs-return-613500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:27:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5512 invoked by alias); 23 Aug 2018 09:27:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5227 invoked by uid 48); 23 Aug 2018 09:27:20 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] [8/9 Regression] Optimization breaks an unformatted read with implicit loop Date: Thu, 23 Aug 2018 09:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01789.txt.bz2 Content-length: 137 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 --- Comment #5 from Thomas Koenig --- I have a patch. >>From gcc-bugs-return-613501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:31:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36419 invoked by alias); 23 Aug 2018 09:30:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35765 invoked by uid 48); 23 Aug 2018 09:30:10 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87024] [6/7/8 Regression] ICE in fold_stmt_1 Date: Thu, 23 Aug 2018 09:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01790.txt.bz2 Content-length: 570 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87024 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.0 Summary|[6/7/8/9 Regression] ICE in |[6/7/8 Regression] ICE in |fold_stmt_1 |fold_stmt_1 Known to fail|9.0 | --- Comment #3 from Richard Biener --- Fixed on trunk sofar. >>From gcc-bugs-return-613502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:31:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37095 invoked by alias); 23 Aug 2018 09:31:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36680 invoked by uid 55); 23 Aug 2018 09:31:11 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87024] [6/7/8 Regression] ICE in fold_stmt_1 Date: Thu, 23 Aug 2018 09:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01791.txt.bz2 Content-length: 617 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87024 --- Comment #4 from Richard Biener --- Author: rguenth Date: Thu Aug 23 09:29:45 2018 New Revision: 263805 URL: https://gcc.gnu.org/viewcvs?rev=3D263805&root=3Dgcc&view=3Drev Log: 2018-08-23 Richard Biener PR middle-end/87024 * tree-inline.c (copy_bb): Drop unused __builtin_va_arg_pack_len calls. * gcc.dg/pr87024.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/pr87024.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-inline.c >>From gcc-bugs-return-613503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:35:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71338 invoked by alias); 23 Aug 2018 09:35:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70857 invoked by uid 48); 23 Aug 2018 09:35:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86988] [7 Regression] ICE: tree check: expected integer_cst, have var_decl in get_len, at tree.h:5563 Date: Thu, 23 Aug 2018 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01792.txt.bz2 Content-length: 622 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86988 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[7/9 Regression] ICE: tree |[7 Regression] ICE: tree |check: expected |check: expected |integer_cst, have var_decl |integer_cst, have var_decl |in get_len, at tree.h:5563 |in get_len, at tree.h:5563 --- Comment #3 from Richard Biener --- Fixed on trunk sofar. >>From gcc-bugs-return-613504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:41:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111123 invoked by alias); 23 Aug 2018 09:41:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80567 invoked by uid 48); 23 Aug 2018 09:40:36 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86947] Erroneous code generated with O2 and O3 for PPC Date: Thu, 23 Aug 2018 09:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01793.txt.bz2 Content-length: 1515 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86947 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #5 from Richard Biener --- Thanks. This is invalid: unsigned short *_Pmsw (double * px) { volatile _Dconst *ps =3D (_Dconst *)(char *)px; return (unsigned short *)&ps->_Word[3]; } if (x < 0.0) { ((*_Pmsw (&(x))) ^=3D ((unsigned short) 0x8000)); neg =3D 1; } else neg =3D 0; /* _Eps._Double =3D 1.0 */ /* aliasing issue here. Compiler uses old value of x */ if (x < _Eps._Double) { the compiler can CSE the value of x across the *_Pmsw (&x) modification because 1) the load from x via an lvalue of type unsigned short violates type based aliasing rules 2) the store to x via an lvalue of type unsigned short changes the dynamic type of x which in turn makes the later load of x violate type based aliasing rules You can use -fno-strict-aliasing to make your code work. You might think that having the _Dconst union in scope makes your program conforming but GCC does not implement this reading of the standard unless you use -fno-strict-aliasing which is not the default when optimizing with -O2 or higher. >>From gcc-bugs-return-613505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:48:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59132 invoked by alias); 23 Aug 2018 09:48:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58877 invoked by uid 55); 23 Aug 2018 09:48:38 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86951] arm speculation barrier incompatible with ARMv6 or earlier Date: Thu, 23 Aug 2018 09:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01794.txt.bz2 Content-length: 2124 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86951 --- Comment #1 from Richard Earnshaw --- Author: rearnsha Date: Thu Aug 23 09:47:34 2018 New Revision: 263806 URL: https://gcc.gnu.org/viewcvs?rev=3D263806&root=3Dgcc&view=3Drev Log: PR target/86951 arm - Handle speculation barriers on pre-armv7 CPUs The AArch32 instruction sets prior to Armv7 do not define the ISB and DSB instructions that are needed to form a speculation barrier. While I do not know of any instances of cores based on those instruction sets being vulnerable to speculative side channel attacks it is possible to run code built for those ISAs on more recent hardware where they would become vulnerable. This patch works around this by using a library call added to libgcc. That code can then take any platform-specific actions necessary to ensure safety. For the moment I've only handled two cases: the library code being built for armv7 or later anyway and running on Linux. On Linux we can handle this by calling the kernel function that will flush a small amount of cache. Such a sequence ends with a ISB+DSB sequence if running on an Armv7 or later CPU. gcc: PR target/86951 * config/arm/arm-protos.h (arm_emit_speculation_barrier): New prototype. * config/arm/arm.c (speculation_barrier_libfunc): New static variable. (arm_init_libfuncs): Initialize it. (arm_emit_speculation_barrier): New function. * config/arm/arm.md (speculation_barrier): Call arm_emit_speculation_barrier for architectures that do not have=20 DSB or ISB. (speculation_barrier_insn): Only match on Armv7 or later. libgcc: PR target/86951 * config/arm/lib1funcs.asm (speculation_barrier): New function. * config/arm/t-arm (LIB1ASMFUNCS): Add it to list of functions to build. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm-protos.h trunk/gcc/config/arm/arm.c trunk/gcc/config/arm/arm.md trunk/libgcc/ChangeLog trunk/libgcc/config/arm/lib1funcs.S trunk/libgcc/config/arm/t-arm >>From gcc-bugs-return-613506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:53:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66519 invoked by alias); 23 Aug 2018 09:53:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66418 invoked by uid 48); 23 Aug 2018 09:53:16 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Thu, 23 Aug 2018 09:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01795.txt.bz2 Content-length: 2828 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #6 from Aldy Hernandez --- (tl;dr: strncmp code is creating a MIN_EXPR with incompatible types). I think my patch exposed a latent bug. Previously, the min/max code was calling int_const_binop() code, which in t= urns calls wide_int_binop() with the type of the first argument: int_const_binop(): ... tree type =3D TREE_TYPE (arg1); ... if (TREE_CODE (arg1) =3D=3D INTEGER_CST && TREE_CODE (arg2) =3D=3D INTEGE= R_CST) { wide_int warg1 =3D wi::to_wide (arg1), res; wide_int warg2 =3D wi::to_wide (arg2, TYPE_PRECISION (type)); success =3D wide_int_binop (res, code, warg1, warg2, sign, &overflow); poly_res =3D res; } But in this particular case the MIN_EXPR that was passed to VRP, and consequently int_const_binop() has incompatible argument types. Placing a breakpoint on VRP around here:=20 else if (code =3D=3D MIN_EXPR || code =3D=3D MAX_EXPR) One can see that the types of vr0.min, vr1.min, and the entire MIN_EXPR (expr_type) are not entirely compatible: (gdb) p debug_generic_stmt(vr0.min.typed.type) sizetype $33 =3D void (gdb) p debug_generic_stmt(vr1.min.typed.type) ssizetype $34 =3D void (gdb) p debug_generic_stmt(expr_type) ssizetype vr0.min is unsigned, but vr1.min and the MIN_EXPR are signed. We can trace the MIN_EXPR to: expand_builtin_strncmp(): /* If we are not using the given length, we must incorporate it here.=20= =20=20=20=20=20=20=20=20=20 The actual new length parameter will be MIN(len,arg3) in this case. */ if (len !=3D len3) len =3D fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (len), len, len3); (gdb) p debug_generic_stmt(len) MIN_EXPR <(sizetype) _4, 1>; I could easily change the new VRP code to use the type of vr0 when calling wide_int_binop, fixing the PR, and keeping to the previous functionality, b= ut I think the problem here is the incompatible MIN_EXPR. Am I missing something, or should MIN_EXPR have compatible types? Tagging Martin, since the MIN_EXPR code came from: commit 5c5d012be3c48bfcd674e4ab9d8158b171cb0e58 Author: msebor Date: Wed Dec 20 16:56:20 2017 +0000 PR testsuite/83131 - c-c++/common/attr-nonstring-3 failure for strcmp t= ests on PowerPC gcc/ChangeLog: PR testsuite/83131 * builtins.c (expand_builtin_strlen): Use get_callee_fndecl. (expand_builtin_strcmp): Call maybe_warn_nonstring_arg. (expand_builtin_strncmp): Same. >>From gcc-bugs-return-613508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:55:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85796 invoked by alias); 23 Aug 2018 09:55:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85734 invoked by uid 48); 23 Aug 2018 09:55:47 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86772] [meta-bug] tracking port status for CVE-2017-5753 Date: Thu, 23 Aug 2018 09:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01797.txt.bz2 Content-length: 486 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86772 Bug 86772 depends on bug 86951, which changed state. Bug 86951 Summary: arm speculation barrier incompatible with ARMv6 or earli= er https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86951 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-613507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 09:55:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85788 invoked by alias); 23 Aug 2018 09:55:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85721 invoked by uid 48); 23 Aug 2018 09:55:46 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86951] arm speculation barrier incompatible with ARMv6 or earlier Date: Thu, 23 Aug 2018 09:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01796.txt.bz2 Content-length: 434 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86951 Richard Earnshaw changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Richard Earnshaw --- Fixed >>From gcc-bugs-return-613509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:01:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119606 invoked by alias); 23 Aug 2018 10:01:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119337 invoked by uid 48); 23 Aug 2018 10:00:50 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87018] Boostrap problems on AIX Date: Thu, 23 Aug 2018 10:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01798.txt.bz2 Content-length: 1297 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87018 --- Comment #3 from Segher Boessenkool --- Here is one way that works: (this is on gcc119): Use bash as your shell. export SHELL=3D/usr/bin/bash export CONFIG_SHELL=3D/usr/bin/bash export PATH=3D/opt/freeware/bin:$PATH ~/src/gcc/configure --disable-werror --enable-languages=3Dc,c++ \ --with-gmp=3D/opt/cfarm --with-libiconv-prefix=3D/opt/cfarm \ --disable-libstdcxx-pch --disable-nls (not sure if that --disable-werror is needed, or was only temporarily neede= d, or what; but it works. No idea if that libiconv thing is needed either, th= ere is disable-nls after all. And the pch thing is just to make bootstrap a lot faster). Here is one I use on gcc111: ~/src/gcc/configure --prefix=3D$HOME/tot --enable-languages=3Dc,c++,fortran= \ --with-gmp=3D/opt/cfarm/gmp-latest --with-mpfr=3D/opt/cfarm/mpfr-latest \ --with-mpc=3D/opt/cfarm/mpc-latest --disable-nls --disable-libsanitizer (and same env settings as on gcc119). I don't know what you are doing that causes problems. The AIX systems are annoyingly slow to experiment on, but they aren't harder at all to build on than other less mainstream systems, in my experience. So please just experiment, or ask for help when you get stuck. Good luck! >>From gcc-bugs-return-613510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:21:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77251 invoked by alias); 23 Aug 2018 10:21:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77211 invoked by uid 48); 23 Aug 2018 10:21:47 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] [9 Regression] GCC does not work when using -pipe Date: Thu, 23 Aug 2018 10:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01799.txt.bz2 Content-length: 518 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 Nathan Sidwell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot g= nu.org --- Comment #4 from Nathan Sidwell --- Fixed r263807 >>From gcc-bugs-return-613511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:22:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78931 invoked by alias); 23 Aug 2018 10:22:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77954 invoked by uid 55); 23 Aug 2018 10:21:56 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/87056] [9 Regression] GCC does not work when using -pipe Date: Thu, 23 Aug 2018 10:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01800.txt.bz2 Content-length: 567 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87056 --- Comment #5 from Nathan Sidwell --- Author: nathan Date: Thu Aug 23 10:21:21 2018 New Revision: 263807 URL: https://gcc.gnu.org/viewcvs?rev=3D263807&root=3Dgcc&view=3Drev Log: [libiberty patch] Fix PGO bootstrap https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01386.html PR driver/87056 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local scopes to avoid potential clobber. Modified: trunk/libiberty/ChangeLog trunk/libiberty/pex-unix.c >>From gcc-bugs-return-613512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:42:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33633 invoked by alias); 23 Aug 2018 10:42:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33588 invoked by uid 48); 23 Aug 2018 10:42:44 -0000 From: "anon63 at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Thu, 23 Aug 2018 10:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: anon63 at protonmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01801.txt.bz2 Content-length: 1150 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 --- Comment #3 from anon63 --- Dear Martin, Thank you for the explanations. Do you have any advice of what we should do before this eventual deferring = of the strncpy -> memcpy folding in a future gcc release ? In particular, can you elaborate just a bit on what you said in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84474 : "strncpy is being misused and strcpy (or other string functions if strcpy is not acceptable) would be more appropriate" I am searching for a strategic way of dealing with these false positive when lots of codebases are going to be compiled by default with gcc-8. (as you k= now, gcc 8 is the default on debian sid since end of July 2018 but people are co= ming back from holidays now :) ) For example, here https://lkml.org/lkml/2018/2/17/198, a guy suggests to use -Wno-stringop-truncation until gcc deals true/false positive correctly or here=20 https://stackoverflow.com/questions/50198319/gcc-8-wstringop-truncation-wha= t-is-the-good-practice the pragma diagnostic solution, the manual strncmp->memcmp solution... Best, >>From gcc-bugs-return-613513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:50:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70753 invoked by alias); 23 Aug 2018 10:50:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70691 invoked by uid 48); 23 Aug 2018 10:50:24 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87065] [7/8/9 Regression] combine causes ICE in trunc_int_for_mode Date: Thu, 23 Aug 2018 10:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01802.txt.bz2 Content-length: 493 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org, | |rsandifo at gcc dot gnu.org --- Comment #4 from Martin Li=C5=A1ka --- Btw. started with r224941. >>From gcc-bugs-return-613514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:52:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73287 invoked by alias); 23 Aug 2018 10:52:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73203 invoked by uid 48); 23 Aug 2018 10:51:56 -0000 From: "luk32 at o2 dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87068] New: No diagnostic on an ill-formed [[fallthrough]] Date: Thu, 23 Aug 2018 10:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luk32 at o2 dot pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01803.txt.bz2 Content-length: 1098 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87068 Bug ID: 87068 Summary: No diagnostic on an ill-formed [[fallthrough]] Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: luk32 at o2 dot pl Target Milestone: --- gcc cleanly compiles an ill-formed [[fallthrough]] example from the standar= d, producing no diagnostic. I believe it's a bug. Problematic code: // http://eel.is/c++draft/dcl.attr.fallthrough void f(int n) { void g(), h(), i(); switch (n) { case 1: case 2: g(); [[fallthrough]]; case 3: // warning on fallthrough discouraged h(); case 4: // implementation may warn on fallthrough i(); [[fallthrough]]; // ill-formed } } Live example https://godbolt.org/z/fftSM- Credit: https://stackoverflow.com/questions/51983560/should-there-be-a-diagnostic-f= rom-from-gcc-for-this-ill-formed-c-code >>From gcc-bugs-return-613515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:54:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77265 invoked by alias); 23 Aug 2018 10:54:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77237 invoked by uid 48); 23 Aug 2018 10:54:02 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87069] New: gcov accumulates results for identical files Date: Thu, 23 Aug 2018 10:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01804.txt.bz2 Content-length: 1149 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87069 Bug ID: 87069 Summary: gcov accumulates results for identical files Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- It's probably issue when one provides one files twice on command line: $ cat gcov.c int foo() { return 0; } int main() { return foo(); } $ gcov gcov.c gcov.c -t -: 0:Source:gcov.c -: 0:Programs:2 2: 1:int foo() -: 2:{ 2: 3: return 0; -: 4:} ------------------ foo: 1: 1:int foo() -: 2:{ 1: 3: return 0; -: 4:} ------------------ foo: 1: 1:int foo() -: 2:{ 1: 3: return 0; -: 4:} ------------------ -: 5: 2: 6:int main() -: 7:{ 2: 8: return foo(); -: 9:} >>From gcc-bugs-return-613516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:54:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78015 invoked by alias); 23 Aug 2018 10:54:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77948 invoked by uid 48); 23 Aug 2018 10:54:14 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87069] gcov accumulates results for identical files Date: Thu, 23 Aug 2018 10:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01805.txt.bz2 Content-length: 495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87069 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-23 Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org Ever confirmed|0 |1 >>From gcc-bugs-return-613517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 10:57:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80801 invoked by alias); 23 Aug 2018 10:57:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80758 invoked by uid 48); 23 Aug 2018 10:57:12 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/86957] gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use Date: Thu, 23 Aug 2018 10:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibhagatgnu at gmail dot com X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01806.txt.bz2 Content-length: 323 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86957 --- Comment #4 from Martin Li=C5=A1ka --- Agree that we should provide that information to user. Question is whether = we want to present it as a note (of a warning) or use new dump_printf_loc machinery? I can Indu help with that if needed? >>From gcc-bugs-return-613518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 11:01:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85151 invoked by alias); 23 Aug 2018 11:01:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84669 invoked by uid 48); 23 Aug 2018 11:01:12 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87070] New: Combine popcount on pieces to a single popcountll Date: Thu, 23 Aug 2018 11:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01807.txt.bz2 Content-length: 1565 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87070 Bug ID: 87070 Summary: Combine popcount on pieces to a single popcountll Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: glisse at gcc dot gnu.org Target Milestone: --- #include int f(unsigned long long x){ return std::bitset<64>(x).count(); } should be a portable way to call a 64-bit popcount if it exists. Bug 63218 (bitset always uses long, never anything larger or smaller) sadly makes it harder. The optimizer could compensate, but it doesn't, not in the "too sma= ll" case (bug 83171), and not in the "too large" case, which is the topic of th= is report. What I get with gcc on win64: _13 =3D (long unsigned int) x_2(D); _14 =3D x_2(D) >> 32; _15 =3D (long unsigned int) _14; _22 =3D __builtin_popcountl (_13); _29 =3D __builtin_popcountl (_15); _12 =3D (unsigned int) _22; _3 =3D (unsigned int) _29; _9 =3D _3 + _12; _4 =3D (int) _9; return _4; This dump is from gcc-7, but testing int f(unsigned long long x){ return __builtin_popcount(x)+__builtin_popcount(x>>32); } with trunk on linux shows it can't have changed much. To be clear, this report is specifically about transforming the sum of popc= ount on the 2 halves of a number into a single bigger popcount. A match.pd transformation may be sufficient. >>From gcc-bugs-return-613519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 11:27:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103722 invoked by alias); 23 Aug 2018 11:27:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103683 invoked by uid 48); 23 Aug 2018 11:27:06 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87068] No diagnostic on an ill-formed [[fallthrough]] Date: Thu, 23 Aug 2018 11:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01808.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87068 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 Ever confirmed|0 |1 >>From gcc-bugs-return-613520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 11:31:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66954 invoked by alias); 23 Aug 2018 11:31:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54857 invoked by uid 48); 23 Aug 2018 11:31:10 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87065] [7/8/9 Regression] combine causes ICE in trunc_int_for_mode Date: Thu, 23 Aug 2018 11:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01809.txt.bz2 Content-length: 136 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 --- Comment #5 from Segher Boessenkool --- Confirmed. >>From gcc-bugs-return-613521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 11:47:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92908 invoked by alias); 23 Aug 2018 11:47:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92849 invoked by uid 48); 23 Aug 2018 11:47:50 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87065] [7/8/9 Regression] combine causes ICE in trunc_int_for_mode Date: Thu, 23 Aug 2018 11:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01810.txt.bz2 Content-length: 946 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 --- Comment #6 from Segher Boessenkool --- So this is when trying Trying 60, 63 -> 67: 60: r163:V4SI=3Dr127:V4SI=3D=3Dr162:V4SI REG_DEAD r127:V4SI REG_EQUAL r127:V4SI=3D=3Dconst_vector 63: r164:V4SI=3Dr188:V4SI-r163:V4SI 67: r166:V4SI=3D{(r163:V4SI)?r164:V4SI:r190:V4SI} REG_DEAD r164:V4SI REG_DEAD r163:V4SI That looks fine as far as I see. but, gdb on it: (gdb) frame 6 #6 0x0000000000dbf196 in simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*) () at /home/segher/src/gcc/gcc/simplify-rtx.c:2167 2167 tem =3D simplify_binary_operation_1 (code, mode, op0, op1, trueop= 0, trueop1); (gdb) p op0 $1 =3D (rtx) 0x7ffff04e6f30 (gdb) pr (reg:V4SI 188) (gdb) p op1 $2 =3D (rtx) 0x7ffff03254a0 (gdb) pr (const_int 1 [0x1]) It is using the "=3D=3D" as a const_int, while it should be a const_vector = here? >>From gcc-bugs-return-613522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:09:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29660 invoked by alias); 23 Aug 2018 12:09:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29356 invoked by uid 48); 23 Aug 2018 12:09:11 -0000 From: "virtuousfox at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] New: libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 12:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: virtuousfox at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01811.txt.bz2 Content-length: 5037 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 Bug ID: 87071 Summary: libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: virtuousfox at gmail dot com Target Milestone: --- Created attachment 44576 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44576&action=3Dedit Xorg.pid-1158.gdb.log So I've updated the system on an old laptop after neglecting to do so for a long time and was met with inoperable X server. After sending a report to M= esa developers they insisted on that being an issue in libstdc++. Attached file contains full gdb dump made by automated script and filled with relevant debuginfo. Affected libstdc++ version are 8.1.1 from https://build.opensuse.org/package/show/openSUSE:Factory/gcc8 and 8.2.1 from https://build.opensuse.org/package/show/devel:gcc/gcc8 Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib64/gcc/x86_64-suse-linux/8/lto-wrapper OFFLOAD_TARGET_NAMES=3Dhsa:nvptx-none Target: x86_64-suse-linux Configured with: ../configure --prefix=3D/usr --infodir=3D/usr/share/info --mandir=3D/usr/share/man --libdir=3D/usr/lib64 --libexecdir=3D/usr/lib64 --enable-languages=3Dc,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=3Dhsa,nvptx-none=3D/usr/nvptx-none, --without-cuda= -driver --enable-checking=3Drelease --disable-werror --with-gxx-include-dir=3D/usr/include/c++/8 --enable-ssp --disable-libssp --disable-libvtv --disable-cet --disable-libcc1 --enable-plugin --with-bugurl=3Dhttp://bugs.opensuse.org/ --with-pkgversion=3D'SUSE Linux' --with-slibdir=3D/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=3Dnew --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=3D-8 --without-system-libunwind --enable-multilib --with-arch-32=3Dx86-64 --with-tune=3Dgeneric --build=3Dx86_64-suse-linux --host=3Dx86_64-suse-linux Thread model: posix gcc version 8.2.1 20180817 [gcc-8-branch revision 263612] (SUSE Linux)=20 cpuinfo from affected machine: processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 104 model name : AMD Athlon(tm) 64 X2 Dual-Core Processor TK-57 stepping : 2 cpu MHz : 800.000 cache size : 256 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca = cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl cpuid extd_apicid pni cx16 lahf_lm cmp_legacy = svm extapic cr8_legacy 3dnowprefetch vmmcall lbrv bugs : apic_c1e fxsave_leak sysret_ss_attrs null_seg swapgs_fence amd_e400 spectre_v1 spectre_v2 bogomips : 1596.01 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc 100mhzsteps processor : 1 =E2=80=A6 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 =E2=80=A6 However, same versions run fine on machine with Radeon RX580 (radeonsi_dri)= and processor : 0 vendor_id : AuthenticAMD cpu family : 21 model : 1 model name : AMD FX(tm)-6100 Six-Core Processor stepping : 2 microcode : 0x600063e cpu MHz : 3780.977 cache size : 2048 KB physical id : 0 siblings : 6 core id : 0 cpu cores : 3 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca = cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmpe= rf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw = ibs xop skinit wdt fma4 nodeid_msr topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold bugs : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass bogomips : 7919.04 TLB size : 1536 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm 100mhzsteps hwpstate cpb >>From gcc-bugs-return-613523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:10:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32422 invoked by alias); 23 Aug 2018 12:10:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32385 invoked by uid 48); 23 Aug 2018 12:10:53 -0000 From: "virtuousfox at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 12:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: virtuousfox at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01812.txt.bz2 Content-length: 279 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 --- Comment #1 from Sergey Kondakov --- Created attachment 44577 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44577&action=3Dedit Asus_F3Ke.dmesg Verbose dmesg from affected machine. >>From gcc-bugs-return-613524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:35:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90938 invoked by alias); 23 Aug 2018 12:35:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90797 invoked by uid 48); 23 Aug 2018 12:35:46 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 12:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01813.txt.bz2 Content-length: 369 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 --- Comment #2 from Jonathan Wakely --- (EE) Illegal instruction at address 0x7ffff2f2c8ea I don't see how this can possibly be a libstdc++ problem, since libstdc++ doesn't produce any CPU instructions, illegal or not. As I already said to you, there's nothing we can do with this info. >>From gcc-bugs-return-613525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:40:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28630 invoked by alias); 23 Aug 2018 12:40:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28543 invoked by uid 55); 23 Aug 2018 12:40:47 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Thu, 23 Aug 2018 12:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01814.txt.bz2 Content-length: 847 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 --- Comment #5 from Segher Boessenkool --- Author: segher Date: Thu Aug 23 12:40:14 2018 New Revision: 263810 URL: https://gcc.gnu.org/viewcvs?rev=3D263810&root=3Dgcc&view=3Drev Log: Fix recent bug in canonicalize_comparison (PR87026) The new code testing which way a comparison is best expressed creates a pseudoregister (by hand) and creates some insns with that. Such insns will no longer recog() when pseudo-registers are no longer aloowed (after reload). But we have an ifcvt pass after reload (ce3). This patch simply returns if we cannot create pseudos. PR rtl-optimization/87026 * expmed.c (canonicalize_comparison): If we can no longer create pseudoregisters, don't. Modified: trunk/gcc/ChangeLog trunk/gcc/expmed.c >>From gcc-bugs-return-613526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:41:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29865 invoked by alias); 23 Aug 2018 12:41:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29762 invoked by uid 48); 23 Aug 2018 12:41:41 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87026] [9 Regression] ICE in extract_constrain_insn_cached, at recog.c:2218 Date: Thu, 23 Aug 2018 12:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01815.txt.bz2 Content-length: 435 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87026 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Segher Boessenkool --- Fixed. >>From gcc-bugs-return-613528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:50:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130449 invoked by alias); 23 Aug 2018 12:50:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116067 invoked by uid 48); 23 Aug 2018 12:50:25 -0000 From: "virtuousfox at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 12:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: virtuousfox at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01817.txt.bz2 Content-length: 1648 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 --- Comment #3 from Sergey Kondakov --- (In reply to Jonathan Wakely from comment #2) > (EE) Illegal instruction at address 0x7ffff2f2c8ea >=20 > I don't see how this can possibly be a libstdc++ problem, since libstdc++ > doesn't produce any CPU instructions, illegal or not. >=20 > As I already said to you, there's nothing we can do with this info. And Mesa devs said that it is. So everyone points fingers at each other in a circle and what am I supposed to do ? Program received signal SIGILL, Illegal instruction. 0x00007ffff2f2c8ea in _GLOBAL__sub_I_lower_x86.cpp () at /usr/bin/../lib64/gcc/x86_64-suse-linux/8/../../../../include/c++/8/bits/ch= ar_traits.h:350 350 return static_cast(__builtin_memcpy(__s1, __s2, __n)); #0 0x00007ffff2f2c8ea in _GLOBAL__sub_I_lower_x86.cpp () at /usr/bin/../lib64/gcc/x86_64-suse-linux/8/../../../../include/c++/8/bits/ch= ar_traits.h:350 InitializeLowerX86PassFlag =3D {_M_once =3D 0} SwrJit::intrinsicMap2[abi:cxx11] =3D {std::map with 0 elements, std= ::map with 0 elements, std::map with 0 elements} std::__ioinit =3D {static _S_refcount =3D 13, static _S_synced_with= _stdio =3D true} SwrJit::DOUBLE =3D std::piecewise_construct =3D (anonymous namespace)::ForceMCJITLinking =3D SwrJit::intrinsicMap[abi:cxx11] =3D std::map with 0 elements SwrJit::LowerX86::ID =3D 0 '\000' Is include/c++/8/bits/char_traits.h not part of libstdc++ ? If your code is correct then whose isn't ? >>From gcc-bugs-return-613527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 12:50:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114915 invoked by alias); 23 Aug 2018 12:50:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114373 invoked by uid 48); 23 Aug 2018 12:50:14 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86771] [9 Regression] gfortran.dg/actual_array_constructor_1.f90 fails on arm after combine 2 insns to 2 insns patch Date: Thu, 23 Aug 2018 12:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01816.txt.bz2 Content-length: 418 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86771 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|9.0 |8.3 --- Comment #22 from Segher Boessenkool --- Fixed on trunk; I'll backport it to 8 next week. >>From gcc-bugs-return-613529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:04:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118646 invoked by alias); 23 Aug 2018 13:04:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118518 invoked by uid 48); 23 Aug 2018 13:04:01 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 13:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01818.txt.bz2 Content-length: 718 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 --- Comment #4 from Uro=C5=A1 Bizjak --- (In reply to Sergey Kondakov from comment #3) > If your code is correct then whose isn't ? Instructions are generated by the compiler. So, it is the compiler's fault,= it probably emits a SSE instruction that your processor doesn't understand. That said, at least we need a runtime testcase that fails on your target. If this is not possible, then please at least decompile the library and show t= he instruction that fails. We also need preprocessed source and exact instructions, how to build the source, so the illegal insn will be generate= d. Also, please read https://gcc.gnu.org/bugs/ >>From gcc-bugs-return-613530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:04:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120119 invoked by alias); 23 Aug 2018 13:04:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120060 invoked by uid 48); 23 Aug 2018 13:04:52 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87068] No diagnostic on an ill-formed [[fallthrough]] Date: Thu, 23 Aug 2018 13:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01819.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87068 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-613531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:15:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41523 invoked by alias); 23 Aug 2018 13:15:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40502 invoked by uid 48); 23 Aug 2018 13:15:27 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 13:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01820.txt.bz2 Content-length: 1140 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-23 Ever confirmed|0 |1 --- Comment #5 from Jonathan Wakely --- (In reply to Uro=C5=A1 Bizjak from comment #4) > (In reply to Sergey Kondakov from comment #3) >=20 > > If your code is correct then whose isn't ? > Instructions are generated by the compiler. So, it is the compiler's faul= t, > it probably emits a SSE instruction that your processor doesn't understan= d. Right. As you can see in GDB, the libstdc++ code says: 350 return static_cast(__builtin_memcpy(__s1, __s2, __n)); Do you see any processor instructions there? Anything that isn't valid on y= our CPU? No, because it's just C++ code. > Also, please read https://gcc.gnu.org/bugs/ I already said that before the bug was even filed. >>From gcc-bugs-return-613532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:16:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42345 invoked by alias); 23 Aug 2018 13:16:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42135 invoked by uid 48); 23 Aug 2018 13:16:02 -0000 From: "stiefschmied at alice dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87072] New: g++6.2.0 false warning: array subscript is above array bounds, with misleading line number Date: Thu, 23 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stiefschmied at alice dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01821.txt.bz2 Content-length: 1734 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87072 Bug ID: 87072 Summary: g++6.2.0 false warning: array subscript is above array bounds, with misleading line number Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: stiefschmied at alice dot de Target Milestone: --- Created attachment 44578 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44578&action=3Dedit C++ code fragment to reproduce the false warning The code attached below gives a false warning: fit.cxx: In member function =E2=80=98void Fit::NewtonStep()=E2=80=99: fit.cxx:7:53: warning: array subscript is above array bounds [-Warray-bound= s] inline void AddToPar(unsigned i,double x) { par[i]+=3Dx; } when compiled with: g++ -Wall -O3 -c The warning disappears when commenting out line 11, which contains complete= ly unrelated code. It also disappears when commenting out line 28, where the inline code from line 7 actually is expanded. The warning is also absent wh= en compiling with a reduced level of optimisation. output of g++ -v =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/G= cc/gcc620_x86_64_slc6/6.2.0/x86_64-slc6/bin/../libexec/gcc/x86_64-pc-linux-= gnu/6.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-6.2.0/configure --prefix=3D/build/pmendez-sftnight/install-620local -with-system-zlib --disable-multilib --enable-languages=3Dall Thread model: posix gcc version 6.2.0 (GCC) >>From gcc-bugs-return-613533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:20:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77022 invoked by alias); 23 Aug 2018 13:20:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76928 invoked by uid 48); 23 Aug 2018 13:20:04 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8/9 Regression] memory hog Date: Thu, 23 Aug 2018 13:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01822.txt.bz2 Content-length: 242 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #17 from Richard Biener --- Created attachment 44579 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44579&action=3Dedit alternate testcase >>From gcc-bugs-return-613534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:34:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16209 invoked by alias); 23 Aug 2018 13:34:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16006 invoked by uid 48); 23 Aug 2018 13:34:35 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87054] misaligned asm output is turned into dereferenced pointer-to-aligned Date: Thu, 23 Aug 2018 13:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01823.txt.bz2 Content-length: 792 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87054 Alexandre Oliva changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot g= nu.org --- Comment #2 from Alexandre Oliva --- Created attachment 44580 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44580&action=3Dedit tested patch Yeah, sorry, I mangled the patch a bit while simplifying it. I've tested your patch, and combined it with a corrected testcase, into the attached file, that I regstrapped on x86_64-linux-gnu. Want me to post it, or will you? >>From gcc-bugs-return-613535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:37:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25664 invoked by alias); 23 Aug 2018 13:37:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25417 invoked by uid 48); 23 Aug 2018 13:37:30 -0000 From: "vlad.lazar at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86995] [9 regression] c-c++-common/torture/builtin-arith-overflow-17.c etc. FAIL Date: Thu, 23 Aug 2018 13:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vlad.lazar at arm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01824.txt.bz2 Content-length: 619 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86995 Vlad Lazar changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vlad.lazar at arm dot com --- Comment #2 from Vlad Lazar --- On x86 this was caused by the cost model and has been fixed in r263652. However, upon further inspection, it surfaced that wi::add does not detect underflow for unsigned operations. I am currently testing a patch which sho= uld solve the issue. >>From gcc-bugs-return-613536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:46:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8315 invoked by alias); 23 Aug 2018 13:46:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7909 invoked by uid 48); 23 Aug 2018 13:46:31 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85433] -fdiagnostics-color=auto doesn't work properly with LTO Date: Thu, 23 Aug 2018 13:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: diagnostic, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01825.txt.bz2 Content-length: 708 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85433 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 CC| |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka --- We use files for tlink use which IMO is never executed when we do plugin enabled LTO link. I think we can just disable creation of those files for use_plugin path. >>From gcc-bugs-return-613537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:49:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4009 invoked by alias); 23 Aug 2018 13:48:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119564 invoked by uid 48); 23 Aug 2018 13:48:47 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 13:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01826.txt.bz2 Content-length: 651 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #6 from Alexander Monakov --- In your gdb script, please add x/i $pc disas after the backtrace command (probably 'bt full') and regenerate the log. Without that the log doesn't actually show the "illegal" instruction. Also please show output of rpm -qf /usr/lib64/dri/r300_dri.so >>From gcc-bugs-return-613538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:50:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82629 invoked by alias); 23 Aug 2018 13:50:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76304 invoked by uid 48); 23 Aug 2018 13:50:35 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Thu, 23 Aug 2018 13:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01827.txt.bz2 Content-length: 904 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 Alexandre Oliva changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44573|0 |1 is obsolete| | --- Comment #5 from Alexandre Oliva --- Created attachment 44581 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44581&action=3Dedit tested patch This is a complete patch, with all the generated files, that I tested on x86_64-linux-gnu, with an assembler that supports is_stmt. I've also manua= lly tested manually removing the #define HAVE_GAS_LOC_STMT in auto-host.h, and checked that the compiler wouldn't output is_stmt directives. (It would st= ill emit negate_stmt opcodes when generating line number programs itself) >>From gcc-bugs-return-613539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 13:51:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122992 invoked by alias); 23 Aug 2018 13:51:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116748 invoked by uid 48); 23 Aug 2018 13:51:45 -0000 From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Thu, 23 Aug 2018 13:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01828.txt.bz2 Content-length: 215 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 --- Comment #6 from Alexandre Oliva --- I wanted to ask, martin, can you please confirm that it does indeed fix the problem for you? >>From gcc-bugs-return-613540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 14:12:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88947 invoked by alias); 23 Aug 2018 14:12:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88715 invoked by uid 48); 23 Aug 2018 14:12:30 -0000 From: "matthew.hambley at metoffice dot gov.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/84554] make check: FAIL: tversion: ERROR! The versions of gmp.h (5.0.5) and libgmp (4.3.1) do not match. Date: Thu, 23 Aug 2018 14:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matthew.hambley at metoffice dot gov.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01829.txt.bz2 Content-length: 1004 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84554 matthew.hambley at metoffice dot gov.uk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matthew.hambley at metoffi= ce dot g | |ov.uk --- Comment #1 from matthew.hambley at metoffice dot gov.uk --- I see this too, with GCC 8.2.0. tar -xf gcc-8.2.0.tar.xz cd gcc-8.2.0 ./contrib/download_prerequisites cd .. mkdir -p gcc-8.2.0-build cd gcc-8.2.0-build ../gcc-8.2.0/configure --prefix=3D$package_dir/gcc/8.2.0 --enable-languages=3Dc,c++,fortran,go --disable-multilib make -j 16 It looks like it gets to stage 2 of the bootstrapping process, then it fail= s in the MPFR self-test in the way described. What seems to be happening is that it's correctly picking up gmp.h from the in-source version but and old version of the library from /usr/lib64/libgmp= .so. >>From gcc-bugs-return-613541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 14:18:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60851 invoked by alias); 23 Aug 2018 14:18:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60680 invoked by uid 55); 23 Aug 2018 14:18:06 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87054] misaligned asm output is turned into dereferenced pointer-to-aligned Date: Thu, 23 Aug 2018 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01830.txt.bz2 Content-length: 1106 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87054 --- Comment #3 from rguenther at suse dot de --- On Thu, 23 Aug 2018, aoliva at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87054 >=20 > Alexandre Oliva changed: >=20 > What |Removed |Added > -------------------------------------------------------------------------= --- > Status|NEW |ASSIGNED > Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot= gnu.org >=20 > --- Comment #2 from Alexandre Oliva --- > Created attachment 44580 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44580&action=3Dedit > tested patch >=20 > Yeah, sorry, I mangled the patch a bit while simplifying it. >=20 > I've tested your patch, and combined it with a corrected testcase, into t= he > attached file, that I regstrapped on x86_64-linux-gnu. >=20 > Want me to post it, or will you? Please go ahead - the patch is OK for trunk and branches after a while. >>From gcc-bugs-return-613542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 15:01:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65928 invoked by alias); 23 Aug 2018 15:01:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65307 invoked by uid 48); 23 Aug 2018 15:00:40 -0000 From: "wendellcraigbaker at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/83754] Segmentation fault in regex_search Date: Thu, 23 Aug 2018 15:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wendellcraigbaker at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01831.txt.bz2 Content-length: 1040 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83754 Wendell Baker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wendellcraigbaker at gmail= dot com --- Comment #2 from Wendell Baker --- Created attachment 44582 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44582&action=3Dedit test case using gcc compilation output $ tar -avxf example.tar.gz=20 libstdc++_std_regex_executor/ libstdc++_std_regex_executor/.gitignore libstdc++_std_regex_executor/Makefile libstdc++_std_regex_executor/exhibit_grep libstdc++_std_regex_executor/exhibit_perl libstdc++_std_regex_executor/exhibit_sed libstdc++_std_regex_executor/main.cpp $ cd libstdc++_std_regex_executor/ $ make check g++ -c -o main.o -std=3Dc++1z main.cpp g++ -o driver main.o=20=20 ./driver make: *** [Makefile:14: check] Segmentation fault (core dumped) >>From gcc-bugs-return-613544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 15:16:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33500 invoked by alias); 23 Aug 2018 15:16:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33427 invoked by uid 48); 23 Aug 2018 15:16:48 -0000 From: "programmer at posteo dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85875] -Weffc++ can't understand auto return values Date: Thu, 23 Aug 2018 15:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: programmer at posteo dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01833.txt.bz2 Content-length: 729 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85875 programmer at posteo dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |programmer at posteo dot de --- Comment #1 from programmer at posteo dot de --- Related: If the return type shall be used for SFINAE then GCC complains bef= ore any instantiation takes place. #include template struct UseOps; template constexpr std::enable_if_t< UseOps{}, T& > operator++(T&); // warning: prefix 'constexpr std::enable_if_t{}, T&> operator++(= T&)' // should return 'T&' [-Weffc++] >>From gcc-bugs-return-613543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 15:16:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8177 invoked by alias); 23 Aug 2018 15:16:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2211 invoked by uid 48); 23 Aug 2018 15:16:07 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Thu, 23 Aug 2018 15:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01832.txt.bz2 Content-length: 1226 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 --- Comment #3 from seurer at gcc dot gnu.org --- First off I know little about Fortran. I looked at some articles about how= to write out values and changed the code to this (sorry if this offends any Fortran enthusiasts): WRITE(*,'(L1,L2,F8.2,F8.2,F8.2)') rg, vresult, abs (rg - 0.0), abs (vresu= lt - 0.0), abs (rg - vresult) if (abs (rg - vresult) .ge. e) STOP 9 WRITE(*,'(L1,L2,F8.2,F8.2,F8.2)') rw, vresult, abs (rw - 0.0), abs (vresu= lt - 0.0), abs (rw - vresult) if (abs (rw - vresult) .ge. e) STOP 10 WRITE(*,'(L1,L2,F8.2,F8.2,F8.2)') rv, vresult, abs (rv - 0.0), abs (vresu= lt - 0.0), abs (rv - vresult) if (abs (rv - vresult) .ge. e) STOP 11 if (abs (rc - vresult) .ge. e) STOP 12 When I run it with r263751 I get: T T 10.00 10.00 0.00 T T 10.00 10.00 0.00 T T 9.00 10.00 1.00 STOP 11 FAIL: libgomp.oacc-fortran/reduction-3.f90 -DACC_DEVICE_TYPE_host=3D1 -DACC_MEM_SHARED=3D1 -O1 execution test With r263750 I get: T T 10.00 10.00 0.00 T T 10.00 10.00 0.00 T T 10.00 10.00 0.00 PASS: libgomp.oacc-fortran/reduction-3.f90 -DACC_DEVICE_TYPE_host=3D1 -DACC_MEM_SHARED=3D1 -O1 execution test >>From gcc-bugs-return-613545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 15:31:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117024 invoked by alias); 23 Aug 2018 15:31:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115994 invoked by uid 48); 23 Aug 2018 15:31:02 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug hsa/86948] Internal compiler error compiling brig.dg/test/gimple/mulhi.hsail Date: Thu, 23 Aug 2018 15:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: hsa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01834.txt.bz2 Content-length: 213 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86948 --- Comment #6 from Alexander Monakov --- Please follow up on the ML to https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01128.html >>From gcc-bugs-return-613546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 16:04:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88206 invoked by alias); 23 Aug 2018 16:04:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88109 invoked by uid 48); 23 Aug 2018 16:03:58 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/84554] make check: FAIL: tversion: ERROR! The versions of gmp.h (5.0.5) and libgmp (4.3.1) do not match. Date: Thu, 23 Aug 2018 16:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01835.txt.bz2 Content-length: 595 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84554 --- Comment #2 from Jonathan Wakely --- (In reply to matthew.hambley from comment #1) > What seems to be happening is that it's correctly picking up gmp.h from t= he > in-source version but and old version of the library from > /usr/lib64/libgmp.so. That shouldn't be possible, because by using contrib/download_prerequisites= GCC will link to a static in-tree libgmp.a and so doesn't need any libgmp.so at all. Do you have any odd environment variables that would be forcing it to link = to the shared library? >>From gcc-bugs-return-613547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 16:30:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129623 invoked by alias); 23 Aug 2018 16:30:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69927 invoked by uid 48); 23 Aug 2018 16:29:57 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86722] ifcvt produces x&0 that is never cleaned up Date: Thu, 23 Aug 2018 16:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01836.txt.bz2 Content-length: 1050 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86722 --- Comment #2 from Marc Glisse --- noce_try_cmove has if ((CONSTANT_P (if_info->a) || register_operand (if_info->a, VOIDmode)) && (CONSTANT_P (if_info->b) || register_operand (if_info->b, VOIDmode= ))) but the first 3 times we go through there, we give up because if_info->a is (mem/u/c:DF (symbol_ref/u:DI ("*.LC1") [flags 0x2]) [0 S8 A64]) Looking in the dump, I see: (insn 6 15 16 5 (set (reg:DF 88 [ iftmp.0_3 ]) (mem/u/c:DF (symbol_ref/u:DI ("*.LC1") [flags 0x2]) [0 S8 A64])) "e.c":3 130 {*movdf_internal} (expr_list:REG_EQUAL (const_double:DF 0.0 [0x0.0p+0]) (nil))) so if we had looked through the REG_EQUAL to see the constant, things might have worked better. I don't know if we can do that though, since we seem ve= ry adverse to anything that looks like constant propagation in RTL. In ce2, we arrive there with registers instead of constants, so we do transform, but without seeing the constant 0 we cannot simplify. >>From gcc-bugs-return-613548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 16:54:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73243 invoked by alias); 23 Aug 2018 16:54:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73186 invoked by uid 48); 23 Aug 2018 16:54:51 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] New: go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Thu, 23 Aug 2018 16:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01837.txt.bz2 Content-length: 2531 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 Bug ID: 87073 Summary: go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- I see an ICE in an x86_64-linux bootstrap: /opt/notnfs/msebor/src/gcc/87028/libgo/go/runtime/runtime.go:26:1: internal compiler error: Segmentation fault 26 | func tickspersecond() int64 { | ^ yes checking for exp... 0xcc972f crash_signal /opt/notnfs/msebor/src/gcc/87028/gcc/toplev.c:325 0x7fe5f045d94f ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.24-66-gd5a4092c36/signal/../sysdeps/unix/sysv/linux/= x86_64/sigaction.c:0 0xf4f5b3 generic_wide_int >::elt(unsigned int) const /opt/notnfs/msebor/src/gcc/87028/gcc/wide-int.h:908 0xf4f5b3 wide_int_to_tree_1 /opt/notnfs/msebor/src/gcc/87028/gcc/tree.c:1488 yes checking for expl... 0xf35ad2 extract_range_from_binary_expr_1(value_range*, tree_code, tree_node*, value_range*, value_range*) /opt/notnfs/msebor/src/gcc/87028/gcc/tree-vrp.c:1675 0xf36247 extract_range_from_binary_expr_1(value_range*, tree_code, tree_nod= e*, value_range*, value_range*) /opt/notnfs/msebor/src/gcc/87028/gcc/tree-vrp.c:1373 0xf9c846 vr_values::extract_range_from_binary_expr(value_range*, tree_code, tree_node*, tree_node*, tree_node*) /opt/notnfs/msebor/src/gcc/87028/gcc/vr-values.c:768 0xf9ea70 vr_values::extract_range_from_assignment(value_range*, gassign*) /opt/notnfs/msebor/src/gcc/87028/gcc/vr-values.c:1429 0x146d968 evrp_range_analyzer::record_ranges_from_stmt(gimple*, bool) /opt/notnfs/msebor/src/gcc/87028/gcc/gimple-ssa-evrp-analyze.c:293 0x148e8cd before_dom_children /opt/notnfs/msebor/src/gcc/87028/gcc/gimple-ssa-sprintf.c:3968 0x14506f2 dom_walker::walk(basic_block_def*) /opt/notnfs/msebor/src/gcc/87028/gcc/domwalk.c:353 0x1487e5b execute /opt/notnfs/msebor/src/gcc/87028/gcc/gimple-ssa-sprintf.c:3996 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Makefile:2941: recipe for target 'runtime.lo' failed make[4]: *** [runtime.lo] Error 1 >>From gcc-bugs-return-613549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 16:57:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75126 invoked by alias); 23 Aug 2018 16:57:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 75082 invoked by uid 48); 23 Aug 2018 16:56:57 -0000 From: "konstantin.vladimirov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87074] New: Vectorization bug: O3 result differ from O2 Date: Thu, 23 Aug 2018 16:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: konstantin.vladimirov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01838.txt.bz2 Content-length: 2035 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87074 Bug ID: 87074 Summary: Vectorization bug: O3 result differ from O2 Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: konstantin.vladimirov at gmail dot com Target Milestone: --- Reproduction: long b; unsigned c[5]; unsigned long long d =3D 3; int e, f, g; void h() { for (; f < 11; f++) { b =3D g; for (e =3D 0; e < 5; e++) { c[e] =3D e - b - (c[e] >> 5); g =3D c[e]; } } if (c[0]) d =3D 0; } int main() { h(); return d; } Compiler: > gcc -v Reading specs from /apps/gcc/8.1.0/.bin/../lib64/gcc/x86_64-suse-linux/8.1.0/specs COLLECT_GCC=3D/apps/gcc/8.1.0/.bin/gcc COLLECT_LTO_WRAPPER=3D/apps/gcc/8.1.0/.bin/../libexec/gcc/x86_64-suse-linux= /8.1.0/lto-wrapper Target: x86_64-suse-linux Configured with: ./configure --prefix=3D/apps/gcc/8.1.0 --libdir=3D/apps/gcc/8.1.0/lib64 --libexecdir=3D/apps/gcc/8.1.0/libexec --bindir=3D/apps/gcc/8.1.0/bin --with-isl=3D/apps/gcc/8.1.0 --with-libelf=3D/apps/gcc/8.1.0 --with-mpfr=3D/apps/gcc/8.1.0 --with-gmp=3D/apps/gcc/8.1.0 --with-mpc=3D/apps/gcc/8.1.0 --disable-gnu-unique-object --enable-gold=3Dyes --enable-lto --enable-languages=3Dc,c++,objc,fortran --build=3Dx86_64-suse-linux --host=3Dx86_64-suse-linux --target=3Dx86_64-suse-linux --enable-libotm --disable-multilib --disable-bootstrap --disable-libstdcxx-pch Thread model: posix gcc version 8.1.0 (GCC) Compile and run with: > gcc -O2 minimize.c > ./a.out > echo $? 0 > gcc -O3 minimize.c > ./a.out > echo $? 3 0 is correct, 3 is incorrect I also tried with sanitizer, just in case I missed some UB here > gcc -O2 -fsanitize=3Dundefined minimize.c > ./a.out Sanitizer catchs nothing. So if there is really UB (not sure) it is sanitiz= er bug. Clang 6 returns 0 in both cases. GCC 7.3.0 also returns 0 both times. >>From gcc-bugs-return-613550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 16:58:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76410 invoked by alias); 23 Aug 2018 16:58:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76268 invoked by uid 48); 23 Aug 2018 16:57:59 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Thu, 23 Aug 2018 16:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01839.txt.bz2 Content-length: 559 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D87059 --- Comment #1 from Martin Sebor --- I wonder if it's related to pr87059. >>From gcc-bugs-return-613551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 17:48:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45751 invoked by alias); 23 Aug 2018 17:48:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45595 invoked by uid 48); 23 Aug 2018 17:47:57 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/82760] Incorrect code generated for aligned new Date: Thu, 23 Aug 2018 17:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01840.txt.bz2 Content-length: 480 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82760 Marc Glisse changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Marc Glisse --- I think this was fixed by Jason's patch. Please reopen otherwise. >>From gcc-bugs-return-613552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 18:01:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64003 invoked by alias); 23 Aug 2018 18:01:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63325 invoked by uid 48); 23 Aug 2018 18:01:15 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Thu, 23 Aug 2018 18:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01841.txt.bz2 Content-length: 1934 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aldyh at gcc dot gnu.org --- Comment #2 from Aldy Hernandez --- (In reply to Martin Sebor from comment #1) > I wonder if it's related to pr87059. No, not related. Reproduced with a stage1 compiler just with --disable-multilib and --enable-languages=3Dgo and make all-target-libgo. This one's entirely my fault. For all my whining about Ada, I should really start testing go and ada for all my VRP changes :-/. Does this cause the bootstrap to succeed? diff --git a/gcc/wide-int-range.cc b/gcc/wide-int-range.cc index cbc71c25cfe..3cdcede04cd 100644 --- a/gcc/wide-int-range.cc +++ b/gcc/wide-int-range.cc @@ -687,14 +687,11 @@ wide_int_range_div (wide_int &wmin, wide_int &wmax, /* If we know we won't divide by zero, just do the division. */ if (!wide_int_range_includes_zero_p (divisor_min, divisor_max, sign)) - { - wide_int_range_multiplicative_op (wmin, wmax, code, sign, prec, - dividend_min, dividend_max, - divisor_min, divisor_max, - overflow_undefined, - overflow_wraps); - return true; - } + return wide_int_range_multiplicative_op (wmin, wmax, code, sign, prec, + dividend_min, dividend_max, + divisor_min, divisor_max, + overflow_undefined, + overflow_wraps); /* If flag_non_call_exceptions, we must not eliminate a division by zero. */ >>From gcc-bugs-return-613553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 18:03:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66622 invoked by alias); 23 Aug 2018 18:03:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 66446 invoked by uid 48); 23 Aug 2018 18:03:03 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/80792] worse code generated compared to clang when using std::tuple Date: Thu, 23 Aug 2018 18:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01842.txt.bz2 Content-length: 443 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80792 Marc Glisse changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Marc Glisse --- No objection has appeared. >>From gcc-bugs-return-613554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 18:21:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72082 invoked by alias); 23 Aug 2018 18:21:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 72038 invoked by uid 48); 23 Aug 2018 18:21:29 -0000 From: "virtuousfox at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 18:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: virtuousfox at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01843.txt.bz2 Content-length: 5100 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 --- Comment #7 from Sergey Kondakov --- Created attachment 44583 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44583&action=3Dedit Xorg.pid-1381.gdb.log with disas (In reply to Alexander Monakov from comment #6) > In your gdb script, please add >=20 > x/i $pc > disas >=20 > after the backtrace command (probably 'bt full') and regenerate the log. > Without that the log doesn't actually show the "illegal" instruction. >=20 Now, THAT's some real advice, thanks ! I've managed get that log but=E2=80= =A6 > Also please show output of rpm -qf /usr/lib64/dri/r300_dri.so This, of course, points to Mesa-dri package BUT that gave me an idea to not rule out Mesa yet. And, indeed, it was the culprit all along, despite of wh= at its dev have said. Or, more accurately, it was clang/LLVM=E2=80=A6 probably= , I haven't properly checked yet. I've forked distro package (or, more precisely, its auto-build OBS scripts)= of Mesa to build it with LTO and decrease its monstrous size. But it doesn't compile with gcc that way because of a long-standing bug and broken autotoo= ls scripts + OBS can't handle requirements of full LTO anyway. So I used clang= & gold for building Mesa (and only it) with ThinLTO and it worked (and works,= on newer PCs) fine. I spent days on figuring that out and hours on fighting package manager to selectively install "old", default Mesa package-set without affecting anyth= ing else. And it worked, crash is gone. Maybe it was combination of factors but= I shouldn't have believed Mesa is irrelevant, as I was told, just because it's far from being the first in the chain of jumps of the backtrace. But then again, I don't have much clue about how it works. So, this issue can be closed UNLESS you think that backtrace shouldn't have lead to libstdc++ anyway and/or clang & Mesa couldn't have failed like that= on their own. Normally, such suicidal code should not come out of a compiler w= ith almost-default non-aggressive settings, wherever it may be. (In reply to Uro=C5=A1 Bizjak from comment #4) > (In reply to Sergey Kondakov from comment #3) >=20 > > If your code is correct then whose isn't ? > Instructions are generated by the compiler. So, it is the compiler's faul= t, > it probably emits a SSE instruction that your processor doesn't understan= d. >=20 > That said, at least we need a runtime testcase that fails on your target.= If > this is not possible, then please at least decompile the library and show > the instruction that fails. We also need preprocessed source and exact > instructions, how to build the source, so the illegal insn will be genera= ted. >=20 > Also, please read https://gcc.gnu.org/bugs/ Oh, I've read that, all right. Full verbose (very, very verbose) build logs, self-tests, compilation scrip= ts and built gcc/libstdc++ packages are in the OBS links in the original post, more precisely: https://build.opensuse.org/package/live_build_log/devel:gcc/gcc8/openSUSE_F= actory/x86_64 https://build.opensuse.org/package/binaries/devel:gcc/gcc8/openSUSE_Factory (requires OBS registration to show download links) https://download.opensuse.org/repositories/devel:/gcc/openSUSE_Factory/ (do= es not require registration but page with massive package-listing halts browser and requires a lot of RAM to view) Except for https://build.opensuse.org/package/show/home:X0F:HSF/Mesa where = my Mesa-dri:r300_dri.so is built. But asking to decompile one of the core system libraries or make an example, faulty program on a spot is like asking to decompile kernel or write a driv= er (actually, probably even worse): anyone capable of doing it in a day does n= ot require anyone else's software-related assistance. (In reply to Jonathan Wakely from comment #5) > Right. As you can see in GDB, the libstdc++ code says: >=20 > 350 return static_cast(__builtin_memcpy(__s1, __s2, __n)); >=20 > Do you see any processor instructions there? Anything that isn't valid on > your CPU? No, because it's just C++ code. I see a bunch of over-complicated gibberish starting with libstdc++ which w= as used as an argument by widely-known, reputable and respected Mesa developer= to look into libstdc++. Your reclussive, insular existance and passive-aggress= ive "deal with issues of our _irreplaceable_ software, requiring high-level low-abstraction-layer engineer-grade knowledge and experience, yourself"-attitude in relation to one of the most obscure subject matters, = on the other hand, begets only distrust and frustration. As the result, I spent almost no time investigating my suspicion which was correct in the first place, spent a lot of effort to investigate his claim = and couldn't do anything with yours because of how non-productive it was. > (In reply to Uro=C5=A1 Bizjak from comment #4) > > Also, please read https://gcc.gnu.org/bugs/ >=20 > I already said that before the bug was even filed. No wonder googling "gcc bugzilla registration" brings up an upvoted years-o= ld post that's advising not to bother. >>From gcc-bugs-return-613555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 18:34:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13164 invoked by alias); 23 Aug 2018 18:34:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11127 invoked by uid 48); 23 Aug 2018 18:34:27 -0000 From: "mfe at live dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i' Date: Thu, 23 Aug 2018 18:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mfe at live dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01844.txt.bz2 Content-length: 453 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87013 --- Comment #7 from martin --- Created attachment 44584 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44584&action=3Dedit gcc\config.log Hi, sry for the delayed answer. I wanted to make sure that the compiler pas= sed the related point, but I don't know how to verify this (the machine is still compiling). So I assume the patch is working. I attached the config.log. >>From gcc-bugs-return-613556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 18:43:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50974 invoked by alias); 23 Aug 2018 18:43:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50938 invoked by uid 48); 23 Aug 2018 18:43:47 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Thu, 23 Aug 2018 18:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01845.txt.bz2 Content-length: 167 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 --- Comment #3 from Martin Sebor --- Yes Aldy, your patch does make the ICE go away. >>From gcc-bugs-return-613557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 18:59:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106404 invoked by alias); 23 Aug 2018 18:59:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106364 invoked by uid 48); 23 Aug 2018 18:59:42 -0000 From: "guus at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] New: ICE when compiling the test suite of GLM 0.9.9.0 Date: Thu, 23 Aug 2018 18:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guus at debian dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01846.txt.bz2 Content-length: 1739 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 Bug ID: 87075 Summary: ICE when compiling the test suite of GLM 0.9.9.0 Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: guus at debian dot org Target Milestone: --- When compiling the test suite of GLM 0.9.9.0, a header-only OpenGL mathemat= ics library, a compiler error occurs with GCC 7 and later, but it seems earlier versions work fine. The attached dump is from 8.2.0 when compiling the test suite. A minimal program to reproduce it, with the GLM 0.9.9.0 headers installed, is: #include using namespace glm; int main() { mat2 a(0,1,2,3); // GCC from trunk already fails here mat2 b =3D matrixCompMult(a, a); mat2 c =3D mat2(0,1,2,3); // no ICE on 8.2.0 for: mat2 c(0,1,2,3); } The error message when compiling this example with 8.2.0: : In function 'int main()': :8:26: internal compiler error: in gimplify_expr, at gimplify.c:123= 85 mat2 c =3D mat2(0,1,2,3); // no ICE on 8.2.0 for: mat2 c(0,1,2,3); ^ The error message when compiling this example with trunk: : In function 'int main()': :6:19: in 'constexpr' expansion of 'a.glm::mat<2, 2, float, (glm::qualifier)0>::mat(0, 1, 2, 3)' :6:19: internal compiler error: tree check: expected constructor, h= ave void_cst in cxx_eval_store_expression, at cp/constexpr.c:3785 6 | mat2 a(0,1,2,3); // GCC from trunk already fails here | ^ Let me know if I can provide more help. >>From gcc-bugs-return-613558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:01:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108239 invoked by alias); 23 Aug 2018 19:01:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108117 invoked by uid 48); 23 Aug 2018 19:01:16 -0000 From: "vlad at ispras dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87076] New: -mpcu/-march not propagated through LTO bytecode (ice/segfault if arch flags do not match) Date: Thu, 23 Aug 2018 19:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vlad at ispras dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01847.txt.bz2 Content-length: 4859 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87076 Bug ID: 87076 Summary: -mpcu/-march not propagated through LTO bytecode (ice/segfault if arch flags do not match) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: vlad at ispras dot ru CC: marxin at gcc dot gnu.org Target Milestone: --- # run.sh: cat << EOF > 1.c typedef int i1 __attribute__((aligned(1))); int f(i1 *p) { return *p; } EOF # base=3D/usr/lib/gcc/arm-none-eabi/8.2.0/ case $1 in ice|"") $base/cc1 1.c -march=3Darmv7-r -mthumb -flto arm-none-eabi-as 1.s -o 1.o # Next line yields a warning. Also note Tag_CPU_unaligned_access in= 2.s $base/lto1 -munaligned-access -fverbose-asm 1.o -o 2.s ;; segfault) $base/cc1 1.c -mthumb -flto arm-none-eabi-as 1.s -o 1.o $base/lto1 -march=3Darmv7-r 1.o ;; esac # end of run.sh FWIW, having -mcpu=3Dcortex-r4 in place of -march=3Darmv7-r in this script = doesn't change anything. $ ./run.sh ice Looks like it has always given the warning: target CPU does not support unaligned accesses (I tested on gcc-{5,6,7,8,trunk}.)=20 This is because -march=3Darmv7-r (which would cause unaligned_access to be = set) is not visible in lto1 -- it seems neither -march/-mcpu, nor Tag_CPU_unaligned_access is serialized. Also, since r231114 -- gcc-6 and above -- lto1 throws an ICE: 1.c: In function 'f': 1.c:5:1: internal compiler error: output_operand: invalid %-code } ^ 0x89b17a output_operand_lossage(char const*, ...) /mnt/co/gcc/gcc/final.c:3409 0x89bcdb output_asm_insn(char const*, rtx_def**) /mnt/co/gcc/gcc/final.c:3774 0x89a796 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) /mnt/co/gcc/gcc/final.c:3015 0x898a44 final(rtx_insn*, _IO_FILE*, int) /mnt/co/gcc/gcc/final.c:2045 0x89d237 rest_of_handle_final /mnt/co/gcc/gcc/final.c:4441 0x89d436 execute /mnt/co/gcc/gcc/final.c:4516 Probably because this=20 - if (unaligned_access) - builtin_define ("__ARM_FEATURE_UNALIGNED"); + def_or_undef_macro (pfile, "__ARM_FEATURE_UNALIGNED", unaligned_access); changed the semantics: it used to only define, now it also undefs the macro. But it only made the underlying problem surface. $ ./run.sh segfault segfaults with gcc-8 and trunk: In function 'f': lto1: internal compiler error: Segmentation fault 0xec8f1c crash_signal /mnt/co/gcc/gcc/toplev.c:325 0x1aa3dca arm_parse_arch_option_name(arch_option const*, char const*, char const*, bool) /mnt/co/gcc/gcc/common/config/arm/arm-common.c:394 0x133e85c arm_configure_build_target(arm_build_target*, cl_target_option*, gcc_options*, bool) /mnt/co/gcc/gcc/config/arm/arm.c:3123 0x133e3dd arm_option_restore /mnt/co/gcc/gcc/config/arm/arm.c:2989 0xd7328e cl_target_option_restore(gcc_options*, cl_target_option*) /mnt/bld/gcc-trunk-arm/gcc-gomp-host/gcc/options-save.c:3749 0x138ddec arm_set_current_function /mnt/co/gcc/gcc/config/arm/arm.c:30609 0xaa339d invoke_set_current_function_hook /mnt/co/gcc/gcc/function.c:4616 0xaa36d1 allocate_struct_function(tree_node*, bool) /mnt/co/gcc/gcc/function.c:4729 0xaa39d8 push_struct_function(tree_node*) /mnt/co/gcc/gcc/function.c:4792 0xccbbbd input_function /mnt/co/gcc/gcc/lto-streamer-in.c:1065 0xccc668 lto_read_body_or_constructor /mnt/co/gcc/gcc/lto-streamer-in.c:1295 0xccc97c lto_input_function_body(lto_file_decl_data*, cgraph_node*, char const*) /mnt/co/gcc/gcc/lto-streamer-in.c:1343 0x8d1084 cgraph_node::get_untransformed_body() /mnt/co/gcc/gcc/cgraph.c:3548 0x8de11b cgraph_node::expand() /mnt/co/gcc/gcc/cgraphunit.c:2091 0x8ded39 output_in_order /mnt/co/gcc/gcc/cgraphunit.c:2365 0x8df479 symbol_table::compile() /mnt/co/gcc/gcc/cgraphunit.c:2609 0x7ee5d3 lto_main() /mnt/co/gcc/gcc/lto/lto.c:3428 Of course, none of this happens if the user specifies same arch flags for l= to1 as they did for cc1. But my understanding is that a. the compiler should not segfault; b. it could store this information in the bytecode as it does for other function attributes. And it probably should: consider what happens if we specify __attribute__ ((__target__ ("arch=3Darmv7-r"))) for f [for some rea= son, this feature doesn't work for me without LTO either, but that's a separate issue], or what happens if different TUs were compiled with different -marc= h's; c. from the usability standpoint, this would allow the lazy user to forget = to specify the flags for LTO link and still have the correct ones deduced for them. >>From gcc-bugs-return-613559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:03:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109783 invoked by alias); 23 Aug 2018 19:03:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109725 invoked by uid 48); 23 Aug 2018 19:03:16 -0000 From: "guus at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] ICE when compiling the test suite of GLM 0.9.9.0 Date: Thu, 23 Aug 2018 19:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guus at debian dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01848.txt.bz2 Content-length: 478 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 Guus Sliepen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guus at debian dot org --- Comment #1 from Guus Sliepen --- Created attachment 44585 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44585&action=3Dedit GCC dump >>From gcc-bugs-return-613561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:08:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43835 invoked by alias); 23 Aug 2018 19:08:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36907 invoked by uid 48); 23 Aug 2018 19:08:23 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87072] [6/7 Regression] g++6.2.0 false warning: array subscript is above array bounds, with misleading line number Date: Thu, 23 Aug 2018 19:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01850.txt.bz2 Content-length: 1682 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87072 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |4.7.4, 8.1.0, 9.0 Keywords| |diagnostic Last reconfirmed| |2018-08-23 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Summary|g++6.2.0 false warning: |[6/7 Regression] g++6.2.0 |array subscript is above |false warning: array |array bounds, with |subscript is above array |misleading line number |bounds, with misleading | |line number Known to fail| |6.4.0, 7.3.0 --- Comment #1 from Martin Sebor --- Confirmed with GCC 5, 6 and 7. The warning wasn't issued by GCC 4.7, start= ed with 4.8, and went away in 8.0 with r255267. I suspect the change is not g= oing to be backported. 2017-11-30 Richard Biener PR tree-optimization/83202 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add allow_peel argument and guard peeling. (canonicalize_loop_induction_variables): Likewise. (canonicalize_induction_variables): Pass false. (tree_unroll_loops_completely_1): Pass unroll_outer to disallow peeling from cunrolli. >>From gcc-bugs-return-613560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:08:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43130 invoked by alias); 23 Aug 2018 19:08:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35012 invoked by uid 48); 23 Aug 2018 19:08:21 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] ICE when compiling the test suite of GLM 0.9.9.0 Date: Thu, 23 Aug 2018 19:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01849.txt.bz2 Content-length: 3204 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Marek Polacek --- Confirmed: $ ./cc1plus -quiet 87075.ii /home/guus/scratch/glm/glm/test/core/core_func_matrix.cpp: In function =E2= =80=98int test_matrixCompMult()=E2=80=99: /home/guus/scratch/glm/glm/test/core/core_func_matrix.cpp:17:20: in =E2=80=98constexpr=E2=80=99 expansion of =E2=80=98m.glm::mat<2, 2, float, (= glm::qualifier)0>::mat(0, 1, 2, 3)=E2=80=99 /home/guus/scratch/glm/glm/test/core/core_func_matrix.cpp:17:20: internal compiler error: tree check: expected constructor, have void_cst in cxx_eval_store_expression, at cp/constexpr.c:3785 0x161e07d tree_check_failed(tree_node const*, char const*, int, char const*, ...) /home/mpolacek/src/gcc/gcc/tree.c:9370 0x840141 tree_check(tree_node*, char const*, int, char const*, tree_code) /home/mpolacek/src/gcc/gcc/tree.h:3120 0x8b072d cxx_eval_store_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:3785 0x8b29fd cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4355 0x8b3828 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4664 0x8b2ca2 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4403 0x8b2ca2 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4403 0x8b132c cxx_eval_statement_list /home/mpolacek/src/gcc/gcc/cp/constexpr.c:3996 0x8b3e46 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4755 0x8b3ec5 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4759 0x8b132c cxx_eval_statement_list /home/mpolacek/src/gcc/gcc/cp/constexpr.c:3996 0x8b3e46 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4755 0x8a78a2 cxx_eval_call_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:1737 0x8b2201 cxx_eval_constant_expression /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4276 0x8b4be3 cxx_eval_outermost_constant_expr /home/mpolacek/src/gcc/gcc/cp/constexpr.c:4980 0x8b5e00 maybe_constant_init_1 /home/mpolacek/src/gcc/gcc/cp/constexpr.c:5328 0x8b5e8a maybe_constant_init(tree_node*, tree_node*, bool) /home/mpolacek/src/gcc/gcc/cp/constexpr.c:5345 0x974f2b expand_default_init /home/mpolacek/src/gcc/gcc/cp/init.c:1982 0x97544a expand_aggr_init_1 /home/mpolacek/src/gcc/gcc/cp/init.c:2085 0x9740b5 build_aggr_init(tree_node*, tree_node*, int, int) /home/mpolacek/src/gcc/gcc/cp/init.c:1819 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-613562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:10:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24122 invoked by alias); 23 Aug 2018 19:10:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23973 invoked by uid 48); 23 Aug 2018 19:10:33 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Thu, 23 Aug 2018 19:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01851.txt.bz2 Content-length: 2057 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 --- Comment #4 from Martin Sebor --- The test case in pr84474 uses strncpy to needlessly exclude the terminating= nul from the copy only to then add it explicitly. That's not what the function= is meant to be used for -- when it's safe to copy the whole string using strcp= y is more appropriate. The test case in this bug is different because it uses strncpy to copy only= the leading part of a string, up to the size of the destination, excluding more than just the terminating nul. In general, that is one of the valid use ca= ses for strncpy, but in designing the warning and faced with the GCC strncpy to memcpy transformation, I considered the constant case to be more likely a mistake than not. To help me gauge the priority of this report, how common= is it intended in your experience (and how much software does that represent)? I have been working with Miguel and others on fixing false positives expose= d by the kernel. I believe they decided that the warning is useful despite some lingering instances of it and have been putting it to good use (in conjunct= ion with the new nonstring attribute). There are a few ways to avoid the warning in the constant case: 1) use a different function 2) use __attribute__ ((nonstring)) 3) suppress the diagnostic using #pargma GCC ignore (1) might be: memcpy (s->dest, src, min (sizeof (s->dest) - 1, strlen (src))); (2) would look like this: __attribute__ ((nonstring)) char *d =3D s->dest; strncpy (d, src, sizeof (s->dest) - 1); I realize these are workarounds and that getting the suppression to work in= GCC would be ideal. It's trivial to do: @@ -1653,6 +1654,9 @@ gimple_fold_builtin_strncpy (gimple_stmt_iterator tree dest, tree src, tree len) { gimple *stmt =3D gsi_stmt (*gsi); + if (!gimple_bb (stmt)) + return false; + location_t loc =3D gimple_location (stmt); but because it defers the strncpy folding it will likely be controversial. >>From gcc-bugs-return-613563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:21:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35661 invoked by alias); 23 Aug 2018 19:21:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35636 invoked by uid 48); 23 Aug 2018 19:21:19 -0000 From: "trashyankes at wp dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87077] New: missed optimization for horizontal add for x86 SSE Date: Thu, 23 Aug 2018 19:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trashyankes at wp dot pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01852.txt.bz2 Content-length: 888 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87077 Bug ID: 87077 Summary: missed optimization for horizontal add for x86 SSE Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: trashyankes at wp dot pl Target Milestone: --- During some experiments with toy programs I find out that GCC do not do any horizontal adding for xmm registers. Some benchmark code: http://quick-bench.com/HhZPnOtb9SYYK8z4IMKb_XAWYCI If I'm not mistaken both function do same work and one hand written is fast= er. And IIRC `_mm_hadd_ps` is consider a slow way to do this but is still faster than standard function. Is my finding correct or I simply miss some important details why GCC do no= t do this? >>From gcc-bugs-return-613564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:29:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86342 invoked by alias); 23 Aug 2018 19:29:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86293 invoked by uid 48); 23 Aug 2018 19:29:27 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87078] New: [9 regression] gcc.dg/vect/slp-37.c begins failing with r263772 Date: Thu, 23 Aug 2018 19:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01853.txt.bz2 Content-length: 5088 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87078 Bug ID: 87078 Summary: [9 regression] gcc.dg/vect/slp-37.c begins failing with r263772 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- Does the test case needs updating with this revision? Hmmm, the test case = WAS updated it looks like. Some further testing shows this happens only on power 7 and earlier. Power= 8 and 9 work fine. testgcc: 263772 had unexpected test case failures testgcc: results of test run: # of expected passes 4 # of unexpected failures 4 FAIL: gcc.dg/vect/slp-37.c scan-tree-dump-times vect "vectorized 1 loops" 1 FAIL: gcc.dg/vect/slp-37.c scan-tree-dump-times vect "vectorizing stmts usi= ng SLP" 1 FAIL: gcc.dg/vect/slp-37.c -flto -ffat-lto-objects scan-tree-dump-times ve= ct "vectorized 1 loops" 1 FAIL: gcc.dg/vect/slp-37.c -flto -ffat-lto-objects scan-tree-dump-times ve= ct "vectorizing stmts using SLP" 1 make -k check-gcc RUNTESTFLAGS=3Dvect.exp=3Dgcc.dg/vect/slp-37.c Executing on host: /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/vect/slp-37.c=20=20=20 -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -maltivec -mvsx -mno-allow-movmisalign -ftree-vectorize -fno-vect-cost-model -fno-common -O2 -fdump-tree-vect-deta= ils=20 -lm -o ./slp-37.exe (timeout =3D 300) spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/vect/slp-37.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -maltivec -mvsx -mno-allow-movmisalign -ftree-vectorize -fno-vect-cost-model -fno-common -O2 -fdump-tree-vect-deta= ils -lm -o ./slp-37.exe PASS: gcc.dg/vect/slp-37.c (test for excess errors) Setting LD_LIBRARY_PATH to :/home/seurer/gcc/build/gcc-trunk/gcc::/home/seurer/gcc/build/gcc-trunk/gcc= :/home/seurer/gcc/build/gcc-trunk/./gmp/.libs:/home/seurer/gcc/build/gcc-tr= unk/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-trunk/./mpfr/src/.libs:/hom= e/seurer/gcc/build/gcc-trunk/./prev-mpfr/src/.libs:/home/seurer/gcc/build/g= cc-trunk/./mpc/src/.libs:/home/seurer/gcc/build/gcc-trunk/./prev-mpc/src/.l= ibs:/home/seurer/gcc/build/gcc-trunk/./isl/.libs:/home/seurer/gcc/build/gcc= -trunk/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64 Execution timeout is: 300 spawn [open ...] PASS: gcc.dg/vect/slp-37.c execution test gcc.dg/vect/slp-37.c: pattern found 0 times FAIL: gcc.dg/vect/slp-37.c scan-tree-dump-times vect "vectorized 1 loops" 1 gcc.dg/vect/slp-37.c: pattern found 0 times FAIL: gcc.dg/vect/slp-37.c scan-tree-dump-times vect "vectorizing stmts usi= ng SLP" 1 Executing on host: /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/vect/slp-37.c=20=20=20 -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -flto -ffat-lto-objects -maltivec -mvsx -mno-allow-movmisalign -ftree-vectorize -fno-vect-cost-model -fno-common -O2 -fdump-tree-vect-details -lm -o ./slp-37.exe (timeout =3D 300) spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-trunk/gcc/xgcc -B/home/seurer/gcc/build/gcc-trunk/gcc/ /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/vect/slp-37.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -flto -ffat-lto-objects -maltivec -mvsx -mno-allow-movmisalign -ftree-vectorize -fno-vect-cost-model -fno-common -O2 -fdump-tree-vect-details -lm -o ./slp-37.exe PASS: gcc.dg/vect/slp-37.c -flto -ffat-lto-objects (test for excess errors) Setting LD_LIBRARY_PATH to :/home/seurer/gcc/build/gcc-trunk/gcc::/home/seurer/gcc/build/gcc-trunk/gcc= :/home/seurer/gcc/build/gcc-trunk/./gmp/.libs:/home/seurer/gcc/build/gcc-tr= unk/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-trunk/./mpfr/src/.libs:/hom= e/seurer/gcc/build/gcc-trunk/./prev-mpfr/src/.libs:/home/seurer/gcc/build/g= cc-trunk/./mpc/src/.libs:/home/seurer/gcc/build/gcc-trunk/./prev-mpc/src/.l= ibs:/home/seurer/gcc/build/gcc-trunk/./isl/.libs:/home/seurer/gcc/build/gcc= -trunk/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64 Execution timeout is: 300 spawn [open ...] PASS: gcc.dg/vect/slp-37.c -flto -ffat-lto-objects execution test gcc.dg/vect/slp-37.c -flto -ffat-lto-objects : pattern found 0 times FAIL: gcc.dg/vect/slp-37.c -flto -ffat-lto-objects scan-tree-dump-times ve= ct "vectorized 1 loops" 1 gcc.dg/vect/slp-37.c -flto -ffat-lto-objects : pattern found 0 times FAIL: gcc.dg/vect/slp-37.c -flto -ffat-lto-objects scan-tree-dump-times ve= ct "vectorizing stmts using SLP" 1 testcase /home/seurer/gcc/gcc-trunk/gcc/testsuite/gcc.dg/vect/vect.exp completed in 3 seconds >>From gcc-bugs-return-613566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:33:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106923 invoked by alias); 23 Aug 2018 19:33:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104815 invoked by uid 48); 23 Aug 2018 19:33:26 -0000 From: "kelledin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87067] [8.1, 8.2] LTO-related ICE when running armv7 binutils test suite Date: Thu, 23 Aug 2018 19:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: kelledin at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01855.txt.bz2 Content-length: 726 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87067 --- Comment #3 from Frank Schaefer --- Well...it looks like Vladislav Ivanishin actually nailed down the root-cause (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87076 ). His small test program reproduces the same issue I'm seeing--and based on his input, if I = take the offending commands and add matching -march flags to the link command, t= he ICE no longer occurs. I'm guessing this didn't affect my AArch64 build because AArch64 just doesn= 't have significantly-different -march options (I just set it to -march=3Darmv= 8-a and left it at that). I suggest we do any necessary changes under 87076 and mark this as a duplic= ate. >>From gcc-bugs-return-613565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:33:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98384 invoked by alias); 23 Aug 2018 19:33:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96278 invoked by uid 48); 23 Aug 2018 19:33:07 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87072] [6/7 Regression] g++6.2.0 false warning: array subscript is above array bounds, with misleading line number Date: Thu, 23 Aug 2018 19:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01854.txt.bz2 Content-length: 770 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87072 --- Comment #2 from Martin Sebor --- A simplified test case: $ cat t.c && gcc -O3 -S -Wall t.c int a[10]; void f (unsigned n) { for (unsigned j =3D 0; j < n; j++) { for (unsigned k =3D 0; k < j; k++) a[j] +=3D k; a[j] +=3D j; } } t.c: In function =E2=80=98f=E2=80=99: t.c:7:14: warning: array subscript is above array bounds [-Warray-bounds] a[j] +=3D k; ~~~~~^~~~ The VRP dump shows the out-of-bounds index: if (j_16 =3D=3D 10) goto ; [85.00%] else goto ; [15.00%] [3.00%]: _95 =3D _44 + 45; _96 =3D (int) _95; a[10] =3D _96; <<< goto ; [100.00%] [2.65%]: return; } >>From gcc-bugs-return-613567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:34:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117892 invoked by alias); 23 Aug 2018 19:34:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117800 invoked by uid 48); 23 Aug 2018 19:34:07 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87071] libstdc++ crashes during GPU driver initialization with suspected attempt to execute unsupported instruction by Athlon64 X2 TK-57 Date: Thu, 23 Aug 2018 19:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01856.txt.bz2 Content-length: 1021 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87071 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #8 from Alexander Monakov --- You should have mentioned you were using a custom-compiled Mesa, not the distribution package (both here and in the original report to Mesa project). For some reason the disasm in the provided log is unusable (shows assembly = of the outermost frame), but downloading your package shows that failing instruction is 928ea: c5 fa 6f 05 0e 09 c3 00 vmovdqu 0xc3090e(%rip),%xmm= 0=20=20=20 # cc3200 i.e. an AVX instruction, not supported on the CPU. Given that you were using Clang to compile the package, this is not a GCC issue. >>From gcc-bugs-return-613568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:39:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120824 invoked by alias); 23 Aug 2018 19:39:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116473 invoked by uid 55); 23 Aug 2018 19:39:50 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87072] [6/7 Regression] g++6.2.0 false warning: array subscript is above array bounds, with misleading line number Date: Thu, 23 Aug 2018 19:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01857.txt.bz2 Content-length: 517 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87072 --- Comment #3 from Martin Sebor --- Author: msebor Date: Thu Aug 23 19:39:18 2018 New Revision: 263822 URL: https://gcc.gnu.org/viewcvs?rev=3D263822&root=3Dgcc&view=3Drev Log: PR tree-optimization/87072 - false warning: array subscript is above array bounds gcc/testsuite/ChangeLog: * gcc.dg/Warray-bounds-35.c: New test. Added: trunk/gcc/testsuite/gcc.dg/Warray-bounds-35.c Modified: trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:54:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109589 invoked by alias); 23 Aug 2018 19:54:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109528 invoked by uid 48); 23 Aug 2018 19:54:25 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Thu, 23 Aug 2018 19:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01858.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at gcc dot gnu.org Component|target |rtl-optimization --- Comment #6 from Uro=C5=A1 Bizjak --- Soooo... ... back to rtl-optimization. >>From gcc-bugs-return-613570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 19:54:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110239 invoked by alias); 23 Aug 2018 19:54:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109815 invoked by uid 48); 23 Aug 2018 19:54:32 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] ICE when compiling the test suite of GLM 0.9.9.0 Date: Thu, 23 Aug 2018 19:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01859.txt.bz2 Content-length: 150 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 --- Comment #3 from Marek Polacek --- Maybe started with r239783. >>From gcc-bugs-return-613571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 20:08:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94027 invoked by alias); 23 Aug 2018 20:08:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92002 invoked by uid 48); 23 Aug 2018 20:08:16 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Thu, 23 Aug 2018 20:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01860.txt.bz2 Content-length: 1268 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #7 from Martin Sebor --- The MIN_EXPR code predates my change -- r255898 just moved indentation. Ba= sed on past experience I would assume MIN_EXPR to need the same types. The cod= e in expand_builtin_strncmp mixes ssizetype and sizetype: len1 =3D c_strlen (arg1, 1); // returns ssizetype len2 =3D c_strlen (arg2, 1); if (len1) len1 =3D size_binop_loc (loc, PLUS_EXPR, ssize_int (1), len1); if (len2) len2 =3D size_binop_loc (loc, PLUS_EXPR, ssize_int (1), len2); len3 =3D fold_convert_loc (loc, sizetype, arg3); ... if (len !=3D len3) len =3D fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (len), len, len3); So the fix is presumably to change len3 to len3 =3D fold_convert_loc (loc, ssizetype, arg3); Given the difference between sizetype and ssizetype is just one 's' it seems like an easy mistake to make. If MIN_EXPR does, in fact, require arguments= of the same type then adding an assertion to fold_binary_loc() to verify it wo= uld help expose these mistakes early. I'm not sure what the right predicate is= to use in the assertion. Just compare TYPE_MAIN_VARIANT of the two argument t= ypes for equality? >>From gcc-bugs-return-613572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 20:17:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105400 invoked by alias); 23 Aug 2018 20:17:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105360 invoked by uid 48); 23 Aug 2018 20:17:45 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87077] missed optimization for horizontal add for x86 SSE Date: Thu, 23 Aug 2018 20:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01861.txt.bz2 Content-length: 236 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87077 --- Comment #1 from Marc Glisse --- SLP doesn't like the completely unrolled code. With #pragma GCC unroll 1, we get at least some kind of vectorization. >>From gcc-bugs-return-613573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 20:41:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126433 invoked by alias); 23 Aug 2018 20:41:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126406 invoked by uid 48); 23 Aug 2018 20:41:47 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87079] New: nios2 optimization for size - case of regression relatively to 5.3.0 Date: Thu, 23 Aug 2018 20:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01862.txt.bz2 Content-length: 1246 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87079 Bug ID: 87079 Summary: nios2 optimization for size - case of regression relatively to 5.3.0 Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: already5chosen at yahoo dot com Target Milestone: --- Created attachment 44586 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44586&action=3Dedit 5.3->8.3 regression - shifts instead of mulx The issue was already reported together with another case that proved unrel= ated to nios2. The original thread is now dedicated to this more general issue, = so I am repeating the reort of the first issue for convenience of tracking. A case of significant regression in optimization for size between 5.3.0 (a version supplied in Altera Nios2 SDK) and 8.2.0. Compiled with -Wall -Os -ffreestanding -fbuiltin -mhw-div -mhw-mul -mhw-mulx It looks like -Os flag caused to compiler to forget that hw-mulx is present. The problem appears unique to nios2 back end. Similar back ends (MIPS32r6 a= nd RISCV32IM) are not affected. >>From gcc-bugs-return-613574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 20:43:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2966 invoked by alias); 23 Aug 2018 20:43:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2915 invoked by uid 48); 23 Aug 2018 20:42:57 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Thu, 23 Aug 2018 20:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01863.txt.bz2 Content-length: 695 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D81704 --- Comment #5 from Martin Sebor --- See also bug 81704 for another problem the early folding causes (though deferring the folding only until the next statement in the basic block can = be reached, which is all it takes to suppress the false positive, won't solve = that bug). >>From gcc-bugs-return-613575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 20:43:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3678 invoked by alias); 23 Aug 2018 20:43:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3627 invoked by uid 48); 23 Aug 2018 20:43:08 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87031] nios2 optimization for size - two cases of regression relatively to 5.3.0 Date: Thu, 23 Aug 2018 20:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01864.txt.bz2 Content-length: 151 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87031 --- Comment #7 from Michael_S --- Done. a new report =3D 87079 >>From gcc-bugs-return-613576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 20:51:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34803 invoked by alias); 23 Aug 2018 20:51:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26270 invoked by uid 48); 23 Aug 2018 20:51:43 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87068] No diagnostic on an ill-formed [[fallthrough]] Date: Thu, 23 Aug 2018 20:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01865.txt.bz2 Content-length: 421 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87068 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from Marek Polacek --- https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01504.html >>From gcc-bugs-return-613577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 21:06:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2794 invoked by alias); 23 Aug 2018 21:06:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2729 invoked by uid 48); 23 Aug 2018 21:05:59 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83113] Bogus "duplicate allocatable attribute" error for submodule character function Date: Thu, 23 Aug 2018 21:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01866.txt.bz2 Content-length: 151 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83113 --- Comment #2 from J=C3=BCrgen Reuter --- Still present in 9.0. >>From gcc-bugs-return-613578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:01:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40685 invoked by alias); 23 Aug 2018 22:01:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35198 invoked by uid 48); 23 Aug 2018 22:00:50 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87080] New: ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Date: Thu, 23 Aug 2018 22:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01867.txt.bz2 Content-length: 1164 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87080 Bug ID: 87080 Summary: ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- The following C++ code, on recent gcc trunk, and flag -Wall, does this: $ ~/gcc/results/bin/g++ -c -Wall bug459.cc bug459.cc: In function =E2=80=98a fn2()=E2=80=99: bug459.cc:7:17: internal compiler error: in cp_get_fndecl_from_callee, at cp/cvt.c:965 7 | return c() << d; | ^ 0x5b0ede cp_get_fndecl_from_callee(tree_node*, bool) ../../trunk/gcc/cp/cvt.c:965 0x5b0ede cp_get_callee_fndecl_nofold(tree_node*) ../../trunk/gcc/cp/cvt.c:992 0xca6670 is_std_move_p ../../trunk/gcc/cp/typeck.c:9147 0xca6670 maybe_warn_pessimizing_move ../../trunk/gcc/cp/typeck.c:9204 class a { template a &operator<<(b); }; a c(); template a fn2() { int d; return c() << d; } >>From gcc-bugs-return-613579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:04:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80691 invoked by alias); 23 Aug 2018 22:04:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74403 invoked by uid 48); 23 Aug 2018 22:04:27 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87080] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Date: Thu, 23 Aug 2018 22:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01868.txt.bz2 Content-length: 206 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87080 --- Comment #1 from David Binderman --- The bug seems to first occur between revisions 263693 and 263799, so fairly recent. >>From gcc-bugs-return-613580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:05:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93079 invoked by alias); 23 Aug 2018 22:05:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93022 invoked by uid 48); 23 Aug 2018 22:05:17 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87081] New: [9 regression] new test case failures with r262930 Date: Thu, 23 Aug 2018 22:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01869.txt.bz2 Content-length: 1385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87081 Bug ID: 87081 Summary: [9 regression] new test case failures with r262930 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- Test cases need updating. make -k check-gcc RUNTESTFLAGS=3Dpowerpc.exp=3Dgcc.target/powerpc/vec-init-= 6.c # of expected passes 4 # of unexpected failures 2 FAIL: gcc.target/powerpc/vec-init-6.c scan-assembler rldicr FAIL: gcc.target/powerpc/vec-init-6.c scan-assembler rldicl spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test2/gcc/xgcc -B/home/seurer/gcc/build/gcc-test2/gcc/ /home/seurer/gcc/gcc-test2/gcc/testsuite/gcc.target/powerpc/vec-init-6.c -fno-diagnostics-show-caret -fdiagnostics-color=3Dnever -mcpu=3Dpower8 -O2 -ffat-lto-objects -S -o vec-init-6.s PASS: gcc.target/powerpc/vec-init-6.c (test for excess errors) FAIL: gcc.target/powerpc/vec-init-6.c scan-assembler rldicr FAIL: gcc.target/powerpc/vec-init-6.c scan-assembler rldicl PASS: gcc.target/powerpc/vec-init-6.c scan-assembler mtvsrd PASS: gcc.target/powerpc/vec-init-6.c scan-assembler-not stw PASS: gcc.target/powerpc/vec-init-6.c scan-assembler-not lxvw4x >>From gcc-bugs-return-613581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:09:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96722 invoked by alias); 23 Aug 2018 22:09:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96671 invoked by uid 48); 23 Aug 2018 22:09:41 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87081] [9 regression] gcc.target/powerpc/vec-init-6.c failures with r262930 Date: Thu, 23 Aug 2018 22:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cc cf_gcchost short_desc cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01870.txt.bz2 Content-length: 976 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87081 seurer at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |powerpc64le-unknown-linux-g | |nu CC| |segher at gcc dot gnu.org Host| |powerpc64le-unknown-linux-g | |nu Summary|[9 regression] new test |[9 regression] |case failures with r262930 |gcc.target/powerpc/vec-init | |-6.c failures with r262930 Build| |powerpc64le-unknown-linux-g | |nu --- Comment #1 from seurer at gcc dot gnu.org --- This only occurs on LE. >>From gcc-bugs-return-613582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:11:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98670 invoked by alias); 23 Aug 2018 22:11:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98629 invoked by uid 48); 23 Aug 2018 22:11:35 -0000 From: "ark at acm dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87082] New: Missing default argument in string::assign Date: Thu, 23 Aug 2018 22:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ark at acm dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01871.txt.bz2 Content-length: 685 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87082 Bug ID: 87082 Summary: Missing default argument in string::assign Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: ark at acm dot org Target Milestone: --- Created attachment 44587 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44587&action=3Dedit This file should compile but doesn't. If s is a string, s.assign(t, n) fails to compile. It should be equivalent = to s.assign(t, n, std::npos), which does compile. >>From gcc-bugs-return-613583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:12:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99859 invoked by alias); 23 Aug 2018 22:12:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99826 invoked by uid 48); 23 Aug 2018 22:12:29 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87081] [9 regression] gcc.target/powerpc/vec-init-6.c failures with r262930 Date: Thu, 23 Aug 2018 22:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01872.txt.bz2 Content-length: 662 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87081 seurer at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc64le-unknown-linux-g |powerpc64*-*-* |nu | Host|powerpc64le-unknown-linux-g |powerpc64*-*-* |nu | Build|powerpc64le-unknown-linux-g |powerpc64*-*-* |nu | --- Comment #2 from seurer at gcc dot gnu.org --- I take that back, it occurs on both LE and BE. >>From gcc-bugs-return-613584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 22:31:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45292 invoked by alias); 23 Aug 2018 22:31:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45184 invoked by uid 48); 23 Aug 2018 22:31:21 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87080] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Date: Thu, 23 Aug 2018 22:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01873.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87080 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from David Binderman --- svn blame says 263741 mpolacek if (is_std_move_p (fn)) Adding mpolacek >>From gcc-bugs-return-613585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 23:18:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14623 invoked by alias); 23 Aug 2018 23:18:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13272 invoked by uid 48); 23 Aug 2018 23:18:50 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87080] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Date: Thu, 23 Aug 2018 23:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01874.txt.bz2 Content-length: 581 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87080 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-23 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org Ever confirmed|0 |1 --- Comment #3 from Marek Polacek --- Sorry, will fix. >>From gcc-bugs-return-613586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 23:26:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51416 invoked by alias); 23 Aug 2018 23:26:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50711 invoked by uid 48); 23 Aug 2018 23:26:04 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87080] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Date: Thu, 23 Aug 2018 23:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01875.txt.bz2 Content-length: 511 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87080 --- Comment #4 from Marek Polacek --- Probably with this: --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -9196,6 +9196,9 @@ maybe_warn_pessimizing_move (tree retval, tree functy= pe) if (!CLASS_TYPE_P (functype)) return; + if (processing_template_decl) + return; + /* We're looking for *std::move (&arg). */ if (REFERENCE_REF_P (retval) && TREE_CODE (TREE_OPERAND (retval, 0)) =3D=3D CALL_EXPR) >>From gcc-bugs-return-613587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 23:53:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104550 invoked by alias); 23 Aug 2018 23:53:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104408 invoked by uid 48); 23 Aug 2018 23:52:58 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87082] Missing default argument in string::assign Date: Thu, 23 Aug 2018 23:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01876.txt.bz2 Content-length: 584 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87082 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Jonathan Wakely --- This was reported as PR 84087 and is already fixed on the gcc-7-branch for = the next release (7.4) *** This bug has been marked as a duplicate of bug 84087 *** >>From gcc-bugs-return-613588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 23 23:53:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104558 invoked by alias); 23 Aug 2018 23:53:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104429 invoked by uid 48); 23 Aug 2018 23:52:58 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/84087] string::assign problem with two arguments Date: Thu, 23 Aug 2018 23:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: patch, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01877.txt.bz2 Content-length: 436 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84087 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ark at acm dot org --- Comment #12 from Jonathan Wakely --- *** Bug 87082 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 01:12:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18513 invoked by alias); 24 Aug 2018 01:12:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18447 invoked by uid 48); 24 Aug 2018 01:12:36 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] [7/8/9 Regression] ICE when compiling the test suite of GLM 0.9.9.0 Date: Fri, 24 Aug 2018 01:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01878.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 --- Comment #4 from Marek Polacek --- Reduced: template struct vec { struct { T y; }; vec() =3D default; }; template struct S { vec value[2]; template constexpr S(const U&); }; template template constexpr S::S(const X&) { value[0] =3D vec(); } Sm(0); >>From gcc-bugs-return-613590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 03:01:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61469 invoked by alias); 24 Aug 2018 03:01:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54257 invoked by uid 48); 24 Aug 2018 03:01:32 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87083] New: ICE in extract_insn, at recog.c:2305 (error: unrecognizable insn) Date: Fri, 24 Aug 2018 03:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01879.txt.bz2 Content-length: 2446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87083 Bug ID: 87083 Summary: ICE in extract_insn, at recog.c:2305 (error: unrecognizable insn) Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpcspe-*-linux-gnu* gcc-9.0.0-alpha20180819 snapshot (r263652) ICEs when compiling the following snippet w/ -O1 (-O2, -O3, -Ofast) -ftree-loop-vectorize -fno-tree-reassoc: long long int ll; int p7; int ox (int az, int th) { while (az < 1) { th ^=3D 1; ll ^=3D p7; ++az; } return th; } % powerpc-e500v2-linux-gnuspe-gcc-9.0.0-alpha20180819 -O1 -ftree-loop-vecto= rize -fno-tree-reassoc -c xuzg2b9u.c xuzg2b9u.c: In function 'ox': xuzg2b9u.c:15:1: error: unrecognizable insn: 15 | } | ^ (insn 49 46 50 8 (set (subreg:SI (reg:DI 186) 0) (xor:SI (subreg:SI (reg:DI 159 [ vect__4.16 ]) 0) (subreg:SI (reg:V1DI 166 [ vect__4.13 ]) 0))) -1 (nil)) during RTL pass: vregs xuzg2b9u.c:15:1: internal compiler error: in extract_insn, at recog.c:2305 0x61928f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-9.0.0_alpha20180819/= work/gcc-9-20180819/gcc/rtl-error.c:108 0x6192ad _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-9.0.0_alpha20180819/= work/gcc-9-20180819/gcc/rtl-error.c:116 0x6177ca extract_insn(rtx_insn*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-9.0.0_alpha20180819/= work/gcc-9-20180819/gcc/recog.c:2305 0x9f5392 instantiate_virtual_regs_in_insn =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-9.0.0_alpha20180819/= work/gcc-9-20180819/gcc/function.c:1605 0x9f5392 instantiate_virtual_regs =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-9.0.0_alpha20180819/= work/gcc-9-20180819/gcc/function.c:1975 0x9f5392 execute =20=20=20=20=20=20=20 /var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-9.0.0_alpha20180819/= work/gcc-9-20180819/gcc/function.c:2024 >>From gcc-bugs-return-613591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 03:20:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35739 invoked by alias); 24 Aug 2018 03:20:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35671 invoked by uid 48); 24 Aug 2018 03:20:36 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66970] Add __has_builtin() macro Date: Fri, 24 Aug 2018 03:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01880.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66970 --- Comment #10 from Eric Gallager --- (In reply to H. Peter Anvin from comment #9) > Can I please second this request? This would be extremely useful in the > Linux kernel, *and* it would be extremely useful in any code that for > whatever reason cannot depend on any particular build system. Well, it's already been seconded, but you can... seventh it? I dunno, I can= 't count. >>From gcc-bugs-return-613592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 04:29:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60287 invoked by alias); 24 Aug 2018 04:29:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60236 invoked by uid 48); 24 Aug 2018 04:29:13 -0000 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87084] New: Excessive diagnostic messages for invalid use of __builtin_va_arg_pack{,_len}() in a loop Date: Fri, 24 Aug 2018 04:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01881.txt.bz2 Content-length: 10361 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87084 Bug ID: 87084 Summary: Excessive diagnostic messages for invalid use of __builtin_va_arg_pack{,_len}() in a loop Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- All gcc versions since the current trunk and down to at least 4.4 emit redundant diagnostics for each copy of the unrolled loop when compiling the following snippet w/ -O3 (or -Ofast w/ gcc versions which implement it): int xc; void zp (void) { int ta; for (ta =3D 0; ta < 8; ++ta) { int ij; for (ij =3D 0; ij < 17; ++ij) xc =3D __builtin_va_arg_pack () /* or __builtin_va_arg_pack_len () = */; } } % gcc-9.0.0-alpha20180819 -O3 -c fz5t1wes.c fz5t1wes.c: In function 'zp': fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' 13 | xc =3D __builtin_va_arg_pack () /* or __builtin_va_arg_pack_le= n () */; | ^~~~~~~~~~~~~~~~~~~~~~~~ fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' fz5t1wes.c:13:14: error: invalid use of '__builtin_va_arg_pack ()' I believe the diagnostics should really be emitted only once for the entire= ty of zp(). >>From gcc-bugs-return-613593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 04:40:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89305 invoked by alias); 24 Aug 2018 04:40:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89224 invoked by uid 48); 24 Aug 2018 04:40:32 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87084] Excessive diagnostic messages for invalid use of __builtin_va_arg_pack{,_len}() in a loop Date: Fri, 24 Aug 2018 04:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01882.txt.bz2 Content-length: 227 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87084 --- Comment #1 from Andrew Pinski --- The error happens after some optimization. In this case, it happens after = loop unrolling has happened. >>From gcc-bugs-return-613594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 04:42:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95106 invoked by alias); 24 Aug 2018 04:42:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95050 invoked by uid 48); 24 Aug 2018 04:42:16 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87070] Combine popcount on pieces to a single popcountll Date: Fri, 24 Aug 2018 04:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01883.txt.bz2 Content-length: 481 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87070 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement --- Comment #1 from Andrew Pinski --- Confirmed. The easiest way to do this is have a simple match.pd pattern bu= t it will need to handle casts too. >>From gcc-bugs-return-613595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 04:43:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96421 invoked by alias); 24 Aug 2018 04:43:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96293 invoked by uid 48); 24 Aug 2018 04:42:58 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87070] Combine popcount on pieces to a single popcountll Date: Fri, 24 Aug 2018 04:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01884.txt.bz2 Content-length: 475 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87070 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-24 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- =2E >>From gcc-bugs-return-613596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 06:40:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45806 invoked by alias); 24 Aug 2018 06:40:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43773 invoked by uid 48); 24 Aug 2018 06:40:55 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Fri, 24 Aug 2018 06:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01885.txt.bz2 Content-length: 558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-24 Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gn= u.org Ever confirmed|0 |1 --- Comment #4 from Aldy Hernandez --- Mine. >>From gcc-bugs-return-613597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 06:58:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99829 invoked by alias); 24 Aug 2018 06:58:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99780 invoked by uid 48); 24 Aug 2018 06:58:06 -0000 From: "kelledin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87076] -mpcu/-march not propagated through LTO bytecode (ice/segfault if arch flags do not match) Date: Fri, 24 Aug 2018 06:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kelledin at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01886.txt.bz2 Content-length: 626 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87076 --- Comment #1 from Frank Schaefer --- Coming from PR87067: binutils suffers badly from this, because the testsuite apparently honors $CFLAGS but intentionally ignores $LDFLAGS. So even if an end-user does the right thing and adds consistent "-march=3D..." to both CF= LAGS and LDFLAGS, this quirk brutally murders all the binutils LTO regression te= sts on armv7 and similar. For my part, I can get around this by adding my "-march=3D..." flags to $CC= /$CXX, but that's just gross. +1 to auto-propagating these flags through the bytecode. >>From gcc-bugs-return-613598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:03:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83125 invoked by alias); 24 Aug 2018 07:03:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80879 invoked by uid 48); 24 Aug 2018 07:03:02 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87067] [8.1, 8.2] LTO-related ICE when running armv7 binutils test suite Date: Fri, 24 Aug 2018 07:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01887.txt.bz2 Content-length: 498 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87067 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Richard Biener --- Dup then. *** This bug has been marked as a duplicate of bug 87076 *** >>From gcc-bugs-return-613599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:03:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83451 invoked by alias); 24 Aug 2018 07:03:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81552 invoked by uid 48); 24 Aug 2018 07:03:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87076] -mpcu/-march not propagated through LTO bytecode (ice/segfault if arch flags do not match) Date: Fri, 24 Aug 2018 07:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01888.txt.bz2 Content-length: 184 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87076 --- Comment #2 from Richard Biener --- *** Bug 87067 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:07:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86737 invoked by alias); 24 Aug 2018 07:07:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86620 invoked by uid 48); 24 Aug 2018 07:07:13 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87076] -mpcu/-march not propagated through LTO bytecode (ice/segfault if arch flags do not match) Date: Fri, 24 Aug 2018 07:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01889.txt.bz2 Content-length: 726 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87076 --- Comment #3 from Richard Biener --- On x86_64 the actual -march switch isn't serialized but it is decomposed in= to individual -mFEATURE switches by the driver which are serialized. That is, if you make sure that int __attribute__((target("arch=3Darmv7-r"))) foo () {} works then the way LTO operates should work as well (it moves command-line flags to individual per-function attributes). The -march switch also appears in the lto_opts LTO section and should be handed off to the linker by lto-wrapper as well. You can check that by looking at -v output of the link command and/or looking at the lto_opts section in the object files. >>From gcc-bugs-return-613602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:17:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52125 invoked by alias); 24 Aug 2018 07:17:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51529 invoked by uid 48); 24 Aug 2018 07:17:15 -0000 From: "chengming at bjuci dot com.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87085] New: with -march=i386, gcc should not generate code including endbr instruction Date: Fri, 24 Aug 2018 07:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chengming at bjuci dot com.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01891.txt.bz2 Content-length: 1172 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87085 Bug ID: 87085 Summary: with -march=3Di386, gcc should not generate code including endbr instruction Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chengming at bjuci dot com.cn Target Milestone: --- My gcc version is gcc (GCC) 8.2.1 20180801 (Red Hat 8.2.1-2), OS is Fedora = 28. I develop program for a CPU called Vortex86 on it. Vortex86 is an x86 artitecture CPU from Taiwan. My problem is, even a program with only "return 0;", it will cause "Illegal Instruction" on Vortex86.=20 Based on dumped core file and objdump, the problem comes from the endbr32 instruction.=20 Even though I add the -march=3Di386 and -fcf-protection=3Dnone option, it s= till output endbr32 instruction. So I think it's a bug. Because i386 CPU didn't support endbr32 instruction.= If I specified -march=3Di386, it should not generate endbr32 instruction. There is no such problem on GCC 7 and below. Thanks. >>From gcc-bugs-return-613601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:17:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51531 invoked by alias); 24 Aug 2018 07:17:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51461 invoked by uid 48); 24 Aug 2018 07:17:11 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87072] [6/7 Regression] g++6.2.0 false warning: array subscript is above array bounds, with misleading line number Date: Fri, 24 Aug 2018 07:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: blocked target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01890.txt.bz2 Content-length: 473 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87072 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |56456 Target Milestone|--- |6.5 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56456 [Bug 56456] [meta-bug] bogus/missing -Warray-bounds >>From gcc-bugs-return-613603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:18:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82359 invoked by alias); 24 Aug 2018 07:18:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78421 invoked by uid 48); 24 Aug 2018 07:18:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Fri, 24 Aug 2018 07:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01892.txt.bz2 Content-length: 615 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 --- Comment #5 from Richard Biener --- (In reply to Aldy Hernandez from comment #2) > (In reply to Martin Sebor from comment #1) > > I wonder if it's related to pr87059. >=20 > No, not related. >=20 > Reproduced with a stage1 compiler just with --disable-multilib and > --enable-languages=3Dgo and make all-target-libgo. >=20 > This one's entirely my fault. For all my whining about Ada, I should rea= lly > start testing go and ada for all my VRP changes :-/. I always use --enable-languages=3Dall ;) (that just forgets jit ;) >>From gcc-bugs-return-613604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:23:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101604 invoked by alias); 24 Aug 2018 07:23:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101568 invoked by uid 48); 24 Aug 2018 07:23:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87074] [8/9 Regression] Vectorization bug: O3 result differ from O2 Date: Fri, 24 Aug 2018 07:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget priority bug_status keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01893.txt.bz2 Content-length: 1094 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87074 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-*, i?86-*-* Priority|P3 |P2 Status|UNCONFIRMED |NEW Keywords| |needs-bisection, wrong-code Last reconfirmed| |2018-08-24 CC| |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Summary|Vectorization bug: O3 |[8/9 Regression] |result differ from O2 |Vectorization bug: O3 | |result differ from O2 Target Milestone|--- |8.3 --- Comment #1 from Richard Biener --- Confirmed. Doesn't seem to be vectorization but -fno-tree-loop-optimize "fixes" it. >>From gcc-bugs-return-613605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:25:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105530 invoked by alias); 24 Aug 2018 07:25:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105251 invoked by uid 48); 24 Aug 2018 07:24:32 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] [7/8/9 Regression] ICE when compiling the test suite of GLM 0.9.9.0 Date: Fri, 24 Aug 2018 07:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01894.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |7.4 >>From gcc-bugs-return-613607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:27:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9637 invoked by alias); 24 Aug 2018 07:27:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5667 invoked by uid 48); 24 Aug 2018 07:27:28 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87078] [9 regression] gcc.dg/vect/slp-37.c begins failing with r263772 Date: Fri, 24 Aug 2018 07:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01896.txt.bz2 Content-length: 362 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87078 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target Milestone|--- |9.0 >>From gcc-bugs-return-613606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:27:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109346 invoked by alias); 24 Aug 2018 07:27:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101982 invoked by uid 48); 24 Aug 2018 07:26:58 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87077] missed optimization for horizontal add for x86 SSE Date: Fri, 24 Aug 2018 07:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on cc blocked everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01895.txt.bz2 Content-length: 974 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87077 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |x86_64-*-*, i?86-*-* Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-24 CC| |rguenth at gcc dot gnu.org Blocks| |53947 Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- Can you attach the source please? These stupid Web 2.0 sites do not allow = to save it to a file. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53947 [Bug 53947] [meta-bug] vectorizer missed-optimizations >>From gcc-bugs-return-613608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:29:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85670 invoked by alias); 24 Aug 2018 07:29:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82028 invoked by uid 48); 24 Aug 2018 07:29:01 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87081] [9 regression] gcc.target/powerpc/vec-init-6.c failures with r262930 Date: Fri, 24 Aug 2018 07:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01897.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87081 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:33:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73185 invoked by alias); 24 Aug 2018 07:33:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73146 invoked by uid 48); 24 Aug 2018 07:33:49 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87084] Excessive diagnostic messages for invalid use of __builtin_va_arg_pack{,_len}() in a loop Date: Fri, 24 Aug 2018 07:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: accepts-invalid, diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on component version everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01898.txt.bz2 Content-length: 1553 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87084 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-24 Component|other |c Version|unknown |8.2.1 Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- It's because of rtx expand_builtin (tree exp, rtx target, rtx subtarget, machine_mode mode, int ignore) { ... case BUILT_IN_VA_ARG_PACK: /* All valid uses of __builtin_va_arg_pack () are removed during inlining. */ error ("%Kinvalid use of %<__builtin_va_arg_pack ()%>", exp); return const0_rtx; case BUILT_IN_VA_ARG_PACK_LEN: /* All valid uses of __builtin_va_arg_pack_len () are removed during inlining. */ error ("%Kinvalid use of %<__builtin_va_arg_pack_len ()%>", exp); return const0_rtx; and diagnostics of valid/invalid uses of these builtins should really happen in the FE (they may be only used in variadic functions and those functions need to be marked always-inline either by the user or the frontend). So - marking as C-family FE bug. We should reject this testcase and the above code should be changed to ICE. >>From gcc-bugs-return-613610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:41:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87650 invoked by alias); 24 Aug 2018 07:41:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87549 invoked by uid 48); 24 Aug 2018 07:41:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87065] [7/8/9 Regression] combine causes ICE in trunc_int_for_mode Date: Fri, 24 Aug 2018 07:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01899.txt.bz2 Content-length: 891 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 --- Comment #7 from Richard Biener --- It's combines known_cond: Breakpoint 6, known_cond (x=3D0x7ffff6a65198, cond=3DEQ, reg=3D0x7ffff6a3fa= 20,=20 val=3D0x7ffff6a47930) at /space/rguenther/src/gcc-sccvn/gcc/combine.c:9= 468 9468 enum rtx_code code =3D GET_CODE (x); (gdb) p debug_rtx (x) (eq:V4SI (reg:V4SI 127 [ vect__6.22 ]) (reg:V4SI 162)) $13 =3D void (gdb) p debug_rtx (reg) (reg:V4SI 127 [ vect__6.22 ]) $14 =3D void (gdb) p debug_rtx (val) (reg:V4SI 162) ... 9517 if (comparison_dominates_p (cond, code)) (gdb)=20 9518 return const_true_rtx; neither uses of const_true_rtx nor const0_rtx are correct here. Simplest solution is to fend off all non-integer compares (mode of x) or to use appropriately moded results (vector true is {-1, -1 ... }). >>From gcc-bugs-return-613611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:46:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92661 invoked by alias); 24 Aug 2018 07:46:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92120 invoked by uid 48); 24 Aug 2018 07:45:44 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87085] with -march=i386, gcc should not generate code including endbr instruction Date: Fri, 24 Aug 2018 07:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01900.txt.bz2 Content-length: 570 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87085 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl at gcc dot gnu.org --- Comment #1 from Richard Biener --- Hmm, AFAIK endbr32 should just be a nop. But -fcf-protection=3Dnone should= work. I guess your GCC was configured to enable cf-protection by default and some= how that interferes... HJ? >>From gcc-bugs-return-613612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 07:51:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112009 invoked by alias); 24 Aug 2018 07:51:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111964 invoked by uid 48); 24 Aug 2018 07:51:29 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86993] [6/7/8/9 Regression] assignment of read-only variable error reported at wrong location Date: Fri, 24 Aug 2018 07:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01901.txt.bz2 Content-length: 645 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86993 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org --- Comment #2 from Jakub Jelinek --- Created attachment 44588 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44588&action=3Dedit gcc9-pr86993.patch Untested fix, maybe some tests in the testsuite will need small adjustments too. >>From gcc-bugs-return-613613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:07:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89209 invoked by alias); 24 Aug 2018 08:07:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89077 invoked by uid 55); 24 Aug 2018 08:07:18 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Fri, 24 Aug 2018 08:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01902.txt.bz2 Content-length: 472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 --- Comment #6 from Aldy Hernandez --- Author: aldyh Date: Fri Aug 24 08:06:06 2018 New Revision: 263828 URL: https://gcc.gnu.org/viewcvs?rev=3D263828&root=3Dgcc&view=3Drev Log: PR 87073/bootstrap * wide-int-range.cc (wide_int_range_div): Do not ignore result from wide_int_range_multiplicative_op. Modified: trunk/gcc/ChangeLog trunk/gcc/wide-int-range.cc >>From gcc-bugs-return-613614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:17:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9558 invoked by alias); 24 Aug 2018 08:17:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8303 invoked by uid 48); 24 Aug 2018 08:15:12 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Fri, 24 Aug 2018 08:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01903.txt.bz2 Content-length: 425 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Aldy Hernandez --- Fixed. >>From gcc-bugs-return-613615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:49:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18396 invoked by alias); 24 Aug 2018 08:49:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18242 invoked by uid 48); 24 Aug 2018 08:49:51 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87086] New: [9 Regression] ICE in canonize from wide-int.cc when building SPEC2000 254.gap Date: Fri, 24 Aug 2018 08:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01904.txt.bz2 Content-length: 2948 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87086 Bug ID: 87086 Summary: [9 Regression] ICE in canonize from wide-int.cc when building SPEC2000 254.gap Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org CC: aldyh at gcc dot gnu.org Target Milestone: --- I'm getting an ICE when building gap from SPEC2000 on aarch64-none-linux-gn= u. The reduced testcase is: int a, b; void fn1 () { b =3D=3D 0 || a / b; } built with -O2 -fno-strict-overflow. Without -fno-strict-overflow it doesn't ICE. The benchmark ICEs in set_value_range, at tree-vrp.c:289 whereas the testcase segfaults with: 0xbf50e5 crash_signal $SRC/gcc/toplev.c:325 0xf6a482 canonize $SRC/gcc/wide-int.cc:96 0xf6ac38 wi::force_to_size(long*, long const*, unsigned int, unsigned int, unsigned int, signop) $SRC/gcc/wide-int.cc:386 0xefed1d wide_int_storage::from(generic_wide_int > const&, unsigned int, signop) $SRC/gcc/wide-int.h:1151 0xefed1d wide_int_to_tree_1 $SRC/gcc/tree.c:1494 0xeff697 wide_int_to_tree(tree_node*, poly_int<2u, generic_wide_int > > const&) $SRC/gcc/tree.c:1676 0xedefe0 extract_range_from_binary_expr_1(value_range*, tree_code, tree_nod= e*, value_range*, value_range*) $SRC/gcc/tree-vrp.c:1675 0xedd9e2 extract_range_from_binary_expr_1(value_range*, tree_code, tree_nod= e*, value_range*, value_range*) $SRC/gcc/tree-vrp.c:1373 0xf5d110 vr_values::extract_range_from_binary_expr(value_range*, tree_code, tree_node*, tree_node*, tree_node*) $SRC/gcc/vr-values.c:768 0xf6225d vr_values::extract_range_from_assignment(value_range*, gassign*) $SRC/gcc/vr-values.c:1432 0xf62438 vr_values::vrp_visit_assignment_or_call(gimple*, tree_node**, value_range*) $SRC/gcc/vr-values.c:2048 0xf624e5 vr_values::extract_range_from_stmt(gimple*, edge_def**, tree_node*= *, value_range*) $SRC/gcc/vr-values.c:2744 0x138d508 evrp_range_analyzer::record_ranges_from_stmt(gimple*, bool) $SRC/gcc/gimple-ssa-evrp-analyze.c:293 0x138b6bf evrp_dom_walker::before_dom_children(basic_block_def*) $SRC/gcc/gimple-ssa-evrp.c:139 0x1364517 dom_walker::walk(basic_block_def*) $SRC/gcc/domwalk.c:353 0x138c05c execute_early_vrp $SRC/gcc/gimple-ssa-evrp.c:310 0x138c05c execute $SRC/gcc/gimple-ssa-evrp.c:347 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. This appeared very recently, I believe it's one of the new range work. >>From gcc-bugs-return-613616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:50:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19369 invoked by alias); 24 Aug 2018 08:50:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19283 invoked by uid 48); 24 Aug 2018 08:50:09 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87086] [9 Regression] ICE in canonize from wide-int.cc when building SPEC2000 254.gap Date: Fri, 24 Aug 2018 08:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01905.txt.bz2 Content-length: 330 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87086 ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 Known to fail| |9.0 >>From gcc-bugs-return-613617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:58:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26356 invoked by alias); 24 Aug 2018 08:58:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26268 invoked by uid 55); 24 Aug 2018 08:58:05 -0000 From: "aldyh at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 08:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01906.txt.bz2 Content-length: 2272 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #8 from Aldy Hernandez --- On 08/23/2018 04:08 PM, msebor at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 >=20 > --- Comment #7 from Martin Sebor --- > The MIN_EXPR code predates my change -- r255898 just moved indentation. = Based > on past experience I would assume MIN_EXPR to need the same types. The c= ode in > expand_builtin_strncmp mixes ssizetype and sizetype: >=20 > len1 =3D c_strlen (arg1, 1); // returns ssizetype > len2 =3D c_strlen (arg2, 1); >=20 > if (len1) > len1 =3D size_binop_loc (loc, PLUS_EXPR, ssize_int (1), len1); > if (len2) > len2 =3D size_binop_loc (loc, PLUS_EXPR, ssize_int (1), len2); >=20 > len3 =3D fold_convert_loc (loc, sizetype, arg3); > ... > if (len !=3D len3) > len =3D fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (len), len, len3= ); >=20 > So the fix is presumably to change len3 to >=20 > len3 =3D fold_convert_loc (loc, ssizetype, arg3); >=20 > Given the difference between sizetype and ssizetype is just one 's' it se= ems > like an easy mistake to make. If MIN_EXPR does, in fact, require argumen= ts of > the same type then adding an assertion to fold_binary_loc() to verify it = would > help expose these mistakes early. I'm not sure what the right predicate = is to > use in the assertion. Just compare TYPE_MAIN_VARIANT of the two argument= types > for equality? >=20 Thanks. Testing the following: gcc/ PR 87059/tree-optimization * builtins.c (expand_builtin_strncmp): Pass signed sizetype to fold_convert_loc. diff --git a/gcc/builtins.c b/gcc/builtins.c index b1a79f3f33f..7113d19aadf 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -4727,7 +4727,7 @@ expand_builtin_strncmp (tree exp, ATTRIBUTE_UNUSED=20 rtx target, if (len2) len2 =3D size_binop_loc (loc, PLUS_EXPR, ssize_int (1), len2); - tree len3 =3D fold_convert_loc (loc, sizetype, arg3); + tree len3 =3D fold_convert_loc (loc, ssizetype, arg3); /* If we don't have a constant length for the first, use the length of the second, if we know it. If neither string is constant length, >>From gcc-bugs-return-613619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:59:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27680 invoked by alias); 24 Aug 2018 08:59:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27406 invoked by uid 48); 24 Aug 2018 08:59:24 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 08:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01908.txt.bz2 Content-length: 444 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktkachov at gcc dot gnu.org --- Comment #9 from Aldy Hernandez --- *** Bug 87086 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 08:59:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27540 invoked by alias); 24 Aug 2018 08:59:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27371 invoked by uid 48); 24 Aug 2018 08:59:23 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87086] [9 Regression] ICE in canonize from wide-int.cc when building SPEC2000 254.gap Date: Fri, 24 Aug 2018 08:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01907.txt.bz2 Content-length: 495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87086 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Aldy Hernandez --- Duplicate. *** This bug has been marked as a duplicate of bug 87059 *** >>From gcc-bugs-return-613620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 09:01:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30454 invoked by alias); 24 Aug 2018 09:01:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30289 invoked by uid 48); 24 Aug 2018 09:01:34 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 09:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01909.txt.bz2 Content-length: 1593 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #10 from Aldy Hernandez --- (In reply to Martin Sebor from comment #7) > So the fix is presumably to change len3 to >=20 > len3 =3D fold_convert_loc (loc, ssizetype, arg3); >=20 > Given the difference between sizetype and ssizetype is just one 's' it se= ems > like an easy mistake to make. If MIN_EXPR does, in fact, require argumen= ts > of the same type then adding an assertion to fold_binary_loc() to verify = it > would help expose these mistakes early. I'm not sure what the right > predicate is to use in the assertion. Just compare TYPE_MAIN_VARIANT of = the > two argument types for equality? Martin, sorry to drag you into this. I didn't notice your change was just = an indentation change. Also, thanks for the hint above. I'm testing the following which seems to fix them problem: gcc/ PR 87059/tree-optimization * builtins.c (expand_builtin_strncmp): Pass signed sizetype to fold_convert_loc. diff --git a/gcc/builtins.c b/gcc/builtins.c index b1a79f3f33f..7113d19aadf 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -4727,7 +4727,7 @@ expand_builtin_strncmp (tree exp, ATTRIBUTE_UNUSED rtx target, if (len2) len2 =3D size_binop_loc (loc, PLUS_EXPR, ssize_int (1), len2); - tree len3 =3D fold_convert_loc (loc, sizetype, arg3); + tree len3 =3D fold_convert_loc (loc, ssizetype, arg3); /* If we don't have a constant length for the first, use the length of the second, if we know it. If neither string is constant length, >>From gcc-bugs-return-613621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 09:02:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31571 invoked by alias); 24 Aug 2018 09:02:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31457 invoked by uid 48); 24 Aug 2018 09:02:51 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87065] [7/8/9 Regression] combine causes ICE in trunc_int_for_mode Date: Fri, 24 Aug 2018 09:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01910.txt.bz2 Content-length: 2233 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87065 --- Comment #8 from Jakub Jelinek --- --- gcc/combine.c.jj 2018-08-24 08:55:25.000000000 +0200 +++ gcc/combine.c 2018-08-24 11:00:01.974006314 +0200 @@ -6495,7 +6495,7 @@ simplify_if_then_else (rtx x) pc_rtx, pc_rtx, 0, 0, 0); if (reg_mentioned_p (from, false_rtx)) false_rtx =3D subst (known_cond (copy_rtx (false_rtx), false_code, - from, false_val), + from, false_val), pc_rtx, pc_rtx, 0, 0, 0); SUBST (XEXP (x, 1), swapped ? false_rtx : true_rtx); @@ -9515,12 +9515,13 @@ known_cond (rtx x, enum rtx_code cond, r if (COMPARISON_P (x)) { if (comparison_dominates_p (cond, code)) - return const_true_rtx; + return (VECTOR_MODE_P (GET_MODE (x)) + ? CONSTM1_RTX (GET_MODE (x)) : const_true_rtx); code =3D reversed_comparison_code (x, NULL); if (code !=3D UNKNOWN && comparison_dominates_p (cond, code)) - return const0_rtx; + return CONST0_RTX (GET_MODE (x)); else return x; } @@ -9563,7 +9564,7 @@ known_cond (rtx x, enum rtx_code cond, r /* We must simplify subreg here, before we lose track of the original inner_mode. */ new_rtx =3D simplify_subreg (GET_MODE (x), r, - inner_mode, SUBREG_BYTE (x)); + inner_mode, SUBREG_BYTE (x)); if (new_rtx) return new_rtx; else @@ -9588,7 +9589,7 @@ known_cond (rtx x, enum rtx_code cond, r /* We must simplify the zero_extend here, before we lose track of the original inner_mode. */ new_rtx =3D simplify_unary_operation (ZERO_EXTEND, GET_MODE (x), - r, inner_mode); + r, inner_mode); if (new_rtx) return new_rtx; else fixes the ICE, but there are other latent issues. >>From gcc-bugs-return-613622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 09:12:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7773 invoked by alias); 24 Aug 2018 09:12:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7709 invoked by uid 48); 24 Aug 2018 09:12:53 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Fri, 24 Aug 2018 09:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gerald at pfeifer dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01911.txt.bz2 Content-length: 235 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 --- Comment #4 from Janne Blomqvist --- Sure, I can chip in a little, though I'm no html expert. Do you have some branch somewhere where you're working, or? >>From gcc-bugs-return-613623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 09:31:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31685 invoked by alias); 24 Aug 2018 09:31:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31106 invoked by uid 48); 24 Aug 2018 09:30:46 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Fri, 24 Aug 2018 09:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01912.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 --- Comment #4 from Janne Blomqvist --- Well, that is, ahem, interesting. So it seems that OACC does the vector_len= gth reduction incorrectly; the correct result is obviously 10.0 and not 9.0 whi= ch then causes the failure. I'm a bit lost why that might happen, but in the time-honored fashion of shifting blame I suggest this is some latent bug in OACC rather than a bug = in r263751. >>From gcc-bugs-return-613624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 10:00:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71143 invoked by alias); 24 Aug 2018 10:00:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70959 invoked by uid 48); 24 Aug 2018 10:00:44 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Fri, 24 Aug 2018 10:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01913.txt.bz2 Content-length: 719 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek --- Treating the missing else cost as 0 cost isn't right either, it is ok to ac= cept some small cost, otherwise we wouldn't do the if conversion ever with missi= ng else_bb. The thing is that it needs to be small enough. Do we need some new target magic constant for this, or do we just use cost = of a few (say 4-5) moves or something similar? >>From gcc-bugs-return-613625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 10:35:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36519 invoked by alias); 24 Aug 2018 10:35:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36460 invoked by uid 48); 24 Aug 2018 10:35:39 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] [8/9 Regression] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Fri, 24 Aug 2018 10:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01914.txt.bz2 Content-length: 761 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 --- Comment #2 from Jakub Jelinek --- That change just improved the constant folding. In C++ which has done that constant folding forever we don't warn, because check_format_arguments is called with the non-folded original arguments (though,=20 before delayed folding - r217814 - C++ warned about this). Though, for this case I'd think it is a good think to warn about const char *const p =3D NULL; printf ("%s\n", p); My suggestion is if you don't want this warning don't use const on the variables, it doesn't improve the generated code when optimizing, so the on= ly advantage of it is making sure you inside of the macro don't try to change = the value of the variables. >>From gcc-bugs-return-613626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 10:49:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8872 invoked by alias); 24 Aug 2018 10:49:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8817 invoked by uid 48); 24 Aug 2018 10:49:08 -0000 From: "konstantin.vladimirov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87087] New: Optimization hangs up and consumes over 15Gb of memory Date: Fri, 24 Aug 2018 10:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: konstantin.vladimirov at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01915.txt.bz2 Content-length: 1843 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87087 Bug ID: 87087 Summary: Optimization hangs up and consumes over 15Gb of memory Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: konstantin.vladimirov at gmail dot com Target Milestone: --- Reproduction (after creduce, sorry for that code): b; d; e() { unsigned f; unsigned g; int h; long i =3D 901380; for (;;) { d =3D 0; for (; d; d++) { h =3D 50126706678236; f =3D 0; for (; f < 15; f +=3D 3) { g =3D 0; for (; g < 9; g++) b =3D h =3D i - (h << 5) + h; } } i =3D 0; } } Compiler: > gcc -v Reading specs from /apps/gcc/8.1.0/.bin/../lib64/gcc/x86_64-suse-linux/8.1.0/specs COLLECT_GCC=3D/apps/gcc/8.1.0/.bin/gcc COLLECT_LTO_WRAPPER=3D/apps/gcc/8.1.0/.bin/../libexec/gcc/x86_64-suse-linux= /8.1.0/lto-wrapper Target: x86_64-suse-linux Configured with: ./configure --prefix=3D/apps/gcc/8.1.0 --libdir=3D/apps/gcc/8.1.0/lib64 --libexecdir=3D/apps/gcc/8.1.0/libexec --bindir=3D/apps/gcc/8.1.0/bin --with-isl=3D/apps/gcc/8.1.0 --with-libelf=3D/apps/gcc/8.1.0 --with-mpfr=3D/apps/gcc/8.1.0 --with-gmp=3D/apps/gcc/8.1.0 --with-mpc=3D/apps/gcc/8.1.0 --disable-gnu-unique-object --enable-gold=3Dyes --enable-lto --enable-languages=3Dc,c++,objc,fortran --build=3Dx86_64-suse-linux --host=3Dx86_64-suse-linux --target=3Dx86_64-suse-linux --enable-libotm --disable-multilib --disable-bootstrap --disable-libstdcxx-pch Thread model: posix gcc version 8.1.0 (GCC) Try to compile like this: > gcc -O3 test.c You will see compiler hanging up and eating all of memory. > gcc -O2 test.c This passes ok. >>From gcc-bugs-return-613627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 10:50:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10318 invoked by alias); 24 Aug 2018 10:50:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10238 invoked by uid 55); 24 Aug 2018 10:50:00 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86989] ICE in rs6000_output_addr_const_extra, at config/rs6000/rs6000.c:20994 Date: Fri, 24 Aug 2018 10:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01916.txt.bz2 Content-length: 1531 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86989 --- Comment #2 from Segher Boessenkool --- Author: segher Date: Fri Aug 24 10:49:27 2018 New Revision: 263829 URL: https://gcc.gnu.org/viewcvs?rev=3D263829&root=3Dgcc&view=3Drev Log: rs6000: Check that the base of a TOCREL is the TOC (PR86989) There currently is nothing that prevents replacing the TOC_REGISTER in a TOCREL unspec with something else, like a pseudo, or a memory ref. This of course does not work. Fix that. Tested on powerpc64-linux {-m32,-m64}; committing. Segher 2018-08-24 Segher Boessenkool PR target/86989 * config/rs6000/rs6000.c (toc_relative_expr_p): Check that the base= is the TOC register. --- gcc/config/rs6000/rs6000.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a967912..ed33912 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -7932,7 +7932,9 @@ toc_relative_expr_p (const_rtx op, bool strict, const= _rtx *tocrel_base_ret, *tocrel_offset_ret =3D tocrel_offset; return (GET_CODE (tocrel_base) =3D=3D UNSPEC - && XINT (tocrel_base, 1) =3D=3D UNSPEC_TOCREL); + && XINT (tocrel_base, 1) =3D=3D UNSPEC_TOCREL + && REG_P (XVECEXP (tocrel_base, 0, 1)) + && REGNO (XVECEXP (tocrel_base, 0, 1)) =3D=3D TOC_REGISTER); } /* Return true if X is a constant pool address, and also for cmodel=3Dmedi= um >>From gcc-bugs-return-613628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:01:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20826 invoked by alias); 24 Aug 2018 11:01:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20797 invoked by uid 48); 24 Aug 2018 11:01:16 -0000 From: "miltonkbenjamin at verizon dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87088] New: Attached program doesn't finish compiling and linking Date: Fri, 24 Aug 2018 11:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: miltonkbenjamin at verizon dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01917.txt.bz2 Content-length: 2409 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87088 Bug ID: 87088 Summary: Attached program doesn't finish compiling and linking Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: miltonkbenjamin at verizon dot net Target Milestone: --- Created attachment 44589 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44589&action=3Dedit Output from win_flex C:\parser>g++ -Xpreprocessor "C:\MinGW\msys\1.0\include\FlexLexer.h" lex.y= y.cc=20 lex.yy.cc:1:0: fatal error: inter-module optimizations not implemented for = C++ #line 2 "lex.yy.cc" compilation terminated. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D g++ -v: Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/i686-pc-cygwin/5.4.0/lto-wrapper.exe Target: i686-pc-cygwin Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-5.4.0-1.i686/src/gcc-5.4.0/configure --srcdir=3D/cygdrive/i/szsz/tmpp/gcc/gcc-5.4.0-1.i686/src/gcc-5.4.0 --prefi= x=3D/usr --exec-prefix=3D/usr --localstatedir=3D/var --sysconfdir=3D/etc --docdir=3D/usr/share/doc/gcc --htmldir=3D/usr/share/doc/gcc/html -C --build=3Di686-pc-cygwin --host=3Di686-pc-cygwin --target=3Di686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=3D/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_at= exit --with-dwarf2 --with-arch=3Di686 --with-tune=3Dgeneric --disable-sjlj-excep= tions --enable-languages=3Dada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graph= ite --enable-threads=3Dposix --enable-libatomic --enable-libcilkrts --enable-li= bgomp --enable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=3D/usr/share/java/ecj.j= ar --with-gnu-ld --with-gnu-as --with-cloog-include=3D/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=3Dgcc4-compatible Thread model: posix gcc version 5.4.0 (GCC) >>From gcc-bugs-return-613629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:02:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24977 invoked by alias); 24 Aug 2018 11:02:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24910 invoked by uid 48); 24 Aug 2018 11:02:38 -0000 From: "miltonkbenjamin at verizon dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87088] Attached program doesn't finish compiling and linking Date: Fri, 24 Aug 2018 11:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: miltonkbenjamin at verizon dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01918.txt.bz2 Content-length: 166 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87088 --- Comment #1 from miltonkbenjamin --- Thanks for your support Best, Milt >>From gcc-bugs-return-613630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:06:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27496 invoked by alias); 24 Aug 2018 11:06:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27434 invoked by uid 48); 24 Aug 2018 11:06:12 -0000 From: "anon63 at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Fri, 24 Aug 2018 11:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: anon63 at protonmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01919.txt.bz2 Content-length: 2119 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 --- Comment #6 from anon63 --- Dear Martin,=20 Thank you for all these details. Well, re-reading what I wrote in Comment 0, I think I should explain what I meant by "Lots of codebases can't be compiled with -Werror flag now.". Since the gcc-7 -> gcc-8 transition on my laptop, I see a lot of these warn= ings (and a Google search on -Wstringop-truncation gives lots of results for 201= 8) but I'm working on a project where security matters (IoT OS) and we use -We= rror on Travis-CI but that does not reflect accurately the common case. My assumption "Lots of codebases can't be compiled with -Werror flag now." was= not "I have seen lots of codebases where the build fails" but rather "It will n= ot be easy for those projects to use more strict CFLAGS in a next future". I am not a distribution packages maintainer so I am probably not the right person for an informed point of view. Anyway, thanks a lot for your time. As I was more interested by the global/local variable case than by the constant case, I think I will go for something strange like this :=20 //////////////////////////////////////////////////////// char *strncpy (char *, const char *, __SIZE_TYPE__); struct S { char dest[5]; }; const char src[] =3D "1234567890"; void function(struct S *s) { const char *src2=3Dsrc; // this indirection avoids a= gcc >=3D 8 strncpy(s->dest,src2,sizeof(s->dest)-1); // false positive stringop-truncation warning s->dest[sizeof(s->dest)-1]=3D'\0'; } //////////////////////////////////////////////////////// and the indirection doesn't change the assembly :=20 //////////////////////////////////////////////////////// gcc -O2 -Wall -Wextra -c a.c && objdump -d a.o a.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 : 0: c7 07 31 32 33 34 movl $0x34333231,(%rdi) 6: c6 47 04 00 movb $0x0,0x4(%rdi) a: c3 retq=20=20=20 //////////////////////////////////////////////////////// Best, >>From gcc-bugs-return-613631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:08:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28934 invoked by alias); 24 Aug 2018 11:08:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28903 invoked by uid 48); 24 Aug 2018 11:08:14 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87087] [8/9 Regression] Optimization hangs up and consumes over 15Gb of memory Date: Fri, 24 Aug 2018 11:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status cf_known_to_work keywords cf_reconfirmed_on cc assigned_to everconfirmed short_desc target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01920.txt.bz2 Content-length: 1592 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87087 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|UNCONFIRMED |ASSIGNED Known to work| |7.3.1 Keywords| |compile-time-hog, | |needs-bisection Last reconfirmed| |2018-08-24 CC| |mliska at suse dot cz Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Ever confirmed|0 |1 Summary|Optimization hangs up and |[8/9 Regression] |consumes over 15Gb of |Optimization hangs up and |memory |consumes over 15Gb of | |memory Target Milestone|--- |8.3 --- Comment #1 from Richard Biener --- Confirmed. Another case hanging in SCEV stuff. This time in cunrolli. It might be caused by my removal of some complexity backoff ... Martin, can you confirm that? Eventually caching isn't working too good either so we do very many times the same thing (infer_loop_bounds_from_undefined). Seemed to work fine in GCC 7 for whatever reason (not unrolling so much I guess). I will have a look. >>From gcc-bugs-return-613632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:09:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30455 invoked by alias); 24 Aug 2018 11:09:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30419 invoked by uid 48); 24 Aug 2018 11:09:52 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87087] [8 Regression] Optimization hangs up and consumes over 15Gb of memory Date: Fri, 24 Aug 2018 11:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01921.txt.bz2 Content-length: 717 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87087 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.0 Summary|[8/9 Regression] |[8 Regression] Optimization |Optimization hangs up and |hangs up and consumes over |consumes over 15Gb of |15Gb of memory |memory | Known to fail| |8.1.0, 8.2.1 --- Comment #2 from Richard Biener --- Trunk seems fine as well. >>From gcc-bugs-return-613633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:10:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31494 invoked by alias); 24 Aug 2018 11:10:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31418 invoked by uid 48); 24 Aug 2018 11:10:13 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87088] Attached program doesn't finish compiling and linking Date: Fri, 24 Aug 2018 11:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01922.txt.bz2 Content-length: 891 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87088 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely --- (In reply to miltonkbenjamin from comment #0) > Created attachment 44589 [details] > Output from win_flex >=20 > C:\parser>g++ -Xpreprocessor "C:\MinGW\msys\1.0\include\FlexLexer.h"=20 > lex.yy.cc=20 -Xpreprocessor passes an option to the preprocessor, but you're giving it a filename. Are you trying to have that file included? That would be -include "C:\MinGW\msys\1.0\include\FlexLexer.h"=20 Also, GCC 5.4.0 is not supported, the oldest supported release is 6.4.0 >>From gcc-bugs-return-613635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:17:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61460 invoked by alias); 24 Aug 2018 11:17:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61319 invoked by uid 48); 24 Aug 2018 11:17:41 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87089] New: [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h Date: Fri, 24 Aug 2018 11:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01924.txt.bz2 Content-length: 3067 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87089 Bug ID: 87089 Summary: [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- r263651 PASS r263798 FAIL $ g++ -fpreprocessed -O2 -fno-semantic-interposition -flto -fPIC -DPIC -c -o a.o a.ii $ g++ -fpreprocessed -O2 -fno-semantic-interposition -flto -fPIC -DPIC -c -o b.o b.ii $ g++ -flto -fPIC -DPIC -shared a.o b.o=20 b.ii:6:9: warning: type 'struct d' violates the C++ One Definition Rule [-W= odr] 6 | struct d : a{} * b; | ^ a.ii:2:8: note: a type with different bases is defined in another translati= on unit 2 | struct d { | ^ during IPA pass: pure-const lto1: internal compiler error: tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h:182 0x6eb2cb tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /home/dimhen/src/gcc_current/gcc/tree.c:9420 0xb0e697 tree_class_check(tree_node const*, tree_code_class, char const*, i= nt, char const*) /home/dimhen/src/gcc_current/gcc/tree.h:3499 0xb0e697 type_with_linkage_p(tree_node const*) /home/dimhen/src/gcc_current/gcc/ipa-utils.h:182 0xb0e6fd type_in_anonymous_namespace_p(tree_node const*) /home/dimhen/src/gcc_current/gcc/ipa-utils.h:215 0xb0555a maybe_record_node /home/dimhen/src/gcc_current/gcc/ipa-devirt.c:2396 0xb0bd6c possible_polymorphic_call_targets(tree_node*, long, ipa_polymorphic_call_context, bool*, void**, bool) /home/dimhen/src/gcc_current/gcc/ipa-devirt.c:3205 0xb423da possible_polymorphic_call_targets(cgraph_edge*, bool*, void**, boo= l) /home/dimhen/src/gcc_current/gcc/ipa-utils.h:116 0xb423da walk_polymorphic_call_targets /home/dimhen/src/gcc_current/gcc/ipa.c:171 0xb44b40 symbol_table::remove_unreachable_nodes(_IO_FILE*) /home/dimhen/src/gcc_current/gcc/ipa.c:418 0x879c32 read_cgraph_and_symbols /home/dimhen/src/gcc_current/gcc/lto/lto.c:3016 0x879c32 lto_main() /home/dimhen/src/gcc_current/gcc/lto/lto.c:3400 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: /usr/local/gcc_current/bin/g++ returned 1 exit st= atus compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status $ cat a.ii namespace A { struct d { ~d(); }; d::~d() {} } $ cat b.ii class a { protected: virtual ~a(); }; namespace A { struct d : a{} * b; void c() { b->~d(); } } >>From gcc-bugs-return-613634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:17:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61366 invoked by alias); 24 Aug 2018 11:17:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61301 invoked by uid 48); 24 Aug 2018 11:17:40 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87086] [9 Regression] ICE in canonize from wide-int.cc when building SPEC2000 254.gap Date: Fri, 24 Aug 2018 11:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01923.txt.bz2 Content-length: 347 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87086 --- Comment #2 from ktkachov at gcc dot gnu.org --- (In reply to Aldy Hernandez from comment #1) > Duplicate. >=20 > *** This bug has been marked as a duplicate of bug 87059 *** Are you sure this is a dup? PR 87059 seems to be about strncmp whereas this= has to do with -fno-strict-overflow >>From gcc-bugs-return-613636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:18:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62941 invoked by alias); 24 Aug 2018 11:18:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62890 invoked by uid 48); 24 Aug 2018 11:18:05 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/87088] Attached program doesn't finish compiling and linking Date: Fri, 24 Aug 2018 11:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords component version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01925.txt.bz2 Content-length: 628 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87088 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Component|c++ |preprocessor Version|5.4.0 |9.0 --- Comment #3 from Jonathan Wakely --- N.B. releases from the GCC 8.x series gives a more helpful error message: cc1plus: error: too many filenames given. Type cc1plus --help for usage >>From gcc-bugs-return-613637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:21:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65675 invoked by alias); 24 Aug 2018 11:21:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65620 invoked by uid 48); 24 Aug 2018 11:20:56 -0000 From: "jeanmichael.celerier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87090] New: Constexpr variables in functions are not optimized correctly Date: Fri, 24 Aug 2018 11:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jeanmichael.celerier at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01926.txt.bz2 Content-length: 3333 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87090 Bug ID: 87090 Summary: Constexpr variables in functions are not optimized correctly Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jeanmichael.celerier at gmail dot com Target Milestone: --- Consider the following code : #include #include struct Table=20 { long long tab[128]; constexpr Table()=20 : tab {}=20 { tab['0'] =3D 0; tab['1'] =3D 1; tab['2'] =3D 2; tab['3'] =3D 3; tab['4'] =3D 4; tab['5'] =3D 5; tab['6'] =3D 6; tab['7'] =3D 7; tab['8'] =3D 8; tab['9'] =3D 9; tab['a'] =3D 10; tab['A'] =3D 10; tab['b'] =3D 11; tab['B'] =3D 11; tab['c'] =3D 12; tab['C'] =3D 12; tab['d'] =3D 13; tab['D'] =3D 13; tab['e'] =3D 14; tab['E'] =3D 14; tab['f'] =3D 15; tab['F'] =3D 15; } constexpr auto operator[](const std::size_t idx) const { return tab[i= dx]; }=20 } constexpr t; constexpr auto conv(std::size_t number)=20 { return t[number]; } std::array res; void convert(std::string_view hex) { res[0] =3D (conv(hex[1])); res[1] =3D (conv(hex[3])); res[2] =3D (conv(hex[5])); res[3] =3D (conv(hex[7])); } When benchmarking it (calling the `convert("#00ABCDEF")` function a few mil= lion times from another translation unit), I get the following numbers consisten= tly :=20 g++-8.2.0 : 8-9 nanoseconds per call clang++-6.0.1 : 8-10 nanoseconds per call Now, if I want to put the table inside the conv function to keep it in a sm= all scope, such as this :=20 constexpr auto conv(std::size_t number)=20 { struct Table=20 { long long tab[128]; constexpr Table()=20 : tab {}=20 { tab['0'] =3D 0; tab['1'] =3D 1; tab['2'] =3D 2; tab['3'] =3D 3; tab['4'] =3D 4; tab['5'] =3D 5; tab['6'] =3D 6; tab['7'] =3D 7; tab['8'] =3D 8; tab['9'] =3D 9; tab['a'] =3D 10; tab['A'] =3D 10; tab['b'] =3D 11; tab['B'] =3D 11; tab['c'] =3D 12; tab['C'] =3D 12; tab['d'] =3D 13; tab['D'] =3D 13; tab['e'] =3D 14; tab['E'] =3D 14; tab['f'] =3D 15; tab['F'] =3D 15; } constexpr auto operator[](const std::size_t idx) const { return tab[idx]; }=20 } constexpr t; return t[number]; } I get the following numbers :=20 clang++-6.0.1 : 8-10 nanoseconds per call (no changes) g++-8.2.0 : 120-150 nanoseconds per call, more than ten times slower ! I tested for both compiles at -O2 and -O3 without observable changes. If I make the "conv" function itself non-constexpr, and mark the table as static constexpr, I get my performance back - I guess that even while const= expr the table must be initialized each time ? >>From gcc-bugs-return-613638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:22:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69676 invoked by alias); 24 Aug 2018 11:22:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69634 invoked by uid 48); 24 Aug 2018 11:22:51 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/87088] Attached program doesn't finish compiling and linking Date: Fri, 24 Aug 2018 11:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01927.txt.bz2 Content-length: 385 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87088 --- Comment #4 from Jonathan Wakely --- FWIW this was changed by r247222 2017-04-25 Bernd Edlinger * c-common.c (c_type_hasher, type_hash_table): Remove. (c_common_get_alias_set): Remove unreachable code. * c-opts.c (c_common_post_options): Make sure cc1 takes only one fi= le. >>From gcc-bugs-return-613639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:29:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90484 invoked by alias); 24 Aug 2018 11:29:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90405 invoked by uid 55); 24 Aug 2018 11:29:15 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/79342] [6 Regression] ICE in output_index_string, at dwarf2out.c:25635 with -gsplit-dwarf Date: Fri, 24 Aug 2018 11:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 6.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01928.txt.bz2 Content-length: 838 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79342 --- Comment #10 from hjl at gcc dot gnu.org --- Author: hjl Date: Fri Aug 24 11:28:40 2018 New Revision: 263831 URL: https://gcc.gnu.org/viewcvs?rev=3D263831&root=3Dgcc&view=3Drev Log: DWARF: Call set_indirect_string on DW_MACINFO_start_file Since -gsplit-dwarf -g3 will output filename as indirect string, call set_indirect_string on DW_MACINFO_start_file for -gsplit-dwarf -g3. gcc/ PR debug/79342 * dwarf2out.c (save_macinfo_strings): Call set_indirect_string on DW_MACINFO_start_file for -gsplit-dwarf -g3. gcc/testsuite/ PR debug/79342 * gcc.dg/pr79342.: New test. Added: trunk/gcc/testsuite/gcc.dg/pr79342.c Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:31:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94166 invoked by alias); 24 Aug 2018 11:31:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93443 invoked by uid 48); 24 Aug 2018 11:31:15 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87085] with -march=i386, gcc should not generate code including endbr instruction Date: Fri, 24 Aug 2018 11:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01929.txt.bz2 Content-length: 740 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87085 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-24 CC|hjl at gcc dot gnu.org |hjl.tools at gmail = dot com Ever confirmed|0 |1 --- Comment #2 from H.J. Lu --- (In reply to chengming from comment #0) >=20 > Even though I add the -march=3Di386 and -fcf-protection=3Dnone option, it= still > output endbr32 instruction. >=20 Please provide a testcase. >>From gcc-bugs-return-613641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:32:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101267 invoked by alias); 24 Aug 2018 11:32:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101195 invoked by uid 48); 24 Aug 2018 11:32:08 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86989] ICE in rs6000_output_addr_const_extra, at config/rs6000/rs6000.c:20994 Date: Fri, 24 Aug 2018 11:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: segher at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01930.txt.bz2 Content-length: 160 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86989 --- Comment #3 from Segher Boessenkool --- Fixed on trunk; backports pending. >>From gcc-bugs-return-613643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:38:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107933 invoked by alias); 24 Aug 2018 11:38:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107549 invoked by uid 48); 24 Aug 2018 11:38:17 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66970] Add __has_builtin() macro Date: Fri, 24 Aug 2018 11:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01932.txt.bz2 Content-length: 1018 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66970 --- Comment #11 from Jonathan Wakely --- (In reply to felix from comment #7) > I made the feature closely mimic The Other Compiler's behaviour: only > function built-ins are recognised. This includes generic functions like > __builtin_add_overflow and C library functions specially handled by the > front-end like printf (unless -fno-builtin is used), but excludes types l= ike > __builtin_va_list and function-like constructs (implemented as keywords) > like __builtin_offsetof and __builtin_types_compatible_p. This is not so > much of a problem for them, since they also provide __has_feature(), > __has_extension() and __is_identifier() macros. I hate that behaviour. Having to use !__is_identifier(__builtin_launder) is confusing (and not just to me, but to developers of LLVM's own libc++, who = I've had to explain the problem to). But consistency with Clang is probably more important than making __has_bui= ltin behave sanely. >>From gcc-bugs-return-613642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:38:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107603 invoked by alias); 24 Aug 2018 11:38:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107452 invoked by uid 48); 24 Aug 2018 11:38:14 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87039] [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp Date: Fri, 24 Aug 2018 11:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01931.txt.bz2 Content-length: 932 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87039 --- Comment #1 from Jakub Jelinek --- I think this shows a pretty major bug caused by the early dwarf changes - it happens too early. When OpenMP/OpenACC etc. does move_sese_region_to_fn, it duplicates the BLO= CK which is on the boundary and should stay in both parent and child, but the other BLOCKs are just moved. With early dwarf, we've already created the DW_TAG_lexical_block for those blocks and added them under their parent block. So, either we shouldn't do that during parsing and only create the lexical blocks with early dwarf at the end of the lowering passes, or move_sese_region_to_fn needs to use some debug hook that would reparent the lexical blocks being moved. Also note that for the omp_fn outlined functions we don't really emit any D= WARF early at all, dwarf2out_function_decl is called only late from rest_of_handle_final. >>From gcc-bugs-return-613644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:42:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125208 invoked by alias); 24 Aug 2018 11:42:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125127 invoked by uid 48); 24 Aug 2018 11:42:13 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87087] [8 Regression] Optimization hangs up and consumes over 15Gb of memory Date: Fri, 24 Aug 2018 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01933.txt.bz2 Content-length: 406 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87087 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #3 from Martin Li=C5=A1ka --- Fixed in r260322. >>From gcc-bugs-return-613645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:43:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127725 invoked by alias); 24 Aug 2018 11:43:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127155 invoked by uid 48); 24 Aug 2018 11:43:21 -0000 From: "trashyankes at wp dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87077] missed optimization for horizontal add for x86 SSE Date: Fri, 24 Aug 2018 11:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: trashyankes at wp dot pl X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01934.txt.bz2 Content-length: 1595 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87077 --- Comment #3 from trashyankes at wp dot pl --- (In reply to Richard Biener from comment #2) > Can you attach the source please? These stupid Web 2.0 sites do not allow > to save it to a file. Code: ``` #include #include struct alignas(32) Vx { float x[4]; }; struct alignas(32) Mx { Vx x[4]; }; #define M_COMMON_ATTR() __attribute__ ((target("fma"), optimize("-ffast-math"))) M_COMMON_ATTR() Vx mul(const Mx& mtx, const Vx& vec) { Vx res; for (int i =3D 0; i < 4; ++i) { auto r =3D 0.0f; for (int j =3D 0; j < 4; ++j) { r +=3D mtx.x[i].x[j] * vec.x[j]; } res.x[i] =3D r; } return res; } M_COMMON_ATTR() Vx mulSSE(const Mx& mtx, const Vx& vec) { Vx res; auto v0 =3D _mm_load_ps(vec.x); auto m0 =3D _mm_load_ps(mtx.x[0].x); auto m1 =3D _mm_load_ps(mtx.x[1].x); auto m2 =3D _mm_load_ps(mtx.x[2].x); auto m3 =3D _mm_load_ps(mtx.x[3].x); m0 =3D _mm_mul_ps(m0, v0); m1 =3D _mm_mul_ps(m1, v0); m2 =3D _mm_mul_ps(m2, v0); m3 =3D _mm_mul_ps(m3, v0); m0 =3D _mm_hadd_ps(m0, m1); m2 =3D _mm_hadd_ps(m2, m3); m0 =3D _mm_hadd_ps(m0, m2); _mm_store_ps(res.x, m0); return res; } ``` `mul` use GCC optimalizer `mulSSE` use hand written code that I expect from `mul` I use `optimize("-ffast-math")` to eliminate case where compiler is forbid = to change order of summing (because `(a + b) + c !=3D a + (b + c)`). Similar with `target("fma")` it needed to enable `_mm_hadd_ps`. >>From gcc-bugs-return-613647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:47:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7825 invoked by alias); 24 Aug 2018 11:47:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7754 invoked by uid 48); 24 Aug 2018 11:47:33 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87087] [8 Regression] Optimization hangs up and consumes over 15Gb of memory Date: Fri, 24 Aug 2018 11:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01936.txt.bz2 Content-length: 154 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87087 --- Comment #4 from Martin Li=C5=A1ka --- ... and started with r257441. >>From gcc-bugs-return-613646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:47:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6900 invoked by alias); 24 Aug 2018 11:47:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6317 invoked by uid 48); 24 Aug 2018 11:46:56 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87039] [8/9 Regression] DW_OP_fbreg used without a frame base on a C++ code w/ -fopenmp Date: Fri, 24 Aug 2018 11:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01935.txt.bz2 Content-length: 312 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87039 --- Comment #2 from Jakub Jelinek --- Actually, I think this got broken with PR78363 r244892. Before that the early_global_decl hooks are only called on the functions wh= en all the functions are lowered and thus the BLOCKs moved. >>From gcc-bugs-return-613648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:49:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12264 invoked by alias); 24 Aug 2018 11:49:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11916 invoked by uid 48); 24 Aug 2018 11:48:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87091] New: Malformed fix-it hint for missing header Date: Fri, 24 Aug 2018 11:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01937.txt.bz2 Content-length: 2008 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87091 Bug ID: 87091 Summary: Malformed fix-it hint for missing header Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: dmalcolm at gcc dot gnu.org Target Milestone: --- Created attachment 44590 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44590&action=3Dedit Preprocessed source With today's trunk the following fails (due to a libstdc++ bug I'm fixing): #define _GLIBCXX_DEBUG 1 #include int main() { } g++ -std=3Dgnu++17 x.cc In file included from /home/jwakely/gcc/9/include/c++/9.0.0/debug/vector:34, from x.cc:2: /home/jwakely/gcc/9/include/c++/9.0.0/vector:87:27: error: =E2=80=98vector= =E2=80=99 in namespace =E2=80=98std=E2=80=99 does not name a template type 87 | using vector =3D std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ /home/jwakely/gcc/9/include/c++/9.0.0/vector:87:22: note: =E2=80=98std::vec= tor=E2=80=99 is defined in header =E2=80=98=E2=80=99; did you forget to =E2=80=98#i= nclude =E2=80=99? /home/jwakely/gcc/9/include/c++/9.0.0/vector:74:1: |+#include /home/jwakely/gcc/9/include/c++/9.0.0/vector:74:1:74 | #endif /home/jwakely/gcc/9/include/c++/9.0.0/vector:87:22: /home/jwakely/gcc/9/include/c++/9.0.0/vector:87:22:87 | using vector = =3D std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~ The fix-it is mangled. I don't know what the #endif is doing there, and the caret location points to the characters "e/c" of the filename, because the quoted source is prefixed by the filename but the caret line isn't. It seems like the repeated filename is not being suppressed, but the caret expects i= t to be. >>From gcc-bugs-return-613649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 11:49:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12863 invoked by alias); 24 Aug 2018 11:49:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12181 invoked by uid 48); 24 Aug 2018 11:48:59 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87089] [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h Date: Fri, 24 Aug 2018 11:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01938.txt.bz2 Content-length: 600 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87089 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-08-24 Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot = gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- Confirmed, started with r263697. >>From gcc-bugs-return-613650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:33:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65333 invoked by alias); 24 Aug 2018 12:33:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65274 invoked by uid 48); 24 Aug 2018 12:33:03 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Fri, 24 Aug 2018 12:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01939.txt.bz2 Content-length: 437 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 Janne Blomqvist changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cesar at codesourcery dot = com --- Comment #5 from Janne Blomqvist --- CC'ing some OpenACC people, Cesar, do you have a clue? >>From gcc-bugs-return-613651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:39:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78676 invoked by alias); 24 Aug 2018 12:39:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78614 invoked by uid 48); 24 Aug 2018 12:38:58 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87091] Malformed fix-it hint for missing header Date: Fri, 24 Aug 2018 12:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01940.txt.bz2 Content-length: 169 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87091 --- Comment #1 from David Malcolm --- Looks a lot like the issue I fixed in r263606. >>From gcc-bugs-return-613652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:46:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88253 invoked by alias); 24 Aug 2018 12:46:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88174 invoked by uid 48); 24 Aug 2018 12:46:12 -0000 From: "trashyankes at wp dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51180] [C++0x] inner class alias-definition variadic template error Date: Fri, 24 Aug 2018 12:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trashyankes at wp dot pl X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dodji at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01941.txt.bz2 Content-length: 446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51180 trashyankes at wp dot pl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from trashyankes at wp dot pl --- Bug look fixed in current version (4.7.1 work correctly too). >>From gcc-bugs-return-613653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:47:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89353 invoked by alias); 24 Aug 2018 12:47:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89301 invoked by uid 48); 24 Aug 2018 12:47:24 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87091] Malformed fix-it hint for missing header Date: Fri, 24 Aug 2018 12:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01942.txt.bz2 Content-length: 1485 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87091 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #2 from David Malcolm --- (In reply to David Malcolm from comment #1) > Looks a lot like the issue I fixed in r263606. Indeed, with trunk (specifially r263787) I get: In file included from ../x86_64-pc-linux-gnu/libstdc++-v3/include/debug/vector:34, from /tmp/t.cc:2: ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:87:27: error: =E2=80=98v= ector=E2=80=99 in namespace =E2=80=98std=E2=80=99 does not name a template type 87 | using vector =3D std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:87:22: note: =E2=80=98st= d::vector=E2=80=99 is defined in header =E2=80=98=E2=80=99; did you forget to =E2=80= =98#include =E2=80=99? ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:74:1: ++ |+#include 74 | #endif ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:87:22: 87 | using vector =3D std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~ Resolving as FIXED; feel free to reopen if there's something else going on. >>From gcc-bugs-return-613654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:49:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91073 invoked by alias); 24 Aug 2018 12:48:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90700 invoked by uid 48); 24 Aug 2018 12:48:37 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87089] [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h Date: Fri, 24 Aug 2018 12:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01943.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87089 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-613656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:49:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92736 invoked by alias); 24 Aug 2018 12:49:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92043 invoked by uid 48); 24 Aug 2018 12:49:15 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87092] New: [9 Regression] internal compiler error: Segmentation fault Date: Fri, 24 Aug 2018 12:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01945.txt.bz2 Content-length: 2525 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87092 Bug ID: 87092 Summary: [9 Regression] internal compiler error: Segmentation fault Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: wei3.xiao at intel dot com, xuepeng.guo at intel dot com Target Milestone: --- On x86-64, r263752 failed to build 254.gap from SPEC CPU 2000: gcc -c -o finfield.o -fwrapv -DSPEC_CPU2000_LP64 -DSYS_IS_USG -DSYS_HAS_IOCTL_PROTO -DSYS_HAS_TIME_PROTO -DSYS_HAS_SIGNAL_PROTO -DSYS_HAS_CALLOC_PROTO -DSYS_HAS_READ_PROTO -O3 -funroll-loops -ffast-math finfield.c during GIMPLE pass: evrp finfield.c: In function 'FunLogFFE': finfield.c:1695:1: internal compiler error: Segmentation fault 1695 | } | ^ 0xcbc3bf crash_signal ../../src-trunk/gcc/toplev.c:325 0xf43793 generic_wide_int >::elt(unsigned int) const ../../src-trunk/gcc/wide-int.h:908 0xf43793 wide_int_to_tree_1 ../../src-trunk/gcc/tree.c:1488 0xf29cb2 extract_range_from_binary_expr_1(value_range*, tree_code, tree_nod= e*, value_range*, value_range*) ../../src-trunk/gcc/tree-vrp.c:1675 0xf2a427 extract_range_from_binary_expr_1(value_range*, tree_code, tree_nod= e*, value_range*, value_range*) ../../src-trunk/gcc/tree-vrp.c:1373 0xf906b6 vr_values::extract_range_from_binary_expr(value_range*, tree_code, tree_node*, tree_node*, tree_node*) ../../src-trunk/gcc/vr-values.c:768 0xf928e0 vr_values::extract_range_from_assignment(value_range*, gassign*) ../../src-trunk/gcc/vr-values.c:1429 0x1466430 evrp_range_analyzer::record_ranges_from_stmt(gimple*, bool) ../../src-trunk/gcc/gimple-ssa-evrp-analyze.c:293 0x1464eac evrp_dom_walker::before_dom_children(basic_block_def*) ../../src-trunk/gcc/gimple-ssa-evrp.c:139 0x1444162 dom_walker::walk(basic_block_def*) ../../src-trunk/gcc/domwalk.c:353 0x14657d1 execute_early_vrp ../../src-trunk/gcc/gimple-ssa-evrp.c:310 0x14657d1 execute ../../src-trunk/gcc/gimple-ssa-evrp.c:347 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. specmake[3]: *** [finfield.o] Error 1 r263656 is OK. >>From gcc-bugs-return-613655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:49:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91149 invoked by alias); 24 Aug 2018 12:49:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90796 invoked by uid 48); 24 Aug 2018 12:48:46 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Fri, 24 Aug 2018 12:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01944.txt.bz2 Content-length: 822 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #8 from Alexander Monakov --- (In reply to Jakub Jelinek from comment #7) > Treating the missing else cost as 0 cost isn't right either, it is ok to > accept some small cost, otherwise we wouldn't do the if conversion ever w= ith > missing else_bb. > The thing is that it needs to be small enough. > Do we need some new target magic constant for this, or do we just use cost > of a few (say 4-5) moves or something similar? Well, original_costs is already initialized with COSTS_N_INSNS (2), account= ing for test and branch that would be removed. So it's not too bad: in pr78120.c else_bb is in fact missing. (on x86 I think we shouldn't encourage if-conversion, by adding data dependencies it can lengthen critical paths) >>From gcc-bugs-return-613657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:52:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109956 invoked by alias); 24 Aug 2018 12:52:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104484 invoked by uid 48); 24 Aug 2018 12:52:18 -0000 From: "trashyankes at wp dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/80093] missed optimization opportunity with std::uniform_int_distribution Date: Fri, 24 Aug 2018 12:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: trashyankes at wp dot pl X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01946.txt.bz2 Content-length: 397 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80093 trashyankes at wp dot pl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from trashyankes at wp dot pl --- fixed in 8.1 >>From gcc-bugs-return-613658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 12:53:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74418 invoked by alias); 24 Aug 2018 12:53:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74345 invoked by uid 48); 24 Aug 2018 12:53:34 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Fri, 24 Aug 2018 12:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01947.txt.bz2 Content-length: 831 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #9 from Jakub Jelinek --- (In reply to Alexander Monakov from comment #8) > Well, original_costs is already initialized with COSTS_N_INSNS (2), > accounting for test and branch that would be removed. So it's not too bad: > in pr78120.c else_bb is in fact missing. I think that is not enough. > (on x86 I think we shouldn't encourage if-conversion, by adding data > dependencies it can lengthen critical paths) if-conversion is indeed very problematic on x86-64, but it isn't as easy as don't try to encourage it, because it slows down many important cases in th= at case if jumps are used. We have many PRs where users ask on specific testc= ases for more x86 if-conversion, and many PRs where users ask for less or no if-conversion. >>From gcc-bugs-return-613659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:10:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89600 invoked by alias); 24 Aug 2018 13:10:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81228 invoked by uid 48); 24 Aug 2018 13:10:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87077] missed optimization for horizontal add for x86 SSE Date: Fri, 24 Aug 2018 13:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01948.txt.bz2 Content-length: 533 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87077 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #4 from Richard Biener --- basic-block vectorization doesn't handle reduction so it gets badly confuse= d by it. loop vectorization just vectorizes the inner loop (if you disable unrolling of it). >>From gcc-bugs-return-613660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:11:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71178 invoked by alias); 24 Aug 2018 13:11:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64835 invoked by uid 48); 24 Aug 2018 13:11:29 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87080] [9 Regression] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965 Date: Fri, 24 Aug 2018 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01949.txt.bz2 Content-length: 505 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87080 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 Summary|ice in |[9 Regression] ice in |cp_get_fndecl_from_callee, |cp_get_fndecl_from_callee, |at cp/cvt.c:965 |at cp/cvt.c:965 >>From gcc-bugs-return-613661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:16:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64990 invoked by alias); 24 Aug 2018 13:16:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64697 invoked by uid 48); 24 Aug 2018 13:15:49 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87092] [9 Regression] internal compiler error: Segmentation fault Date: Fri, 24 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01950.txt.bz2 Content-length: 570 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87092 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |mpolacek at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Marek Polacek --- Dup. *** This bug has been marked as a duplicate of bug 87059 *** >>From gcc-bugs-return-613662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:16:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65387 invoked by alias); 24 Aug 2018 13:16:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64989 invoked by uid 48); 24 Aug 2018 13:16:06 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01951.txt.bz2 Content-length: 448 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #11 from Marek Polacek --- *** Bug 87092 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:19:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79443 invoked by alias); 24 Aug 2018 13:19:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79318 invoked by uid 48); 24 Aug 2018 13:18:58 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Fri, 24 Aug 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01952.txt.bz2 Content-length: 453 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #10 from Alexander Monakov --- Scaling costs by edge probabilities would also solve this issue, perhaps in= a cleaner way. (to be clear: if speed_p, instead of taking the weird faux-minimum, add to original_cost the linear combination of then_bb/else_bb costs according to their relative probabilities; in this case we would take roughly 0.5*then_c= ost) >>From gcc-bugs-return-613664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:36:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58954 invoked by alias); 24 Aug 2018 13:36:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58856 invoked by uid 48); 24 Aug 2018 13:36:31 -0000 From: "matz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86973] [6/7/8/9 Regression] ICE in expand_call, at calls.c:4217 Date: Fri, 24 Aug 2018 13:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: matz at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01953.txt.bz2 Content-length: 424 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86973 --- Comment #4 from Michael Matz --- FWIW, the testcase is broken since it can be compiled, namely since the two attributes ms_abi and sysv_abi are accepted, which is r137525 from 2008. Only broken with -mno-accumulate-outgoing-args of course. So, I guess we can safely say that this is no regression in all sensible definitions of the word. >>From gcc-bugs-return-613665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:53:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117983 invoked by alias); 24 Aug 2018 13:53:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117952 invoked by uid 48); 24 Aug 2018 13:52:58 -0000 From: "TonyELewis at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87093] New: is_constructible (__is_constructible() instrinsic) explicitly instantiates conversion member function of source Date: Fri, 24 Aug 2018 13:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: TonyELewis at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01954.txt.bz2 Content-length: 1846 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87093 Bug ID: 87093 Summary: is_constructible (__is_constructible() instrinsic) explicitly instantiates conversion member function of source Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: TonyELewis at hotmail dot com Target Milestone: --- This following fails to compile under `g++ -fsyntax-only -std=3Dc++17` but succeeds under `clang++ -fsyntax-only -std=3Dc++17` : ~~~ #include template struct x { operator bool() { static_assert( ! ::std::is_same_v ); return false; } }; inline constexpr auto a =3D ::std::is_constructible>{}; ~~~ The error is: ~~~ a.cpp: In instantiation of =E2=80=98x::operator bool() [with T =3D int]= =E2=80=99: /usr/include/c++/8/type_traits:932:12: required from =E2=80=98struct std::is_constructible >=E2=80=99 a.cpp:10:65: required from here a.cpp:5:18: error: static assertion failed static_assert( ! ::std::is_same_v ); ^~~~ ~~~ I think this means that GCC's `__is_constructible()` intrinsic is explicitly instantiating x's `operator bool()` when trying to figure out whether a bool can be constructed from an x, whereas Clang' `__is_constructible()` isn't. >>From a quick look, I can't see anything obvious in the standard about whet= her either GCC or Clang is wrong here and I guess it's arguable either way. But= I think I'd lean towards arguing that Clang's behaviour better reflects what = I'd expect from traits. I've replicated this on Godbolt's GCC 9.0.0 20180823. >>From gcc-bugs-return-613666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 13:56:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6291 invoked by alias); 24 Aug 2018 13:56:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6028 invoked by uid 48); 24 Aug 2018 13:56:02 -0000 From: "TonyELewis at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/68222] _Safe_iterator provides operators the wrapped iterator can't actually support Date: Fri, 24 Aug 2018 13:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: TonyELewis at hotmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fdumont at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01955.txt.bz2 Content-length: 278 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68222 --- Comment #4 from Tony E Lewis --- Yes - Godbolt's GCC trunk is now showing an error where I'd expect within t= he original repro code. Great stuff. Thanks very much for your work on this. >>From gcc-bugs-return-613667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:11:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68060 invoked by alias); 24 Aug 2018 14:11:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67619 invoked by uid 48); 24 Aug 2018 14:11:02 -0000 From: "cesar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751 Date: Fri, 24 Aug 2018 14:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cesar at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01956.txt.bz2 Content-length: 967 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87064 cesar at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cesar at gcc dot gnu.org, | |tschwinge at gcc dot gnu.o= rg --- Comment #6 from cesar at gcc dot gnu.org --- I wasn't able to replicate this failure on an x86_64 target either with or without nvptx offloading. It's like this is the vector reduction that's failing: !$acc parallel vector_length(vl) copy(rv) !$acc loop reduction(max:rv) vector do i =3D 1, n rv =3D max (rv, array(i)) end do !$acc end parallel Maybe a reduction variable isn't being initialized properly. But that's str= ange because on the host, all of the reductions are handled the same. That's not true with nvptx. I'll escalate this issue internally in Mentor. >>From gcc-bugs-return-613668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:18:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111342 invoked by alias); 24 Aug 2018 14:18:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111274 invoked by uid 48); 24 Aug 2018 14:18:18 -0000 From: "already5chosen at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87047] [7/8/9 Regression] performance regression because of if-conversion Date: Fri, 24 Aug 2018 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: already5chosen at yahoo dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01957.txt.bz2 Content-length: 1501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87047 --- Comment #11 from Michael_S --- Sorry for intervening, but IMHO a new __builtin is long overdue. __builtin (In reply to Jakub Jelinek from comment #9) > (In reply to Alexander Monakov from comment #8) > > Well, original_costs is already initialized with COSTS_N_INSNS (2), > > accounting for test and branch that would be removed. So it's not too b= ad: > > in pr78120.c else_bb is in fact missing. >=20 > I think that is not enough. >=20=20 > > (on x86 I think we shouldn't encourage if-conversion, by adding data > > dependencies it can lengthen critical paths) >=20 > if-conversion is indeed very problematic on x86-64, but it isn't as easy = as > don't try to encourage it, because it slows down many important cases in > that case if jumps are used. We have many PRs where users ask on specific > testcases for more x86 if-conversion, and many PRs where users ask for le= ss > or no if-conversion. if-conversion, except for simplest shortest cases, is problematic on any processor with good branch prediction and not very wide pipeline. Nothing specific to x86-64 here. To something like ARM Cortex-A73 (dual-issue) it applies much stronger than to Skylake or Ryzen. If it was dependent on me then, starting from gcc9, I would apply automatic (i.e. non-PGO) if-conversion only to *really* short sequences. For anything longer, I'd request user hint in form of __builtin_expect_with_probability(, 0.5). >>From gcc-bugs-return-613669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:29:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79098 invoked by alias); 24 Aug 2018 14:29:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79025 invoked by uid 48); 24 Aug 2018 14:29:50 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87075] [7/8/9 Regression] ICE when compiling the test suite of GLM 0.9.9.0 Date: Fri, 24 Aug 2018 14:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01958.txt.bz2 Content-length: 837 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87075 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- Indeed. The VOID_CST elts of the CONSTRUCTOR come from the 8352 if (is_dummy_object (argarray[0])) 8353 return force_target_expr (DECL_CONTEXT (fn), void_node, 8354 no_cleanup_complain); that patch added, and the constexpr handling code is upset that there is a VOID_CST rather than CONSTRUCTOR inside of the elts. >>From gcc-bugs-return-613670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:38:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100342 invoked by alias); 24 Aug 2018 14:38:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95741 invoked by uid 48); 24 Aug 2018 14:38:15 -0000 From: "joey.ye at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/78529] gcc.c-torture/execute/builtins/strcat-chk.c failed with lto/O2 Date: Fri, 24 Aug 2018 14:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: joey.ye at arm dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01959.txt.bz2 Content-length: 752 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78529 Joey Ye changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joey.ye at arm dot com --- Comment #36 from Joey Ye --- Simply applying __attribute__((noipa)) to memset (and all other C lib implementations) in chk.c prevents IPA analysis in the local implementation= of memset, thus avoids the issue when it is later replaced by a library copy. The workaround does pass this case in my experiment, which can be turn into= a patch after additional work and testing. Is it an acceptable workaround to upstream? >>From gcc-bugs-return-613671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:39:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19472 invoked by alias); 24 Aug 2018 14:39:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12858 invoked by uid 48); 24 Aug 2018 14:39:42 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87074] [8/9 Regression] Vectorization bug: O3 result differ from O2 Date: Fri, 24 Aug 2018 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01960.txt.bz2 Content-length: 399 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87074 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Started with r255467. >>From gcc-bugs-return-613672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:39:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28061 invoked by alias); 24 Aug 2018 14:39:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 22440 invoked by uid 48); 24 Aug 2018 14:39:53 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/82967] "did you mean" suggestions are way too suggestive Date: Fri, 24 Aug 2018 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01961.txt.bz2 Content-length: 196 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82967 --- Comment #6 from David Malcolm --- Candidate patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01542.html >>From gcc-bugs-return-613673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:51:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24850 invoked by alias); 24 Aug 2018 14:51:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24772 invoked by uid 48); 24 Aug 2018 14:51:50 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87074] [8/9 Regression] Vectorization bug: O3 result differ from O2 Date: Fri, 24 Aug 2018 14:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01962.txt.bz2 Content-length: 614 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87074 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- There is a clear dependency between different iterations of the outer loop,= the b in second and following iterations depends on the c[e] computed by the earlier iteration, so I think unrolljam pass should punt somewhere. CCing author. >>From gcc-bugs-return-613675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:58:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63175 invoked by alias); 24 Aug 2018 14:58:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63003 invoked by uid 48); 24 Aug 2018 14:58:47 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87086] [9 Regression] ICE in canonize from wide-int.cc when building SPEC2000 254.gap Date: Fri, 24 Aug 2018 14:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01964.txt.bz2 Content-length: 259 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87086 --- Comment #3 from Aldy Hernandez --- My bad. This is a duplicate but of pr87073, which is now fixed on mainline. *** This bug has been marked as a duplicate of bug 87073 *** >>From gcc-bugs-return-613674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 14:58:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63154 invoked by alias); 24 Aug 2018 14:58:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63019 invoked by uid 48); 24 Aug 2018 14:58:48 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Fri, 24 Aug 2018 14:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01963.txt.bz2 Content-length: 444 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktkachov at gcc dot gnu.org --- Comment #8 from Aldy Hernandez --- *** Bug 87086 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:26:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13205 invoked by alias); 24 Aug 2018 15:26:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13078 invoked by uid 48); 24 Aug 2018 15:25:55 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86953] [6/7/8/9 Regression] compiler crashes with constexpr operator== and specific struct (cxx_eval_bit_field_ref, at cp/constexpr.c:2704) Date: Fri, 24 Aug 2018 15:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc dependson Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01965.txt.bz2 Content-length: 1027 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86953 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Depends on| |81601 --- Comment #5 from Jakub Jelinek --- Another reason why we badly need to finish PR81601. The constexpr evaluator really can't cope well with these BIT_FIELD_REFs, t= hey read multiple fields at once, or could also read some uninitialized bits in between and mask them off, etc. So at minimum we'd need to disable these optimizations while folding conste= xpr declared functions and if the fields don't have INTEGRAL_TYPE or the bit fi= eld reference covers more than one field. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81601 [Bug 81601] [7/8/9 Regression] incorrect Warray-bounds warning with -fsanit= ize >>From gcc-bugs-return-613677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:29:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84453 invoked by alias); 24 Aug 2018 15:29:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79589 invoked by uid 48); 24 Aug 2018 15:29:40 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 15:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01966.txt.bz2 Content-length: 892 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #12 from Aldy Hernandez --- BTW, this is reproducible with an x86-64 cross by forcing the generation of cmpstrnsi with -mcpu=3Dcell and the following patch: diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 9ea5959ea14..ac1034b6f24 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -264,7 +264,7 @@ extern const char *host_detect_local_cpu (int argc, con= st char **argv); #ifndef HAVE_AS_CMPB #undef TARGET_CMPB -#define TARGET_CMPB 0 +#define TARGET_CMPB 1 #endif /* Define TARGET_MFPGPR if the target assembler does not support the (It really irks me that the PPC backend has backend behavior that depends on what assembler (or cross assembler) is available at configure time. It mak= es it difficult to reproduce bugs with crosses.) >>From gcc-bugs-return-613678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:34:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101578 invoked by alias); 24 Aug 2018 15:34:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99147 invoked by uid 48); 24 Aug 2018 15:34:49 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 15:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01967.txt.bz2 Content-length: 379 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc64le-linux | --- Comment #13 from H.J. Lu --- This bug also happens on x86-64. >>From gcc-bugs-return-613679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:38:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124818 invoked by alias); 24 Aug 2018 15:38:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124717 invoked by uid 48); 24 Aug 2018 15:37:59 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 15:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01968.txt.bz2 Content-length: 256 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #14 from Aldy Hernandez --- (In reply to H.J. Lu from comment #13) > This bug also happens on x86-64. Would you happen to have a preprocessed testcase on x86-64? >>From gcc-bugs-return-613680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:41:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128337 invoked by alias); 24 Aug 2018 15:41:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128237 invoked by uid 48); 24 Aug 2018 15:41:08 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 15:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01969.txt.bz2 Content-length: 643 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #15 from Segher Boessenkool --- (In reply to Aldy Hernandez from comment #12) > (It really irks me that the PPC backend has backend behavior that depends= on > what assembler (or cross assembler) is available at configure time. It > makes it difficult to reproduce bugs with crosses.) This is so that it is possible to build GCC with a (slightly) older binutil= s. You should never have problems with this if you always use a binutils for y= our cross toolchains that is approximately as old as your GCC. Did you use an ancient cross assembler? >>From gcc-bugs-return-613682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:49:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5299 invoked by alias); 24 Aug 2018 15:49:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5056 invoked by uid 55); 24 Aug 2018 15:49:32 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Fri, 24 Aug 2018 15:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01971.txt.bz2 Content-length: 978 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Fri Aug 24 15:48:43 2018 New Revision: 263836 URL: https://gcc.gnu.org/viewcvs?rev=3D263836&root=3Dgcc&view=3Drev Log: PR c++/67012 PR c++/86942 * decl.c (grokdeclarator): Disallow functions with trailing return type with decltype(auto) as its type. Also check the function if it's inner declarator doesn't exist * g++.dg/cpp0x/auto52.C: New test. * g++.dg/cpp1y/auto-fn52.C: New test. * g++.dg/cpp1y/auto-fn53.C: New test. * g++.dg/cpp1y/auto-fn54.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/auto52.C trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn52.C trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn53.C trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn54.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:49:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5163 invoked by alias); 24 Aug 2018 15:49:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4868 invoked by uid 55); 24 Aug 2018 15:49:17 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67012] decltype(auto) with trailing return type Date: Fri, 24 Aug 2018 15:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01970.txt.bz2 Content-length: 978 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67012 --- Comment #2 from Marek Polacek --- Author: mpolacek Date: Fri Aug 24 15:48:43 2018 New Revision: 263836 URL: https://gcc.gnu.org/viewcvs?rev=3D263836&root=3Dgcc&view=3Drev Log: PR c++/67012 PR c++/86942 * decl.c (grokdeclarator): Disallow functions with trailing return type with decltype(auto) as its type. Also check the function if it's inner declarator doesn't exist * g++.dg/cpp0x/auto52.C: New test. * g++.dg/cpp1y/auto-fn52.C: New test. * g++.dg/cpp1y/auto-fn53.C: New test. * g++.dg/cpp1y/auto-fn54.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/auto52.C trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn52.C trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn53.C trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn54.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:50:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7962 invoked by alias); 24 Aug 2018 15:50:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7911 invoked by uid 48); 24 Aug 2018 15:50:49 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Fri, 24 Aug 2018 15:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01973.txt.bz2 Content-length: 129 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 --- Comment #4 from Marek Polacek --- Fixed. >>From gcc-bugs-return-613683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:50:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6730 invoked by alias); 24 Aug 2018 15:50:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6642 invoked by uid 48); 24 Aug 2018 15:50:00 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67012] decltype(auto) with trailing return type Date: Fri, 24 Aug 2018 15:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01972.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67012 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Marek Polacek --- Fixed. >>From gcc-bugs-return-613685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:51:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8803 invoked by alias); 24 Aug 2018 15:51:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8752 invoked by uid 48); 24 Aug 2018 15:51:05 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86942] A trailing-return-type is allowed when the return type is not 'auto' for using declarations Date: Fri, 24 Aug 2018 15:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: accepts-invalid, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01974.txt.bz2 Content-length: 426 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86942 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Marek Polacek --- =2E >>From gcc-bugs-return-613686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 15:59:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34689 invoked by alias); 24 Aug 2018 15:59:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34617 invoked by uid 48); 24 Aug 2018 15:59:14 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string Date: Fri, 24 Aug 2018 15:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01975.txt.bz2 Content-length: 582 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87028 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org --- Comment #7 from Martin Sebor --- Patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01549.html >>From gcc-bugs-return-613687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:02:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38327 invoked by alias); 24 Aug 2018 16:02:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38180 invoked by uid 55); 24 Aug 2018 16:02:02 -0000 From: "aldyh at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 16:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01976.txt.bz2 Content-length: 907 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #16 from Aldy Hernandez --- On 08/24/2018 11:41 AM, segher at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 >=20 > --- Comment #15 from Segher Boessenkool --- > (In reply to Aldy Hernandez from comment #12) >> (It really irks me that the PPC backend has backend behavior that depend= s on >> what assembler (or cross assembler) is available at configure time. It >> makes it difficult to reproduce bugs with crosses.) >=20 > This is so that it is possible to build GCC with a (slightly) older binut= ils. > You should never have problems with this if you always use a binutils for= your > cross toolchains that is approximately as old as your GCC. Did you use an > ancient cross assembler? >=20 I rarely use a cross assembler, since I only build cc1. >>From gcc-bugs-return-613688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:13:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76515 invoked by alias); 24 Aug 2018 16:13:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76435 invoked by uid 48); 24 Aug 2018 16:13:50 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87094] New: Suboptimal accounting for stack growth in inlining Date: Fri, 24 Aug 2018 16:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01977.txt.bz2 Content-length: 1015 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87094 Bug ID: 87094 Summary: Suboptimal accounting for stack growth in inlining Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: amonakov at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- On this small example: void g(int, char *); static void f(int x) { char c[2048]; g(x, c); } void h(int x) { f(x); } GCC does not inline f into h due to reaching stack growth limit. However, s= ince f is called unconditionally, the original stack growth is at least max(f_st= ack, h_stack), and post-inlining stack growth is at most f_stack+h_stack. Since h_stack is 0, both are equal and inlining should be considered. If h called f only conditionally, avoiding inlining would be correct. >>From gcc-bugs-return-613689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:16:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78640 invoked by alias); 24 Aug 2018 16:16:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78566 invoked by uid 48); 24 Aug 2018 16:16:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87093] is_constructible (__is_constructible() instrinsic) explicitly instantiates conversion member function of source Date: Fri, 24 Aug 2018 16:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01978.txt.bz2 Content-length: 1752 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87093 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-24 CC| |ville at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- (In reply to Tony E Lewis from comment #0) > From a quick look, I can't see anything obvious in the standard about > whether either GCC or Clang is wrong here and I guess it's arguable either > way. But I think I'd lean towards arguing that Clang's behaviour better > reflects what I'd expect from traits. A handrolled trait in pure C++ without the intrinsic doesn't need to instantiate it, so I agree the intrinsic shouldn't. struct true_type { static constexpr bool value =3D true; }; struct false_type { static constexpr bool value =3D false; }; template struct always_false : false_type { }; template struct x { operator bool() { static_assert( always_false::value ); return false; } }; template struct is_constructible_impl { template static auto test(Arg* a) -> decltype(U(*a), void(), true_type{}); template static false_type test(...); using type =3D decltype(test((Arg*)0)); }; template struct is_constructible : is_constructible_impl::type { }; inline constexpr auto a =3D is_constructible>{}; >>From gcc-bugs-return-613690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:22:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104440 invoked by alias); 24 Aug 2018 16:22:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104288 invoked by uid 48); 24 Aug 2018 16:22:36 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 16:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01979.txt.bz2 Content-length: 2660 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #17 from H.J. Lu --- On x86-64: [hjl@gnu-cfl-1 gcc]$ cat x.c int a, b; void c(void) { if (b) b =3D a / b; } [hjl@gnu-cfl-1 gcc]$ ./xgcc -B./ -O3 -funroll-loops -ffast-math -fwrapv -S= x.c during GIMPLE pass: evrp x.c: In function =E2=80=98c=E2=80=99: x.c:7:1: internal compiler error: Segmentation fault 7 | } | ^ 0x102b902 crash_signal /export/gnu/import/git/sources/gcc/gcc/toplev.c:325 0xb3e3b2 generic_wide_int >::elt(unsigned int) const /export/gnu/import/git/sources/gcc/gcc/wide-int.h:908 0x13b04cf wide_int_to_tree_1 /export/gnu/import/git/sources/gcc/gcc/tree.c:1488 0x13b0edb wide_int_to_tree(tree_node*, poly_int<1u, generic_wide_int > > const&) /export/gnu/import/git/sources/gcc/gcc/tree.c:1676 0x1396b58 extract_range_from_binary_expr_1(value_range*, tree_code, tree_no= de*, value_range*, value_range*) /export/gnu/import/git/sources/gcc/gcc/tree-vrp.c:1675 0x1395921 extract_range_from_binary_expr_1(value_range*, tree_code, tree_no= de*, value_range*, value_range*) /export/gnu/import/git/sources/gcc/gcc/tree-vrp.c:1373 0x1445e2b vr_values::extract_range_from_binary_expr(value_range*, tree_code, tree_node*, tree_node*, tree_node*) /export/gnu/import/git/sources/gcc/gcc/vr-values.c:768 0x1448d02 vr_values::extract_range_from_assignment(value_range*, gassign*) /export/gnu/import/git/sources/gcc/gcc/vr-values.c:1429 0x144a8f8 vr_values::vrp_visit_assignment_or_call(gimple*, tree_node**, value_range*) /export/gnu/import/git/sources/gcc/gcc/vr-values.c:2048 0x144c7d7 vr_values::extract_range_from_stmt(gimple*, edge_def**, tree_node= **, value_range*) /export/gnu/import/git/sources/gcc/gcc/vr-values.c:2744 0x1c20820 evrp_range_analyzer::record_ranges_from_stmt(gimple*, bool) /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp-analyze.c:293 0x1c1dfee evrp_dom_walker::before_dom_children(basic_block_def*) /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp.c:139 0x1bece59 dom_walker::walk(basic_block_def*) /export/gnu/import/git/sources/gcc/gcc/domwalk.c:353 0x1c1e791 execute_early_vrp /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp.c:310 0x1c1e85c execute /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp.c:347 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. [hjl@gnu-cfl-1 gcc]$ >>From gcc-bugs-return-613691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:25:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127699 invoked by alias); 24 Aug 2018 16:25:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120406 invoked by uid 48); 24 Aug 2018 16:24:51 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 16:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01980.txt.bz2 Content-length: 464 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #18 from Aldy Hernandez --- BTW, the suggest patch in comment 10 causes an x86-64 regression on gcc.dg/attr-nonstring-3.c because of some incompatibility with ssizetype and sizetype. I believe it's related to this: https://gcc.gnu.org/ml/gcc/2018-08/msg00164.html ...so it may be a rat's nest to fix. I may just make VRP work with broken behavior it expected before. >>From gcc-bugs-return-613692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:31:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11409 invoked by alias); 24 Aug 2018 16:31:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11251 invoked by uid 48); 24 Aug 2018 16:31:13 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 16:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01981.txt.bz2 Content-length: 2816 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #19 from Aldy Hernandez --- (In reply to H.J. Lu from comment #17) > On x86-64: >=20 > [hjl@gnu-cfl-1 gcc]$ cat x.c > int a, b; >=20 > void > c(void) { > if (b) > b =3D a / b; > } > [hjl@gnu-cfl-1 gcc]$ ./xgcc -B./ -O3 -funroll-loops -ffast-math -fwrapv = -S > x.c > during GIMPLE pass: evrp > x.c: In function =E2=80=98c=E2=80=99: > x.c:7:1: internal compiler error: Segmentation fault > 7 | } > | ^ > 0x102b902 crash_signal > /export/gnu/import/git/sources/gcc/gcc/toplev.c:325 > 0xb3e3b2 generic_wide_int >::elt(unsign= ed > int) const > /export/gnu/import/git/sources/gcc/gcc/wide-int.h:908 > 0x13b04cf wide_int_to_tree_1 > /export/gnu/import/git/sources/gcc/gcc/tree.c:1488 > 0x13b0edb wide_int_to_tree(tree_node*, poly_int<1u, > generic_wide_int > > const&) > /export/gnu/import/git/sources/gcc/gcc/tree.c:1676 > 0x1396b58 extract_range_from_binary_expr_1(value_range*, tree_code, > tree_node*, value_range*, value_range*) > /export/gnu/import/git/sources/gcc/gcc/tree-vrp.c:1675 > 0x1395921 extract_range_from_binary_expr_1(value_range*, tree_code, > tree_node*, value_range*, value_range*) > /export/gnu/import/git/sources/gcc/gcc/tree-vrp.c:1373 > 0x1445e2b vr_values::extract_range_from_binary_expr(value_range*, tree_co= de, > tree_node*, tree_node*, tree_node*) > /export/gnu/import/git/sources/gcc/gcc/vr-values.c:768 > 0x1448d02 vr_values::extract_range_from_assignment(value_range*, gassign*) > /export/gnu/import/git/sources/gcc/gcc/vr-values.c:1429 > 0x144a8f8 vr_values::vrp_visit_assignment_or_call(gimple*, tree_node**, > value_range*) > /export/gnu/import/git/sources/gcc/gcc/vr-values.c:2048 > 0x144c7d7 vr_values::extract_range_from_stmt(gimple*, edge_def**, > tree_node**, value_range*) > /export/gnu/import/git/sources/gcc/gcc/vr-values.c:2744 > 0x1c20820 evrp_range_analyzer::record_ranges_from_stmt(gimple*, bool) > /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp-analyze.c:293 > 0x1c1dfee evrp_dom_walker::before_dom_children(basic_block_def*) > /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp.c:139 > 0x1bece59 dom_walker::walk(basic_block_def*) > /export/gnu/import/git/sources/gcc/gcc/domwalk.c:353 > 0x1c1e791 execute_early_vrp > /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp.c:310 > 0x1c1e85c execute > /export/gnu/import/git/sources/gcc/gcc/gimple-ssa-evrp.c:347 > Please submit a full bug report, > with preprocessed source if appropriate. > Please include the complete backtrace with any bug report. > See for instructions. > [hjl@gnu-cfl-1 gcc]$ hj. I think what you are reporting on x86 is pr87073 instead, and has been fixed in mainline. >>From gcc-bugs-return-613694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:36:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16731 invoked by alias); 24 Aug 2018 16:36:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16558 invoked by uid 48); 24 Aug 2018 16:36:43 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87073] go bootstrap failure due to ICE in vr_values::extract_range_from_binary_expr Date: Fri, 24 Aug 2018 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01983.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87073 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #9 from H.J. Lu --- *** Bug 87092 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-613693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:36:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16610 invoked by alias); 24 Aug 2018 16:36:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16521 invoked by uid 48); 24 Aug 2018 16:36:42 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87092] [9 Regression] internal compiler error: Segmentation fault Date: Fri, 24 Aug 2018 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01982.txt.bz2 Content-length: 178 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87092 --- Comment #2 from H.J. Lu --- *** This bug has been marked as a duplicate of bug 87073 *** >>From gcc-bugs-return-613695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:38:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31845 invoked by alias); 24 Aug 2018 16:38:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26433 invoked by uid 48); 24 Aug 2018 16:37:58 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 16:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01984.txt.bz2 Content-length: 1645 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #20 from Aldy Hernandez --- (In reply to Aldy Hernandez from comment #18) > BTW, the suggest patch in comment 10 causes an x86-64 regression on > gcc.dg/attr-nonstring-3.c because of some incompatibility with ssizetype = and > sizetype. I believe it's related to this: >=20 > https://gcc.gnu.org/ml/gcc/2018-08/msg00164.html >=20 > ...so it may be a rat's nest to fix. I may just make VRP work with broken > behavior it expected before. Testing the following. gcc/ PR 87059/tree-optimization * tree-vrp.c (extract_range_from_binary_expr_1): Pass sign of first argument to wide_int_range_min_max. diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 735b3646e81..7373011d901 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -1566,6 +1566,15 @@ extract_range_from_binary_expr_1 (value_range *vr, wide_int vr1_min, vr1_max; extract_range_into_wide_ints (&vr0, sign, prec, vr0_min, vr0_max); extract_range_into_wide_ints (&vr1, sign, prec, vr1_min, vr1_max); + + /* FIXME: Currently the sign of MIN_EXPR and the sign of its + arguments are not always the same. Fixing the creators of + these faulty nodes caused other problems. For now use the + sign of the first argument as VRP was previously doing. See + PR87059. */ + if (vr0.min) + sign =3D TYPE_SIGN (TREE_TYPE (vr0.min)); + if (wide_int_range_min_max (wmin, wmax, code, sign, prec, vr0_min, vr0_max, vr1_min, vr1_max)) set_value_range (vr, VR_RANGE, >>From gcc-bugs-return-613696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:38:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37611 invoked by alias); 24 Aug 2018 16:38:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37577 invoked by uid 48); 24 Aug 2018 16:38:27 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/30812] enhancement: exception specification in __PRETTY_FUNCTION__ Date: Fri, 24 Aug 2018 16:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01985.txt.bz2 Content-length: 482 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D30812 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com, | |nathan at acm dot org --- Comment #3 from Eric Gallager --- cc-ing c++ FE maintainers >>From gcc-bugs-return-613697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 16:59:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27247 invoked by alias); 24 Aug 2018 16:59:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27198 invoked by uid 55); 24 Aug 2018 16:58:58 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87092] [9 Regression] internal compiler error: Segmentation fault Date: Fri, 24 Aug 2018 16:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01986.txt.bz2 Content-length: 463 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87092 --- Comment #3 from hjl at gcc dot gnu.org --- Author: hjl Date: Fri Aug 24 16:58:27 2018 New Revision: 263837 URL: https://gcc.gnu.org/viewcvs?rev=3D263837&root=3Dgcc&view=3Drev Log: Add a testcase for PR middle-end/87092 PR middle-end/87092 * gcc.dg/pr87092.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr87092.c Modified: trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 17:27:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66081 invoked by alias); 24 Aug 2018 17:27:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65990 invoked by uid 55); 24 Aug 2018 17:27:30 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] [8/9 Regression] Optimization breaks an unformatted read with implicit loop Date: Fri, 24 Aug 2018 17:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01987.txt.bz2 Content-length: 909 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 --- Comment #6 from Thomas Koenig --- Author: tkoenig Date: Fri Aug 24 17:26:57 2018 New Revision: 263838 URL: https://gcc.gnu.org/viewcvs?rev=3D263838&root=3Dgcc&view=3Drev Log: 2018-08-24 Thomas Koenig PR fortran/86837 * frontend-passes.c (var_in_expr_callback): New function. (var_in_expr): New function. (traverse_io_block): Use var_in_expr instead of gfc_check_dependency for checking if the variable depends on the previous interators. 2018-08-24 Thomas Koenig PR fortran/86837 * gfortran.dg/implied_do_io_6.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/implied_do_io_6.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/frontend-passes.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 17:31:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70166 invoked by alias); 24 Aug 2018 17:31:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70078 invoked by uid 48); 24 Aug 2018 17:31:22 -0000 From: "vakevk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/87095] New: UndefinedBehaviorSanitizer vptr false positive with virtual inheritance only with -fno-sanitize-recover Date: Fri, 24 Aug 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vakevk at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01988.txt.bz2 Content-length: 2516 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87095 Bug ID: 87095 Summary: UndefinedBehaviorSanitizer vptr false positive with virtual inheritance only with -fno-sanitize-recover Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: vakevk at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxi= n at gcc dot gnu.org Target Milestone: --- Created attachment 44591 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44591&action=3Dedit main.cpp Program does not run successfully when compiled with: g++ -fsanitize=3Dvptr -fno-sanitize-recover=3Dvptr main.cpp main.cpp:9:8: runtime error: member call on address 0x7ffd7987dc20 which do= es not point to an object of type 'A' 0x7ffd7987dc20: note: object has invalid vptr c1 55 00 00 00 00 00 00 00 00 00 00 00 b0 34 7e ca 6d 56 eb 20 dd 87 79= fd 7f 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ invalid vptr Program runs successfully if -fno-sanitize-recover=3Dvptr is not specified = or when compiled with clang++ (6.0.1-5) with the original options. Even without knowing whether the error message is correct, there is bug here because the message should be shown consistently regardless of the recovery option. g++ -v Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=3Drelease --enable-default-pie --enable-default-ssp --enable-cet=3Dauto Thread model: posix gcc version 8.2.0 (GCC) >>From gcc-bugs-return-613700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 17:35:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117756 invoked by alias); 24 Aug 2018 17:35:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117718 invoked by uid 48); 24 Aug 2018 17:35:18 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86545] [6/7/8/9 Regression] ICE in transfer_expr on invalid WRITE statement Date: Fri, 24 Aug 2018 17:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01989.txt.bz2 Content-length: 1295 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86545 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |janus at gcc dot gn= u.org --- Comment #5 from janus at gcc dot gnu.org --- I'm now testing the following patch, which fixes the problem: diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 4ad4dcf780d..ac054483e0e 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -9272,7 +9272,6 @@ resolve_select_type (gfc_code *code, gfc_namespace *old_ns) static void resolve_transfer (gfc_code *code) { - gfc_typespec *ts; gfc_symbol *sym, *derived; gfc_ref *ref; gfc_expr *exp; @@ -9308,7 +9307,9 @@ resolve_transfer (gfc_code *code) _("item in READ"))) return; - ts =3D exp->expr_type =3D=3D EXPR_STRUCTURE ? &exp->ts : &exp->symtree->= n.sym->ts; + const gfc_typespec *ts =3D exp->expr_type =3D=3D EXPR_STRUCTURE + || exp->expr_type =3D=3D EXPR_FUNCTION + ? &exp->ts : &exp->symtree->n.sym->ts; /* Go to actual component transferred. */ for (ref =3D exp->ref; ref; ref =3D ref->next) >>From gcc-bugs-return-613701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 17:36:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119416 invoked by alias); 24 Aug 2018 17:36:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119368 invoked by uid 48); 24 Aug 2018 17:36:17 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/20150] allocate(0) consistency checks Date: Fri, 24 Aug 2018 17:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 3.4.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bkoz at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01990.txt.bz2 Content-length: 306 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D20150 --- Comment #1 from Jonathan Wakely --- I thought this was by design, because it ensures we never return a null pointer, and that any two calls to allocate will return different values. I'm inclined to close this as WONTFIX. >>From gcc-bugs-return-613702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 17:39:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124099 invoked by alias); 24 Aug 2018 17:39:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124036 invoked by uid 48); 24 Aug 2018 17:39:54 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/16612] empty basic_strings can't live in shared memory Date: Fri, 24 Aug 2018 17:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 3.2.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01991.txt.bz2 Content-length: 337 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D16612 --- Comment #36 from Jonathan Wakely --- Is there anything left to "fix" here? Fully dynamic string should help the COW string cases. The new __cxx11::basic_string fully supports C++11 allocators and so should work with allocators using "fancy pointers". >>From gcc-bugs-return-613703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 18:25:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89629 invoked by alias); 24 Aug 2018 18:25:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89050 invoked by uid 55); 24 Aug 2018 18:25:35 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86822] attribute((malloc)) for new(nothrow) Date: Fri, 24 Aug 2018 18:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01992.txt.bz2 Content-length: 676 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86822 --- Comment #3 from Marc Glisse --- Author: glisse Date: Fri Aug 24 18:24:42 2018 New Revision: 263841 URL: https://gcc.gnu.org/viewcvs?rev=3D263841&root=3Dgcc&view=3Drev Log: new(nothrow) is malloc-like 2018-08-24 Marc Glisse PR libstdc++/86822 * libsupc++/new (operator new(size_t, nothrow_t), operator new[](size_t, nothrow_t), operator new(size_t, align_val_t, nothrow= _t), operator new[](size_t, align_val_t, nothrow_t)): Add malloc attribu= te. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/libsupc++/new >>From gcc-bugs-return-613704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 18:31:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57729 invoked by alias); 24 Aug 2018 18:31:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43619 invoked by uid 48); 24 Aug 2018 18:31:08 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86545] [6/7/8/9 Regression] ICE in transfer_expr on invalid WRITE statement Date: Fri, 24 Aug 2018 18:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01993.txt.bz2 Content-length: 222 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86545 --- Comment #6 from janus at gcc dot gnu.org --- (In reply to janus from comment #5) > I'm now testing the following patch, which fixes the problem: Regtests cleanly. >>From gcc-bugs-return-613706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 18:39:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86353 invoked by alias); 24 Aug 2018 18:39:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85764 invoked by uid 48); 24 Aug 2018 18:39:41 -0000 From: "awilfox at adelielinux dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87096] New: "Optimised" snprintf is not POSIX conformant Date: Fri, 24 Aug 2018 18:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: awilfox at adelielinux dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_file_loc bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01995.txt.bz2 Content-length: 1162 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87096 Bug ID: 87096 Summary: "Optimised" snprintf is not POSIX conformant Product: gcc Version: 6.4.0 URL: http://pubs.opengroup.org/onlinepubs/9699919799/functi ons/snprintf.html Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: awilfox at adelielinux dot org Target Milestone: --- POSIX Issue 7, 2018 edition (see URL) The snprintf() function shall fail if: [EOVERFLOW] The value of n is greater than {INT_MAX}. This behaviour may or may not be ISO C compatible: C99 WG14 and C11 specifically state that intending the printf family of functions to return larger than INT_MAX is undefined behaviour: J.2. I am unclear on the statu= s of this behaviour with regards to C89. It is definitely required by POSIX. The following line of C, which is the minimum reproduction case: snprintf(buf, (size_t)INT_MAX + 1, ""); returns 0 when compiled with GCC unless -fno-builtin is passed. >>From gcc-bugs-return-613705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 18:39:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83663 invoked by alias); 24 Aug 2018 18:39:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 83419 invoked by uid 48); 24 Aug 2018 18:39:19 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/86822] attribute((malloc)) for new(nothrow) Date: Fri, 24 Aug 2018 18:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01994.txt.bz2 Content-length: 471 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86822 Marc Glisse changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #4 from Marc Glisse --- =2E >>From gcc-bugs-return-613707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 18:50:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122787 invoked by alias); 24 Aug 2018 18:50:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122659 invoked by uid 48); 24 Aug 2018 18:50:44 -0000 From: "achurch+gcc at achurch dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] [8/9 Regression] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Fri, 24 Aug 2018 18:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: achurch+gcc at achurch dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01996.txt.bz2 Content-length: 713 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 --- Comment #3 from Andrew Church --- I agree it's a good idea to warn if the code is reachable, but if not, it's only so much noise. I can see that in this case the second const makes no difference to code generation, but I'd prefer not to modify the macro since doing so would go against the style of related code, which does in fact use *const where appropriate to ensure pointer variables are not inadvertently changed. I'd also be a bit concerned that future changes to dataflow analysis or optimization passes could trigger the warning even without the const, at wh= ich point it would be less trivial to work around. >>From gcc-bugs-return-613708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 18:52:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124494 invoked by alias); 24 Aug 2018 18:52:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124400 invoked by uid 48); 24 Aug 2018 18:52:31 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Fri, 24 Aug 2018 18:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gerald at pfeifer dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01997.txt.bz2 Content-length: 1313 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 --- Comment #5 from Janne Blomqvist --- I looked through some mails in the archives, and I learned that the current wwwdocs uses metahtml, which hasn't been maintained for years and years, and doesn't even compile anymore. Ugh! For an even more drastic solution than the proposed xhtml -> html5 conversi= on, what about converting to use, say, sphinx (www.sphinx-doc.org)? There are certainly other tools for generating static websites, but sphinx is maintai= ned and fairly widely used for software documentation style sites. E.g. everyth= ing on readthedocs.org, and the Linux kernel (https://lwn.net/Articles/692704/ = and https://www.kernel.org/doc/html/latest/ ). I'm slightly biased, as we use sphinx (with readthedocs, but with our own D= NS name) for a project at work, and we're quite happy with it. The feasibility of this of course depends on being able to convert the exis= ting html docs to rst (or markdown) in some (semi-)automated fashion. Maybe pan= doc is up to it..? If you think this is not a completely mad idea, I can have = a go at it and see if I get some preliminary conversion done with a modest amoun= t of effort. (and yes, sphinx does generate html5, so using sphinx would fix this PR as well. :) ) >>From gcc-bugs-return-613709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:08:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21117 invoked by alias); 24 Aug 2018 19:08:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21014 invoked by uid 48); 24 Aug 2018 19:08:08 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87059] [9 Regression] internal compiler error: in set_value_range, at tree-vrp.c:289 Date: Fri, 24 Aug 2018 19:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01998.txt.bz2 Content-length: 287 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87059 --- Comment #21 from Martin Sebor --- As discussed on IRC this morning, I hope the following patch will avoid hav= ing to apply the VRP workaround: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01563.html >>From gcc-bugs-return-613710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:12:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83076 invoked by alias); 24 Aug 2018 19:12:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80432 invoked by uid 48); 24 Aug 2018 19:12:15 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] [8/9 Regression] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Fri, 24 Aug 2018 19:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg01999.txt.bz2 Content-length: 579 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- Moving the null warning to the sprintf pass (and extending the latter to al= so handle {f,}printf as well) would solve the problem and help detect many oth= er kinds of bugs a front-end warning can't. >>From gcc-bugs-return-613711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:21:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48694 invoked by alias); 24 Aug 2018 19:21:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48642 invoked by uid 48); 24 Aug 2018 19:21:12 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86545] [6/7/8/9 Regression] ICE in transfer_expr on invalid WRITE statement Date: Fri, 24 Aug 2018 19:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02000.txt.bz2 Content-length: 602 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86545 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu.o= rg --- Comment #7 from Jerry DeLisle --- (In reply to janus from comment #6) > (In reply to janus from comment #5) > > I'm now testing the following patch, which fixes the problem: >=20 > Regtests cleanly. Approved with usual ChangLog and test cases. >>From gcc-bugs-return-613712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:24:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51283 invoked by alias); 24 Aug 2018 19:24:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51188 invoked by uid 48); 24 Aug 2018 19:23:57 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87096] "Optimised" snprintf is not POSIX conformant Date: Fri, 24 Aug 2018 19:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02001.txt.bz2 Content-length: 1653 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87096 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-24 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |4.7.4, 5.3.0, 6.4.0, 7.3.0, | |8.1.0, 9.0 --- Comment #1 from Martin Sebor --- Confirmed. This goes back to the original folding of snprintf to memcpy. $ cat f.c && gcc -O2 -S -Wall -fdump-tree-optimized=3D/dev/stdout f.c int f (char *d) { return __builtin_snprintf (d, __INT_MAX__ + 1LLU, ""); } f.c: In function =E2=80=98f=E2=80=99: f.c:3:53: warning: zero-length gnu_printf format string [-Wformat-zero-leng= th] return __builtin_snprintf (d, __INT_MAX__ + 1LLU, ""); ^~ ;; Function f (f, funcdef_no=3D0, decl_uid=3D1756, cgraph_uid=3D0, symbol_o= rder=3D0) f (char * d) { : __builtin_memcpy (d_2(D), "", 1); return 0; } GCC 8 warns on this case but still folds it into memcpy and return 0. f.c:3:10: warning: specified bound 2147483648 exceeds =E2=80=98INT_MAX=E2= =80=99 [-Wformat-truncation=3D] return __builtin_snprintf (d, __INT_MAX__ + 1LLU, ""); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>From gcc-bugs-return-613713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:25:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81158 invoked by alias); 24 Aug 2018 19:25:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79390 invoked by uid 48); 24 Aug 2018 19:25:11 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87096] "Optimised" snprintf is not POSIX conformant Date: Fri, 24 Aug 2018 19:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02002.txt.bz2 Content-length: 379 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87096 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org >>From gcc-bugs-return-613714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:26:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92908 invoked by alias); 24 Aug 2018 19:26:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92820 invoked by uid 48); 24 Aug 2018 19:26:02 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] [8/9 Regression] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Fri, 24 Aug 2018 19:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02003.txt.bz2 Content-length: 268 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 --- Comment #5 from Jakub Jelinek --- I don't think we want to move it there, that will mean lots of false positi= ves due to jump threading etc. It is a good thing this is a FE warning. >>From gcc-bugs-return-613715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:27:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94396 invoked by alias); 24 Aug 2018 19:27:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94335 invoked by uid 55); 24 Aug 2018 19:27:35 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Fri, 24 Aug 2018 19:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gerald at pfeifer dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02004.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 --- Comment #6 from joseph at codesourcery dot com --- A replacement for MetaHTML is already available, we just need to switch to= =20 using it. https://gcc.gnu.org/ml/gcc-patches/2018-06/msg00176.html >>From gcc-bugs-return-613716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:31:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105594 invoked by alias); 24 Aug 2018 19:31:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104731 invoked by uid 48); 24 Aug 2018 19:31:42 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Fri, 24 Aug 2018 19:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jb at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gerald at pfeifer dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02005.txt.bz2 Content-length: 521 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 --- Comment #7 from Janne Blomqvist --- (In reply to joseph@codesourcery.com from comment #6) > A replacement for MetaHTML is already available, we just need to switch t= o=20 > using it. >=20 > https://gcc.gnu.org/ml/gcc-patches/2018-06/msg00176.html Yes, I did see that. I was perhaps a bit unclear, it just got me thinking i= f it would be worth broadening the scope from "just" a xhtml->html5 conversion, = and if so, what that could be. >>From gcc-bugs-return-613717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:32:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107649 invoked by alias); 24 Aug 2018 19:32:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106929 invoked by uid 48); 24 Aug 2018 19:31:59 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87041] [8/9 Regression] GCC 8 regression: -Wformat "reading through null pointer" on unreachable code Date: Fri, 24 Aug 2018 19:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02006.txt.bz2 Content-length: 439 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87041 --- Comment #6 from Martin Sebor --- -Wformat-overflow already warns for null pointers. I don't recall any bug reports about it so it shouldn't be too bad. void f (char *d, char *p) { if (p) return; __builtin_sprintf (d, "%s", p); } warning: =E2=80=98%s=E2=80=99 directive argument is null [-Wformat-overflow= =3D] __builtin_sprintf (d, "%s", p); >>From gcc-bugs-return-613718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:36:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129313 invoked by alias); 24 Aug 2018 19:36:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129280 invoked by uid 48); 24 Aug 2018 19:36:02 -0000 From: "richard-gccbugzilla at metafoo dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87097] New: value-initialization of an array of more than 1 element not treated as a constant initializer Date: Fri, 24 Aug 2018 19:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02007.txt.bz2 Content-length: 1284 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87097 Bug ID: 87097 Summary: value-initialization of an array of more than 1 element not treated as a constant initializer Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: richard-gccbugzilla at metafoo dot co.uk Target Milestone: --- Live testcase: https://godbolt.org/z/1JYWJS For posterity: struct A { constexpr A() : data() {} struct X { int n; }; X data[2]; }; static_assert((A(), true)); static_assert(A().data[0].n =3D=3D 0); static_assert(A().data[1].n =3D=3D 0); constexpr A x; GCC rejects this valid code with: :9:29: error: non-constant condition for static assertion 9 | static_assert(A().data[1].n =3D=3D 0); | ~~~~~~~~~~~~~~^~~~ :9:29: error: accessing uninitialized member 'A::X::n' :10:13: error: 'A{A::X [2]{A::X{0}, A::X()}}' is not a constant expression 10 | constexpr A x; |=20=20=20=20 Looks like GCC fails to evaluate the initializer of the second and subseque= nt elements of a value-initialized array during constant evaluation. >>From gcc-bugs-return-613719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:39:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7492 invoked by alias); 24 Aug 2018 19:39:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7437 invoked by uid 48); 24 Aug 2018 19:39:14 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87097] value-initialization of an array of more than 1 element not treated as a constant initializer Date: Fri, 24 Aug 2018 19:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02008.txt.bz2 Content-length: 595 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87097 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-24 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. Doesn't seem to be a regression. >>From gcc-bugs-return-613720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 19:42:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10730 invoked by alias); 24 Aug 2018 19:42:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10637 invoked by uid 55); 24 Aug 2018 19:42:36 -0000 From: "vlad at ispras dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87076] -mpcu/-march not propagated through LTO bytecode (ice/segfault if arch flags do not match) Date: Fri, 24 Aug 2018 19:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: vlad at ispras dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02009.txt.bz2 Content-length: 1640 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87076 --- Comment #4 from Vladislav Ivanishin --- "rguenth at gcc dot gnu.org" writes: > On x86_64 the actual -march switch isn't serialized but it is decomposed = into > individual -mFEATURE switches by the driver which are serialized. > > > The -march switch also appears in the lto_opts LTO section and should be > handed off to the linker by lto-wrapper as well. > > You can check that by looking at -v output of the link command and/or > looking at the lto_opts section in the object files. Indeed, the -march switch makes it into .gnu.lto_.opts. However, when lto-wrapper constructs the argument string in run_gcc(), it takes those options (append_compiler_options()) and then appends the contents of COLLECT_GCC_OPTIONS (append_linker_options()) to them. COLLECT_GCC_OPTIONS is set by the topmost gcc driver to ... -mcpu=3Darm7tdmi -marm -march=3Darmv4t (these options come from evaluation of the DRIVER_SELF_SPECS spec string). So the LTO compiler is then invoked with something like ... -march=3Darmv7-r ... -mcpu=3Darm7tdmi -marm -march=3Darmv4t The last -march takes effect. The ARM backend seems to infer -mFEATUREs from -mcpu and -march rather than trying to deserialize from the file. I drew this conclusion from looking at gcc/config/arm/arm.c: arm_configure_build_target(): ... if (arm_selected_arch) { arm_initialize_isa (target->isa, arm_selected_arch->common.isa_bits); ... if (arm_selected_cpu) { arm_initialize_isa (cpu_isa, arm_selected_cpu->common.isa_bits); >>From gcc-bugs-return-613721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 20:00:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59897 invoked by alias); 24 Aug 2018 20:00:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58363 invoked by uid 48); 24 Aug 2018 20:00:04 -0000 From: "rly1 at embarqmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87098] New: compiling program icetime.cc for icestorm fpga toolchain throws internal compiler error Date: Fri, 24 Aug 2018 20:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rly1 at embarqmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02010.txt.bz2 Content-length: 2252 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87098 Bug ID: 87098 Summary: compiling program icetime.cc for icestorm fpga toolchain throws internal compiler error Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rly1 at embarqmail dot com Target Milestone: --- Created attachment 44592 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44592&action=3Dedit g++ -E output for icetime.cc (gzipped) compiler failure building https://github.com/cliffordwolf/icestorm program icetime.cc on rev C beaglebone black sbc w/ debian version 9.5 and g++ from os distribution. Both the OS and icestorm are up to date as of 1255=20 24-aug-2018. A preprocessed (g++ -E) version of the icetime.cc program is attached. thanks -ron root@arm:/home/debian/icestorm# uname -a Linux arm 4.14.41-bone14 #1 PREEMPT Sun May 20 18:41:10 CEST 2018 armv7l GNU/Linux root@arm:/home/debian/icestorm# free total used free shared buff/cache avail= able Mem: 497188 31552 307332 9808 158304 44= 4628 Swap: 0 0 0 root@arm:/home/debian/icestorm# g++ --version g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. make -C icetime all make[1]: Entering directory '/home/debian/icestorm/icetime' g++ -MD -O0 -ggdb -Wall -std=3Dc++11 -I/usr/local/include -DPREFIX=3D'"/usr= /local"' -DCHIPDB_SUBDIR=3D'"icebox"' -c -o icetime.o icetime.cc g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. : recipe for target 'icetime.o' failed make[1]: *** [icetime.o] Error 4 make[1]: Leaving directory '/home/debian/icestorm/icetime' Makefile:8: recipe for target 'icetime.all' failed make: *** [icetime.all] Error 2 >>From gcc-bugs-return-613722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 20:13:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86013 invoked by alias); 24 Aug 2018 20:13:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85987 invoked by uid 48); 24 Aug 2018 20:13:07 -0000 From: "rly1 at embarqmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87098] compiling program icetime.cc for icestorm fpga toolchain throws internal compiler error Date: Fri, 24 Aug 2018 20:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rly1 at embarqmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WORKSFORME X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02011.txt.bz2 Content-length: 565 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87098 Ron Young changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Ron Young --- In further researching this, it appears that this was caused by running out= of memory, adding additional swap allow it to compile. sorry... -ron >>From gcc-bugs-return-613723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 21:18:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15581 invoked by alias); 24 Aug 2018 21:18:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15551 invoked by uid 55); 24 Aug 2018 21:18:20 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87091] Malformed fix-it hint for missing header Date: Fri, 24 Aug 2018 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02012.txt.bz2 Content-length: 2441 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87091 --- Comment #3 from David Malcolm --- Author: dmalcolm Date: Fri Aug 24 21:17:48 2018 New Revision: 263843 URL: https://gcc.gnu.org/viewcvs?rev=3D263843&root=3Dgcc&view=3Drev Log: diagnostics: tweaks to line-spans vs line numbering (PR 87091) This patch tweaks how line numbers are printed for a diagnostic containing multiple line spans. With this patch, rather than printing span headers: ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:87:22: note: message ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:74:1: ++ |+#include 74 | #endif ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:87:22: 87 | using vector =3D std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~ we now print: ../x86_64-pc-linux-gnu/libstdc++-v3/include/vector:87:22: note: message +++ |+#include 74 | #endif .... 87 | using vector =3D std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~ and for sufficiently close lines, rather than print a gap: + |+#include 1 | test (int ch) .. 3 | putchar (ch); | ^~~~~~~ we print the line itself: + |+#include 1 | test (int ch) 2 | { 3 | putchar (ch); | ^~~~~~~ gcc/ChangeLog: PR 87091 * diagnostic-show-locus.c (layout::layout): Ensure the margin is wide enough for jumps in the line-numbering to be visible. (layout::print_gap_in_line_numbering): New member function. (layout::calculate_line_spans): When using line numbering, merge line spans that are only 1 line apart. (diagnostic_show_locus): When printing line numbers, show gaps in line numbering directly, rather than printing headers. (selftest::test_diagnostic_show_locus_fixit_lines): Add test of line-numbering with multiple line spans. (selftest::test_fixit_insert_containing_newline_2): Add test of line-numbering, in which the spans are close enough to be merged. gcc/testsuite/ChangeLog: PR 87091 * gcc.dg/missing-header-fixit-3.c: Update for changes to how line spans are printed with -fdiagnostics-show-line-numbers. Modified: trunk/gcc/ChangeLog trunk/gcc/diagnostic-show-locus.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/missing-header-fixit-3.c >>From gcc-bugs-return-613724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 21:50:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101271 invoked by alias); 24 Aug 2018 21:50:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101220 invoked by uid 48); 24 Aug 2018 21:49:57 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87052] STRING_CST printing incomplete in Gimple dumps Date: Fri, 24 Aug 2018 21:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02013.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87052 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Martin Sebor --- Done in r263781. >>From gcc-bugs-return-613725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 22:09:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15866 invoked by alias); 24 Aug 2018 22:09:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15765 invoked by uid 55); 24 Aug 2018 22:09:21 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] [8/9 Regression] Optimization breaks an unformatted read with implicit loop Date: Fri, 24 Aug 2018 22:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02014.txt.bz2 Content-length: 1029 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 --- Comment #7 from Thomas Koenig --- Author: tkoenig Date: Fri Aug 24 22:08:48 2018 New Revision: 263844 URL: https://gcc.gnu.org/viewcvs?rev=3D263844&root=3Dgcc&view=3Drev Log: 2018-08-24 Thomas Koenig Backport from trunk PR fortran/86837 * frontend-passes.c (var_in_expr_callback): New function. (var_in_expr): New function. (traverse_io_block): Use var_in_expr instead of gfc_check_dependency for checking if the variable depends on the previous interators. 2018-08-24 Thomas Koenig Backport from trunk PR fortran/86837 * gfortran.dg/implied_do_io_6.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/implied_do_io_6.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/frontend-passes.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-613726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 22:10:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41270 invoked by alias); 24 Aug 2018 22:10:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38203 invoked by uid 48); 24 Aug 2018 22:10:19 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86837] [8/9 Regression] Optimization breaks an unformatted read with implicit loop Date: Fri, 24 Aug 2018 22:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02015.txt.bz2 Content-length: 495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86837 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #8 from Thomas Koenig --- Fixed on all affected branches, closing. Thanks a lot for the bug report! >>From gcc-bugs-return-613727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 22:44:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130160 invoked by alias); 24 Aug 2018 22:44:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130087 invoked by uid 48); 24 Aug 2018 22:44:16 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/87050] Bump wwwdocs to html5 Date: Fri, 24 Aug 2018 22:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gerald at pfeifer dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02016.txt.bz2 Content-length: 702 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87050 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |egallager at gcc dot gnu.o= rg --- Comment #8 from Eric Gallager --- (In reply to joseph@codesourcery.com from comment #6) > A replacement for MetaHTML is already available, we just need to switch t= o=20 > using it. >=20 > https://gcc.gnu.org/ml/gcc-patches/2018-06/msg00176.html cc-ing its author >>From gcc-bugs-return-613728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 22:46:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1815 invoked by alias); 24 Aug 2018 22:46:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1780 invoked by uid 48); 24 Aug 2018 22:46:31 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/82967] "did you mean" suggestions are way too suggestive Date: Fri, 24 Aug 2018 22:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_file_loc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02017.txt.bz2 Content-length: 716 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82967 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch URL| |https://gcc.gnu.org/ml/gcc- | |patches/2018-08/msg01542.ht | |ml --- Comment #7 from Eric Gallager --- (In reply to David Malcolm from comment #6) > Candidate patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01542.html adding "patch" keyword >>From gcc-bugs-return-613729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 24 23:38:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7702 invoked by alias); 24 Aug 2018 23:38:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7629 invoked by uid 55); 24 Aug 2018 23:38:26 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/86872] [9 Regression] LTO bootstrap failed with profiledbootstrap Date: Fri, 24 Aug 2018 23:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02018.txt.bz2 Content-length: 890 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86872 --- Comment #6 from hjl at gcc dot gnu.org --- Author: hjl Date: Fri Aug 24 23:37:53 2018 New Revision: 263845 URL: https://gcc.gnu.org/viewcvs?rev=3D263845&root=3Dgcc&view=3Drev Log: Set start_location to 0 if we ran out of line map space With profiledbootstrap and --with-build-config=3Dbootstrap-lto, linemap_add may create a macro map when we run out of line map space. This patch changes start_location to UNKNOWN_LOCATION (0) in this case. Tested with profiledbootstrap and --with-build-config=3Dbootstrap-lto on Linux/x86-64. PR bootstrap/86872 * line-map.c (pure_location_p): Return true if linemap_lookup returns NULL. (linemap_add): Set start_location to 0 if we run out of line map space. Modified: trunk/libcpp/ChangeLog trunk/libcpp/line-map.c >>From gcc-bugs-return-613730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 25 00:36:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3393 invoked by alias); 25 Aug 2018 00:36:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3331 invoked by uid 48); 25 Aug 2018 00:36:23 -0000 From: "moron at waifu dot club" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87099] New: internal compiler error: segmentation fault Date: Sat, 25 Aug 2018 00:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: moron at waifu dot club X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02019.txt.bz2 Content-length: 3908 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87099 Bug ID: 87099 Summary: internal compiler error: segmentation fault Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: moron at waifu dot club Target Milestone: --- Created attachment 44593 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44593&action=3Dedit the preprocessed file from -save-temps Code to reproduce: #include #include int main(int argc, char const *argv[]){ char myArray[argc]; int a =3D strncmp(&(myArray[1]),"aaaa",3); return 0; } Compiler command to reproduce: gcc test.c Note: This does not happen if the size of myArray is just a constant number. If t= he strlen of the second argument to strncmp is less than the third argument, t= he bug does not happen. If you remove the "int a =3D " part and just do nothin= g with the return value of strncmp then the bug does not happen. I was able to com= pile this code last month, probably using GCC 8.1. Output with verbose: gcc -save-temps --verbose test4.c Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --prefix=3D/usr --libdir=3D/u= sr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/in= fo --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=3Drelease --enable-default-pie --enable-default-ssp --enable-cet=3Dauto Thread model: posix gcc version 8.2.0 (GCC) COLLECT_GCC_OPTIONS=3D'-save-temps' '-v' '-mtune=3Dgeneric' '-march=3Dx86-6= 4' /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/cc1 -E -quiet -v test4.c -mtune=3Dg= eneric -march=3Dx86-64 -fpch-preprocess -o test4.i ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/inc= lude" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include /usr/local/include /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-save-temps' '-v' '-mtune=3Dgeneric' '-march=3Dx86-6= 4' /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/cc1 -fpreprocessed test4.i -quiet -dumpbase test4.c -mtune=3Dgeneric -march=3Dx86-64 -auxbase test4 -version = -o test4.s GNU C17 (GCC) version 8.2.0 (x86_64-pc-linux-gnu) compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.= 0.1, MPC version 1.1.0, isl version isl-0.19-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C17 (GCC) version 8.2.0 (x86_64-pc-linux-gnu) compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.= 0.1, MPC version 1.1.0, isl version isl-0.19-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 374c644ab4db4fa02e30fa5669d43e86 during RTL pass: expand test4.c: In function =E2=80=98main=E2=80=99: test4.c:6:10: internal compiler error: Segmentation fault int a =3D strncmp(&(myArray[1]),"aaaa",3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >>From gcc-bugs-return-613731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 25 02:51:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46554 invoked by alias); 25 Aug 2018 02:51:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46483 invoked by uid 48); 25 Aug 2018 02:51:16 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/81958] spurious -Wmaybe-uninitialized warning in gcc-8, or with -O1 Date: Sat, 25 Aug 2018 02:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02020.txt.bz2 Content-length: 1606 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81958 --- Comment #2 from Eric Gallager --- (In reply to Jeffrey A. Law from comment #1) > So I see a couple things here. >=20 > In DOM we do catch the fact that eqidx will have the value zero if the lo= op > does not iterate. But the equivalence we record is actually eqidx >=3D > maxidx. That's because we don't cprop into the conditionals in > record_temporary_equivalences. We *should* do that, but we have to be > careful about structure sharing and I'd like to avoid creating a lot of > unnecessary tree nodes if it can be avoided. >=20 > If we were to fix that, we'd end recording maxidx <=3D 0. Given that max= idx > is unsigned that simplifies into maxidx =3D=3D 0. Of course we don't tho= se kind > of simplifications when recording the temporary equivalences either and t= he > same concerns WRT structure sharing come into play. >=20 > When things simplify into something like maxidx =3D=3D 0, instead of reco= rding a > conditional into the equivalency tables, we should record that maxidx =3D= 0 in > the const/copies table. >=20 > If we were to fix those 3 issues, then I think we have all the key pieces= in > place to see the jump thread. But we still have to be concerned that jump > threading may be suppressed because of its conservatism WRT not clobbering > the loop structure. It should be safe in this case, but I don't offhand > know if the suppression code would kick in or not. >=20 > So, anyway, there's several TODO items in here. So, split into separate bugs? Or leave as just this one? >>From gcc-bugs-return-613732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 25 03:03:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113375 invoked by alias); 25 Aug 2018 03:03:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113289 invoked by uid 48); 25 Aug 2018 03:03:47 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/43105] Document restrictions on mixing -fno-rtti and -frtti Date: Sat, 25 Aug 2018 03:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.4.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02021.txt.bz2 Content-length: 579 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D43105 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gerald at pfeifer dot com, | |joseph at codesourcery dot= com, | |sandra at codesourcery dot= com --- Comment #2 from Eric Gallager --- cc-ing docs co-maintainers >>From gcc-bugs-return-613733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 25 09:03:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21516 invoked by alias); 25 Aug 2018 09:03:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21394 invoked by uid 55); 25 Aug 2018 09:03:00 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/70694] 50 experimental/filesystem/* failures on x86_64-apple-darwin10 Date: Sat, 25 Aug 2018 09:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02022.txt.bz2 Content-length: 525 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70694 --- Comment #8 from Iain Sandoe --- Author: iains Date: Sat Aug 25 09:02:28 2018 New Revision: 263850 URL: https://gcc.gnu.org/viewcvs?rev=3D263850&root=3Dgcc&view=3Drev Log: Don't force visibility to hidden for Darwin > 8. PR libstdc++/70694 * configure.host (OPT_LDFLAGS): Don't append -fvisibility-inlines-hidden for newer Darwin. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/configure.host >>From gcc-bugs-return-613734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 25 09:28:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90103 invoked by alias); 25 Aug 2018 09:28:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90067 invoked by uid 48); 25 Aug 2018 09:28:12 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87089] [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h Date: Sat, 25 Aug 2018 09:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-08/txt/msg02023.txt.bz2 Content-length: 413 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87089 --- Comment #2 from Dmitry G. Dyachenko --- gcc invocation can be simplified : -fno-semantic-interposition can be remov= ed. (was needed while creducing original testcase) So, $ g++ -fpreprocessed -O2 -flto -fPIC -DPIC -c -o a.o a.ii $ g++ -fpreprocessed -O2 -flto -fPIC -DPIC -c -o b.o b.ii $ g++ -flto -fPIC -DPIC -shared a.o b.o >>From gcc-bugs-return-613735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 25 10:38:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85591 invoked by alias); 25 Aug 2018 10:38:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85559 invoked by uid 89); 25 Aug 2018 10:38:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=stage_current, Greetings, upgraded, Hx-spam-relays-external:esmtpa X-HELO: mout1.freenet.de Received: from mout1.freenet.de (HELO mout1.freenet.de) (195.4.92.91) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 25 Aug 2018 10:38:04 +0000 Received: from [195.4.92.164] (helo=mjail1.freenet.de) by mout1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.90_1 #2) id 1ftVxB-0002bh-JK for gcc-bugs@gcc.gnu.org; Sat, 25 Aug 2018 12:38:01 +0200 Received: from [::1] (port=52100 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.90_1 #2) id 1ftVxB-000323-Ig for gcc-bugs@gcc.gnu.org; Sat, 25 Aug 2018 12:38:01 +0200 Received: from sub7.freenet.de ([195.4.92.126]:45324) by mjail1.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (Exim 4.90_1 #2) id 1ftVui-0001Rx-Uq for gcc-bugs@gcc.gnu.org; Sat, 25 Aug 2018 12:35:28 +0200 Received: from [2002:593:5430:0:20d:93ff:fe2a:32c4] (port=59968) by sub7.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:DHE-RSA-AES128-SHA:128) (port 587) (Exim 4.90_1 #2) id 1ftVui-0002SE-Rw for gcc-bugs@gcc.gnu.org; Sat, 25 Aug 2018 12:35:28 +0200 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: quoted-printable Message-Id: <07118C68-541F-40C6-A8FE-3CE6AB2F4399@Freenet.DE> Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed To: gcc-bugs@gcc.gnu.org From: Peter Dyballa Subject: Building libgcc/GCC 7.3.0 fails on PowerPC 7447A with Mac OS X 10.4.11 (Tiger) because three files differ between stages 2 and 3 Date: Sat, 25 Aug 2018 10:38:00 -0000 X-Originated-At: 2002:593:5430:0:20d:93ff:fe2a:32c4!59968 X-SW-Source: 2018-08/txt/msg02024.txt.bz2 Content-length: 2786 Hello! This happens when using the MacPorts package manager. First build=20=20 went fine, then packages like cctools and ld64 were upgraded, so=20=20 libgcc/GCC 7.3.0 had to be upgraded too. The new build fails=20=20 constantly with rm -f stage_current make[3]: Leaving directory `/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarbal=20 ls_ports_lang_gcc7/libgcc7/work/build' Comparing stages 2 and 3 warning: gcc/cc1obj-checksum.o differs warning: gcc/cc1objplus-checksum.o differs Bootstrap comparison failure! gcc/host-darwin.o differs make[2]: *** [compare] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarbal=20 ls_ports_lang_gcc7/libgcc7/work/build' make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarbal=20 ls_ports_lang_gcc7/libgcc7/work/build' make: *** [bootstrap-lean] Error 2 make: Leaving directory `/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarbal=20 ls_ports_lang_gcc7/libgcc7/work/build' Command failed: cd "/opt/local/var/macports/build/=20 _opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarbal=20 ls_ports_lang_gcc7/libgcc7/work/build" && /usr/bin/make -w bootstrap-=20 lean Exit code: 2 Configuration happens with: --prefix=3D/opt/local --build=3Dppc-apple-darwin8 --enable-languages=3Dc,c= +=20 +,objc,obj-c++,lto,fortran --libdir=3D/opt/local/lib/libgcc --=20 includedir=3D/opt/local/include/gcc --infodir=3D/opt/local/share/info --=20 mandir=3D/opt/local/share/man --datarootdir=3D/opt/local/share/gcc-7 --=20 with-local-prefix=3D/opt/local --with-system-zlib --disable-nls --=20 program-suffix=3D-mp-7 --with-gxx-include-dir=3D/opt/local/include/gcc/c+=20 +/ --with-gmp=3D/opt/local --with-mpfr=3D/opt/local --with-mpc=3D/opt/local= =20=20 --with-isl=3D/opt/local --enable-stage1-checking --disable-multilib --=20 enable-lto --enable-libstdcxx-time --with-build-config=3Dbootstrap-=20 debug --with-as=3D/opt/local/bin/as --with-ld=3D/opt/local/bin/ld --with-=20 ar=3D/opt/local/bin/ar --with-bugurl=3Dhttps://trac.macports.org/=20 newticket --disable-tls --with-pkgversion=3D"=85" The explicitely named tools /opt/local/bin/{ar,as} (plus nm, libtool,=20=20 ranlib, strings, strip) are from the package cctools @895_7, the=20=20 named tool /opt/local/bin/ld comes from the package ld64 @3_1. The case with build logs is also documented here: https://=20 trac.macports.org/ticket/56922. Can I try something else to try to fix the problem? -- Greetings Pete A blizzard is when it snows sideways.