]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
200x-xx-xx Nathan Sidwell <nathan@codesourcery.com>
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 18 Jan 2007 19:35:11 +0000 (19:35 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 18 Jan 2007 19:35:11 +0000 (19:35 +0000)
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

gcc/ChangeLog
gcc/config/m68k/linux.h
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.h

index 91d9a0c91d34a703622172a470fbf1df501b8b0c..9719e09c818a2a2ad05524c7e4d65baafdcd7597 100644 (file)
@@ -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.
index 897410f383d886bce7b351efb9d628d5f99b1d72..cdb88170dc00081dd4bd6c46773bde2f8ec3287e 100644 (file)
@@ -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: \
index 393aec50989961e6bdf67180b1a669938604ca23..25b8f0cfa2f996a802430bfb13d64bd9d6bfd1d0 100644 (file)
@@ -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.  */
index 382a8bc074e514dd0edda08fa7750cd9611b796f..3d46ee9c37c84acd55e8d0948fd9a64fe11b0aee 100644 (file)
@@ -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)
 \f
 /* 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