[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-GCC Compiler-GCC.cpp, 1.2,
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-02-19 18:43:56
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-GCC In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv24006 Modified Files: Compiler-GCC.cpp Compiler-GCC.h Log Message: std::string used to avoid memory hits outside data block. Index: Compiler-GCC.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-GCC/Compiler-GCC.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Compiler-GCC.h 6 Feb 2007 19:41:44 -0000 1.2 --- Compiler-GCC.h 19 Feb 2007 18:43:50 -0000 1.3 *************** *** 22,30 **** virtual std::string getCompilerName(void); virtual std::string getCompilerVersion(void); ! virtual char *Language(void); public: CompilerGCC(class System *_system, ! char *_compilerBinary); virtual std::string compiler(void); --- 22,30 ---- virtual std::string getCompilerName(void); virtual std::string getCompilerVersion(void); ! virtual std::string Language(void); public: CompilerGCC(class System *_system, ! std::string _compilerBinary); virtual std::string compiler(void); *************** *** 42,50 **** virtual std::string getCompilerName(void); virtual std::string getCompilerVersion(void); ! virtual char *Language(void); public: CompilerGCC_cpp (class System *_system, ! char *_compilerBinary); virtual std::string compiler(void); --- 42,50 ---- virtual std::string getCompilerName(void); virtual std::string getCompilerVersion(void); ! virtual std::string Language(void); public: CompilerGCC_cpp (class System *_system, ! std::string _compilerBinary); virtual std::string compiler(void); Index: Compiler-GCC.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-GCC/Compiler-GCC.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Compiler-GCC.cpp 6 Feb 2007 19:41:44 -0000 1.2 --- Compiler-GCC.cpp 19 Feb 2007 18:43:50 -0000 1.3 *************** *** 15,19 **** CompilerGCC::CompilerGCC(CBM::System *_system, ! char *_compilerBinary) : Compiler(_system, _compilerBinary) { --- 15,19 ---- CompilerGCC::CompilerGCC(CBM::System *_system, ! std::string _compilerBinary) : Compiler(_system, _compilerBinary) { *************** *** 67,71 **** } ! char *CompilerGCC::Language(void) { return("C"); --- 67,71 ---- } ! std::string CompilerGCC::Language(void) { return("C"); *************** *** 77,81 **** CompilerGCC_cpp::CompilerGCC_cpp(CBM::System *_system, ! char *_compilerBinary) : Compiler(_system, _compilerBinary) { --- 77,81 ---- CompilerGCC_cpp::CompilerGCC_cpp(CBM::System *_system, ! std::string _compilerBinary) : Compiler(_system, _compilerBinary) { *************** *** 129,133 **** } ! char *CompilerGCC_cpp::Language(void) { return("C++"); --- 129,133 ---- } ! std::string CompilerGCC_cpp::Language(void) { return("C++"); |