From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16464 invoked by alias); 4 Apr 2014 15: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 Received: (qmail 16443 invoked by uid 48); 4 Apr 2014 15:21:07 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/60761] New: Names of all function clones in g++ are "", in both warnings and dumps Date: Fri, 04 Apr 2014 15:21: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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-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 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: 2014-04/txt/msg00326.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60761 Bug ID: 60761 Summary: Names of all function clones in g++ are "", in both warnings and dumps Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: jamborm at gcc dot gnu.org CC: jakub at gcc dot gnu.org Since revision r207465, all names of function clones in g++ (as opposed to the C front-end) are "", in dumps and even in warnings, for example: mjambor@virgil:~/gcc/bisect/test/clonenames$ ~/gcc/bisect/inst/bin/g++ -O3 = -S -Wall zz.C -fno-inline zz.C: In function =E2=80=98=E2=80=99: zz.C:14:13: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]=20 z[i] =3D i; ^ zz.C:13:3: note: containing loop for (int i =3D 0; i < s; i++) ^ zz.C:14:8: warning: array subscript is above array bounds [-Warray-bounds] z[i] =3D i; ^ mjambor@virgil:~/gcc/bisect/test/clonenames$ cat zz.C extern int sum; void do_sum (char *p) { for (int i =3D 0; i < 2; i++) sum +=3D p[i]; } void foo (int s) { char z[3]; for (int i =3D 0; i < s; i++) z[i] =3D i; do_sum (z); } int bar (int i) { foo (4); return 0; } >>From gcc-bugs-return-448307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Apr 04 15:25:56 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18696 invoked by alias); 4 Apr 2014 15:25: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 18660 invoked by uid 48); 4 Apr 2014 15:25:52 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/60761] Names of all function clones in g++ are "", in both warnings and dumps Date: Fri, 04 Apr 2014 15:25: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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00327.txt.bz2 Content-length: 333 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60761 --- Comment #1 from Martin Jambor --- This is because in dump_decl in gcc/cp/error.c there is: case FUNCTION_DECL: if (! DECL_LANG_SPECIFIC (t)) pp_string (pp, M_("")); and the revision causing this clears DECL_LANG_SPECIFIC.