------- Comment #16 from ppluzhnikov at charter dot net 2005-12-14 17:46 ------- Same picture using gcc-4.1-20051209 for i686-pc-linux-gnu: 7 bogus violations on original test, 1 on reduced test.
Here are other version results: original reduced gcc-4.1-20051209 i686-pc-linux-gnu 7 1 gcc-4.2-20051210 i686-pc-linux-gnu 1 1 gcc-4.2-20051210 x86_64-unknown-linux-gnu 0 0 gcc-4.2-20051210 x86_64-unknown-linux-gnu -m32 1 1 Encouraged by the absence of bogus warnings on x86_64 in 64-bit mode, I tried 4.2-20051210 on my real code. This resulted in 100s of bogus violations, though I have not been able to produce a reduced test case yet :-( I then tried 4.2-20051210 i686 on "pure C" real code, and got 100s more bogus violations. IMHO, the -fmudflap either needs to be made to work correctly on real C/C++ programs, or it should be removed altogether (bogus reports lead to a lot of wasted time, as each new user "discovers" the feature, and then finds out it doesn't work). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19319