+2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR bootstrap/63699
+ PR bootstrap/63750
+ * system.h: Include <string> before "safe-ctype.h"
+ * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
+ calls to min/max with wi namespace.
+ * ipa-chkp.c: Don't include <string>.
+
2014-11-11 Terry Guo <terry.guo@arm.com>
* doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
inline WI_BINARY_RESULT (T1, T2)
wi::smin (const T1 &x, const T2 &y)
{
- return min (x, y, SIGNED);
+ return wi::min (x, y, SIGNED);
}
/* Return the minimum of X and Y, treating both as unsigned values. */
inline WI_BINARY_RESULT (T1, T2)
wi::umin (const T1 &x, const T2 &y)
{
- return min (x, y, UNSIGNED);
+ return wi::min (x, y, UNSIGNED);
}
/* Return the maxinum of X and Y, treating them both as having
inline WI_BINARY_RESULT (T1, T2)
wi::smax (const T1 &x, const T2 &y)
{
- return max (x, y, SIGNED);
+ return wi::max (x, y, SIGNED);
}
/* Return the maximum of X and Y, treating both as unsigned values. */
inline WI_BINARY_RESULT (T1, T2)
wi::umax (const T1 &x, const T2 &y)
{
- return max (x, y, UNSIGNED);
+ return wi::max (x, y, UNSIGNED);
}
/* Return X & Y. */