------- Comment #4 from idht4n at hotmail dot com  2006-02-08 23:00 -------
(In reply to comment #2)
> It worked in "4.1.0 20051026".
> 

I just downloaded snapshot 4.1-20051029 which reports the version that you
mentioned and it exhibits the same behavior:

 ~/gcc4.1-20051029/bin/g++ --version
g++ (GCC) 4.1.0 20051026 (experimental)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~/gcc4.1-20051029/bin/g++ -fmudflap -c -o hello.o hello.cpp ;
~/gcc4.1-20051029/bin/g++ -o hello hello.o -lmudflap

./hello
*******
mudflap violation 1 (check/write): time=1139437662.278029 ptr=0xb7e5e6a0 size=4
pc=0xb7e88322 location=`hello.cpp:6 (main)'
      /usr/lib/libmudflap.so.0(__mf_check+0x44) [0xb7e88322]
      ./hello(main+0x98) [0x804877c]
      /lib/tls/libc.so.6(__libc_start_main+0xd3) [0xbdae23]
number of nearby objects: 0
*******
mudflap violation 2 (check/read): time=1139437662.289586 ptr=0xbfb647f4 size=4
pc=0xb7e88322 location=`hello.cpp:7 (main)'
      /usr/lib/libmudflap.so.0(__mf_check+0x44) [0xb7e88322]
      ./hello(main+0x115) [0x80487f9]
      /lib/tls/libc.so.6(__libc_start_main+0xd3) [0xbdae23]
number of nearby objects: 0
*******
mudflap violation 3 (check/read): time=1139437662.290719 ptr=0xb7e5e6a0 size=4
pc=0xb7e88322 location=`hello.cpp:7 (main)'
      /usr/lib/libmudflap.so.0(__mf_check+0x44) [0xb7e88322]
      ./hello(main+0x199) [0x804887d]
      /lib/tls/libc.so.6(__libc_start_main+0xd3) [0xbdae23]
number of nearby objects: 0
1 ./hello
Hello, world!

To compile the snapshot, I did this:
  mkdir /tmp/gccobj
  cd /tmp/gccobj
  mkdir ~/gcc4.1-20051029
  ~/tmp/gcc-4.1-20051029/configure --prefix=/home/davel/gcc4.1-20051029
--enable-languages=c,c++
  make bootstrap-lean
  make install


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26120

Reply via email to