xm-darwin.h: New file, Darwin host definitions.
* config/rs6000/xm-darwin.h: New file, Darwin host definitions. * config/rs6000/x-darwin: New file, Darwin host fragment. * config.gcc (powerpc-*-darwin*): New host. * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be overridden by a config file. From-SVN: r37601
This commit is contained in:
parent
b555ebaa9e
commit
18922061f5
@ -1,3 +1,11 @@
|
||||
2000-11-20 Stan Shebs <shebs@apple.com>
|
||||
|
||||
* config/rs6000/xm-darwin.h: New file, Darwin host definitions.
|
||||
* config/rs6000/x-darwin: New file, Darwin host fragment.
|
||||
* config.gcc (powerpc-*-darwin*): New host.
|
||||
* system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
|
||||
overridden by a config file.
|
||||
|
||||
2000-11-20 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* cppmacro.c (paste_tokens): Rename from paste_payloads.
|
||||
|
@ -2641,6 +2641,10 @@ powerpc-*-beos*)
|
||||
tmake_file=rs6000/t-beos
|
||||
xmake_file=rs6000/x-beos
|
||||
;;
|
||||
powerpc-*-darwin*)
|
||||
xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
|
||||
xmake_file=rs6000/x-darwin
|
||||
;;
|
||||
powerpc-*-sysv*)
|
||||
tm_file=rs6000/sysv4.h
|
||||
xm_file="rs6000/xm-sysv4.h"
|
||||
|
5
gcc/config/rs6000/x-darwin
Normal file
5
gcc/config/rs6000/x-darwin
Normal file
@ -0,0 +1,5 @@
|
||||
# The spiffy cpp-precomp chokes on some legitimate constructs in GCC
|
||||
# sources; use -traditional-cpp to get to GNU cpp. (This is another
|
||||
# peculiarity of Apple's GCC that we hope to get rid of.)
|
||||
|
||||
CC = cc -traditional-cpp
|
9
gcc/config/rs6000/xm-darwin.h
Normal file
9
gcc/config/rs6000/xm-darwin.h
Normal file
@ -0,0 +1,9 @@
|
||||
/* Undo the USG definition in xm-rs6000.h, Darwin is a BSD flavor. */
|
||||
|
||||
#undef USG
|
||||
|
||||
/* Override the usual setting, since Apple's GCC has lame bugs and
|
||||
can't handle the initializers. Someday the bugs will be fixed and
|
||||
we can get rid of this silliness. */
|
||||
|
||||
#define HAVE_DESIGNATED_INITIALIZERS 0
|
@ -429,8 +429,10 @@ extern void abort PARAMS ((void));
|
||||
#endif
|
||||
|
||||
/* 1 if we have C99 designated initializers. */
|
||||
#if !defined(HAVE_DESIGNATED_INITIALIZERS)
|
||||
#define HAVE_DESIGNATED_INITIALIZERS \
|
||||
((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L))
|
||||
#endif
|
||||
|
||||
/* Define a STRINGIFY macro that's right for ANSI or traditional C.
|
||||
Note: if the argument passed to STRINGIFY is itself a macro, eg
|
||||
|
Loading…
Reference in New Issue
Block a user