From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18781 invoked by alias); 23 Nov 2007 19:38:28 -0000 Received: (qmail 18765 invoked by uid 48); 23 Nov 2007 19:38:22 -0000 Date: Fri, 23 Nov 2007 19:38:00 -0000 Subject: [Bug c/34210] New: ffs builtin calls undefined __ffshi2 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sjackman at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg02260.txt.bz2 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