From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26803 invoked by alias); 23 Nov 2007 20:01:43 -0000 Received: (qmail 26755 invoked by uid 48); 23 Nov 2007 20:01:33 -0000 Date: Fri, 23 Nov 2007 20:01:00 -0000 Message-ID: <20071123200133.26754.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/34210] ffs builtin calls undefined __ffshi2 In-Reply-To: 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/msg02261.txt.bz2 ------- Comment #1 from sjackman at gmail dot com 2007-11-23 20:01 ------- It's worth noting that __ffsi2 generates terrible code on the AVR: a 194 byte function. avr-libc also provides ffs (16-bit, not 32-bit as in __ffssi2) which is written in assembler and 24 bytes long. As a workaround, you can force the use of avr-libc's ffs by providing the -fno-builtin-ffs. Cheers, Shaun -- sjackman at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sjackman at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34210