/* Target definitions for x86 running Darwin. Copyright (C) 2001, 2002, 2004 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 #define TARGET_VERSION fprintf (stderr, " (i686 Darwin)"); #define TARGET_OS_CPP_BUILTINS() \ do \ { \ builtin_define ("__i386__"); \ builtin_define ("__LITTLE_ENDIAN__"); \ builtin_define ("__MACH__"); \ builtin_define ("__APPLE__"); \ } \ while (0) /* We want -fPIC by default, unless we're using -static to compile for the kernel or some such. */ #undef CC1_SPEC #define CC1_SPEC "%{!static:-fPIC}\ %{gused: -g -feliminate-unused-debug-symbols %