Changeset 779a4a3 for src/driver
- Timestamp:
- May 3, 2018, 4:33:19 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- f3152ab
- Parents:
- f465f0e (diff), c9d5c4f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/driver
- Files:
-
- 3 edited
-
Makefile.am (modified) (1 diff)
-
Makefile.in (modified) (1 diff)
-
cfa.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/driver/Makefile.am
rf465f0e r779a4a3 11 11 ## Created On : Sun May 31 08:49:31 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Fri Oct 28 13:46:06 201614 ## Update Count : 1 013 ## Last Modified On : Mon Apr 30 17:44:17 2018 14 ## Update Count : 11 15 15 ############################################################################### 16 16 17 17 # applies to both programs 18 AM_CXXFLAGS = -Wall -O2 -g -std=c++14 18 AM_CXXFLAGS = -Wall -O2 -g -std=c++14 -I${abs_top_srcdir}/src 19 19 if BUILD_NO_LIB 20 20 else -
src/driver/Makefile.in
rf465f0e r779a4a3 294 294 295 295 # applies to both programs 296 AM_CXXFLAGS = -Wall -O2 -g -std=c++14 $(am__append_1) $(am__append_2)\297 $(am__append_ 3)296 AM_CXXFLAGS = -Wall -O2 -g -std=c++14 -I${abs_top_srcdir}/src \ 297 $(am__append_1) $(am__append_2) $(am__append_3) 298 298 cfa_SOURCES = cfa.cc 299 299 -
src/driver/cfa.cc
rf465f0e r779a4a3 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 5 22:05:28201813 // Update Count : 16612 // Last Modified On : Wed May 2 17:57:43 2018 13 // Update Count : 224 14 14 // 15 15 … … 19 19 #include <unistd.h> // execvp 20 20 #include <string> // STL version 21 21 #include <string.h> // strcmp 22 23 #include "Common/SemanticError.h" 22 24 #include "config.h" // configure info 23 25 … … 160 162 args[nargs] = argv[i]; // pass the argument along 161 163 nargs += 1; 164 } else if ( arg == "-w" ) { 165 args[nargs] = argv[i]; // pass the argument along 166 nargs += 1; 167 args[nargs] = ( *new string( string("-D__CFA_FLAG__=") + arg ) ).c_str(); // add the argument for cfa-cpp 168 nargs += 1; 169 } else if ( prefix( arg, "-W" ) ) { // check before next tests 170 if ( arg == "-Werror" || arg == "-Wall" ) { 171 args[nargs] = argv[i]; // pass the argument along 172 nargs += 1; 173 args[nargs] = ( *new string( string("-D__CFA_FLAG__=") + arg ) ).c_str(); // add the argument for cfa-cpp 174 nargs += 1; 175 } else { 176 unsigned int adv = prefix( arg, "-Wno-" ) ? 5 : 2; 177 args[nargs] = argv[i]; // conditionally pass the argument along 178 const char * warning = argv[i] + adv; // extract warning 179 if ( SemanticWarning_Exist( warning ) ) { // replace the argument for cfa-cpp 180 args[nargs] = ( *new string( string("-D__CFA_FLAG__=") + arg ) ).c_str(); 181 } // if 182 nargs += 1; 183 } // if 162 184 } else if ( prefix( arg, "-B" ) ) { 163 185 Bprefix = arg.substr(2); // strip the -B flag … … 247 269 #if ! defined(HAVE_LIBCFA_RELEASE) 248 270 if( !debug ) { 249 cerr << "error: Option -nodebug is notavailable, libcfa was not installed." << endl;271 cerr << "error: Option -nodebug is unavailable, libcfa was not installed." << endl; 250 272 exit( EXIT_FAILURE ); 251 273 } … … 253 275 #if ! defined(HAVE_LIBCFA_DEBUG) 254 276 if( debug ) { 255 cerr << "error: Option -debug is notavailable, libcfa-d was not installed." << endl;277 cerr << "error: Option -debug is unavailable, libcfa-d was not installed." << endl; 256 278 exit( EXIT_FAILURE ); 257 279 }
Note:
See TracChangeset
for help on using the changeset viewer.