From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20370 invoked by alias); 22 Apr 2009 00:04:59 -0000 Received: (qmail 20345 invoked by uid 48); 22 Apr 2009 00:04:44 -0000 Date: Wed, 22 Apr 2009 00:04:00 -0000 Message-ID: <20090422000444.20344.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/39333] gcc 4.3.3 miscompiles when -finline-small-functions is used In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "galtgendo at o2 dot pl" 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: 2009-04/txt/msg01878.txt.bz2 ------- Comment #20 from galtgendo at o2 dot pl 2009-04-22 00:04 ------- Created an attachment (id=17669) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17669&action=view) prepocessed source of id.c People, I've got a result, that's either very funny or very not funny. With the same compiler, with the command "i686-pc-linux-gnu-gcc -std=gnu99 -O2 -march=athlon -mtune=athlon -pipe -fno-guess-branch-probability -I../lib -o id id.c group-list.o libver.a ../lib/libcoreutils.a" id.c from coreutils 7.2 gets miscompiled, resulting in "id -u" always printing "id: cannot print "only" of more than one choice" The "funny" part is that without "-fno-guess-branch-probability" it works correctly, so it's the (sort of) opposite of above. I will shortly test, if things change with gcc 4.4.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39333