Skip to content

Commit 33bb9c4

Browse files
committed
update cflags
1 parent 0e59402 commit 33bb9c4

13 files changed

+19
-20
lines changed

arm.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929

3030
export PATH=$CUR/out/bin:$PATH
3131

32-
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/local/include @$CUR/gccflags -ffunction-sections -fdata-sections -flto-compression-level=1 -flto=2 -frandom-seed=1"
32+
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/local/include @$CUR/gccflags -flto-compression-level=1 -flto=2 -frandom-seed=1"
3333
export CXXFLAGS="$CFLAGS"
3434
export LDFLAGS="-L/usr/local/lib @$CUR/ldflags"
3535
export AR="gcc-ar"
@@ -58,9 +58,9 @@ ln -s . out/$TARGET/usr
5858

5959
cd m_gcc; mkdir build; cd build
6060

61-
export CFLAGS_FOR_TARGET="@$CUR/gccflagsma -ffunction-sections -fdata-sections"
61+
export CFLAGS_FOR_TARGET="@$CUR/gccflagsa -ffunction-sections -fdata-sections"
6262
export CXXFLAGS_FOR_TARGET="-fdeclone-ctor-dtor $CFLAGS_FOR_TARGET"
63-
export LDFLAGS_FOR_TARGET="@$CUR/ldflagsma"
63+
export LDFLAGS_FOR_TARGET="@$CUR/ldflagsa"
6464

6565
echo current utc time 3 is $(date -u)
6666

gccflags

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-O3 -g1 -fgraphite -fgraphite-identity -fipa-pta -flimit-function-alignment -flive-range-shrinkage -fsched-pressure -fsched-spec-load -fsched-stalled-insns=5 -fsched-stalled-insns-dep=8 -fgcse-las -fgcse-sm -fira-region=mixed -fschedule-insns -ftree-lrs -falign-labels=8:6:4 -falign-functions=24 -falign-jumps=16:13:8 -falign-loops=16:13:8 -fmin-function-alignment=8 -malign-data=cacheline -momit-leaf-frame-pointer -mrelax-cmpxchg-loop -march=ivybridge -mtune=broadwell --param=lto-partitions=36 --param=lto-min-partition=11600 --param=lto-max-partition=560000
1+
-O3 -g1 -D__1ENABLE_AGGRESSIVE_GRAPHITE9__ -flimit-function-alignment -fgcse-las -fgcse-sm -falign-labels=8:6:4 -falign-functions=24 -falign-jumps=16:13:8 -falign-loops=16:13:8 -fmin-function-alignment=8

gccflagsa

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-O3 -g1 -D__1ENABLE_AGGRESSIVE_GRAPHITE9__

gccflagsm

-1
This file was deleted.

gccflagsma

-1
This file was deleted.

ldflags

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-fuse-ld=gold -Wl,-O3,--relax,--icf=safe,--gc-sections,--sort-common=descending,--sort-section=name
1+
-Wl,-O3,--relax

ldflagsa

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Wl,-O3

ldflagsma

-1
This file was deleted.

mingw64-ms2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ cp -a mingw-crt/ucrt64/. out/x86_64-w64-mingw32/
3838
cd m_gcc; mkdir build; cd build
3939

4040
export lt_cv_deplibs_check_method='pass_all'
41-
export CPPFLAGS_FOR_TARGET="-DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H @$CUR/gccflagsm @$CUR/gccparam"
41+
export CPPFLAGS_FOR_TARGET="-DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H @$CUR/gccflags"
4242
export LDFLAGS_FOR_TARGET="@$CUR/ldflagsm"
43-
export CFLAGS_FOR_TARGET="-O3 -g1"
43+
export CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections"
4444
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET"
4545

4646
echo current utc time 3 is $(date -u)

mingw64-n.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export PATH=$CUR/x86_64-w64-mingw32-boot/bin:$PATH
1717
tar --bzip -xf gcc-dep.tb2
1818
rm gcc-dep.tb2
1919

20-
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -march=ivybridge -mtune=broadwell @$CUR/gccflags @$CUR/gccparam"
20+
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 @$CUR/gccflags"
2121
export CXXFLAGS="$CFLAGS"
2222
export LDFLAGS="-L$CUR/gcc-dep/lib @$CUR/ldflagsm"
2323
export CPPFLAGS="-I$CUR/gcc-dep/include"
@@ -51,9 +51,9 @@ cd $CUR
5151
cd m_gcc; mkdir build; cd build
5252

5353
export lt_cv_deplibs_check_method='pass_all'
54-
export CPPFLAGS_FOR_TARGET="-DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H @$CUR/gccflagsm @$CUR/gccparam"
54+
export CPPFLAGS_FOR_TARGET="-DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H @$CUR/gccflags"
5555
export LDFLAGS_FOR_TARGET="@$CUR/ldflagsm"
56-
export CFLAGS_FOR_TARGET="-O3 -g1"
56+
export CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections"
5757
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET"
5858

