This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]