OSDN Git Service

b18e7fe38d3015bfbcea1af75715bc8d26c0506c
[pf3gnuchains/gcc-fork.git] / gcc / config / xm-openbsd.h
1 /* Configuration fragment for hosts running a version of OpenBSD.
2    Copyright (C) 1999 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* This file gets included by all architectures. It holds stuff
22    that ought to be defined when hosting a compiler on an OpenBSD
23    machine, independently of the architecture. It's included by
24    ${cpu_type}/xm-openbsd.h, not included directly.  */
25
26 /* OpenBSD is trying to be POSIX-compliant, to the point of fixing
27    problems that may occur with gcc's interpretation.  */
28 #undef POSIX
29 #define POSIX
30
31 /* Ensure we get gnu C's defaults.  */
32 #ifdef __GNUC__
33 #define alloca __builtin_alloca
34 #endif