X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Fconfig%2Fdarwin.h;h=050773fb130202817234a49df361df14720edd75;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=05ca85bdb8c96f77b0e4f5784e751fa0e7a14f2d;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 05ca85bd..050773fb 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -1,24 +1,32 @@ /* Target definitions for Darwin (Mac OS X) systems. - Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002 + Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002, 2003, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Apple Computer Inc. -This file is part of GNU CC. +This file is part of GCC. -GNU CC is free software; you can redistribute it and/or modify +GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) +the Free Software Foundation; either version 3, or (at your option) any later version. -GNU CC is distributed in the hope that it will be useful, +GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ +Under Section 7 of GPL version 3, you are granted additional +permissions described in the GCC Runtime Library Exception, version +3.1, as published by the Free Software Foundation. + +You should have received a copy of the GNU General Public License and +a copy of the GCC Runtime Library Exception along with this program; +see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +. */ + +#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 @@ -30,15 +38,16 @@ Boston, MA 02111-1307, USA. */ /* 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. */ -/* Suppress g++ attempt to link in the math library automatically. - (Some Darwin versions have a libm, but they seem to cause problems - for C++ executables.) */ +#define OBJECT_FORMAT_MACHO +/* Don't assume anything about the header files. */ +#define NO_IMPLICIT_EXTERN_C + +/* Suppress g++ attempt to link in the math library automatically. */ #define MATH_LIBRARY "" /* We have atexit. */ @@ -78,77 +87,436 @@ Boston, MA 02111-1307, USA. */ #undef DEFAULT_PCC_STRUCT_RETURN #define DEFAULT_PCC_STRUCT_RETURN 0 -/* Don't warn about MacOS-style 'APPL' four-char-constants. */ - -#undef WARN_FOUR_CHAR_CONSTANTS -#define WARN_FOUR_CHAR_CONSTANTS 0 +/* True if pragma ms_struct is in effect. */ +extern GTY(()) int darwin_ms_struct; + +/* This table intercepts weirdo options whose names would interfere + with normal driver conventions, and either translates them into + standardly-named options, or adds a 'Z' so that they can get to + specs processing without interference. + + Do not expand a linker option to "-Xlinker -