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]
Other format: [Raw text]

Remove a wart from darwin.h


Apple's version of GCC has an additional identifying number attached
to the macro __APPLE_CC__.  FSF GCC should not try to define this,
even to a default value.  Bootstrapped on powerpc-apple-darwin.

Stan

2002-07-03  Stan Shebs  <shebs@apple.com>

        * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
        (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
        (CPP_SPEC): Remove insertion of APPLE_CC definition.

Index: config/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.h,v
retrieving revision 1.30
diff -p -r1.30 darwin.h
*** config/darwin.h     19 May 2002 07:55:24 -0000      1.30
--- config/darwin.h     3 Jul 2002 21:47:19 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 85,104 ****
  
  /* Machine dependent cpp options.  */
  
- /* The sequence here allows us to get a more specific version number
-    glued into __APPLE_CC__.  Normally this number would be updated as
-    part of submitting to a release engineering organization.  */
- 
- #ifndef APPLE_CC
- #define APPLE_CC 999
- #endif
- 
- #define STRINGIFY_THIS(x) # x
- #define REALLY_STRINGIFY(x) STRINGIFY_THIS(x)
- 
  #undef        CPP_SPEC
! #define CPP_SPEC "-D__APPLE_CC__=" REALLY_STRINGIFY(APPLE_CC) "       \
!                 %{static:-D__STATIC__}%{!static:-D__DYNAMIC__}"
  
  /* Machine dependent libraries.  */
  
--- 85,92 ----
  
  /* Machine dependent cpp options.  */
  
  #undef        CPP_SPEC
! #define CPP_SPEC "%{static:-D__STATIC__}%{!static:-D__DYNAMIC__}"
  
  /* Machine dependent libraries.  */


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