Changeset 372b6d3 for driver/cfa.cc


Ignore:
Timestamp:
Apr 10, 2023, 9:25:21 PM (18 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
6adeb5f
Parents:
8472c6c
Message:

add -invariant/--invariant flag to enable invariant checking during AST passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    r8472c6c r372b6d3  
    1010// Created On       : Tue Aug 20 13:44:49 2002
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb 14 22:46:38 2023
    13 // Update Count     : 470
     12// Last Modified On : Mon Apr 10 21:16:00 2023
     13// Update Count     : 476
    1414//
    1515
     
    198198                                } // if
    199199                        } else if ( arg == "-CFA" ) {
    200                                 CFA_flag = true;                                                // strip the -CFA flag
     200                                CFA_flag = true;                                                // strip -CFA flag
    201201                                link = false;
    202202                                args[nargs++] = "-fsyntax-only";                // stop after stage 2
    203203                        } else if ( arg == "-debug" ) {
    204                                 debug = true;                                                   // strip the debug flag
     204                                debug = true;                                                   // strip debug flag
    205205                        } else if ( arg == "-nodebug" ) {
    206                                 debug = false;                                                  // strip the nodebug flag
     206                                debug = false;                                                  // strip nodebug flag
    207207                        } else if ( arg == "-quiet" ) {
    208                                 quiet = true;                                                   // strip the quiet flag
     208                                quiet = true;                                                   // strip quiet flag
    209209                        } else if ( arg == "-noquiet" ) {
    210                                 quiet = false;                                                  // strip the noquiet flag
     210                                quiet = false;                                                  // strip noquiet flag
     211                        } else if ( arg == "-invariant" ) {
     212                                Putenv( argv, "-" + arg );
     213                        } else if ( arg == "--invariant" ) {
     214                                Putenv( argv, arg );
    211215                        } else if ( arg == "-no-include-stdhdr" ) {
    212                                 noincstd_flag = true;                                   // strip the no-include-stdhdr flag
     216                                noincstd_flag = true;                                   // strip no-include-stdhdr flag
    213217                        } else if ( arg == "-nolib" ) {
    214                                 nolib = true;                                                   // strip the nolib flag
     218                                nolib = true;                                                   // strip nolib flag
    215219                        } else if ( arg == "-help" ) {
    216                                 help = true;                                                    // strip the help flag
     220                                help = true;                                                    // strip help flag
    217221                        } else if ( arg == "-nohelp" ) {
    218                                 help = false;                                                   // strip the nohelp flag
     222                                help = false;                                                   // strip nohelp flag
    219223                        } else if ( arg == "-cfalib") {
    220224                                compiling_libs = true;
     
    274278                                } // if
    275279                        } else if ( prefix( arg, "-B" ) ) {
    276                                 bprefix = arg.substr(2);                                // strip the -B flag
     280                                bprefix = arg.substr(2);                                // strip -B flag
    277281                        } else if ( arg == "-c" || arg == "-S" || arg == "-E" || arg == "-M" || arg == "-MM" ) {
    278282                                args[nargs++] = argv[i];                                // pass flag along
Note: See TracChangeset for help on using the changeset viewer.