Skip to content

Commit

Permalink
change default optimization to -O2
Browse files Browse the repository at this point in the history
  • Loading branch information
jckarter committed Jan 18, 2012
1 parent b7922bf commit 2e67c0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
0.1 -> 0.2 WIP
==========


Compiler frontend changes:
--------------------------
* -O2 is now the default optimization level.

==========
0.0 -> 0.1
Expand Down
3 changes: 2 additions & 1 deletion compiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ static void usage(char *argv0)
cerr << " -DFLAG[=value] set flag value\n"
<< " (queryable with Flag?() and Flag())\n";
cerr << " -O0 -O1 -O2 -O3 set optimization level\n";
cerr << " (default -O2, or -O0 with -g)\n";
cerr << " -g keep debug symbol information\n";
cerr << " -exceptions enable exception handling\n";
cerr << " -no-exceptions disable exception handling\n";
Expand Down Expand Up @@ -372,7 +373,7 @@ int main2(int argc, char **argv, char const* const* envp) {

bool generateDeps = false;

unsigned optLevel = 3;
unsigned optLevel = 2;
bool optLevelSet = false;

#ifdef __APPLE__
Expand Down

0 comments on commit 2e67c0e

Please sign in to comment.