blob: f4800b97ef3d45772433548541c18bcdd11c686f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--- configure.orig 2004-02-05 09:34:07 UTC
+++ configure
@@ -19096,24 +19096,30 @@ then
esac
fi
+ if $CC -v 2>&1 | grep clang > /dev/null; then
+ CLANG=yes
+ else
+ CLANG=no
+ fi
+
case "$optimize" in
-O|"-O "*)
optimize="-O"
optimize="$optimize -fforce-mem"
- optimize="$optimize -fforce-addr"
+ test $CLANG = no && optimize="$optimize -fforce-addr"
: #x optimize="$optimize -finline-functions"
: #- optimize="$optimize -fstrength-reduce"
- optimize="$optimize -fthread-jumps"
- optimize="$optimize -fcse-follow-jumps"
- optimize="$optimize -fcse-skip-blocks"
+ test $CLANG = no && optimize="$optimize -fthread-jumps"
+ test $CLANG = no && optimize="$optimize -fcse-follow-jumps"
+ test $CLANG = no && optimize="$optimize -fcse-skip-blocks"
: #x optimize="$optimize -frerun-cse-after-loop"
: #x optimize="$optimize -frerun-loop-opt"
: #x optimize="$optimize -fgcse"
optimize="$optimize -fexpensive-optimizations"
- optimize="$optimize -fregmove"
+ test $CLANG = no && optimize="$optimize -fregmove"
: #* optimize="$optimize -fdelayed-branch"
: #x optimize="$optimize -fschedule-insns"
- optimize="$optimize -fschedule-insns2"
+ test $CLANG = no && optimize="$optimize -fschedule-insns2"
: #? optimize="$optimize -ffunction-sections"
: #? optimize="$optimize -fcaller-saves"
: #> optimize="$optimize -funroll-loops"
|