This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][4/4] Always 64bit-HWI cleanups
- From: Richard Biener <rguenther at suse dot de>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: David Edelsohn <dje dot gcc at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 27 May 2014 12:37:16 +0200 (CEST)
- Subject: Re: [PATCH][4/4] Always 64bit-HWI cleanups
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnykNVd1UD+fkTfTsSb3AKWFFc4QFRz7iQgUobu6g4m3AmQ at mail dot gmail dot com> <f2d94717-1333-4dd0-acb7-3106c5f22f35 at email dot android dot com> <20140527063548 dot GI10386 at tucnak dot redhat dot com>
On Tue, 27 May 2014, Jakub Jelinek wrote:
> On Tue, May 27, 2014 at 08:26:35AM +0200, Richard Biener wrote:
> > >/nasfarm/edelsohn/src/src/gcc/cfg.c: In function 'void
> > >dump_bb_info(FILE*, basic_block, int, int, bool, bool)':
> > >/nasfarm/edelsohn/src/src/gcc/cfg.c:737:33: error: expected ')' before
> > >'PRId64'
> >
> > This means aix has inttypes.h but not the standard mandated PRI?64 macros. Does it have stdint.h and therein int64_t?
> >
> > A possibility is to define the GCC fallbacks when the defines are not
> > defined as opposed to only when inttypes.h is not available.
>
> BTW, we should be prepared for C++11 udlit and use spaces around
> the PRI* macros, in case some compiler treats those as udlits
> unconditionally.
Though that's not likely as it would break existing and valid code.
Richard.