Bug 433576 - gcc generates undefined reference to __builtin_popcount
Summary: gcc generates undefined reference to __builtin_popcount
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: powerpc
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-20 03:53 UTC by Roland McGrath
Modified: 2008-02-20 16:52 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-02-20 16:52:57 UTC
Type: ---
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 35265 0 None None None Never

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.


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