From: Jan Hubicka Date: Tue, 27 Sep 2011 15:27:41 +0000 (+0200) Subject: * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows. X-Git-Tag: releases/gcc-4.7.0~3513 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99e299a8c7583da12320b55684681c9277ab9b3f;p=thirdparty%2Fgcc.git * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows. From-SVN: r179274 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb793d8965ac..d7d03a94fd5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-09-27 Jan Hubicka + + * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows. + 2011-09-27 Jan Hubicka * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle parameters diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 76290d0a01cc..7f26af58f7e4 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -92,7 +92,7 @@ along with GCC; see the file COPYING3. If not see /* Estimate runtime of function can easilly run into huge numbers with many nested loops. Be sure we can compute time * INLINE_SIZE_SCALE in integer. For anything larger we use gcov_type. */ -#define MAX_TIME 1000000 +#define MAX_TIME 500000 /* Number of bits in integer, but we really want to be stable across different hosts. */