Changeset 5a43ab8 for driver


Ignore:
Timestamp:
Aug 26, 2019, 9:46:08 AM (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:
417a630
Parents:
330d933
Message:

print more information when cc1 fails for debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cc1.cc

    r330d933 r5a43ab8  
    1010// Created On       : Fri Aug 26 14:23:51 2005
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Aug 23 15:06:27 2019
    13 // Update Count     : 371
     12// Last Modified On : Mon Aug 26 07:52:19 2019
     13// Update Count     : 374
    1414//
    1515
     
    291291
    292292                execvp( args[0], (char * const *)args );                // should not return
    293                 perror( "CC1 Translator error: stage 1, execvp" );
     293                perror( "CC1 Translator error: stage 1 cpp, execvp" );
     294                cerr << " invoked " << args[0] << endl;
    294295                exit( EXIT_FAILURE );
    295296        } // if
     
    428429        if ( fork() == 0 ) {                                                            // child runs CFA
    429430                cargs[0] = ( *new string( installlibdir + "cfa-cpp" ) ).c_str();
    430 
    431431                cargs[ncargs++] = cpp_in;
    432432
     
    438438                        cargs[ncargs++] = cfa_cpp_out.c_str();
    439439                } // if
    440                 cargs[ncargs] = nullptr;                                                        // terminate argument list
     440                cargs[ncargs] = nullptr;                                                // terminate argument list
    441441
    442442                #ifdef __DEBUG_H__
     
    448448
    449449                execvp( cargs[0], (char * const *)cargs );              // should not return
    450                 perror( "CC1 Translator error: stage 2, execvp" );
     450                perror( "CC1 Translator error: stage 2 cfa-cpp, execvp" );
     451                cerr << " invoked " << cargs[0] << endl;
    451452                exit( EXIT_FAILURE );
    452453        } // if
     
    500501
    501502                execvp( args[0], (char * const *)args );                // should not return
    502                 perror( "CC1 Translator error: stage 2, execvp" );
     503                perror( "CC1 Translator error: stage 2 cc1, execvp" );
     504                cerr << " invoked " << cargs[0] << endl;
    503505                exit( EXIT_FAILURE );                                                   // tell gcc not to go any further
    504506        } // if
Note: See TracChangeset for help on using the changeset viewer.