public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/60761] New: Names of all function clones in g++ are "<built-in>", in both warnings and dumps
@ 2014-04-04 15:21 jamborm at gcc dot gnu.org
  2014-04-05 15:23 ` [Bug ipa/60761] " manu at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: jamborm at gcc dot gnu.org @ 2014-04-04 15:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60761

            Bug ID: 60761
           Summary: Names of all function clones in g++ are "<built-in>",
                    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 "<built-in>", 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 ‘<built-in>’:
zz.C:14:13: warning: iteration 3u invokes undefined behavior
[-Waggressive-loop-optimizations] 
     z[i] = i;
             ^
zz.C:13:3: note: containing loop
   for (int i = 0; i < s; i++)
   ^
zz.C:14:8: warning: array subscript is above array bounds [-Warray-bounds]
     z[i] = i;
        ^
mjambor@virgil:~/gcc/bisect/test/clonenames$ cat zz.C
extern int sum;

void do_sum (char *p)
{
  for (int i = 0; i < 2; i++)
    sum += p[i];
}

void
foo (int s)
{
  char z[3];
  for (int i = 0; i < s; i++)
    z[i] = 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: <gcc-bugs-return-448307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/60761] Names of all function clones in g++ are "<built-in>", 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: <bug-60761-4-F1P2t7jmP2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60761-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60761-4@http.gcc.gnu.org/bugzilla/>
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`761

--- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> ---
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_("<built-in>"));

and the revision causing this clears DECL_LANG_SPECIFIC.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-08-25 10:36 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-04 15:21 [Bug ipa/60761] New: Names of all function clones in g++ are "<built-in>", in both warnings and dumps jamborm at gcc dot gnu.org
2014-04-05 15:23 ` [Bug ipa/60761] " manu at gcc dot gnu.org
2014-04-07 10:31 ` [Bug ipa/60761] [4.9 Regression] " rguenth at gcc dot gnu.org
2014-04-08 11:49 ` rguenth at gcc dot gnu.org
2014-04-08 13:11 ` manu at gcc dot gnu.org
2014-04-08 13:50 ` manu at gcc dot gnu.org
2014-04-08 15:35 ` jamborm at gcc dot gnu.org
2014-04-09 16:03 ` jamborm at gcc dot gnu.org
2014-04-09 16:18 ` jakub at gcc dot gnu.org
2014-04-09 16:22 ` manu at gcc dot gnu.org
2014-04-09 17:44 ` glisse at gcc dot gnu.org
2014-04-10 12:06 ` jamborm at gcc dot gnu.org
2014-04-10 13:42 ` manu at gcc dot gnu.org
2014-04-10 16:20 ` jakub at gcc dot gnu.org
2014-04-10 16:28 ` [Bug ipa/60761] [4.9 RegrImprove dump_decl for clones jakub at gcc dot gnu.org
2014-04-22 11:38 ` [Bug ipa/60761] Improve " jakub at gcc dot gnu.org
2014-07-16 13:31 ` jakub at gcc dot gnu.org
2014-10-30 10:43 ` jakub at gcc dot gnu.org
2015-06-26 20:07 ` jakub at gcc dot gnu.org
2015-06-26 20:35 ` jakub at gcc dot gnu.org
2015-06-26 21:20 ` pinskia at gcc dot gnu.org
2021-08-25 10:36 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).