From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 509 invoked by alias); 18 Apr 2003 16:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 490 invoked by uid 71); 18 Apr 2003 16:26:00 -0000 Date: Fri, 18 Apr 2003 16:26:00 -0000 Message-ID: <20030418162600.489.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Falk Hueffner Subject: Re: optimization/8178: __builtin_ffs broken Reply-To: Falk Hueffner X-SW-Source: 2003-04/txt/msg00839.txt.bz2 List-Id: The following reply was made to PR optimization/8178; it has been noted by GNATS. From: Falk Hueffner To: reichelt@igpm.rwth-aachen.de Cc: christianbiere@gmx.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/8178: __builtin_ffs broken Date: 18 Apr 2003 18:23:15 +0200 reichelt@igpm.rwth-aachen.de writes: > Synopsis: __builtin_ffs broken > > State-Changed-From-To: analyzed->closed > State-Changed-By: reichelt > State-Changed-When: Fri Apr 18 15:36:52 2003 > State-Changed-Why: > Fixed in gcc 3.2 branch, 3.3 branch and mainline. It still doesn't work for me on mainline with -march=k6: % cat ffs.c int f(int x) { return __builtin_ffs(x); } % /tmp/bla/bin/gcc -v Reading specs from /usr/tmp/bla/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.4/specs Configured with: ./configure --enable-languages=c --disable-nls Thread model: posix gcc version 3.4 20030415 (experimental) % /tmp/bla/bin/gcc -c ffs.c % /tmp/bla/bin/gcc -c -march=k6 ffs.c ffs.c: In function `f': ffs.c:1: error: unrecognizable insn: (insn 26 22 27 0 0x401705d8 (parallel [ (set (reg:SI 1 edx) (const_int 0 [0x0])) (clobber (reg:CC 17 flags)) ]) -1 (nil) (nil)) ffs.c:1: internal compiler error: in extract_insn, at recog.c:2188 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Falk