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

analyze_brprob fix


Hi
I am about to commot following.

Thu Jul 26 16:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
	* analyze_brprob: Avoid overflows.
*** ../contrib/analyze_brprob	Thu Jul 26 02:44:34 2001
--- ../contrib/analyze_brprob.p	Thu Jul 26 14:04:44 2001
*************** BEGIN {nnames = 0}
*** 116,132 ****
        }
      counts[name]=counts[name] "+" count
      hits[name]=hits[name] "+" hit
!     if (int (hit) < (int (count) / 2))
!       hit = count - hit;
      phits[name]=phits[name] "+" hit
  
      #BC crashes on long strings.  Irritating.
!     if (length(counts[name]) > 4000)
!       {
! 	counts[name] = longeval(counts[name])
! 	hits[name] = longeval(hits[name])
! 	phits[name] = longeval(phits[name])
!       }
    }
  END {
    # Heuristics called combined predicts just everything.
--- 116,132 ----
        }
      counts[name]=counts[name] "+" count
      hits[name]=hits[name] "+" hit
!     if (float (hit) < (float (count) / 2))
!       hit = "("count" - "hit")";
      phits[name]=phits[name] "+" hit
  
      #BC crashes on long strings.  Irritating.
!     if (length(counts[name]) > 2000)
!       counts[name] = longeval(counts[name])
!     if (length(hits[name]) > 2000)
!       hits[name] = longeval(hits[name])
!     if (length(phits[name]) > 2000)
!       phits[name] = longeval(phits[name])
    }
  END {
    # Heuristics called combined predicts just everything.


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