OSDN Git Service

2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / rtemself.h
1 /* Definitions for Intel 386 running Linux-based GNU systems with ELF format.
2    Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000
3    Free Software Foundation, Inc.
4    Contributed by Eric Youngdale.
5    Modified for stabs-in-ELF by H.J. Lu.
6
7 This file is part of GNU CC.
8
9 GNU CC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 GNU CC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GNU CC; see the file COPYING.  If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.  */
23
24 #define LINUX_DEFAULT_ELF
25
26 #undef TARGET_VERSION
27 #define TARGET_VERSION fprintf (stderr, " (i386 RTEMS with ELF)");
28
29 /* The svr4 ABI for the i386 says that records and unions are returned
30    in memory.  */
31 #undef DEFAULT_PCC_STRUCT_RETURN
32 #define DEFAULT_PCC_STRUCT_RETURN 1
33
34 #undef DBX_REGISTER_NUMBER
35 #define DBX_REGISTER_NUMBER(n)  svr4_dbx_register_map[n]
36
37 /* Output assembler code to FILE to increment profiler label # LABELNO
38    for profiling a function entry.  */
39
40 #undef FUNCTION_PROFILER
41 #define FUNCTION_PROFILER(FILE, LABELNO)  \
42 {                                                                       \
43   if (flag_pic)                                                         \
44     {                                                                   \
45       fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n",              \
46                LPREFIX, (LABELNO));                                     \
47       fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n");                    \
48     }                                                                   \
49   else                                                                  \
50     {                                                                   \
51       fprintf (FILE, "\tmovl $%sP%d,%%edx\n", LPREFIX, (LABELNO));      \
52       fprintf (FILE, "\tcall mcount\n");                                \
53     }                                                                   \
54 }
55
56 #undef SIZE_TYPE
57 #define SIZE_TYPE "unsigned int"
58  
59 #undef PTRDIFF_TYPE
60 #define PTRDIFF_TYPE "int"
61   
62 #undef WCHAR_TYPE
63 #define WCHAR_TYPE "long int"
64    
65 #undef WCHAR_TYPE_SIZE
66 #define WCHAR_TYPE_SIZE BITS_PER_WORD
67     
68 #undef CPP_PREDEFINES
69 #define CPP_PREDEFINES  "-Drtems -D__rtems__ -Asystem=rtems"
70
71 /* A C statement (sans semicolon) to output to the stdio stream
72    FILE the assembler definition of uninitialized global DECL named
73    NAME whose size is SIZE bytes and alignment is ALIGN bytes.
74    Try to use asm_output_aligned_bss to implement this macro.  */
75
76 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
77   asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
78
79 #undef STARTFILE_SPEC
80 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
81
82 #undef ENDFILE_SPEC
83 #define ENDFILE_SPEC   "crtend.o%s crtn.o%s"
84
85 /* end of i386/rtemself.h */