public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
@ 2005-02-16  3:32 ` pinskia at gcc dot gnu dot org
  2005-02-16  3:37 ` lothar at xcerla dot com
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-16  3:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
          Component|c++                         |middle-end


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


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

* [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
@ 2005-02-16  3:32 lothar at xcerla dot com
  2005-02-16  3:32 ` [Bug middle-end/19985] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: lothar at xcerla dot com @ 2005-02-16  3:32 UTC (permalink / raw)
  To: gcc-bugs

I created a small test I will attach to this bug report that shows that  
executables created with -fprofile-arcs -ftest-coverage crash in gcov_exit () 
if they dynamically load functions from libraries. 
 
I tested with gcc 3.4.1 and 4.0-20050213. Both show the same problem. 
 
Here's the gdb stack trace for both compilers: 
 
Program terminated with signal 11, Segmentation fault. 
 
#0  gcov_exit () at ../../gcc-3.4.1/gcc/libgcov.c:139 
139               if (!((1 << t_ix) & gi_ptr->ctr_mask)) 
(gdb) where 
#0  gcov_exit () at ../../gcc-3.4.1/gcc/libgcov.c:139 
#1  0x4018b820 in exit () from /lib/tls/libc.so.6 
#2  0x40176b1a in __libc_start_main () from /lib/tls/libc.so.6 
#3  0x080491b1 in _start () at ../sysdeps/i386/elf/start.S:119 
 
Program terminated with signal 11, Segmentation fault. 
 
#0  gcov_exit () at ../../gcc-4.0-20050213/gcc/libgcov.c:139 
139               if (!((1 << t_ix) & gi_ptr->ctr_mask)) 
((gdb) where 
#0  gcov_exit () at ../../gcc-4.0-20050213/gcc/libgcov.c:139 
#1  0x4018b820 in exit () from /lib/tls/libc.so.6 
#2  0x40176b1a in __libc_start_main () from /lib/tls/libc.so.6 
#3  0x08049031 in _start () at ../sysdeps/i386/elf/start.S:119 
 
 
The test uses SCons as a build tool. But I give the build arguments here for 
the 3.4.1 compiler: 
 
/opt2/GNU/bin/g++-3.4.1 -O0 -g -D_REENTRANT -W -Wall -Wpointer-arith 
-Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings 
-Wcomments -march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -Isrc 
-c -o src/prog/.build/posix/coverage/main.o src/prog/main.cpp 
/opt2/GNU/bin/g++-3.4.1 -g -Wl,-E -o bin/posix/coverage/prog 
src/prog/.build/posix/coverage/main.o -Llib/posix/coverage -lstdc++ -lpthread 
-lrt -ldl -lgcov 
 
/opt2/GNU/bin/g++-3.4.1 -O0 -g -D_REENTRANT -W -Wall -Wpointer-arith 
-Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings 
-Wcomments -march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -fPIC 
-Isrc -c -o src/calc/.build/posix/coverage/calc.os src/calc/calc.cpp 
 
/opt2/GNU/bin/g++-3.4.1 -g -Wl,-E -Wl,-soname=libcalc.so.1.0 -shared -o 
lib/posix/coverage/libcalc.so src/calc/.build/posix/coverage/calc.os 
-Llib/posix/coverage -lstdc++ -lpthread -lrt -ldl -lgcov 
 
 
Lothar

-- 
           Summary: executables created with -fprofile-arcs -ftest-coverage
                    segfault in gcov_exit ()
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lothar at xcerla dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
  2005-02-16  3:32 ` [Bug middle-end/19985] " pinskia at gcc dot gnu dot org
@ 2005-02-16  3:37 ` lothar at xcerla dot com
  2005-02-16  3:48 ` pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: lothar at xcerla dot com @ 2005-02-16  3:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lothar at xcerla dot com  2005-02-15 21:46 -------
Created an attachment (id=8201)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8201&action=view)
test case to reproduce the segfault

This is a project of a small test case that reproduces the segmentation fault.
It's build tool is SCons. If you don not want to use SCons, here's the command
line(s) executed:

