i386.h (CLEAR_RATIO): Use MIN macro.
authorUros Bizjak <ubizjak@gmail.com>
Fri, 15 Feb 2008 08:12:02 +0000 (09:12 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 15 Feb 2008 08:12:02 +0000 (09:12 +0100)
* config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
(WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
* config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
and STACK_BOUNDARY define.

From-SVN: r132333

gcc/ChangeLog
gcc/config/i386/darwin.h
gcc/config/i386/i386.c
gcc/config/i386/i386.h

index ab1a89bd8d27f604d67aa3bb21ecce91d6ffb9bc..5e03e4998eb978f362dc6167d0caad1353f81a32 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
+       (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
+       * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
+       and STACK_BOUNDARY define.
+
 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
 
        PR preprocessor/35061
index dfaa666a8bfdd5bebf83978cdd86dd2a21e917df..6001f64b42a3ac74d32b8464ff49564cee50e75e 100644 (file)
@@ -81,9 +81,8 @@ along with GCC; see the file COPYING3.  If not see
    than 128 bits for Darwin, but it's easier to up the alignment if
    it's below the minimum.  */
 #undef PREFERRED_STACK_BOUNDARY
-#define PREFERRED_STACK_BOUNDARY (ix86_preferred_stack_boundary > 128  \
-                                 ? ix86_preferred_stack_boundary       \
-                                 : 128)
+#define PREFERRED_STACK_BOUNDARY                       \
+  MAX (STACK_BOUNDARY, ix86_preferred_stack_boundary)
 
 /* We want -fPIC by default, unless we're using -static to compile for
    the kernel or some such.  */
index 1311f8b12a13608070a28cdc1a6a8ee048c7bfef..78d6f10ca9b31b34eb3364e5f400688a9d1724fa 100644 (file)
@@ -21969,7 +21969,7 @@ ix86_register_move_cost (enum machine_mode mode, enum reg_class class1,
        where integer modes in MMX/SSE registers are not tieable
        because of missing QImode and HImode moves to, from or between
        MMX/SSE registers.  */
-    return MAX (ix86_cost->mmxsse_to_integer, 8);
+    return MAX (8, ix86_cost->mmxsse_to_integer);
 
   if (MAYBE_FLOAT_CLASS_P (class1))
     return ix86_cost->fp_move;
index 61e49f45f992ecacb2a0f6fe2f2295d4d3ba4d5e..fedac5643a4a8901a02414d1442b53e7a4c95b3b 100644 (file)
@@ -745,11 +745,6 @@ enum target_cpu_default
   { "cc1_cpu",  CC1_CPU_SPEC },                                                \
   SUBTARGET_EXTRA_SPECS
 \f
-/* target machine storage layout */
-
-#define LONG_DOUBLE_TYPE_SIZE 80
-
-#define WIDEST_HARDWARE_FP_SIZE 80
 
 /* Set the value of FLT_EVAL_METHOD in float.h.  When using only the
    FPU, assume that the fpcw is set to extended precision; when using
@@ -759,12 +754,17 @@ enum target_cpu_default
 #define TARGET_FLT_EVAL_METHOD \
   (TARGET_MIX_SSE_I387 ? -1 : TARGET_SSE_MATH ? 0 : 2)
 
+/* target machine storage layout */
+
 #define SHORT_TYPE_SIZE 16
 #define INT_TYPE_SIZE 32
 #define FLOAT_TYPE_SIZE 32
 #define LONG_TYPE_SIZE BITS_PER_WORD
 #define DOUBLE_TYPE_SIZE 64
 #define LONG_LONG_TYPE_SIZE 64
+#define LONG_DOUBLE_TYPE_SIZE 80
+
+#define WIDEST_HARDWARE_FP_SIZE LONG_DOUBLE_TYPE_SIZE
 
 #if defined (TARGET_BI_ARCH) || TARGET_64BIT_DEFAULT
 #define MAX_BITS_PER_WORD 64
@@ -1782,7 +1782,7 @@ typedef struct ix86_args {
    All other eliminations are valid.  */
 
 #define CAN_ELIMINATE(FROM, TO) \
-  ((TO) == STACK_POINTER_REGNUM ? ! frame_pointer_needed : 1)
+  ((TO) == STACK_POINTER_REGNUM ? !frame_pointer_needed : 1)
 
 /* Define the offset between two registers, one to be eliminated, and the other
    its replacement, at the start of a routine.  */
@@ -1985,8 +1985,7 @@ do {                                                                      \
 /* If a clear memory operation would take CLEAR_RATIO or more simple
    move-instruction sequences, we will do a clrmem or libcall instead.  */
 
-#define CLEAR_RATIO (optimize_size ? 2 \
-                    : ix86_cost->move_ratio > 6 ? 6 : ix86_cost->move_ratio)
+#define CLEAR_RATIO (optimize_size ? 2 : MIN (6, ix86_cost->move_ratio))
 
 /* Define if shifts truncate the shift count
    which implies one can omit a sign-extension or zero-extension