Skip to content

Instantly share code, notes, and snippets.

@naota
Created June 16, 2010 05:09
Show Gist options
  • Save naota/440191 to your computer and use it in GitHub Desktop.
Save naota/440191 to your computer and use it in GitHub Desktop.
flags="-fthread-jumps
-falign-functions
-falign-jumps
-falign-loops
-falign-labels
-fcaller-saves
-fcrossjumping
-fcse-follow-jumps
-fcse-skip-blocks
-fdelete-null-pointer-checks
-fexpensive-optimizations
-fgcse
-fgcse-lm
-findirect-inlining
-foptimize-sibling-calls
-fpeephole2
-fregmove
-freorder-blocks
-freorder-functions
-frerun-cse-after-loop
-fsched-interblock
-fsched-spec
-fschedule-insns
-fschedule-insns2
-fstrict-aliasing
-fstrict-overflow
-ftree-switch-conversion
-ftree-pre
-ftree-vrp"
for flag in `echo $flags`; do
echo emerge with ${flag}
CFLAGS="-O1 -ggdb -pipe ${flag}" FEATURES=nostrip =emerge -1q freebsd-lib
gcc -O0 -ggdb mktime.c && ./a.out
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment