Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
cc825d98
Commit
cc825d98
authored
Oct 31, 2010
by
Richard Henderson
Committed by
Richard Henderson
Oct 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable -mpreferred-stack-boundary options for Windows.
From-SVN: r166120
parent
f81c9774
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
17 deletions
+26
-17
gcc/testsuite/ChangeLog
+9
-0
gcc/testsuite/g++.dg/torture/stackalign/stackalign.exp
+4
-8
gcc/testsuite/gcc.dg/torture/stackalign/stackalign.exp
+4
-7
gcc/testsuite/lib/target-supports.exp
+9
-2
No files found.
gcc/testsuite/ChangeLog
View file @
cc825d98
2010
-
10
-
31
Richard
Henderson
<
rth
@redhat
.
com
>
*
lib
/
target
-
supports
.
exp
(
check_effective_target_automatic_stack_alignment
)
:
True
for
x86
but
not
windows
.
*
g
++
.
dg
/
torture
/
stackalign
/
stackalign
.
exp
:
Use
it
to
protect
use
of
the
preferred
-
stack
-
boundary
arguments
.
*
gcc
.
dg
/
torture
/
stackalign
/
stackalign
.
exp
:
Likewise
.
2010
-
10
-
31
H
.
J
.
Lu
<
hongjiu
.
lu
@intel
.
com
>
PR
target
/
46142
...
...
gcc/testsuite/g++.dg/torture/stackalign/stackalign.exp
View file @
cc825d98
...
...
@@ -18,19 +18,15 @@
# This harness is for tests that should be run at all optimisation levels.
load_lib g++-dg.exp
# Only run on targets which support automatic stack alignment.
if { ![check_effective_target_automatic_stack_alignment] } then {
return
}
dg-init
set additional_flags ""
if { [istarget i?86*-*-*] || [istarget x86_64-*-*] } then {
# If automatic stack alignment is supported, force it on.
if { [check_effective_target_automatic_stack_alignment] } then {
lappend additional_flags "-mstackrealign"
lappend additional_flags "-mpreferred-stack-boundary=5"
}
dg-init
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.C]] $additional_flags
if { [check_effective_target_fpic] } then {
lappend additional_flags "-fpic"
...
...
gcc/testsuite/gcc.dg/torture/stackalign/stackalign.exp
View file @
cc825d98
...
...
@@ -19,15 +19,12 @@
load_lib gcc-dg.exp
# Only run on targets which support automatic stack alignment.
if { ![check_effective_target_automatic_stack_alignment] } then {
return
}
set additional_flags ""
if { [
istarget i?86*-*-*] || [istarget x86_64-*-*
] } then {
if { [
check_effective_target_automatic_stack_alignment
] } then {
lappend additional_flags "-mstackrealign"
lappend additional_flags "-mpreferred-stack-boundary=5"
}
if { [istarget i?86*-*-*] || [istarget x86_64-*-*] } then {
lappend additional_flags "-mno-mmx"
}
...
...
@@ -40,7 +37,7 @@ if { [check_effective_target_fpic] } then {
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] $pic_additional_flags
}
if { [
istarget i?86*-*-*] || [istarget x86_64-*-*
] } then {
if { [
check_effective_target_automatic_stack_alignment
] } then {
lappend additional_flags "-mforce-drap"
gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] $additional_flags
if { [check_effective_target_fpic] } then {
...
...
gcc/testsuite/lib/target-supports.exp
View file @
cc825d98
...
...
@@ -3551,8 +3551,15 @@ proc check_effective_target_4byte_wchar_t { } {
# Return 1 if the target supports automatic stack alignment.
proc check_effective_target_automatic_stack_alignment { } {
# Not "stack alignment" per se, but proper stack alignment of decls.
return 1;
# Ordinarily x86 supports automatic stack alignment ...
if { [istarget i?86*-*-*] || [istarget x86_64-*-*] } then {
if { [istarget *-*-mingw*] || [istarget *-*-cygwin*] } {
# ... except Win64 SEH doesn't. Succeed for Win32 though.
return [check_effective_target_ilp32];
}
return 1;
}
return 0;
}
# Return 1 if avx instructions can be compiled.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment