Add 2009 to copyright years.
[bpt/emacs.git] / src / m / macppc.h
CommitLineData
863c15b6 1/* machine description file For the powerpc Macintosh.
eb3d11ef 2 Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
76b6f707 3 2008, 2009 Free Software Foundation, Inc.
863c15b6
DL
4
5This file is part of GNU Emacs.
6
eb3d11ef 7GNU Emacs is free software: you can redistribute it and/or modify
863c15b6 8it under the terms of the GNU General Public License as published by
eb3d11ef
GM
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
863c15b6
DL
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
eb3d11ef 18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
863c15b6 19
22e9fe24 20/* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
863c15b6
DL
21 is the most significant byte. */
22
23#define WORDS_BIG_ENDIAN
24
25/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
26 * group of arguments and treat it as an array of the arguments. */
27
28#define NO_ARG_ARRAY
29
863c15b6
DL
30/* Data type of load average, as read out of kmem. */
31
32#define LOAD_AVE_TYPE long
33
34/* Convert that into an integer that is 100 for a load average of 1.0 */
35
36#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
37
863c15b6
DL
38#if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__)
39#define HAVE_TEXT_START
40#endif
2c8a6e9e
GM
41
42/* NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says this is needed
43 For MkLinux/LinuxPPC. */
44
bdee2ef3 45#ifdef GNU_LINUX
2c8a6e9e 46#define LINKER $(CC) -nostdlib
6acf9baf
EZ
47/* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here
48 because prefix-args is not used. */
49#undef LD_SWITCH_SYSTEM_TEMACS
50#define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
919fab71
AS
51#ifdef _ARCH_PPC64
52#undef START_FILES
53#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
54#undef LIB_STANDARD
55#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
56#endif
2c8a6e9e 57#endif
274704f7 58
919fab71
AS
59#ifdef _ARCH_PPC64
60#ifndef _LP64
61#define _LP64
62#endif
63#endif
64
ab5796a9
MB
65/* arch-tag: 41913e4e-e7d1-4023-aadb-210cc31712ed
66 (do not change this comment) */