Mercurial > hg > xemacs-beta
comparison src/m/powerpc.h @ 0:376386a54a3c r19-14
Import from CVS: tag r19-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:45:50 +0200 |
parents | |
children | 538048ae2ab8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:376386a54a3c |
---|---|
1 /* machine description file for Power PC | |
2 Copyright (C) 1987, 1994 Free Software Foundation, Inc. | |
3 Copyright (C) 1995 Board of Trustees, University of Illinois | |
4 | |
5 This file is part of XEmacs. | |
6 | |
7 XEmacs is free software; you can redistribute it and/or modify | |
8 it under the terms of the GNU General Public License as published by | |
9 the Free Software Foundation; either version 2, or (at your option) | |
10 any later version. | |
11 | |
12 XEmacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with XEmacs; see the file COPYING. If not, write to | |
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 Boston, MA 02111-1307, USA. */ | |
21 | |
22 /* The following line tells the configuration script what sort of | |
23 operating system this machine is likely to run. | |
24 USUAL-OPSYS="solaris2-5" */ | |
25 | |
26 #ifdef NOT_C_CODE | |
27 # define POWERPC | |
28 #else | |
29 # ifndef powerpc | |
30 # define powerpc | |
31 # endif | |
32 #endif | |
33 | |
34 #ifdef __GNUC__ | |
35 # define C_OPTIMIZE_SWITCH -O | |
36 #else | |
37 /* XEmacs change */ | |
38 # ifdef USE_LCC | |
39 # define C_OPTIMIZE_SWITCH -O4 -Oi | |
40 # else | |
41 /* This level of optimization is reported to work. */ | |
42 # define C_OPTIMIZE_SWITCH -O2 | |
43 # endif | |
44 #endif | |
45 | |
46 /* XINT must explicitly sign-extend */ | |
47 | |
48 #define EXPLICIT_SIGN_EXTEND | |
49 | |
50 /* Data type of load average, as read out of kmem. */ | |
51 | |
52 #define LOAD_AVE_TYPE long | |
53 | |
54 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
55 | |
56 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | |
57 | |
58 /* Define C_ALLOCA if this machine does not support a true alloca | |
59 and the one written in C should be used instead. | |
60 Define HAVE_ALLOCA to say that the system provides a properly | |
61 working alloca function and it should be used. | |
62 Define neither one if an assembler-language alloca | |
63 in the file alloca.s should be used. */ | |
64 | |
65 #define HAVE_ALLOCA | |
66 #ifndef NOT_C_CODE | |
67 #if __GNUC__ < 2 /* Modern versions of GCC handle alloca directly. */ | |
68 #include <alloca.h> | |
69 #endif | |
70 #endif | |
71 | |
72 /* Solaris defines alloca to __builtin_alloca & does not provide a prototype */ | |
73 #ifdef __SUNPRO_C | |
74 # ifndef NOT_C_CODE | |
75 # include <alloca.h> | |
76 # endif | |
77 #endif |