This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops
- From: "alexey dot zaytsev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2009 16:55:17 -0000
- Subject: [Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops
- References: <bug-39794-13999@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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