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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [config/] [sparc/] [sp-elf.h] - Blame information for rev 20

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

Line No. Rev Author Line
1 12 jlechner
/* Definitions of target machine for GCC,
2
   for SPARC running in an embedded environment using the ELF file format.
3
   Copyright (C) 2005 Free Software Foundation, Inc.
4
 
5
This file is part of GCC.
6
 
7
GCC 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
GCC 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 GCC; see the file COPYING.  If not, write to
19
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20
Boston, MA 02110-1301, USA.  */
21
 
22
#undef TARGET_VERSION
23
#define TARGET_VERSION fprintf (stderr, " (sparc-elf)")
24
 
25
/* Don't assume anything about the header files.  */
26
#define NO_IMPLICIT_EXTERN_C
27
 
28
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
29
   It's safe to pass -s always, even if -g is not used.  */
30
#undef ASM_SPEC
31
#define ASM_SPEC \
32
  "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \
33
   %{fpic|fpie|fPIC|fPIE:-K PIC} %(asm_cpu)"
34
 
35
/* Use the default.  */
36
#undef LINK_SPEC
37
 
38
#undef STARTFILE_SPEC
39
#define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
40
 
41
#undef ENDFILE_SPEC
42
#define ENDFILE_SPEC \
43
  "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
44
   crtend.o%s crtn.o%s"
45
 
46
/* Don't set the target flags, this is done by the linker script */
47
#undef LIB_SPEC
48
#define LIB_SPEC ""
49
 
50
/* This defines which switch letters take arguments.
51
   It is as in svr4.h but with -R added.  */
52
#undef SWITCH_TAKES_ARG
53
#define SWITCH_TAKES_ARG(CHAR) \
54
  (DEFAULT_SWITCH_TAKES_ARG(CHAR) \
55
   || (CHAR) == 'R' \
56
   || (CHAR) == 'h' \
57
   || (CHAR) == 'z')
58
 
59
#undef  LOCAL_LABEL_PREFIX
60
#define LOCAL_LABEL_PREFIX  "."
61
 
62
/* This is how to store into the string LABEL
63
   the symbol_ref name of an internal numbered label where
64
   PREFIX is the class of label and NUM is the number within the class.
65
   This is suitable for output with `assemble_name'.  */
66
 
67
#undef  ASM_GENERATE_INTERNAL_LABEL
68
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)   \
69
  sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
70
 
71
/* ??? Inherited from sol2.h.  Probably wrong.  */
72
#undef WCHAR_TYPE
73
#define WCHAR_TYPE "long int"
74
 
75
#undef WCHAR_TYPE_SIZE
76
#define WCHAR_TYPE_SIZE BITS_PER_WORD
77
 
78
/* ??? until fixed.  */
79
#undef LONG_DOUBLE_TYPE_SIZE
80
#define LONG_DOUBLE_TYPE_SIZE 64

powered by: WebSVN 2.1.0

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