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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Definitions for LynxOS on i386.
2
   Copyright (C) 1993, 1995, 1996, 2002, 2004, 2005, 2007
3
   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 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
#define TARGET_VERSION fputs (" (i386/LynxOS)", stderr);
22
 
23
#define TARGET_OS_CPP_BUILTINS()                \
24
  do                                            \
25
    {                                           \
26
      builtin_define ("__LITTLE_ENDIAN__");     \
27
      builtin_define ("__x86__");               \
28
    }                                           \
29
  while (0)
30
 
31
/* The svr4 ABI for the i386 says that records and unions are returned
32
   in memory.  */
33
 
34
#define DEFAULT_PCC_STRUCT_RETURN 1
35
 
36
/* BSS_SECTION_ASM_OP gets defined i386/unix.h.  */
37
 
38
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
39
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
40
 
41
/* LynxOS's GDB counts the floating point registers from 16.  */
42
 
43
#undef DBX_REGISTER_NUMBER
44
#define DBX_REGISTER_NUMBER(n)                                          \
45
  (TARGET_64BIT ? dbx64_register_map[n]                                 \
46
   : (n) == 0 ? 0                                                 \
47
   : (n) == 1 ? 2                                                       \
48
   : (n) == 2 ? 1                                                       \
49
   : (n) == 3 ? 3                                                       \
50
   : (n) == 4 ? 6                                                       \
51
   : (n) == 5 ? 7                                                       \
52
   : (n) == 6 ? 5                                                       \
53
   : (n) == 7 ? 4                                                       \
54
   : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n) + 8        \
55
   : (-1))
56
 
57
/* A C statement to output to the stdio stream FILE an assembler
58
   command to advance the location counter to a multiple of 1<<LOG
59
   bytes if it is within MAX_SKIP bytes.
60
 
61
   This is used to align code labels according to Intel recommendations.  */
62
 
63
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
64
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP)                    \
65
  do {                                                                  \
66
    if ((LOG) != 0) {                                                    \
67
      if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));   \
68
      else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));  \
69
    }                                                                   \
70
  } while (0)
71
#endif
72
 
73
/* Undefine SUBTARGET_EXTRA_SPECS it is empty anyway.  We define it in
74
   config/lynx.h.  */
75
 
76
#undef SUBTARGET_EXTRA_SPECS
77
 
78
/* Undefine the definition from att.h to enable our default.  */
79
 
80
#undef ASM_OUTPUT_ALIGN
81
 
82
/* Undefine the definition from elfos.h to enable our default.  */
83
 
84
#undef PREFERRED_DEBUGGING_TYPE
85
 
86
/* The file i386.c defines TARGET_HAVE_TLS unconditionally if
87
   HAVE_AS_TLS is defined.  HAVE_AS_TLS is defined as gas support for
88
   TLS is detected by configure.  We undefine it here.  */
89
 
90
#undef HAVE_AS_TLS

powered by: WebSVN 2.1.0

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