Initial revision
[official-gcc.git] / gcc / config / rs6000 / xm-sysv4.h
blob5283dfcf98a99266bc1d4b00c15361b449720c18
1 /* Configuration for GNU C-compiler for PowerPC running System V.4.
2 Copyright (C) 1995 Free Software Foundation, Inc.
4 Cloned from sparc/xm-sysv4.h by Michael Meissner (meissner@cygnus.com).
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
24 /* #defines that need visibility everywhere. */
25 #define FALSE 0
26 #define TRUE 1
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
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
41 /* target machine dependencies.
42 tm.h is a symbolic link to the actual target specific file. */
43 #include "tm.h"
45 /* Arguments to use with `exit'. */
46 #define SUCCESS_EXIT_CODE 0
47 #define FATAL_EXIT_CODE 33
49 #include "xm-svr4.h"
51 /* if not compiled with GNU C, use the C alloca and use only int bitfields. */
52 #ifndef __GNUC__
53 #define USE_C_ALLOCA
54 extern char *alloca ();
55 #undef ONLY_INT_FIELDS
56 #define ONLY_INT_FIELDS
57 #endif
59 /* Solaris has a different declaration of sys_siglist than collect uses. */
60 #define DONT_DECLARE_SYS_SIGLIST
62 /* We have STRERROR */
63 #define HAVE_STRERROR
65 #ifdef __PPC__
66 #ifndef __STDC__
67 extern char *malloc (), *realloc (), *calloc ();
68 #else
69 extern void *malloc (), *realloc (), *calloc ();
70 #endif
71 extern void free ();
72 #endif