Commit ef49d42e by Jan Hubicka Committed by Jan Hubicka

i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.



	* i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.

	* i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
	for -Os/TARGET_64BIT too.

From-SVN: r57399
parent da7d8304
Tue Aug 27 22:26:35 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
Tue Aug 27 20:07:01 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
for -Os/TARGET_64BIT too.
2002-09-21 Kazu Hirata <kazu@cs.umass.edu> 2002-09-21 Kazu Hirata <kazu@cs.umass.edu>
* ChangeLog: Follow spelling conventions. * ChangeLog: Follow spelling conventions.
...@@ -1120,14 +1120,14 @@ override_options () ...@@ -1120,14 +1120,14 @@ override_options ()
don't want additional code to keep the stack aligned when don't want additional code to keep the stack aligned when
optimizing for code size. */ optimizing for code size. */
ix86_preferred_stack_boundary = (optimize_size ix86_preferred_stack_boundary = (optimize_size
? TARGET_64BIT ? 64 : 32 ? TARGET_64BIT ? 128 : 32
: 128); : 128);
if (ix86_preferred_stack_boundary_string) if (ix86_preferred_stack_boundary_string)
{ {
i = atoi (ix86_preferred_stack_boundary_string); i = atoi (ix86_preferred_stack_boundary_string);
if (i < (TARGET_64BIT ? 3 : 2) || i > 12) if (i < (TARGET_64BIT ? 4 : 2) || i > 12)
error ("-mpreferred-stack-boundary=%d is not between %d and 12", i, error ("-mpreferred-stack-boundary=%d is not between %d and 12", i,
TARGET_64BIT ? 3 : 2); TARGET_64BIT ? 4 : 2);
else else
ix86_preferred_stack_boundary = (1 << i) * BITS_PER_UNIT; ix86_preferred_stack_boundary = (1 << i) * BITS_PER_UNIT;
} }
......
...@@ -729,7 +729,11 @@ extern int x86_prefetch_sse; ...@@ -729,7 +729,11 @@ extern int x86_prefetch_sse;
supports no vector modes, cut out the complexity and fall back supports no vector modes, cut out the complexity and fall back
on BIGGEST_FIELD_ALIGNMENT. */ on BIGGEST_FIELD_ALIGNMENT. */
#ifdef IN_TARGET_LIBS #ifdef IN_TARGET_LIBS
#ifdef __x86_64__
#define BIGGEST_FIELD_ALIGNMENT 128
#else
#define BIGGEST_FIELD_ALIGNMENT 32 #define BIGGEST_FIELD_ALIGNMENT 32
#endif
#else #else
#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \ #define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
x86_field_alignment (FIELD, COMPUTED) x86_field_alignment (FIELD, COMPUTED)
......
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