Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 270120 | Differences between
and this patch

Collapse All | Expand All

(-)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
/* FIXME: I have no installed 3DNOW cpu to test */
686
#define STACK_REALIGN_DEFAULT \
687
	(((TARGET_SSE || TARGET_3DNOW) && !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 (+6 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
16
17
# try if segfault to disable sse in gcc libs
18
#TARGET_LIBGCC2_CFLAGS += -mno-sse -mno-3dnow
19
(-)a/gcc/doc/g++.1 (+1 lines)
Lines 10346-10351 runtime stack if necessary. This suppor Link Here
10346
a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
10346
a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
10347
\&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
10347
\&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
10348
applicable to individual functions.
10348
applicable to individual functions.
10349
It is enabled by default at SSE on 32bit.
10349
.IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
10350
.IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
10350
.IX Item "-mpreferred-stack-boundary=num"
10351
.IX Item "-mpreferred-stack-boundary=num"
10351
Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
10352
Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
(-)a/gcc/doc/gcc.1 (+1 lines)
Lines 10346-10351 runtime stack if necessary. This suppor Link Here
10346
a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
10346
a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
10347
\&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
10347
\&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
10348
applicable to individual functions.
10348
applicable to individual functions.
10349
It is enabled by default at SSE on 32bit.
10349
.IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
10350
.IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
10350
.IX Item "-mpreferred-stack-boundary=num"
10351
.IX Item "-mpreferred-stack-boundary=num"
10351
Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
10352
Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR

Return to bug 270120