about summary refs log tree commit diff stats
path: root/build1
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2018-03-22 21:52:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2018-03-22 21:52:35 -0700
commit34514ae8a6635915143e0a7fd1e523eb51b4a91d (patch)
tree1ba0bc4629b2c211967858eee019c8c2d8ac265c /build1
parent6b1bd1ffadac8e6250600501ab9f872530d1da1e (diff)
downloadmu-34514ae8a6635915143e0a7fd1e523eb51b4a91d.tar.gz
4233 - no real difference between -O2 or -O3
Neither in compile time, nor in the performance of the generated code.

(Triggered by https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc)
Diffstat (limited to 'build1')
-rwxr-xr-xbuild12
1 files changed, 1 insertions, 1 deletions
diff --git a/build1 b/build1
index 56336f8c..f138fa15 100755
--- a/build1
+++ b/build1
@@ -12,7 +12,7 @@ set -e  # stop immediately on error
 #   $ CFLAGS=-g ./build1
 test "$CXX" || export CXX=c++
 test "$CC" || export CC=cc
-test "$CFLAGS" || export CFLAGS="-g -O3"
+test "$CFLAGS" || export CFLAGS="-g -O2"
 export CFLAGS="$CFLAGS -Wall -Wextra -ftrapv -fno-strict-aliasing"
 
 # Outline: