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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [i386/] [sol2-bi.h] - Blame information for rev 801

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions of target machine for GCC, for bi-arch Solaris 2/x86.
2
   Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2011
3
   Free Software Foundation, Inc.
4
   Contributed by CodeSourcery, LLC.
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 3, or (at your option)
11
any later version.
12
 
13
GCC is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.  */
21
 
22
/* Override i386/sol2.h version: return 8-byte vectors in MMX registers if
23
   possible, matching Sun Studio 12 Update 1+ compilers and other x86
24
   targets.  */
25
#undef TARGET_SUBTARGET_DEFAULT
26
#define TARGET_SUBTARGET_DEFAULT \
27
        (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS)
28
 
29
#define SUBTARGET_OPTIMIZATION_OPTIONS                          \
30
  { OPT_LEVELS_1_PLUS, OPT_momit_leaf_frame_pointer, NULL, 1 }
31
 
32
/* GNU as understands --32 and --64, but the native Solaris
33
   assembler requires -xarch=generic or -xarch=generic64 instead.  */
34
#ifdef USE_GAS
35
#define ASM_CPU32_DEFAULT_SPEC "--32"
36
#define ASM_CPU64_DEFAULT_SPEC "--64"
37
#else
38
#define ASM_CPU32_DEFAULT_SPEC "-xarch=generic"
39
#define ASM_CPU64_DEFAULT_SPEC "-xarch=generic64"
40
#endif
41
 
42
#undef ASM_CPU_SPEC
43
#define ASM_CPU_SPEC "%(asm_cpu_default)"
44
 
45
/* Don't let i386/x86-64.h override i386/sol2.h version.  Still cannot use
46
   -K PIC with the Solaris 10+ assembler, it gives many warnings:
47
        Absolute relocation is used for symbol "<symbol>"  */
48
#undef ASM_SPEC
49
#define ASM_SPEC ASM_SPEC_BASE
50
 
51
/* We do not need to search a special directory for startup files.  */
52
#undef MD_STARTFILE_PREFIX
53
 
54
#define DEFAULT_ARCH32_P !TARGET_64BIT_DEFAULT
55
 
56
#define ARCH64_SUBDIR "amd64"
57
 
58
#ifdef USE_GLD
59
/* Since binutils 2.21, GNU ld supports new *_sol2 emulations to strictly
60
   follow the Solaris 2 ABI.  Prefer them if present.  */
61
#ifdef HAVE_LD_SOL2_EMULATION
62
#define ARCH32_EMULATION "elf_i386_sol2"
63
#define ARCH64_EMULATION "elf_x86_64_sol2"
64
#else
65
#define ARCH32_EMULATION "elf_i386"
66
#define ARCH64_EMULATION "elf_x86_64"
67
#endif
68
#endif
69
 
70
#undef ASM_COMMENT_START
71
#define ASM_COMMENT_START "/"
72
 
73
/* The native Solaris assembler can't calculate the difference between
74
   symbols in different sections, which causes problems for -fPIC jump
75
   tables in .rodata.  */
76
#ifndef HAVE_AS_IX86_DIFF_SECT_DELTA
77
#undef JUMP_TABLES_IN_TEXT_SECTION
78
#define JUMP_TABLES_IN_TEXT_SECTION 1
79
 
80
/* The native Solaris assembler cannot handle the SYMBOL-. syntax, but
81
   requires SYMBOL@rel/@rel64 instead.  */
82
#define ASM_OUTPUT_DWARF_PCREL(FILE, SIZE, LABEL)       \
83
  do {                                                  \
84
    fputs (integer_asm_op (SIZE, FALSE), FILE);         \
85
    assemble_name (FILE, LABEL);                        \
86
    fputs (SIZE == 8 ? "@rel64" : "@rel", FILE);        \
87
  } while (0)
88
#endif
89
 
90
/* As in sol2.h, override the default from i386/x86-64.h to work around
91
   Sun as TLS bug.  */
92
#undef  ASM_OUTPUT_ALIGNED_COMMON
93
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN)              \
94
  do                                                                    \
95
    {                                                                   \
96
      if (TARGET_SUN_TLS                                                \
97
          && in_section                                                 \
98
          && ((in_section->common.flags & SECTION_TLS) == SECTION_TLS)) \
99
        switch_to_section (bss_section);                                \
100
      x86_elf_aligned_common (FILE, NAME, SIZE, ALIGN);                 \
101
    }                                                                   \
102
  while  (0)
103
 
104
#define USE_IX86_FRAME_POINTER 1
105
#define USE_X86_64_FRAME_POINTER 1
106
 
107
#undef NO_PROFILE_COUNTERS
108
 
109
#undef MCOUNT_NAME
110
#define MCOUNT_NAME "_mcount"

powered by: WebSVN 2.1.0

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