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]

random fixes for config/darwin.h


Apple's version has include guards, and it won't hurt the FSF one to
have them too.  Plus, delete an old comment.

Bootstrapped & tested on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/gcc-darwin-includeguards.patch============
2004-02-12  Geoffrey Keating  <geoffk@apple.com>

	* config/darwin.h: Add include guards.  Remove old, now incorrect,
	comment about STANDARD_EXEC_PREFIX.

*** darwin.h.~1.67.~	Thu Feb 12 12:42:12 2004
--- darwin.h	Thu Feb 12 12:48:34 2004
***************
*** 20,25 ****
--- 20,28 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef CONFIG_DARWIN_H
+ #define CONFIG_DARWIN_H
+ 
  /* The definitions in this file are common to all processor types
     running Darwin, which is the kernel for Mac OS X.  Darwin is
     basically a BSD user layer laid over a Mach kernel, then evolved
***************
*** 30,40 ****
  /* Although NeXT ran on many different architectures, as of Jan 2001
     the only supported Darwin targets are PowerPC and x86.  */
  
- /* Technically, STANDARD_EXEC_PREFIX should be /usr/libexec/, but in
-    practice this makes it hard to install new compilers elsewhere, so
-    leave it undefined and expect system builders to set configure args
-    correctly.  */
- 
  /* One of Darwin's NeXT legacies is the Mach-O format, which is partly
     like a.out and partly like COFF, with additional features like
     multi-architecture binary support.  */
--- 33,38 ----
***************
*** 831,833 ****
--- 829,833 ----
  #define ASM_APP_ON ""
  #undef ASM_APP_OFF
  #define ASM_APP_OFF ""
+ 
+ #endif /* CONFIG_DARWIN_H */
============================================================


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