]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/38088 (gcc fails to compile with undefined symbol: __LONG_LONG_MAX__...
authorAndrew Haley <aph@redhat.com>
Thu, 13 Nov 2008 10:26:51 +0000 (10:26 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Nov 2008 10:26:51 +0000 (11:26 +0100)
PR bootstrap/38088
* mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
__LONG_LONG_MAX__.

From-SVN: r141818

gcc/ChangeLog
gcc/mcf.c

index f36a6667f3c4e80b89813a0e78bc4f59930643dd..c53ee196c71dbb86e5ea8334f31f9b33b9c24d09 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 d7bc5f30e72168d19f9c4d072ee07e277446257a..9d3d7691910994cdae0af4eda835bb6eeec68544 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))