[Bug gcov-profile/55734] [4.8 Regression] gcov-io.c uses builtins not available in non-GCC compilers
tejohnson at google dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 18 16:31:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55734
--- Comment #9 from Teresa Johnson <tejohnson at google dot com> 2012-12-18 16:31:08 UTC ---
On Tue, Dec 18, 2012 at 8:25 AM, aldyh at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55734
>
> Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Attachment #28999|0 |1
> is obsolete| |
>
> --- Comment #8 from Aldy Hernandez <aldyh at gcc dot gnu.org> 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
More information about the Gcc-bugs
mailing list