Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
1e27313c
Commit
1e27313c
authored
Aug 04, 2017
by
Henrik Gramner
Committed by
Anton Mitrofanov
Dec 24, 2017
Browse files
configure: Increase x86 stack alignment on clang
parent
e9a5903e
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure
View file @
1e27313c
...
...
@@ -866,12 +866,17 @@ if [ $compiler = GNU -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then
if
cc_check
''
-mpreferred-stack-boundary
=
6
;
then
CFLAGS
=
"
$CFLAGS
-mpreferred-stack-boundary=6"
stack_alignment
=
64
elif
cc_check
''
-mpreferred-stack-boundary
=
5
;
then
CFLAGS
=
"
$CFLAGS
-mpreferred-stack-boundary=5"
stack_alignment
=
32
elif
[
$stack_alignment
-lt
16
]
&&
cc_check
''
-mpreferred-stack-boundary
=
4
;
then
CFLAGS
=
"
$CFLAGS
-mpreferred-stack-boundary=4"
stack_alignment
=
16
elif
cc_check
''
-mstack-alignment
=
64
;
then
CFLAGS
=
"
$CFLAGS
-mstack-alignment=64"
stack_alignment
=
64
elif
[
$stack_alignment
-lt
16
]
;
then
if
cc_check
''
-mpreferred-stack-boundary
=
4
;
then
CFLAGS
=
"
$CFLAGS
-mpreferred-stack-boundary=4"
stack_alignment
=
16
elif
cc_check
''
-mstack-alignment
=
16
;
then
CFLAGS
=
"
$CFLAGS
-mstack-alignment=16"
stack_alignment
=
16
fi
fi
elif
[
$compiler
=
ICC
-a
$ARCH
=
X86
]
;
then
# icc on linux has various degrees of mod16 stack support
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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