netbsd.h revision 1.3
1/* Definitions of target machine for GNU compiler, 2 for ia64/ELF NetBSD systems. 3 Copyright (C) 2005 Free Software Foundation, Inc. 4 5This file is part of GNU CC. 6 7GNU CC 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 12GNU CC 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 GNU CC; see the file COPYING. If not, write to 19the Free Software Foundation, 59 Temple Place - Suite 330, 20Boston, MA 02111-1307, USA. */ 21 22#define TARGET_OS_CPP_BUILTINS() \ 23 do \ 24 { \ 25 NETBSD_OS_CPP_BUILTINS_ELF(); \ 26 } \ 27 while (0) 28 29 30/* Extra specs needed for NetBSD/ia-64 ELF. */ 31 32#undef SUBTARGET_EXTRA_SPECS 33#define SUBTARGET_EXTRA_SPECS \ 34 { "netbsd_cpp_spec", NETBSD_CPP_SPEC }, \ 35 { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \ 36 { "netbsd_entry_point", NETBSD_ENTRY_POINT }, 37 38 39/* Provide a LINK_SPEC appropriate for a NetBSD/ia64 ELF target. */ 40 41#undef LINK_SPEC 42#define LINK_SPEC "%(netbsd_link_spec)" 43 44#define NETBSD_ENTRY_POINT "_start" 45 46 47/* Provide a CPP_SPEC appropriate for NetBSD. */ 48 49#undef CPP_SPEC 50#define CPP_SPEC "%(netbsd_cpp_spec)" 51 52 53#if 0 54/* Attempt to enable execute permissions on the stack. */ 55#define TRANSFER_FROM_TRAMPOLINE NETBSD_ENABLE_EXECUTE_STACK 56#endif 57