Lines 161-167
mozconfig_init() {
Link Here
|
161 |
elif [[ ${ARCH} == hppa ]]; then |
161 |
elif [[ ${ARCH} == hppa ]]; then |
162 |
mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0 |
162 |
mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0 |
163 |
elif [[ ${ARCH} == x86 ]]; then |
163 |
elif [[ ${ARCH} == x86 ]]; then |
164 |
mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2 |
164 |
mozconfig_annotate "less than -O2 causes a segfault on x86" --enable-optimize=-O2 |
|
|
165 |
elif [[ ${ARCH} == arm ]] && [[ $(gcc-major-version) -ge 6 ]]; then |
166 |
mozconfig_annotate "less than -O2 causes a breakage on arm with gcc-6" --enable-optimize=-O2 |
165 |
elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then |
167 |
elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then |
166 |
# Set optimization level based on CFLAGS |
168 |
# Set optimization level based on CFLAGS |
167 |
if is-flag -O0; then |
169 |
if is-flag -O0; then |
Lines 215-221
mozconfig_init() {
Link Here
|
215 |
|
217 |
|
216 |
# We need to append flags for gcc-6 support |
218 |
# We need to append flags for gcc-6 support |
217 |
if [[ $(gcc-major-version) -ge 6 ]]; then |
219 |
if [[ $(gcc-major-version) -ge 6 ]]; then |
218 |
append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 |
220 |
append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns -fno-schedule-insns2 |
219 |
fi |
221 |
fi |
220 |
|
222 |
|
221 |
# Use the MOZILLA_FIVE_HOME for the rpath |
223 |
# Use the MOZILLA_FIVE_HOME for the rpath |