Changes in / [6adeb5f:a085470]
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r6adeb5f ra085470 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 10 21:16:00202313 // Update Count : 47 612 // Last Modified On : Tue Feb 14 22:46:38 2023 13 // Update Count : 470 14 14 // 15 15 … … 198 198 } // if 199 199 } else if ( arg == "-CFA" ) { 200 CFA_flag = true; // strip -CFA flag200 CFA_flag = true; // strip the -CFA flag 201 201 link = false; 202 202 args[nargs++] = "-fsyntax-only"; // stop after stage 2 203 203 } else if ( arg == "-debug" ) { 204 debug = true; // strip debug flag204 debug = true; // strip the debug flag 205 205 } else if ( arg == "-nodebug" ) { 206 debug = false; // strip nodebug flag206 debug = false; // strip the nodebug flag 207 207 } else if ( arg == "-quiet" ) { 208 quiet = true; // strip quiet flag208 quiet = true; // strip the quiet flag 209 209 } else if ( arg == "-noquiet" ) { 210 quiet = false; // strip noquiet flag 211 } else if ( arg == "-invariant" ) { 212 Putenv( argv, "-" + arg ); 213 } else if ( arg == "--invariant" ) { 214 Putenv( argv, arg ); 210 quiet = false; // strip the noquiet flag 215 211 } else if ( arg == "-no-include-stdhdr" ) { 216 noincstd_flag = true; // strip no-include-stdhdr flag212 noincstd_flag = true; // strip the no-include-stdhdr flag 217 213 } else if ( arg == "-nolib" ) { 218 nolib = true; // strip nolib flag214 nolib = true; // strip the nolib flag 219 215 } else if ( arg == "-help" ) { 220 help = true; // strip help flag216 help = true; // strip the help flag 221 217 } else if ( arg == "-nohelp" ) { 222 help = false; // strip nohelp flag218 help = false; // strip the nohelp flag 223 219 } else if ( arg == "-cfalib") { 224 220 compiling_libs = true; … … 278 274 } // if 279 275 } else if ( prefix( arg, "-B" ) ) { 280 bprefix = arg.substr(2); // strip -B flag276 bprefix = arg.substr(2); // strip the -B flag 281 277 } else if ( arg == "-c" || arg == "-S" || arg == "-E" || arg == "-M" || arg == "-MM" ) { 282 278 args[nargs++] = argv[i]; // pass flag along -
src/CompilationState.cc
r6adeb5f ra085470 9 9 // Author : Rob Schluntz 10 10 // Created On : Mon Ju1 30 10:47:01 2018 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Apr 10 19:12:50 202313 // Update Count : 611 // Last Modified By : Henry Xue 12 // Last Modified On : Tue Jul 20 04:27:35 2021 13 // Update Count : 5 14 14 // 15 15 … … 27 27 expraltp = false, 28 28 genericsp = false, 29 invariant = false,30 29 libcfap = false, 31 30 nopreludep = false, -
src/CompilationState.h
r6adeb5f ra085470 9 9 // Author : Rob Schluntz 10 10 // Created On : Mon Ju1 30 10:47:01 2018 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Apr 10 19:12:53 202313 // Update Count : 611 // Last Modified By : Henry Xue 12 // Last Modified On : Tue Jul 20 04:27:35 2021 13 // Update Count : 5 14 14 // 15 15 … … 26 26 expraltp, 27 27 genericsp, 28 invariant,29 28 libcfap, 30 29 nopreludep, -
src/main.cc
r6adeb5f ra085470 9 9 // Author : Peter Buhr and Rob Schluntz 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Apr 10 21:12:17202313 // Update Count : 68 211 // Last Modified By : Andrew Beach 12 // Last Modified On : Thr Feb 16 10:08:00 2023 13 // Update Count : 680 14 14 // 15 15 … … 504 504 505 505 506 static const char optstring[] = ":c:gh ilLmNnpdP:S:twW:D:";506 static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:"; 507 507 508 508 enum { PreludeDir = 128 }; … … 511 511 { "gdb", no_argument, nullptr, 'g' }, 512 512 { "help", no_argument, nullptr, 'h' }, 513 { "invariant", no_argument, nullptr, 'i' },514 513 { "libcfa", no_argument, nullptr, 'l' }, 515 514 { "linemarks", no_argument, nullptr, 'L' }, 516 { "no-main", no_argument, nullptr, 'm' },515 { "no-main", no_argument, 0, 'm' }, 517 516 { "no-linemarks", no_argument, nullptr, 'N' }, 518 517 { "no-prelude", no_argument, nullptr, 'n' }, … … 533 532 "wait for gdb to attach", // -g 534 533 "print translator help message", // -h 535 "invariant checking during AST passes", // -i536 534 "generate libcfa.c", // -l 537 535 "generate line marks", // -L … … 627 625 usage( argv ); // no return 628 626 break; 629 case 'i': // invariant checking630 invariant = true;631 break;632 627 case 'l': // generate libcfa.c 633 628 libcfap = true;
Note: See TracChangeset
for help on using the changeset viewer.