diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-01 14:00:01 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-01 14:00:01 +0000 |
commit | 1dd5a3ac525a8da9b21cef0f5ab5e0e5ee84ada5 (patch) | |
tree | 9a698ac1cc422d899ff8de76564350e73ddc7634 /libffi | |
parent | ab3728ee2629f19f7fbcbc950cc4d3a8f7d94740 (diff) | |
download | gcc-1dd5a3ac525a8da9b21cef0f5ab5e0e5ee84ada5.tar.gz |
* testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
(PRIuPTR): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167332 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/testsuite/libffi.call/ffitest.h | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 6b78da8b053..34d9aff2625 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define. + (PRIuPTR): Define. + 2010-11-29 Richard Henderson <rth@redhat.com> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> diff --git a/libffi/testsuite/libffi.call/ffitest.h b/libffi/testsuite/libffi.call/ffitest.h index 2cb9849718f..59ef032ea51 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 <inttypes.h> provides all definitions, but only for C99 + compilations. */ +#if (_MIPS_SZLONG == 32) +#define PRId64 "lld" +#define PRIu64 "llu" +#endif +/* This doesn't match <inttypes.h>, which always has "lld" here, but the + arguments are uint64_t, int64_t, which are unsigned long, long for + 64-bit in <sgidefs.h>. */ +#if (_MIPS_SZLONG == 64) +#define PRId64 "ld" +#define PRIu64 "lu" +#endif +/* This doesn't match <inttypes.h>, 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__) |