/opt2/GNU/bin/g++-3.4.1 -O0 -g -D_REENTRANT -W -Wall -Wpointer-arith
-Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings -Wcomments
-march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -Isrc -c -o
src/prog/.build/posix/coverage/main.o src/prog/main.cpp
/opt2/GNU/bin/g++-3.4.1 -g -Wl,-E -o bin/posix/coverage/prog
src/prog/.build/posix/coverage/main.o -Llib/posix/coverage -lstdc++ -lpthread
-lrt -ldl -lgcov
/opt2/GNU/bin/g++-3.4.1 -O0 -g -D_REENTRANT -W -Wall -Wpointer-arith
-Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings -Wcomments
-march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -fPIC -Isrc -c -o
src/calc/.build/posix/coverage/calc.os src/calc/calc.cpp
/opt2/GNU/bin/g++-3.4.1 -g -Wl,-E -Wl,-soname=libcalc.so.1.0 -shared -o
lib/posix/coverage/libcalc.so src/calc/.build/posix/coverage/calc.os
-Llib/posix/coverage -lstdc++ -lpthread -lrt -ldl -lgcov


-- 


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
  2005-02-16  3:32 ` [Bug middle-end/19985] " pinskia at gcc dot gnu dot org
  2005-02-16  3:37 ` lothar at xcerla dot com
@ 2005-02-16  3:48 ` pinskia at gcc dot gnu dot org
  2005-03-01  1:03 ` lothar at xcerla dot com
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-16  3:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-15 21:55 -------
Hmm, this looks like we don't deal with dlclose correctly.

Honza could you comment on this if there is a way to deal with dlclose?

-- 


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (2 preceding siblings ...)
  2005-02-16  3:48 ` pinskia at gcc dot gnu dot org
@ 2005-03-01  1:03 ` lothar at xcerla dot com
  2005-03-01  1:16 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: lothar at xcerla dot com @ 2005-03-01  1:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lothar at xcerla dot com  2005-03-01 01:03 -------
Changed severity to critical, as the compiler produces code that crashes when  
executing a coverage enabled executable. 
  

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (3 preceding siblings ...)
  2005-03-01  1:03 ` lothar at xcerla dot com
@ 2005-03-01  1:16 ` pinskia at gcc dot gnu dot org
  2005-03-01  1:23 ` lothar at xcerla dot com
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-01  1:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-01 01:15 -------
(In reply to comment #3)
> Changed severity to critical, as the compiler produces code that crashes when  
> executing a coverage enabled executable. 

Well considering this is werid case of using arc profiling with shared libraries it is not critical and has a 
workaround, not unloading the shared library.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (4 preceding siblings ...)
  2005-03-01  1:16 ` pinskia at gcc dot gnu dot org
@ 2005-03-01  1:23 ` lothar at xcerla dot com
  2005-03-08  3:59 ` renierm at us dot ibm dot com
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: lothar at xcerla dot com @ 2005-03-01  1:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lothar at xcerla dot com  2005-03-01 01:23 -------
A bug that creates wrong code is critical for me.   
   
As our application depends on dynamically loading libraries, there's simply NO   
workaround for this bug.   
We can NOT execute any executables built with code coverage with either 3.4.1   
or 4.0.0.   
   
I am really worried that 4.0.0 may get released without fully working code   
coverage.   
   
P.S.   
I tried to mark the bug as "waiting for feedback", but it said I do not have  
the permissions. Am I not the owner of the bug?  
If possible mark the bug as "waiting for feedback" and the Target Milestone to 
4.0.0. Thanks 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Keywords|                            |wrong-code
      Known to fail|                            |3.4.1 4.0.0


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (5 preceding siblings ...)
  2005-03-01  1:23 ` lothar at xcerla dot com
@ 2005-03-08  3:59 ` renierm at us dot ibm dot com
  2005-03-08 14:52 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: renierm at us dot ibm dot com @ 2005-03-08  3:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From renierm at us dot ibm dot com  2005-03-08 03:59 -------
I am experiencing the same exact problem with our project   
http://openhpi.sf.net.   
gcov_exit() segfaults when the project is compiled with -fprofile-arcs and   
-ftest-coverage using gcc-3.4.x, and unit tests are ran against the compiled   
library.  
This is a real and preoccupying problem for us on gcc-3.4.x.  

-- 


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (6 preceding siblings ...)
  2005-03-08  3:59 ` renierm at us dot ibm dot com
@ 2005-03-08 14:52 ` pinskia at gcc dot gnu dot org
  2005-03-10 19:42 ` janis at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08 14:52 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
           Keywords|wrong-code                  |


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (7 preceding siblings ...)
  2005-03-08 14:52 ` pinskia at gcc dot gnu dot org
