This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fixincludes for darwin stdint.h
- From: FX <fxcoudert at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org, Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: dalej at apple dot com, mrs at apple dot com, Eric Christopher <echristo at apple dot com>, stanshebs at earthlink dot net, bkorb at gnu dot org
- Date: Sun, 7 Jun 2009 01:02:59 +0200
- Subject: [patch] Fixincludes for darwin stdint.h
Hi all,
This patch adds the necesary fixincludes hacks to fix darwin stdint.h
so that c99-stdint-1.c passes (the last remaining darwin stdint issue
as far as I know). The macros at fault were INT8_C, INT16_C,
INTPTR_{MIN,MAX}, UINTPTR_MAX and SIZE_MAX. I've also filed a bug with
Apple about that header (radar item #6953165).
It's my first ever fixincludes patch, so I hope I got it right (though
the most tedious part was to get autogen and guile compiling). I've
"make check"'ed in fixincludes, which brings no new failure (there are
a few preexisting failures). I've bootstrapped, checked that gcc.dg/
c99-stdint-1.c now passes, that none of the other stdint tests have
regressed (at both -m32 and -m64) on i686-darwin, and I'm now running
a full regtest.
OK to commit?
FX
Attachment:
darwin-stdint-fixincludes.ChangeLog
Description: Binary data
Attachment:
darwin-stdint-fixincludes.diff
Description: Binary data