Changeset 94e0864d for src/driver
- Timestamp:
- Jun 24, 2015, 4:12:31 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 1869adf
- Parents:
- 94b4364 (diff), de62360d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/driver/cfa.cc
r94b4364 r94e0864d 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat May 30 10:15:00201513 // Update Count : 11 612 // Last Modified On : Tue Jun 23 17:47:03 2015 13 // Update Count : 119 14 14 // 15 15 … … 85 85 bool CFA_flag = false; // -CFA flag 86 86 bool cpp_flag = false; // -E or -M flag, preprocessor only 87 bool std_flag = false; // -std= flag 87 88 bool debugging = false; // -g flag 88 89 … … 152 153 } // if 153 154 154 // C ++specific arguments155 // C specific arguments 155 156 156 157 } else if ( arg == "-v" ) { … … 160 161 } else if ( arg == "-g" ) { 161 162 debugging = true; // symbolic debugging required 163 args[nargs] = argv[i]; // pass the argument along 164 nargs += 1; 165 } else if ( prefix( arg, "-std=" ) ) { 166 std_flag = true; // std=XX provided 162 167 args[nargs] = argv[i]; // pass the argument along 163 168 nargs += 1; … … 296 301 args[nargs] = "-Wno-deprecated"; 297 302 nargs += 1; 298 args[nargs] = "-std=c99"; 299 nargs += 1; 303 if ( ! std_flag ) { // default c99, if none specified 304 args[nargs] = "-std=c99"; 305 nargs += 1; 306 } // if 300 307 args[nargs] = ( *new string( string("-B") + Bprefix + "/" ) ).c_str(); 301 308 nargs += 1;
Note: See TracChangeset
for help on using the changeset viewer.