X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Fconfig%2Fm68k%2Fm68kemb.h;h=5d917f91c4ce0355ac5aca8ab348c4c1d2f0987f;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=623a64c521b5650d10552d5e3113cedc10547c68;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/config/m68k/m68kemb.h b/gcc/config/m68k/m68kemb.h index 623a64c5..5d917f91 100644 --- a/gcc/config/m68k/m68kemb.h +++ b/gcc/config/m68k/m68kemb.h @@ -1,6 +1,7 @@ /* Definitions of target machine for GNU compiler. "embedded" 68XXX. This is meant to be included after m68k.h. - Copyright (C) 1994, 1995, 1998, 1999 Free Software Foundation, Inc. */ + Copyright (C) 1994, 1995, 1998, 1999, 2004, 2006 + Free Software Foundation, Inc. */ /* Override the SVR4 ABI for this target. */ @@ -13,37 +14,31 @@ so we define PCC_BITFIELD_TYPE_MATTERS. */ #define PCC_BITFIELD_TYPE_MATTERS 1 -/* Undef PCC_STATIC_STRUCT_RETURN so that we get a re-entrant calling - convention. */ -#undef PCC_STATIC_STRUCT_RETURN - /* Don't default to pcc-struct-return, so that we can return small structures and unions in registers, which is slightly more efficient. */ #define DEFAULT_PCC_STRUCT_RETURN 0 -/* Return floating point values in a fp register. This make fp code a - little bit faster. It also makes -msoft-float code incompatible with - -m68881 code, so people have to be careful not to mix the two. */ #undef FUNCTION_VALUE #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE)) #undef LIBCALL_VALUE #define LIBCALL_VALUE(MODE) \ - gen_rtx_REG ((MODE), \ - ((TARGET_68881 \ - && ((MODE) == SFmode || (MODE) == DFmode \ - || (MODE) == XFmode)) \ - ? 16 : 0)) + m68k_libcall_value (MODE) #undef FUNCTION_VALUE_REGNO_P -#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (TARGET_68881 && (N) == 16)) +#define FUNCTION_VALUE_REGNO_P(N) \ + ((N) == D0_REG || (TARGET_68881 && (N) == FP0_REG)) #undef NEEDS_UNTYPED_CALL #define NEEDS_UNTYPED_CALL 1 -#undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dmc68000 -D__embedded__ -Asystem=embedded \ - -Amachine=mc68000" +/* Target OS builtins. */ +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__embedded__"); \ + } \ + while (0) /* Override the default LIB_SPEC from gcc.c. We don't currently support profiling, or libg.a. */