OSDN Git Service

2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 13:30:18 +0000 (13:30 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 13:30:18 +0000 (13:30 +0000)
* config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.

* config/i386/i386.c (ix86_function_arg_boundary): Check
BIGGEST_ALIGNMENT instead of 128.
(setup_incoming_varargs_64): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133605 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1363d39..3d746b8 100644 (file)
@@ -1,3 +1,11 @@
+2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
+
+       * config/i386/i386.c (ix86_function_arg_boundary): Check
+       BIGGEST_ALIGNMENT instead of 128.
+       (setup_incoming_varargs_64): Likewise.
+
 2008-03-26  Tom Tromey  <tromey@redhat.com>
 
        * Makefile.in (DEPFILES): Add missing '/'.
 2008-03-26  Tom Tromey  <tromey@redhat.com>
 
        * Makefile.in (DEPFILES): Add missing '/'.
index 3b18af5..da6f619 100644 (file)
@@ -327,10 +327,6 @@ do {                                               \
 #undef MS_AGGREGATE_RETURN
 #define MS_AGGREGATE_RETURN 1
 
 #undef MS_AGGREGATE_RETURN
 #define MS_AGGREGATE_RETURN 1
 
-/* No data type wants to be aligned rounder than this.  */
-#undef BIGGEST_ALIGNMENT
-#define BIGGEST_ALIGNMENT 128
-
 /* Biggest alignment supported by the object file format of this
    machine.  Use this macro to limit the alignment which can be
    specified using the `__attribute__ ((aligned (N)))' construct.  If
 /* Biggest alignment supported by the object file format of this
    machine.  Use this macro to limit the alignment which can be
    specified using the `__attribute__ ((aligned (N)))' construct.  If
index 8ddfa9f..e1d5aad 100644 (file)
@@ -4599,8 +4599,8 @@ ix86_function_arg_boundary (enum machine_mode mode, tree type)
            align = PARM_BOUNDARY;
        }
     }
            align = PARM_BOUNDARY;
        }
     }
-  if (align > 128)
-    align = 128;
+  if (align > BIGGEST_ALIGNMENT)
+    align = BIGGEST_ALIGNMENT;
   return align;
 }
 
   return align;
 }
 
@@ -4997,8 +4997,8 @@ setup_incoming_varargs_64 (CUMULATIVE_ARGS *cum)
 
      We also may end up assuming that only 64bit values are stored in SSE
      register let some floating point program work.  */
 
      We also may end up assuming that only 64bit values are stored in SSE
      register let some floating point program work.  */
-  if (ix86_preferred_stack_boundary >= 128)
-    cfun->stack_alignment_needed = 128;
+  if (ix86_preferred_stack_boundary >= BIGGEST_ALIGNMENT)
+    cfun->stack_alignment_needed = BIGGEST_ALIGNMENT;
 
   save_area = frame_pointer_rtx;
   set = get_varargs_alias_set ();
 
   save_area = frame_pointer_rtx;
   set = get_varargs_alias_set ();