From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15936 invoked by alias); 8 Feb 2006 23:00:56 -0000 Received: (qmail 15928 invoked by uid 48); 8 Feb 2006 23:00:53 -0000 Date: Wed, 08 Feb 2006 23:00:00 -0000 Message-ID: <20060208230053.15927.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libmudflap/26120] mudflap behavior changes with trivial changes to build command In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "idht4n at hotmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg00844.txt.bz2 List-Id: ------- 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