Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/gcc/config/i386 The preprocessor in Apple...
details: https://anonhg.NetBSD.org/src/rev/d42c90b23ff9
branches: trunk
changeset: 544140:d42c90b23ff9
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Mar 12 23:00:40 2003 +0000
description:
The preprocessor in Apple's GCC 3.1 doesn't like being passed a macro
with empty arguments on each side of the comma; hack around this.
diffstat:
gnu/dist/toolchain/gcc/config/i386/i386.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 6bc85b17d8f1 -r d42c90b23ff9 gnu/dist/toolchain/gcc/config/i386/i386.c
--- a/gnu/dist/toolchain/gcc/config/i386/i386.c Wed Mar 12 23:00:03 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/i386/i386.c Wed Mar 12 23:00:40 2003 +0000
@@ -3355,7 +3355,17 @@
if (GET_CODE (x) == CONST_INT || ! SHIFT_DOUBLE_OMITS_COUNT)
{
PRINT_OPERAND (file, x, 0);
+#ifndef __APPLE__
fputs (AS2C (,) + 1, file);
+#else
+ /* The above statement results in a " ," being spit out
+ for both ANSI and traditional preprocessors. However,
+ Apple's GCC 3.1 (which has a custom preprocessor that
+ support pre-compiled headers) that ships with OS X does
+ not like the above construct, so we hand-craft it.
+ --thorpej%netbsd.org@localhost */
+#endif
+ fputs (" ," + 1, file);
}
return;
Home |
Main Index |
Thread Index |
Old Index