public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/38292]  New: corrupted profile info with -O[23] -fprofile-use
@ 2008-11-27 16:59 doko at ubuntu dot com
  2009-02-04 19:51 ` [Bug gcov-profile/38292] " jakub at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2008-11-27 16:59 UTC (permalink / raw)
  To: gcc-bugs

seen with a profiled build (make profile-opt
PROFILE_TASK='$(srcdir)/Lib/test/regrtest.py') building python-3.0rc3 on
i486-linux-gnu. Using pybench as the PROFILE_TASK doesn't show this bug). Seen
PR22471, but this one was reported long ago. What other information should be
provided for this kind of report?

gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes 
-fprofile-use -I. -IInclude -I../Include   -DPy_BUILD_CORE -o Modules/config.o
Modules/config.c
../Python/thread.c: In function 'PyThread_acquire_lock':
../Python/thread.c:419: error: corrupted profile info: number of executions for
edge 16-3 thought to be -1
../Python/thread.c:419: error: corrupted profile info: number of executions for
edge 16-17 thought to be 5657524
make[3]: *** [Python/thread.o] Error 1


-- 
           Summary: corrupted profile info with -O[23] -fprofile-use
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


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

* [Bug gcov-profile/38292] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
@ 2009-02-04 19:51 ` jakub at gcc dot gnu dot org
  2009-02-12 13:04 ` doko at ubuntu dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-04 19:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-02-04 19:51 -------
Subject: Bug 38292

Author: jakub
Date: Wed Feb  4 19:50:58 2009
New Revision: 143937

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143937
Log:
        PR tree-optimization/38977
        PR gcov-profile/38292
        * calls.c (special_function_p): Disregard __builtin_
        prefix.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/calls.c


-- 


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


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

* [Bug gcov-profile/38292] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
  2009-02-04 19:51 ` [Bug gcov-profile/38292] " jakub at gcc dot gnu dot org
@ 2009-02-12 13:04 ` doko at ubuntu dot com
  2009-02-12 13:34 ` [Bug gcov-profile/38292] [4.3/4.4 Regression] " ubizjak at gmail dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2009-02-12 13:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from doko at ubuntu dot com  2009-02-12 13:04 -------
still seen with a backport of the patch to the 4.3 branch and with trunk
20090211 on amd64. works on i486.

gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes  -fprofile-use -I. -IInclude -I../Include   -DPy_BUILD_CORE
-o Modules/config.o Modules/config.c
../Python/thread.c: In function 'PyThread_acquire_lock':
../Python/thread.c:423: error: corrupted profile info: profile data is not
flow-consistent
../Python/thread.c:423: error: corrupted profile info: number of executions for
edge 16-3 thought to be -7
../Python/thread.c:423: error: corrupted profile info: number of executions for
edge 16-17 thought to be 4920917


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
  2009-02-04 19:51 ` [Bug gcov-profile/38292] " jakub at gcc dot gnu dot org
  2009-02-12 13:04 ` doko at ubuntu dot com
@ 2009-02-12 13:34 ` ubizjak at gmail dot com
  2009-02-12 14:00 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ubizjak at gmail dot com @ 2009-02-12 13:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3/4.4] corrupted profile |[4.3/4.4 Regression]
                   |info with -O[23] -fprofile- |corrupted profile info with
                   |use                         |-O[23] -fprofile-use
   Target Milestone|---                         |4.3.4


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (2 preceding siblings ...)
  2009-02-12 13:34 ` [Bug gcov-profile/38292] [4.3/4.4 Regression] " ubizjak at gmail dot com
@ 2009-02-12 14:00 ` rguenth at gcc dot gnu dot org
  2009-02-12 14:06 ` doko at ubuntu dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-12 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-02-12 13:59 -------
Can you check if moving the PR38977 fix to special_function_p (handling
plain fork there) fixes it?  What is the contents of thread.c?


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (3 preceding siblings ...)
  2009-02-12 14:00 ` rguenth at gcc dot gnu dot org
@ 2009-02-12 14:06 ` doko at ubuntu dot com
  2009-02-12 14:09 ` doko at ubuntu dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2009-02-12 14:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from doko at ubuntu dot com  2009-02-12 14:06 -------
Created an attachment (id=17286)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17286&action=view)
thread.c source file


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (4 preceding siblings ...)
  2009-02-12 14:06 ` doko at ubuntu dot com