@ 2005-03-10 19:42 ` janis at gcc dot gnu dot org
  2005-03-11  1:32 ` janis at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-03-10 19:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-03-10 19:42 -------
Created an attachment (id=8373)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8373&action=view)
smaller C test case

The test case provided by the submitter runs successfully if the executable is
built without -Wl,-E, as does the smaller C test case.	I understand that the
original program needs to use that option, so I'll continue looking  into this
to find a fix and perhaps a workaround.

The new test case fails with a plain "make" invocation for mainline,
4.0-branch,
and 3.4-branch, and passes for all of those with "make EXP=".

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |janis at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (8 preceding siblings ...)
  2005-03-10 19:42 ` janis at gcc dot gnu dot org
@ 2005-03-11  1:32 ` janis at gcc dot gnu dot org
  2005-03-11 23:54 ` janis at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-03-11  1:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-03-11 01:32 -------
The submitter's testcase works if function __gcov_init in libgcov.c
is declared hidden.  Probably all of the __gcov* symbols ought to be
hidden; I'll work on a patch to hide that symbol and others that seem
appropriate.
                                                                                
Possible workaround:
                                                                                
The linker's -E option exports all global symbols from the executable
to the dynamic symbol table.  A subset of global symbols can be
exported by using -E along with --version-script to list symbols to
export.  Depending on how many symbols a shared object needs to access
from a shared object, this might be a reasonable workaround.
I consulted an expert, and unfortunatly there doesn't seem to be a way
to say "export all symbols except this small list".

-- 


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


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

* [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (9 preceding siblings ...)
  2005-03-11  1:32 ` janis at gcc dot gnu dot org
@ 2005-03-11 23:54 ` janis at gcc dot gnu dot org
  2005-03-15 17:22 ` [Bug middle-end/19985] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-03-11 23:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-03-11 23:53 -------
This is a regression from GCC 3.3.  I'm working on a patch.

-- 


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (10 preceding siblings ...)
  2005-03-11 23:54 ` janis at gcc dot gnu dot org
@ 2005-03-15 17:22 ` pinskia at gcc dot gnu dot org
  2005-03-25  0:09 ` janis at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-15 17:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|executables created with -  |[3.4/4.0/4.1 Regression]
                   |fprofile-arcs -ftest-       |executables created with -
                   |coverage segfault in        |fprofile-arcs -ftest-
                   |gcov_exit ()                |coverage segfault in
                   |                            |gcov_exit ()
   Target Milestone|---                         |4.0.0


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (11 preceding siblings ...)
  2005-03-15 17:22 ` [Bug middle-end/19985] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-03-25  0:09 ` janis at gcc dot gnu dot org
  2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-03-25  0:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-03-25 00:09 -------
Nathan approved the mainline patch but I haven't yet checked it in
because while testing backports I noticed more gcov symbols that were
not hidden, and because the original submitter tried a 3.4 version of
the patch and had new problems with it.  He also has other problems
that are not addressed by the patch, in a project that uses C++,
shared libraries via dlopen/dlclose, threads, and TLS.  We're trying
to come up with test cases for the other problems.

-- 


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (12 preceding siblings ...)
  2005-03-25  0:09 ` janis at gcc dot gnu dot org
@ 2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
  2005-05-02 18:03 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21  5:01 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |4.0.1


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (13 preceding siblings ...)
  2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
@ 2005-05-02 18:03 ` cvs-commit at gcc dot gnu dot org
  2005-05-02 18:05 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-02 18:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-02 18:02 -------
Subject: Bug 19985

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	janis@gcc.gnu.org	2005-05-02 18:02:48

Modified files:
	gcc            : gcov-io.h ChangeLog 

Log message:
	PR 19985
	* gcov-io.h: Declare gcov external functions hidden.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcov-io.h.diff?cvsroot=gcc&r1=1.56&r2=1.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8561&r2=2.8562



-- 


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (14 preceding siblings ...)
  2005-05-02 18:03 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-02 18:05 ` cvs-commit at gcc dot gnu dot org
  2005-05-02 18:09 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-02 18:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-02 18:05 -------
Subject: Bug 19985

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	janis@gcc.gnu.org	2005-05-02 18:05:28

