This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/35568] missing gcov data spoils other files.


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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.7.1, 4.8.0
         Resolution|                            |FIXED
      Known to fail|                            |4.6.3

--- Comment #3 from Steven Bosscher <steven at gcc dot gnu.org> 2012-07-26 22:42:35 UTC ---
Hmpf, not very smart to test the system compiler, which was GCC 4.6.3...

GCC 4.7.1 and GCC 4.8.0 work:

+ rm -f gcov_test.gcda gcov_test.gcno
+ cat
+ ./xgcc --version
xgcc (GCC) 4.8.0 20120726 (experimental) [trunk revision 189890]
Copyright (C) 2012 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.

+ ./gcov --version
gcov (GCC) 4.8.0 20120726 (experimental) [trunk revision 189890]
Copyright (C) 2012 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.

+ ./xgcc -B. gcov_test.c -o gcov_test -fprofile-arcs -ftest-coverage
+ ./gcov_test
+ ./gcov gcov_test.c
File 'gcov_test.c'
Lines executed:100.00% of 2
Creating 'gcov_test.c.gcov'

+ cat gcov_test.c.gcov
        -:    0:Source:gcov_test.c
        -:    0:Graph:gcov_test.gcno
        -:    0:Data:gcov_test.gcda
        -:    0:Runs:1
        -:    0:Programs:1
        1:    1:int main()
        -:    2:{
        1:    3:  return 0;
        -:    4:}
+ rm gcov_test.c.gcov
+ touch gcov_test2.c
+ ./gcov gcov_test.c gcov_test2.c
gcov_test2.gcno:cannot open notes file
File 'gcov_test.c'
Lines executed:100.00% of 2
Creating 'gcov_test.c.gcov'

Lines executed:100.00% of 2
+ cat gcov_test.c.gcov
        -:    0:Source:gcov_test.c
        -:    0:Programs:1
        1:    1:int main()
        -:    2:{
        1:    3:  return 0;
        -:    4:}

Closing, as this is not a regression for GCC 4.6.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]