200x-xx-xx Nathan Sidwell <nathan@codesourcery.com>
gcc/ 200x-xx-xx Nathan Sidwell <nathan@codesourcery.com> * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition. (STACK_GROWS_DOWNWARD): Define to 1. (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate comments, emphasizing that these values are only defaults. * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef. * config/m68k/m68k.c (const_method): Remove trailing whitespace. From-SVN: r120920
This commit is contained in:
parent
565e35c947
commit
85dbf7e225
4 changed files with 16 additions and 9 deletions
|
@ -1,3 +1,12 @@
|
|||
2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
|
||||
(STACK_GROWS_DOWNWARD): Define to 1.
|
||||
(FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
|
||||
comments, emphasizing that these values are only defaults.
|
||||
* config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
|
||||
* config/m68k/m68k.c (const_method): Remove trailing whitespace.
|
||||
|
||||
2007-01-18 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
* config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
|
||||
|
|
|
@ -82,7 +82,7 @@ Boston, MA 02110-1301, USA. */
|
|||
|
||||
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||
|
||||
#undef LINK_SPEC
|
||||
#undef LINK_SPEC
|
||||
#define LINK_SPEC "-m m68kelf %{shared} \
|
||||
%{!shared: \
|
||||
%{!static: \
|
||||
|
|
|
@ -1754,7 +1754,7 @@ const_method (rtx constant)
|
|||
|
||||
/* The ColdFire doesn't have byte or word operations. */
|
||||
/* FIXME: This may not be useful for the m68060 either. */
|
||||
if (!TARGET_COLDFIRE)
|
||||
if (!TARGET_COLDFIRE)
|
||||
{
|
||||
/* if -256 < N < 256 but N is not in range for a moveq
|
||||
N^ff will be, so use moveq #N^ff, dreg; not.b dreg. */
|
||||
|
|
|
@ -577,13 +577,11 @@ extern enum reg_class regno_reg_class[];
|
|||
|
||||
/* Moves between fp regs and other regs are two insns. */
|
||||
#define REGISTER_MOVE_COST(MODE, CLASS1, CLASS2) \
|
||||
(((CLASS1) == FP_REGS && (CLASS2) != FP_REGS) \
|
||||
|| ((CLASS2) == FP_REGS && (CLASS1) != FP_REGS) \
|
||||
? 4 : 2)
|
||||
((((CLASS1) == FP_REGS) != ((CLASS2) == FP_REGS)) ? 4 : 2)
|
||||
|
||||
/* Stack layout; function entry, exit and calling. */
|
||||
|
||||
#define STACK_GROWS_DOWNWARD
|
||||
#define STACK_GROWS_DOWNWARD 1
|
||||
#define FRAME_GROWS_DOWNWARD 1
|
||||
#define STARTING_FRAME_OFFSET 0
|
||||
|
||||
|
@ -608,14 +606,14 @@ extern enum reg_class regno_reg_class[];
|
|||
== void_type_node))) \
|
||||
? (SIZE) : 0)
|
||||
|
||||
/* On the m68k the return value is always in D0. */
|
||||
/* On the m68k the return value defaults to D0. */
|
||||
#define FUNCTION_VALUE(VALTYPE, FUNC) \
|
||||
gen_rtx_REG (TYPE_MODE (VALTYPE), 0)
|
||||
|
||||
/* On the m68k the return value is always in D0. */
|
||||
/* On the m68k the return value defaults to D0. */
|
||||
#define LIBCALL_VALUE(MODE) gen_rtx_REG (MODE, 0)
|
||||
|
||||
/* On the m68k, D0 is the only register used. */
|
||||
/* On the m68k, D0 is usually the only register used. */
|
||||
#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
|
||||
|
||||
/* Define this to be true when FUNCTION_VALUE_REGNO_P is true for
|
||||
|
|
Loading…
Add table
Reference in a new issue