/* Target definitions for x86 running Darwin. Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, Inc. Contributed by Apple Computer Inc. This file is part of GCC. 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. 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 GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Enable Mach-O bits in generic x86 code. */ #undef TARGET_MACHO #define TARGET_MACHO 1 /* APPLE LOCAL begin default to ppro */ /* Default to -mcpu=pentiumpro instead of i386 (radar 2730299) ilr */ #undef TARGET_CPU_DEFAULT #define TARGET_CPU_DEFAULT 4 /* APPLE LOCAL end default to ppro */ #define TARGET_VERSION fprintf (stderr, " (i386 Darwin)"); #define TARGET_OS_CPP_BUILTINS() \ do \ { \ builtin_define ("__i386__"); \ builtin_define ("__LITTLE_ENDIAN__"); \ /* APPLE LOCAL remove __MACH__ and __APPLE__, defined in gcc/config/darwin.h */\ /* APPLE LOCAL constant cfstrings */ \ SUBTARGET_OS_CPP_BUILTINS (); \ } \ while (0) /* We want -fPIC by default, unless we're using -static to compile for the kernel or some such. */ #undef CC1_SPEC /* APPLE LOCAL dynamic-no-pic */ /* APPLE LOCAL ignore -mcpu=G4 -mcpu=G5 */ /* When -mdynamic-no-pic finally works, remove the "xx" below. FIXME!! */ #define CC1_SPEC "\ %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }} \ %{!static:%{!mxxdynamic-no-pic:-fPIC}} %