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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [sol2-10.h] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Solaris 10 configuration.
2
   Copyright (C) 2004, 2007 Free Software Foundation, Inc.
3
   Contributed by CodeSourcery, LLC.
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 3, 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 COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
#undef ASM_COMMENT_START
22
#define ASM_COMMENT_START "/"
23
 
24
/* binutils' GNU as understands --32 and --64, but the native Solaris
25
   assembler requires -xarch=generic or -xarch=generic64 instead.  */
26
#undef ASM_SPEC
27
#ifdef USE_GAS
28
#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
29
                 "%{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)"
30
#else
31
#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
32
                 "%{Wa,*:%*} %{m32:-xarch=generic} %{m64:-xarch=generic64} " \
33
                 "-s %(asm_cpu)"
34
#endif
35
 
36
#undef NO_PROFILE_COUNTERS
37
 
38
#undef MCOUNT_NAME
39
#define MCOUNT_NAME "_mcount"
40
 
41
#undef WCHAR_TYPE
42
#define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int")
43
#undef WCHAR_TYPE_SIZE
44
#define WCHAR_TYPE_SIZE 32
45
 
46
#undef WINT_TYPE
47
#define WINT_TYPE (TARGET_64BIT ? "int" : "long int")
48
#undef WINT_TYPE_SIZE
49
#define WINT_TYPE_SIZE 32
50
 
51
#define SUBTARGET_OVERRIDE_OPTIONS                              \
52
  do                                                            \
53
    {                                                           \
54
      if (flag_omit_frame_pointer == 2)                         \
55
        flag_omit_frame_pointer = 0;                             \
56
    }                                                           \
57
  while (0)
58
 
59
#undef TARGET_SUBTARGET_DEFAULT
60
#define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP     \
61
                                  | MASK_FLOAT_RETURNS)
62
 
63
#define SUBTARGET_OPTIMIZATION_OPTIONS                  \
64
  do                                                    \
65
    {                                                   \
66
      if (optimize >= 1)                                \
67
        target_flags |= MASK_OMIT_LEAF_FRAME_POINTER;   \
68
    }                                                   \
69
  while (0)
70
 
71
#define MULTILIB_DEFAULTS { "m32" }
72
 
73
#undef LINK_ARCH64_SPEC_BASE
74
#define LINK_ARCH64_SPEC_BASE \
75
  "%{G:-G} \
76
   %{YP,*} \
77
   %{R*} \
78
   %{compat-bsd: \
79
     %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64:/lib/64:/usr/lib/64} \
80
             %{!p:%{!pg:-Y P,/usr/ucblib/64:/lib:/usr/lib/64}}} \
81
             -R /usr/ucblib/64} \
82
   %{!compat-bsd: \
83
     %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
84
             %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
85
 
86
#undef LINK_ARCH64_SPEC
87
#define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
88
 
89
#ifdef TARGET_GNU_LD
90
#define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{!m64:-m elf_i386} "
91
#else
92
#define TARGET_LD_EMULATION ""
93
#endif
94
 
95
#undef LINK_ARCH_SPEC
96
#define LINK_ARCH_SPEC TARGET_LD_EMULATION \
97
                       "%{m64:" LINK_ARCH64_SPEC "}%{!m64:" LINK_ARCH32_SPEC "}"
98
 
99
/* We do not need to search a special directory for startup files.  */
100
#undef MD_STARTFILE_PREFIX
101
 
102
#undef TARGET_ASM_NAMED_SECTION
103
#define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section
104
 
105
/* In 32-bit mode, follow the SVR4 ABI definition; in 64-bit mode, use
106
   the AMD64 ABI definition.  */
107
#undef RETURN_IN_MEMORY
108
#define RETURN_IN_MEMORY(TYPE)                  \
109
  (TARGET_64BIT                                 \
110
   ? ix86_return_in_memory (TYPE)               \
111
   : (TYPE_MODE (TYPE) == BLKmode               \
112
      || (VECTOR_MODE_P (TYPE_MODE (TYPE))      \
113
          && int_size_in_bytes (TYPE) == 8)))

powered by: WebSVN 2.1.0

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