5959
echo current utc time 3 is $(date -u)

mingw64.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222

2323
export PATH=$CUR/out/bin:$PATH
2424

25-
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/local/include @$CUR/gccflags @$CUR/gccparam -flto-compression-level=7 -flto=2 -frandom-seed=1"
25+
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/local/include @$CUR/gccflags -flto-compression-level=1 -flto=2 -frandom-seed=1"
2626
export CXXFLAGS="$CFLAGS"
2727
export LDFLAGS="-L/usr/local/lib @$CUR/ldflags"
2828
export AR="gcc-ar"
@@ -63,9 +63,9 @@ fi
6363
cd m_gcc; mkdir build; cd build
6464

6565
export lt_cv_deplibs_check_method='pass_all'
66-
export CPPFLAGS_FOR_TARGET="-DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H @$CUR/gccflagsm @$CUR/gccparam"
66+
export CPPFLAGS_FOR_TARGET="-DWIN32_LEAN_AND_MEAN -DCOM_NO_WINDOWS_H @$CUR/gccflags"
6767
export LDFLAGS_FOR_TARGET="@$CUR/ldflagsm"
68-
export CFLAGS_FOR_TARGET="-O3 -g1"
68+
export CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections"
6969
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET"
7070

7171
echo current utc time 3 is $(date -u)

musl.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ if [ "x$(which ccache)" != "x" ]; then
1111
export CC="ccache gcc" CXX="ccache g++"
1212
fi
1313

14-
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -flto-compression-level=7 -fprofile-partial-training -flto=2 -frandom-seed=1 -I/usr/local/include @$CUR/gccflags @$CUR/gccparam -Wno-error=maybe-uninitialized"
14+
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -flto-compression-level=1 -fprofile-partial-training -flto=2 -frandom-seed=1 -I/usr/local/include @$CUR/gccflags -Wno-error=maybe-uninitialized"
1515
export CXXFLAGS="$CFLAGS"
1616
export LDFLAGS="-L/usr/local/lib @$CUR/ldflags"
1717

18-
export CFLAGS_FOR_TARGET="-DPIC -fPIC -O3 -g1 -fgraphite -fgraphite-identity -flive-range-shrinkage -fsched-pressure -fsched-spec-load -fsched-stalled-insns=10 -fsched-stalled-insns-dep=24 -fgcse-las -fgcse-sm -fira-region=mixed -fschedule-insns -ftree-lrs -falign-labels=8:6:4 -flimit-function-alignment -falign-functions=24 -falign-jumps=16:13:8 -falign-loops=16:13:8 -fmin-function-alignment=8 -malign-data=cacheline -mrelax-cmpxchg-loop -ffunction-sections -fdata-sections -march=ivybridge -mtune=broadwell @$CUR/gccparam -Wno-error=maybe-uninitialized"
18+
export CFLAGS_FOR_TARGET="-DPIC -fPIC -ffunction-sections -fdata-sections @$CUR/gccflags -Wno-error=maybe-uninitialized"
1919
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET"
2020

2121
#export PATH=$CUR/out/bin:$PATH

native.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ if [ "x$(which ccache)" != "x" ]; then
1111
export CC="ccache gcc" CXX="ccache g++"
1212
fi
1313

14-
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -flto-compression-level=7 -fprofile-partial-training -I/usr/local/include @$CUR/gccflags @$CUR/gccparam -Wno-error=maybe-uninitialized"
14+
export CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -flto-compression-level=1 -fprofile-partial-training -I/usr/local/include @$CUR/gccflags -Wno-error=maybe-uninitialized"
1515
export CXXFLAGS="$CFLAGS"
1616
export LDFLAGS="-L/usr/local/lib @$CUR/ldflags"
1717

18-
export CFLAGS_FOR_TARGET="-DPIC -fPIC -O3 -g1 -fgraphite -fgraphite-identity -flimit-function-alignment -flive-range-shrinkage -fsched-pressure -fsched-spec-load -fsched-stalled-insns=5 -fsched-stalled-insns-dep=8 -fgcse-las -fgcse-sm -fira-region=mixed -fschedule-insns -ftree-lrs -falign-labels=8:6:4 -falign-functions=24 -falign-jumps=16:13:8 -falign-loops=16:13:8 -fmin-function-alignment=8 -malign-data=cacheline -mrelax-cmpxchg-loop -ffunction-sections -fdata-sections @$CUR/gccparam -Wno-error=maybe-uninitialized"
18+
export CFLAGS_FOR_TARGET="-DPIC -fPIC -ffunction-sections -fdata-sections @$CUR/gccflags -Wno-error=maybe-uninitialized"
1919
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET"
2020

2121
export PATH=$CUR/out/bin:$PATH

0 commit comments

Comments
 (0)