qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Overoptimization
@ 2004-05-28  1:19 Alexander E. Patrakov
  2004-05-28 10:13 ` Herbert Poetzl
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander E. Patrakov @ 2004-05-28  1:19 UTC (permalink / raw)
  To: qemu-devel

The CFLAGS in Makefile.target are bad for gcc 3.3.2. This is not a my 
problem with my gcc, because it passes the "make check" testsuite except 
some known errors in libstdc++, which cannot affect qemu.

The victim is the tcp_input function in slirp. When compiling with the 
decault CFLAGS, for some reason all packets are dropped as having a 
wrong TCP checksum. I tried debugging this by placing some debug printfs 
in tcp_input.c file, but the problem disappeared after I inserted them. 
I concluded that it is very strange and compiled this tcp_input.c file 
without my debug statements, but with -O1 instead of -O2. The problem 
went away.

Will this workaround (use of -O1 instead of -O2 for tcp_input.c) enter 
the qemu CVS?

-- 
Alexander E. Patrakov

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-31  2:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-28  1:19 [Qemu-devel] Overoptimization Alexander E. Patrakov
2004-05-28 10:13 ` Herbert Poetzl
2004-05-28 10:58   ` Alexander E. Patrakov
2004-05-28 11:08     ` Herbert Poetzl
2004-05-28 13:50       ` [SOLVED] " Alexander E. Patrakov
2004-05-28 22:15         ` Lionel Ulmer
2004-05-29 18:18         ` [Qemu-devel] VNC patch, the 3rd version Johannes Schindelin
2004-05-31  2:00           ` Jim C. Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).