]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/rs6000/xm-sysv4.h
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
[thirdparty/gcc.git] / gcc / config / rs6000 / xm-sysv4.h
CommitLineData
e3f1f242 1/* Configuration for GNU C-compiler for PowerPC running System V.4.
e5e809f4 2 Copyright (C) 1995, 1998 Free Software Foundation, Inc.
e3f1f242
MM
3
4 Cloned from sparc/xm-sysv4.h by Michael Meissner (meissner@cygnus.com).
5
6This file is part of GNU CC.
7
8GNU CC is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2, or (at your option)
11any later version.
12
13GNU CC is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU CC; see the file COPYING. If not, write to
c15c9075
RK
20the Free Software Foundation, 59 Temple Place - Suite 330,
21Boston, MA 02111-1307, USA. */
e3f1f242
MM
22
23
24/* #defines that need visibility everywhere. */
25#define FALSE 0
26#define TRUE 1
27
28/* This describes the machine the compiler is hosted on. */
29#define HOST_BITS_PER_CHAR 8
30#define HOST_BITS_PER_SHORT 16
31#define HOST_BITS_PER_INT 32
32#define HOST_BITS_PER_LONG 32
33#if 0
34#define HOST_BITS_PER_LONGLONG 64
35#endif
36
37/* Doubles are stored in memory with the high order word first. This
38 matters when cross-compiling. */
39#define HOST_WORDS_BIG_ENDIAN 1
40
41/* target machine dependencies.
42 tm.h is a symbolic link to the actual target specific file. */
43#include "tm.h"
44
45/* Arguments to use with `exit'. */
46#define SUCCESS_EXIT_CODE 0
47#define FATAL_EXIT_CODE 33
48
05ef204d
MM
49#ifdef __linux__
50#include "xm-linux.h"
05ef204d 51#endif
e3f1f242 52
c81bebd7 53/* if not compiled with GNU C, use the C alloca and use only int bitfields. */
e3f1f242 54#ifndef __GNUC__
c81bebd7 55#define USE_C_ALLOCA
18511014
JL
56#ifdef __STDC__
57extern void *alloca ();
58#else
c81bebd7 59extern char *alloca ();
b9dfb357 60#endif
c81bebd7 61#undef ONLY_INT_FIELDS
e3f1f242
MM
62#define ONLY_INT_FIELDS
63#endif
c81bebd7 64
01be8af6
MM
65#ifdef __PPC__
66#ifndef __STDC__
67extern char *malloc (), *realloc (), *calloc ();
68#else
69extern void *malloc (), *realloc (), *calloc ();
70#endif
71extern void free ();
72#endif