[Compbench-devel] CompBenchmarks++ cloptions.cpp,1.21,1.22
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-02-19 18:42:25
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23598 Modified Files: cloptions.cpp Log Message: Exits if an invalid compiler is given to -qc Index: cloptions.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/cloptions.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** cloptions.cpp 15 Feb 2007 19:09:20 -0000 1.21 --- cloptions.cpp 19 Feb 2007 18:42:14 -0000 1.22 *************** *** 457,460 **** --- 457,465 ---- } if (filter.compiler) { + if (!C) { + std::cerr << "Invalid compiler given" << std::endl; + parseExitValue=255; + break; + } std::cout << "Compiler name : " << C->Name() << std::endl << "Version : " << C->Version() << std::endl |