From 35dd7cc326a43e7323effe52421eb237701ee71b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 26 Mar 2008 13:30:18 +0000 Subject: [PATCH] cygming.h (BIGGEST_ALIGNMENT): Removed. 2008-03-26 H.J. Lu * 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. From-SVN: r133605 --- gcc/ChangeLog | 8 ++++++++ gcc/config/i386/cygming.h | 4 ---- gcc/config/i386/i386.c | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1363d397919..3d746b81ad7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2008-03-26 H.J. Lu + + * 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 * Makefile.in (DEPFILES): Add missing '/'. diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 3b18af5ba0f..da6f61980e2 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -327,10 +327,6 @@ do { \ #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 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8ddfa9f183b..e1d5aad6de1 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4599,8 +4599,8 @@ ix86_function_arg_boundary (enum machine_mode mode, tree type) align = PARM_BOUNDARY; } } - if (align > 128) - align = 128; + if (align > BIGGEST_ALIGNMENT) + align = BIGGEST_ALIGNMENT; 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. */ - 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 (); -- 2.30.2