Bug 433576

Summary: gcc generates undefined reference to __builtin_popcount
Product: [Fedora] Fedora Reporter: Roland McGrath <roland>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-20 16:52:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preprocessed source none

Description Roland McGrath 2008-02-20 03:53:16 UTC
Description of problem:

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

Version-Release number of selected component (if applicable):
gcc-4.3.0-0.9.ppc

How reproducible:
100%

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
3.profit

  
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-20 03:53:16 UTC
Created attachment 295379 [details]
preprocessed source

Comment 2 Jakub Jelinek 2008-02-20 16:52:57 UTC
Will be fixed in gcc-4.3.0-0.11.