This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34210] New: ffs builtin calls undefined __ffshi2
- From: "sjackman at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2007 19:38:22 -0000
- Subject: [Bug c/34210] New: ffs builtin calls undefined __ffshi2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
ffs((uint8_t)x) and ffs((uint16_t)x) generate a call to __ffshi2, but this
function does not exist in libgcc.a, giving the error
undefined reference to `__ffshi2'.
Test case:
int main(int argc)
{
return ffs(argc);
}
--
Summary: ffs builtin calls undefined __ffshi2
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sjackman at gmail dot com
GCC target triplet: avr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34210