OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [rs6000/] [beos.h] - Blame information for rev 38

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Definitions of target machine for GNU compiler, for BeOS.
2
   Copyright (C) 1997, 2000, 2001, 2002, 2003, 2005, 2007
3
   Free Software Foundation, Inc.
4
   Contributed by Fred Fish (fnf@cygnus.com), based on aix41.h
5
   from David Edelsohn (edelsohn@npac.syr.edu).
6
 
7
   This file is part of GCC.
8
 
9
   GCC is free software; you can redistribute it and/or modify it
10
   under the terms of the GNU General Public License as published
11
   by the Free Software Foundation; either version 3, or (at your
12
   option) any later version.
13
 
14
   GCC is distributed in the hope that it will be useful, but WITHOUT
15
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
17
   License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with GCC; see the file COPYING3.  If not see
21
   <http://www.gnu.org/licenses/>.  */
22
 
23
#undef  TARGET_VERSION
24
#define TARGET_VERSION fprintf (stderr, " (BeOS/PowerPC)");
25
 
26
#undef ASM_SPEC
27
#define ASM_SPEC "-u %(asm_cpu)"
28
 
29
#undef TARGET_OS_CPP_BUILTINS
30
/* __POWERPC__ must be defined for some header files.  */
31
#define TARGET_OS_CPP_BUILTINS()          \
32
  do                                      \
33
    {                                     \
34
      builtin_define ("__BEOS__");        \
35
      builtin_define ("__POWERPC__");     \
36
      builtin_assert ("system=beos");     \
37
      builtin_assert ("cpu=powerpc");     \
38
      builtin_assert ("machine=powerpc"); \
39
    }                                     \
40
  while (0)
41
 
42
#undef CPP_SPEC
43
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}"
44
 
45
/* This is the easiest way to disable use of gcc's builtin alloca,
46
   which in the current BeOS release (DR9) is a problem because of the
47
   relatively low default stack size of 256K with no way to expand it.
48
   So anything we compile for the BeOS target should not use the
49
   builtin alloca.  This also has the unwanted side effect of
50
   disabling all builtin functions though.  */
51
 
52
#undef CC1_SPEC
53
#define CC1_SPEC "%{!fbuiltin: -fno-builtin}"
54
#undef CC1PLUS_SPEC
55
#define CC1PLUS_SPEC "%{!fbuiltin: -fno-builtin}"
56
 
57
#undef  ASM_DEFAULT_SPEC
58
#define ASM_DEFAULT_SPEC "-mppc"
59
 
60
#undef TARGET_DEFAULT
61
#define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
62
 
63
#undef PROCESSOR_DEFAULT
64
#define PROCESSOR_DEFAULT PROCESSOR_PPC603
65
 
66
/* Define this macro as a C expression for the initializer of an
67
   array of string to tell the driver program which options are
68
   defaults for this target and thus do not need to be handled
69
   specially when using `MULTILIB_OPTIONS'.
70
 
71
   Do not define this macro if `MULTILIB_OPTIONS' is not defined in
72
   the target makefile fragment or if none of the options listed in
73
   `MULTILIB_OPTIONS' are set by default.  *Note Target Fragment::.  */
74
 
75
#undef  MULTILIB_DEFAULTS
76
#define MULTILIB_DEFAULTS { "mcpu=powerpc" }
77
 
78
/* These empty definitions get rid of the attempt to link in crt0.o
79
   and any libraries like libc.a.
80
   On BeOS the ld executable is actually a linker front end that first runs
81
   the GNU linker with the -r option to generate a relocatable XCOFF output
82
   file, and then runs Metrowork's linker (mwld) to generate a fully linked
83
   executable.  */
84
 
85
#undef LIB_SPEC
86
#define LIB_SPEC ""
87
 
88
#undef LINK_SPEC
89
#define LINK_SPEC ""
90
 
91
#undef STARTFILE_SPEC
92
#define STARTFILE_SPEC ""
93
 
94
/* Text to write out after a CALL that may be replaced by glue code by
95
   the loader.  */
96
 
97
#undef RS6000_CALL_GLUE
98
#define RS6000_CALL_GLUE "cror 15,15,15"
99
 
100
/* Struct alignments are done on 4 byte boundaries for all types.  */
101
#undef BIGGEST_FIELD_ALIGNMENT
102
#define BIGGEST_FIELD_ALIGNMENT 32
103
 
104
/* STANDARD_INCLUDE_DIR is the equivalent of "/usr/include" on UNIX.  */
105
#define STANDARD_INCLUDE_DIR    "/boot/develop/headers/posix"
106
 
107
/* SYSTEM_INCLUDE_DIR is the location for system specific, non-POSIX headers.  */
108
#define SYSTEM_INCLUDE_DIR      "/boot/develop/headers/be"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.