This is the mail archive of the gcc-patches@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]

PATCH for profiling



This patch, from the GC patch, is necessary for -fprofile-arcs
-ftest-coverage to work correct.  This apparently bogus call to
start_sequence gets called when current_function is NULL.  If anyone
understands what that call to start_sequence was all about, they
should shout; that sequence is never ended.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Sun Sep  5 18:57:42 1999  Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>

	* profile.c (output_func_start_profiler): Remove apparently
	nonsensical call to start_sequence.
	
Index: profile.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/profile.c,v
retrieving revision 1.29
diff -c -p -r1.29 profile.c
*** profile.c	1999/09/05 03:49:51	1.29
--- profile.c	1999/09/06 02:05:21
*************** output_func_start_profiler ()
*** 1651,1657 ****
  
    /* Synthesize a constructor function to invoke __bb_init_func with a
       pointer to this object file's profile block. */
-   start_sequence ();
  
    /* Try and make a unique name given the "file function name".
  
--- 1651,1656 ----


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