1/* Definitions for MIPS running Haiku 2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 3 Free Software Foundation, Inc. 4 5This file is part of GCC. 6 7GCC is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GCC is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GCC; see the file COPYING. If not, write to 19the Free Software Foundation, 59 Temple Place - Suite 330, 20Boston, MA 02111-1307, USA. */ 21 22 23#define TARGET_OS_CPP_BUILTINS() \ 24 do \ 25 { \ 26 builtin_define ("__HAIKU__"); \ 27 builtin_define ("__MIPS__"); \ 28 builtin_define ("__MIPSEL__"); \ 29 builtin_define ("_MIPSEL_"); \ 30 builtin_define ("__stdcall=__attribute__((__stdcall__))"); \ 31 builtin_define ("__cdecl=__attribute__((__cdecl__))"); \ 32 builtin_define ("__STDC_ISO_10646__=201103L"); \ 33 builtin_assert ("system=haiku"); \ 34 if (flag_pic) \ 35 { \ 36 builtin_define ("__PIC__"); \ 37 builtin_define ("__pic__"); \ 38 } \ 39 } \ 40 while (0) 41 42#undef LINK_SPEC 43#define LINK_SPEC "%{!o*:-o %b} -m elf_mipsel_haiku %{!r:-shared} %{nostart:-e 0}" 44 45