X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fconfig%2Fdarwin.h;h=0099e0bbbd3a13ca59e02e5fcdb7a2bd2520f561;hp=5cebd58b7e7801160513e6d8b2b7954908531665;hb=34d2ae7f01a3522bde5149aef4a883795eb60004;hpb=543fd716b772e49fdbb8e717618c871667bf28de diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 5cebd58b7e7..0099e0bbbd3 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -1,25 +1,28 @@ /* Target definitions for Darwin (Mac OS X) systems. - Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001 + Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002, 2003, 2004 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) 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 +along with GCC; see the file COPYING. If not, write to 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,19 +33,14 @@ 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. */ - -/* Name of the command that invokes the compiler - used in g++.c. */ - -#undef GCC_NAME -#define GCC_NAME "cc" +/* 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. */ -/* Never try linking with -lm - used in g++.c. */ +#define OBJECT_FORMAT_MACHO -#define NO_MATH_LIBRARY +/* Suppress g++ attempt to link in the math library automatically. */ +#define MATH_LIBRARY "" /* We have atexit. */ @@ -81,50 +79,263 @@ 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 - -/* 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) +/* 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 -