r235550 introduced the use of long long, and the macros LLONG_MIN and 
LLONG_MAX.  These macros
are not defined by default and we need to include <climits> when compiling with 
c++ to define them.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Okay for trunk?

Dave
--
John David Anglin       dave.ang...@bell.net


2016-05-17  John David Anglin  <dang...@gcc.gnu.org>

        PR bootstrap/71014
        * system.h: Include climits instead of limits.h when compiling with c++.

Index: system.h
===================================================================
--- system.h    (revision 236287)
+++ system.h    (working copy)
@@ -301,8 +301,12 @@
 # undef m_slot
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
+#ifdef __cplusplus
+# include <climits>
+#else
+# if HAVE_LIMITS_H
+#  include <limits.h>
+# endif
 #endif
 
 /* A macro to determine whether a VALUE lies inclusively within a

Reply via email to