Commit 85dbf7e2 by Nathan Sidwell Committed by Richard Sandiford

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
parent 565e35c9
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> 2007-01-18 Richard Sandiford <richard@codesourcery.com>
* config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling. * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
......
...@@ -82,7 +82,7 @@ Boston, MA 02110-1301, USA. */ ...@@ -82,7 +82,7 @@ Boston, MA 02110-1301, USA. */
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC "-m m68kelf %{shared} \ #define LINK_SPEC "-m m68kelf %{shared} \
%{!shared: \ %{!shared: \
%{!static: \ %{!static: \
......
...@@ -1754,7 +1754,7 @@ const_method (rtx constant) ...@@ -1754,7 +1754,7 @@ const_method (rtx constant)
/* The ColdFire doesn't have byte or word operations. */ /* The ColdFire doesn't have byte or word operations. */
/* FIXME: This may not be useful for the m68060 either. */ /* 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 /* 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. */ N^ff will be, so use moveq #N^ff, dreg; not.b dreg. */
......
...@@ -577,13 +577,11 @@ extern enum reg_class regno_reg_class[]; ...@@ -577,13 +577,11 @@ extern enum reg_class regno_reg_class[];
/* Moves between fp regs and other regs are two insns. */ /* Moves between fp regs and other regs are two insns. */
#define REGISTER_MOVE_COST(MODE, CLASS1, CLASS2) \ #define REGISTER_MOVE_COST(MODE, CLASS1, CLASS2) \
(((CLASS1) == FP_REGS && (CLASS2) != FP_REGS) \ ((((CLASS1) == FP_REGS) != ((CLASS2) == FP_REGS)) ? 4 : 2)
|| ((CLASS2) == FP_REGS && (CLASS1) != FP_REGS) \
? 4 : 2)
/* Stack layout; function entry, exit and calling. */ /* Stack layout; function entry, exit and calling. */
#define STACK_GROWS_DOWNWARD #define STACK_GROWS_DOWNWARD 1
#define FRAME_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1
#define STARTING_FRAME_OFFSET 0 #define STARTING_FRAME_OFFSET 0
...@@ -608,14 +606,14 @@ extern enum reg_class regno_reg_class[]; ...@@ -608,14 +606,14 @@ extern enum reg_class regno_reg_class[];
== void_type_node))) \ == void_type_node))) \
? (SIZE) : 0) ? (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) \ #define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx_REG (TYPE_MODE (VALTYPE), 0) 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) #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 FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
/* Define this to be true when FUNCTION_VALUE_REGNO_P is true for /* Define this to be true when FUNCTION_VALUE_REGNO_P is true for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment