Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / 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 /* This file gets included by all architectures. It holds stuff
21    that ought to be defined when hosting a compiler on an OpenBSD
22    machine, independently of the architecture. It's included by
23    ${cpu_type}/xm-openbsd.h, not included directly.  */
24
25 /* OpenBSD is trying to be POSIX-compliant, to the point of fixing
26    problems that may occur with gcc's interpretation.  */
27 #undef POSIX
28 #define POSIX
29
30 /* Ensure we get gnu C's defaults.  */
31 #ifdef __GNUC__
32 #define alloca __builtin_alloca
33 #endif
34
35