Modified files:
	gcc            : gcov-io.h ChangeLog 

Log message:
	PR 19985
	* gcov-io.h: Declare gcov external functions hidden.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcov-io.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.52&r2=1.52.34.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.210&r2=2.7592.2.211



-- 


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (15 preceding siblings ...)
  2005-05-02 18:05 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-02 18:09 ` cvs-commit at gcc dot gnu dot org
  2005-05-02 19:02 ` pinskia at gcc dot gnu dot org
  2005-06-21 20:31 ` matz at suse dot de
  18 siblings, 0 replies; 20+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-02 18:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-02 18:09 -------
Subject: Bug 19985

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	janis@gcc.gnu.org	2005-05-02 18:08:50

Modified files:
	gcc            : gcov-io.h ChangeLog 

Log message:
	PR 19985
	* gcov-io.h: Declare gcov external functions hidden.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcov-io.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.47.10.2&r2=1.47.10.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.852&r2=2.2326.2.853



-- 


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (16 preceding siblings ...)
  2005-05-02 18:09 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-02 19:02 ` pinskia at gcc dot gnu dot org
  2005-06-21 20:31 ` matz at suse dot de
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-02 19:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-02 19:02 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.0.1 4.1.0 3.4.4
         Resolution|                            |FIXED
   Target Milestone|4.0.1                       |3.4.4


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


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

* [Bug middle-end/19985] [3.4/4.0/4.1 Regression] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit ()
  2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
                   ` (17 preceding siblings ...)
  2005-05-02 19:02 ` pinskia at gcc dot gnu dot org
@ 2005-06-21 20:31 ` matz at suse dot de
  18 siblings, 0 replies; 20+ messages in thread
From: matz at suse dot de @ 2005-06-21 20:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From matz at suse dot de  2005-06-21 20:31 -------
This patch seems to be the reason for warnings like: 
  In file included from ../../gcc/gcov-io.h:239, 
                   from ../../gcc/libgcov.c:51: 
    ./auto-host.h:23:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined 
  In file included from ./tm.h:12, 
                   from ../../gcc/libgcov.c:39: 
    ../../gcc/defaults.h:712:1: warning: this is the location of the previous 
    definition 
 
There are now many warnings of this type during building gcc.  This is 
because auto-host.h is now included, but _after_ all the other headers, 
which do something like 
  #ifndef BLA 
  #define BLA ... 
  #endif 
Because auto-host.h is not yet included there, BLA is not defined, so 
the default will be defined, and then auto-host.h is included leading to 
double definitions.  libgcov.c talks about not able to include <config.h> 
because that's for the host, not for the target.  So I don't know if 
auto-host.h (also for the host) should be included at all.  But if it is, 
then it has to be earlier.  Perhaps in libgcov.c directly as first file. 

-- 


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


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

end of thread, other threads:[~2005-06-21 20:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-16  3:32 [Bug c++/19985] New: executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () lothar at xcerla dot com
2005-02-16  3:32 ` [Bug middle-end/19985] " pinskia at gcc dot gnu dot org
2005-02-16  3:37 ` lothar at xcerla dot com
2005-02-16  3:48 ` pinskia at gcc dot gnu dot org
2005-03-01  1:03 ` lothar at xcerla dot com
2005-03-01  1:16 ` pinskia at gcc dot gnu dot org
2005-03-01  1:23 ` lothar at xcerla dot com
2005-03-08  3:59 ` renierm at us dot ibm dot com
2005-03-08 14:52 ` pinskia at gcc dot gnu dot org
2005-03-10 19:42 ` janis at gcc dot gnu dot org
2005-03-11  1:32 ` janis at gcc dot gnu dot org
2005-03-11 23:54 ` janis at gcc dot gnu dot org
2005-03-15 17:22 ` [Bug middle-end/19985] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-03-25  0:09 ` janis at gcc dot gnu dot org
2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
2005-05-02 18:03 ` cvs-commit at gcc dot gnu dot org
2005-05-02 18:05 ` cvs-commit at gcc dot gnu dot org
2005-05-02 18:09 ` cvs-commit at gcc dot gnu dot org
2005-05-02 19:02 ` pinskia at gcc dot gnu dot org
2005-06-21 20:31 ` matz at suse dot de

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 read-only IMAP folder(s) and NNTP newsgroup(s).