View | Details | Raw Unified | Return to bug 41156 | Differences between
and this patch

Collapse All | Expand All | Context: (Patch / File /
)

(-)a/gcc/config/i386/i386.h (-1 / +3 lines)
 Lines 682-688   enum target_cpu_default Link Here 
682
   need a 16-byte aligned stack, as required by SSE instructions.  If
682
   need a 16-byte aligned stack, as required by SSE instructions.  If
683
   STACK_REALIGN_DEFAULT is 1 and PREFERRED_STACK_BOUNDARY_DEFAULT is
683
   STACK_REALIGN_DEFAULT is 1 and PREFERRED_STACK_BOUNDARY_DEFAULT is
684
   128, stacks for all functions may be realigned.  */
684
   128, stacks for all functions may be realigned.  */
685
#define STACK_REALIGN_DEFAULT 0
685
/* "misalignsse" feature found near SSE4a, this way is simpiest */
686
#define STACK_REALIGN_DEFAULT \
687
	((TARGET_SSE && !TARGET_SSE4A && !TARGET_64BIT) ? 1 : 0)
686
688
687
/* Boundary (in *bits*) on which the incoming stack is aligned.  */
689
/* Boundary (in *bits*) on which the incoming stack is aligned.  */
688
#define INCOMING_STACK_BOUNDARY ix86_incoming_stack_boundary
690
#define INCOMING_STACK_BOUNDARY ix86_incoming_stack_boundary
(-)a/gcc/config/i386/t-i386 (+2 lines)
 Lines 11-13   i386-c.o: $(srcdir)/config/i386/i386-c.c Link Here 
11
  $(TM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(FLAGS_H) $(C_COMMON_H) $(GGC_H) \
11
  $(TM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(FLAGS_H) $(C_COMMON_H) $(GGC_H) \
12
  $(TARGET_H) $(TARGET_DEF_H) $(CPPLIB_H) $(C_PRAGMA_H)
12
  $(TARGET_H) $(TARGET_DEF_H) $(CPPLIB_H) $(C_PRAGMA_H)
13
	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/i386-c.c
13
	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/i386-c.c
14
15
TARGET_LIBGCC2_CFLAGS += -mno-stackrealign
(-)a/gcc/doc/invoke.texi (+1 lines)
 Lines 11252-11257   runtime stack if necessary. This suppor Link Here 
11252
a 4-byte aligned stack with modern codes that keep a 16-byte stack for
11252
a 4-byte aligned stack with modern codes that keep a 16-byte stack for
11253
SSE compatibility.  See also the attribute @code{force_align_arg_pointer},
11253
SSE compatibility.  See also the attribute @code{force_align_arg_pointer},
11254
applicable to individual functions.
11254
applicable to individual functions.
11255
It is enabled by default at SSE and !SSE4a on 32bit.
11255
11256
11256
@item -mpreferred-stack-boundary=@var{num}
11257
@item -mpreferred-stack-boundary=@var{num}
11257
@opindex mpreferred-stack-boundary
11258
@opindex mpreferred-stack-boundary

Return to bug 41156