From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3019 invoked by alias); 18 Dec 2012 16:31:40 -0000 Received: (qmail 2832 invoked by uid 55); 18 Dec 2012 16:31:09 -0000 From: "tejohnson at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/55734] [4.8 Regression] gcov-io.c uses builtins not available in non-GCC compilers Date: Tue, 18 Dec 2012 16:31: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-Keywords: build X-Bugzilla-Severity: blocker X-Bugzilla-Who: tejohnson at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg01787.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55734 --- Comment #9 from Teresa Johnson 2012-12-18 16:31:08 UTC --- On Tue, Dec 18, 2012 at 8:25 AM, aldyh at gcc dot gnu.org wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55734 > > Aldy Hernandez changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Attachment #28999|0 |1 > is obsolete| | > > --- Comment #8 from Aldy Hernandez 2012-12-18 16:25:49 UTC --- > Created attachment 29000 > --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29000 > proposed patch > > Duh, they're always available. Like this? Things will build, but you will presumably get an undefined symbol in your libgcov.a, which would result in an undefined trying to build with -fprofile-generate. Can you verify that this works. I just checked with a similar change, which yields: $ nm gcc/libgcov.a | grep popc U popcount_hwi /home/tejohnson/extra/gcc_trunk_5_validate/bld-gcc/gcc/libgcov.a(_gcov.o): In function `__gcov_read_summary': libgcov.c:(.text+0x7f3): undefined reference to `popcount_hwi' collect2: error: ld returned 1 exit status Teresa > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug. -- Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413