This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] c++ify sreal
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Pinski <pinskia at gmail dot com>, Richard Biener <richard dot guenther at gmail dot com>, Trevor Saunders <tsaunders at mozilla dot com>
- Date: Tue, 11 Nov 2014 08:51:41 +0100
- Subject: Re: [PATCH] c++ify sreal
- Authentication-results: sourceware.org; auth=none
Hello!
>>> do $subject, and cleanup for always 64 bit hwi.
>>>
>>>
>>> bootstrapped + regtested x86_64-unknown-linux-gnu, ok?
>>
>> Ok. Can you please replace remaining HOST_WIDE_INT
>> vestiges in there with [u]int64_t please?
>
>
> This patch breaks the build on debian 6.0:
>
> ../../gcc/sreal.c: In member function Ãint64_t sreal::to_int() constÃ:
> ../../gcc/sreal.c:159: error: ÃINT64_MAXÃ was not declared in this scope
Index: system.h
===================================================================
--- system.h (revision 217338)
+++ system.h (working copy)
@@ -27,6 +27,7 @@
event inttypes.h gets pulled in by another header it is already
defined. */
#define __STDC_FORMAT_MACROS
+#define __STDC_LIMIT_MACROS
/* We must include stdarg.h before stdio.h. */
#include <stdarg.h>