OSDN Git Service

PR bootstrap/38088
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Nov 2008 10:26:51 +0000 (10:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Nov 2008 10:26:51 +0000 (10:26 +0000)
* mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
__LONG_LONG_MAX__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141818 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/mcf.c

index f36a666..c53ee19 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-13  Andrew Haley  <aph@redhat.com>
+
+       PR bootstrap/38088
+       * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
+       __LONG_LONG_MAX__.
+
 2008-11-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/36478
index d7bc5f3..9d3d769 100644 (file)
--- a/gcc/mcf.c
+++ b/gcc/mcf.c
@@ -56,7 +56,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "profile.h"
 
 /* CAP_INFINITY: Constant to represent infinite capacity.  */
-#define CAP_INFINITY __LONG_LONG_MAX__
+#define CAP_INFINITY INTTYPE_MAXIMUM (HOST_WIDEST_INT)
 
 /* COST FUNCTION.  */
 #define K_POS(b)        ((b))