Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cc1.cc

    r0163d3e r49d3128  
    1010// Created On       : Fri Aug 26 14:23:51 2005
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat May 30 18:09:05 2020
    13 // Update Count     : 404
     12// Last Modified On : Sun Oct 20 08:14:33 2019
     13// Update Count     : 385
    1414//
    1515
     
    3838static string o_file;
    3939static string bprefix;
    40 static string lang;                                                                             // -x flag
    4140
    4241
     
    7473                        if ( prefix( val, "-compiler=" ) ) {
    7574                                compiler_path = val.substr( 10 );
    76                         } else if ( prefix( val, "-x=" ) ) {
    77                                 lang = val.substr( 3 );
    7875                        } // if
    7976                } // if
     
    103100                        } else if ( prefix( val, "-B=" ) ) {            // location of cfa-cpp
    104101                                bprefix = val.substr( 3 );
    105                         } else if ( prefix( val, "-x=" ) ) {            // ignore
    106102                        } else {                                                                        // normal flag for cfa-cpp
    107103                                args[nargs++] = ( *new string( arg.substr( arg.find_first_of( "=" ) + 1 ) ) ).c_str();
     
    251247
    252248                args[0] = compiler_path.c_str();
    253                 if ( lang.size() == 0 ) {
    254                         suffix( cpp_in, args, nargs );                          // check suffix
    255                 } else {
    256                         args[nargs++] = "-x";
    257                         args[nargs++] = ( *new string( lang.c_str() ) ).c_str();
    258                 } // if
     249                suffix( cpp_in, args, nargs );                                  // check suffix
    259250                args[nargs++] = cpp_in;
    260251                if ( o_flag ) {                                                                 // location for output
     
    289280
    290281                args[0] = compiler_path.c_str();
    291                 if ( lang.size() == 0 ) {
    292                         suffix( cpp_in, args, nargs );                          // check suffix
    293                 } else {
    294                         args[nargs++] = "-x";
    295                         args[nargs++] = ( *new string( lang.c_str() ) ).c_str();
    296                 } // if
     282                suffix( cpp_in, args, nargs );                                  // check suffix
    297283                args[nargs++] = cpp_in;                                                 // input to cpp
    298284                args[nargs] = nullptr;                                                  // terminate argument list
Note: See TracChangeset for help on using the changeset viewer.