Bug 433576 - gcc generates undefined reference to __builtin_popcount
gcc generates undefined reference to __builtin_popcount
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
powerpc Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-02-19 22:53 EST by Roland McGrath
Modified: 2008-02-20 11:52 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-20 11:52:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
preprocessed source (437.92 KB, text/plain)
2008-02-19 22:53 EST, Roland McGrath
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 35265 None None None Never

  None (edit)
Description Roland McGrath 2008-02-19 22:53:16 EST
Description of problem:

This builtin is not being translated properly.  It's a documented one.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1./usr/libexec/gcc/ppc64-redhat-linux/4.3.0/cc1 -fpreprocessed ldgeneric.i
-msecure-plt -quiet -dumpbase ldgeneric.c -auxbase-strip ldgeneric.o -g -O2
-Wall -Wshadow -Werror -Wformat=2 -std=gnu99 -version -fexceptions -o ldgeneric.s
2.grep __builtin_popcount ldgeneric.s

Actual results:

        bl __builtin_popcount

Expected results:

No such external reference for a GCC built-in.

Additional info:

ldgeneric.i attached
Comment 1 Roland McGrath 2008-02-19 22:53:16 EST
Created attachment 295379 [details]
preprocessed source
Comment 2 Jakub Jelinek 2008-02-20 11:52:57 EST
Will be fixed in gcc-4.3.0-0.11.

Note You need to log in before you can comment on or make changes to this bug.