Created
June 16, 2010 05:09
-
-
Save naota/440191 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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