comparison gen/linker.cpp @ 1171:461a85f0db31

Change meaning of optimization levels: -O0 now means 'no optimization' like with other compilers.
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 29 Mar 2009 15:51:14 +0200
parents e40c65bd8c5d
children 847b767b2d0b
comparison
equal deleted inserted replaced
1170:e40c65bd8c5d 1171:461a85f0db31
119 const char* s = 0; 119 const char* s = 0;
120 switch(optLevel()) 120 switch(optLevel())
121 { 121 {
122 case 0: 122 case 0:
123 args.push_back("-disable-opt"); 123 args.push_back("-disable-opt");
124 args.push_back("-globaldce");
125 break; 124 break;
126 case 1: 125 case 1:
126 args.push_back("-globaldce");
127 args.push_back("-disable-opt"); 127 args.push_back("-disable-opt");
128 args.push_back("-globaldce"); 128 args.push_back("-globaldce");
129 args.push_back("-mem2reg"); 129 args.push_back("-mem2reg");
130 case 2: 130 case 2:
131 case 3: 131 case 3: