This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11767] different code behaviour with -fprofile-arcs -ftest-coverage
- From: "lothar at xcerla dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2003 20:45:52 -0000
- Subject: [Bug c++/11767] different code behaviour with -fprofile-arcs -ftest-coverage
- References: <20030801203357.11767.lothar@xcerla.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11767
------- Additional Comments From lothar at xcerla dot com 2003-08-01 20:45 -------
Created an attachment (id=4548)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4548&action=view)
the preprocessed file that causes the bug to show
here is the cmdline of the compile and run with and without code coverage
analysis.
lothar@janus$ c++ -DGCCBUG -save-temps -fPIC -W -Wall -Wpointer-arith
-Wno-uninitialized -Woverloaded-virtual -march=pentiumpro -fPIC
-fnon-call-exceptions -D__XRS_INLINE__ -g -fprofile-arcs -ftest-coverage -O0
-fstack-check -I. -I../.. -o gccbug gccbug.cpp -lgmp
gccbug.cpp: In function `int main(int, char**)':
gccbug.cpp:48: warning: unused parameter `int argc'
gccbug.cpp:48: warning: unused parameter `char**argv'
<~/workspace/XRS/src/cxx/math/test>
lothar@janus$ ./gccbug
long
5 5 0 1 0 1 1 0
double
5 5 0 1 0 1 0 1
lothar@janus$ c++ -DGCCBUG -save-temps -fPIC -W -Wall -Wpointer-arith
-Wno-uninitialized -Woverloaded-virtual -march=pentiumpro -fPIC
-fnon-call-exceptions -D__XRS_INLINE__ -g -O0 -fstack-check -I. -I../.. -o
gccbug gccbug.cpp -lgmp
gccbug.cpp: In function `int main(int, char**)':
gccbug.cpp:48: warning: unused parameter `int argc'
gccbug.cpp:48: warning: unused parameter `char**argv'
<~/workspace/XRS/src/cxx/math/test>
lothar@janus$ ./gccbug
long
5 5 0 1 0 1 1 0
double
5 5 0 1 0 1 1 0