This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH (revised): New config, Darwin / Mac OS X (host-only)


Here's an updated Darwin host config with rth's suggested improvement,
plus usage of the new config.gcc script.

Ok to install?

Stan

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.

Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.3
diff -p -r1.3 config.gcc
*** config.gcc  2000/11/20 00:58:02     1.3
--- config.gcc  2000/11/20 20:15:13
*************** powerpc-*-beos*)
*** 2641,2646 ****
--- 2641,2650 ----
        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"
Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.81
diff -p -r1.81 system.h
*** system.h    2000/11/09 07:45:14     1.81
--- system.h    2000/11/20 20:15:13
*************** extern void abort PARAMS ((void));
*** 429,436 ****
--- 429,438 ----
  #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
Index: config/rs6000/x-darwin
===================================================================
RCS file: x-darwin
diff -N x-darwin
*** /dev/null   Tue May  5 13:32:27 1998
--- x-darwin    Mon Nov 20 12:15:14 2000
***************
*** 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
Index: config/rs6000/xm-darwin.h
===================================================================
RCS file: xm-darwin.h
diff -N xm-darwin.h
*** /dev/null   Tue May  5 13:32:27 1998
--- xm-darwin.h Mon Nov 20 12:15:14 2000
***************
*** 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]