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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [m68k/] [m68kemb.h] - Blame information for rev 310

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

Line No. Rev Author Line
1 38 julius
/* Definitions of target machine for GNU compiler.  "embedded" 68XXX.
2
   This is meant to be included after m68k.h.
3
   Copyright (C) 1994, 1995, 1998, 1999, 2004, 2006
4
   Free Software Foundation, Inc.  */
5
 
6
/* Override the SVR4 ABI for this target.  */
7
 
8
#define PTRDIFF_TYPE "long int"
9
#define SIZE_TYPE "long unsigned int"
10
 
11
/* In order for bitfields to work on a 68000, or with -mnobitfield, we must
12
   define either PCC_BITFIELD_TYPE_MATTERS or STRUCTURE_SIZE_BOUNDARY.
13
   Defining STRUCTURE_SIZE_BOUNDARY results in structure packing problems,
14
   so we define PCC_BITFIELD_TYPE_MATTERS.  */
15
#define PCC_BITFIELD_TYPE_MATTERS 1
16
 
17
/* Undef PCC_STATIC_STRUCT_RETURN so that we get a re-entrant calling
18
   convention.  */
19
#undef PCC_STATIC_STRUCT_RETURN
20
 
21
/* Don't default to pcc-struct-return, so that we can return small structures
22
   and unions in registers, which is slightly more efficient.  */
23
#define DEFAULT_PCC_STRUCT_RETURN 0
24
 
25
#undef FUNCTION_VALUE
26
#define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))
27
 
28
#undef LIBCALL_VALUE
29
#define LIBCALL_VALUE(MODE)                                     \
30
  m68k_libcall_value (MODE)
31
 
32
#undef FUNCTION_VALUE_REGNO_P
33
#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (TARGET_68881 && (N) == 16))
34
 
35
#undef NEEDS_UNTYPED_CALL
36
#define NEEDS_UNTYPED_CALL 1
37
 
38
/* Target OS builtins.  */
39
#define TARGET_OS_CPP_BUILTINS()                \
40
  do                                            \
41
    {                                           \
42
      builtin_define ("__embedded__");          \
43
    }                                           \
44
  while (0)
45
 
46
/* Override the default LIB_SPEC from gcc.c.  We don't currently support
47
   profiling, or libg.a.  */
48
 
49
#undef  LIB_SPEC
50
#define LIB_SPEC "-lc"
51
 
52
/* Make this be null, since we want the crt0.o to come from the linker
53
   script */
54
 
55
#undef  STARTFILE_SPEC
56
#define STARTFILE_SPEC ""

powered by: WebSVN 2.1.0

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