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]
Other format: [Raw text]

[bib] profile tweak


Hi,
Roger Sayle pointed out that bib cygwin builds were now failing. Fixed thusly.
And it's incorrect to check on cross compiles.

tested (by Roger, thanks) on cygwin.

nathan
--
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org

2002-09-24  Nathan Sidwell  <nathan@codesourcery.com>

	* profile.c (end_branch_prob): Only look for __gcov_init on
	weak-enabled native compilers.

Index: profile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/profile.c,v
retrieving revision 1.97.4.2
diff -c -3 -p -r1.97.4.2 profile.c
*** profile.c	11 Sep 2002 08:32:56 -0000	1.97.4.2
--- profile.c	22 Sep 2002 21:05:09 -0000
*************** end_branch_prob ()
*** 1262,1268 ****
      {
        if (bbg_file)
  	{
! #if __GNUC__
  	  /* If __gcov_init has a value in the compiler, it means we
  	     are instrumenting ourselves. We should not remove the
  	     counts file, because we might be recompiling
--- 1262,1268 ----
      {
        if (bbg_file)
  	{
! #if __GNUC__ && !CROSS_COMPILE && SUPPORTS_WEAK
  	  /* If __gcov_init has a value in the compiler, it means we
  	     are instrumenting ourselves. We should not remove the
  	     counts file, because we might be recompiling

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