From: Rainer Orth Date: Fri, 17 Dec 2010 14:41:08 +0000 (+0000) Subject: backport: ffitest.h [__sgi] (PRId64, PRIu64): Define. X-Git-Tag: releases/gcc-4.5.3~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14ff1a5496eafe10deeabc76b937690a68af0b6e;p=thirdparty%2Fgcc.git backport: ffitest.h [__sgi] (PRId64, PRIu64): Define. Backport from mainline: 2010-12-01 Rainer Orth * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define. (PRIuPTR): Define. From-SVN: r167987 --- diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 87d8ef5c7072..76d2c4aaa027 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,11 @@ +2010-12-17 Rainer Orth + + Backport from mainline: + 2010-12-01 Rainer Orth + + * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define. + (PRIuPTR): Define. + 2010-12-16 Release Manager * GCC 4.5.2 released. diff --git a/libffi/testsuite/libffi.call/ffitest.h b/libffi/testsuite/libffi.call/ffitest.h index 2cb9849718f2..59ef032ea51a 100644 --- a/libffi/testsuite/libffi.call/ffitest.h +++ b/libffi/testsuite/libffi.call/ffitest.h @@ -77,6 +77,26 @@ #define PRIuPTR "lu" #endif +/* IRIX kludge. */ +#if defined(__sgi) +/* IRIX 6.5 provides all definitions, but only for C99 + compilations. */ +#if (_MIPS_SZLONG == 32) +#define PRId64 "lld" +#define PRIu64 "llu" +#endif +/* This doesn't match , which always has "lld" here, but the + arguments are uint64_t, int64_t, which are unsigned long, long for + 64-bit in . */ +#if (_MIPS_SZLONG == 64) +#define PRId64 "ld" +#define PRIu64 "lu" +#endif +/* This doesn't match , which has "u" here, but the arguments + are uintptr_t, which is always unsigned long. */ +#define PRIuPTR "lu" +#endif + /* Solaris < 10 kludge. */ #if defined(__sun__) && defined(__svr4__) && !defined(PRIuPTR) #if defined(__arch64__) || defined (__x86_64__)