From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12870 invoked by alias); 22 Apr 2009 16:55:31 -0000 Received: (qmail 12827 invoked by uid 48); 22 Apr 2009 16:55:17 -0000 Date: Wed, 22 Apr 2009 16:55:00 -0000 Message-ID: <20090422165517.12826.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "alexey dot zaytsev 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: 2009-04/txt/msg02004.txt.bz2 ------- Comment #7 from alexey dot zaytsev at gmail dot com 2009-04-22 16:55 ------- Created an attachment (id=17674) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17674&action=view) gcc 4.3.3 testcase This testcase could probably be reduced further, but the result is somewhat fragile, and disappears with seemingly unrelated changes. Fails when compiled with gcc -m32 -g -O1 -Wall ore_rxtx-server.c -o ore_rxtx-server.o Passes with -fno-dse added. For some reason, it always passes, if l4_ipc_send_tag is declared without inline. Notice that it does not get inlined anyway, and also is not static. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39794