From 3b5391959d64956517ddd1a70d5d0fd6c2a12fa6 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Thu, 13 Nov 2008 10:26:51 +0000 Subject: [PATCH] re PR bootstrap/38088 (gcc fails to compile with undefined symbol: __LONG_LONG_MAX__ error) PR bootstrap/38088 * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific __LONG_LONG_MAX__. From-SVN: r141818 --- gcc/ChangeLog | 6 ++++++ gcc/mcf.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f36a6667f3c..c53ee196c71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-11-13 Andrew Haley + + PR bootstrap/38088 + * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific + __LONG_LONG_MAX__. + 2008-11-12 Jakub Jelinek PR c++/36478 diff --git a/gcc/mcf.c b/gcc/mcf.c index d7bc5f30e72..9d3d7691910 100644 --- 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))