@ 2009-02-12 14:09 ` doko at ubuntu dot com
  2009-02-12 15:40 ` doko at ubuntu dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2009-02-12 14:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from doko at ubuntu dot com  2009-02-12 14:09 -------
Created an attachment (id=17287)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17287&action=view)
thread_pthread.h header


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (5 preceding siblings ...)
  2009-02-12 14:09 ` doko at ubuntu dot com
@ 2009-02-12 15:40 ` doko at ubuntu dot com
  2009-02-12 16:24 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2009-02-12 15:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from doko at ubuntu dot com  2009-02-12 15:40 -------
a build with the suggested change doesn't show any change.

--- gcc/calls.c~        2009-02-05 09:30:24.000000000 +0100
+++ gcc/calls.c 2009-02-12 15:17:08.000000000 +0100
@@ -530,6 +530,8 @@
        }
       else if ((tname[0] == 'q' && tname[1] == 's'
                && ! strcmp (tname, "qsetjmp"))
+              || (tname[0] == 'f' && tname[1] == 'o'
+                  && ! strcmp (tname, "fork"))
               || (tname[0] == 'v' && tname[1] == 'f'
                   && ! strcmp (tname, "vfork"))
               || (tname[0] == 'g' && tname[1] == 'e'


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (6 preceding siblings ...)
  2009-02-12 15:40 ` doko at ubuntu dot com
@ 2009-02-12 16:24 ` rguenth at gcc dot gnu dot org
  2009-02-14  9:08 ` doko at ubuntu dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-12 16:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug gcov-profile/38292] [4.3/4.4 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (7 preceding siblings ...)
  2009-02-12 16:24 ` rguenth at gcc dot gnu dot org
@ 2009-02-14  9:08 ` doko at ubuntu dot com
  2009-07-24 14:38 ` [Bug gcov-profile/38292] [4.3/4.4/4.5 " doko at ubuntu dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2009-02-14  9:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from doko at ubuntu dot com  2009-02-14 09:08 -------
seen as well on sparc-linux, x86_64-linux and i486-linux (when built with
-mcpu=i686 -mtune=i586), although triggered in different files.


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4/4.5 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (8 preceding siblings ...)
  2009-02-14  9:08 ` doko at ubuntu dot com
@ 2009-07-24 14:38 ` doko at ubuntu dot com
  2009-08-04 12:44 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:27 ` [Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2009-07-24 14:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from doko at ubuntu dot com  2009-07-24 14:37 -------
same behaviour with the 4.4.1 release


-- 


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


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

* [Bug gcov-profile/38292] [4.3/4.4/4.5 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (9 preceding siblings ...)
  2009-07-24 14:38 ` [Bug gcov-profile/38292] [4.3/4.4/4.5 " doko at ubuntu dot com
@ 2009-08-04 12:44 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:27 ` [Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 Regression] corrupted profile info with -O[23] -fprofile-use
  2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
                   ` (10 preceding siblings ...)
  2009-08-04 12:44 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:27 ` rguenth at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2010-05-22 18:12 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

end of thread, other threads:[~2010-05-22 18:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-27 16:59 [Bug gcov-profile/38292] New: corrupted profile info with -O[23] -fprofile-use doko at ubuntu dot com
2009-02-04 19:51 ` [Bug gcov-profile/38292] " jakub at gcc dot gnu dot org
2009-02-12 13:04 ` doko at ubuntu dot com
2009-02-12 13:34 ` [Bug gcov-profile/38292] [4.3/4.4 Regression] " ubizjak at gmail dot com
2009-02-12 14:00 ` rguenth at gcc dot gnu dot org
2009-02-12 14:06 ` doko at ubuntu dot com
2009-02-12 14:09 ` doko at ubuntu dot com
2009-02-12 15:40 ` doko at ubuntu dot com
2009-02-12 16:24 ` rguenth at gcc dot gnu dot org
2009-02-14  9:08 ` doko at ubuntu dot com
2009-07-24 14:38 ` [Bug gcov-profile/38292] [4.3/4.4/4.5 " doko at ubuntu dot com
2009-08-04 12:44 ` rguenth at gcc dot gnu dot org
2010-05-22 18:27 ` [Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org

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).