Changeset aced69a for driver/cfa.cc


Ignore:
Timestamp:
Sep 10, 2019, 10:24:49 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
fd8f88f
Parents:
216597d
Message:

print warning for both -E and -CFA flags, and ignore -CFA flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    r216597d raced69a  
    1010// Created On       : Tue Aug 20 13:44:49 2002
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Sep  9 17:57:40 2019
    13 // Update Count     : 417
     12// Last Modified On : Tue Sep 10 17:00:15 2019
     13// Update Count     : 420
    1414//
    1515
     
    263263        // -E flag stops at cc1 stage 1, so cfa-cpp in cc1 stage 2 is never executed.
    264264        if ( cpp_flag && CFA_flag ) {
    265                 cerr << argv[0] << " error, cannot use -E and -CFA flags together." << endl;
    266                 exit( EXIT_FAILURE );
     265                CFA_flag = false;
     266                cerr << argv[0] << " warning, both -E and -CFA flags specified, using -E and ignoring -CFA." << endl;
    267267        } // if
    268268
Note: See TracChangeset for help on using the changeset viewer.