[cmake-commits] hoffman committed cmAddCustomTargetCommand.cxx 1.33
1.34
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Mar 3 11:28:18 EST 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv9882/Source
Modified Files:
cmAddCustomTargetCommand.cxx
Log Message:
ENH: fix ICE with gcc in dash8
Index: cmAddCustomTargetCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmAddCustomTargetCommand.cxx,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- cmAddCustomTargetCommand.cxx 2 Mar 2008 13:36:18 -0000 1.33
+++ cmAddCustomTargetCommand.cxx 3 Mar 2008 16:28:16 -0000 1.34
@@ -20,6 +20,18 @@
bool cmAddCustomTargetCommand
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
{
+ // This enum must be before an enum is used in a switch statment.
+ // If not there is an ICE on the itanium version of gcc we are running
+ // on dash8
+
+ // Keep track of parser state.
+ enum tdoing {
+ doing_command,
+ doing_depends,
+ doing_working_directory,
+ doing_comment,
+ doing_verbatim
+ };
if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
@@ -69,13 +81,6 @@
const char* comment = 0;
// Keep track of parser state.
- enum tdoing {
- doing_command,
- doing_depends,
- doing_working_directory,
- doing_comment,
- doing_verbatim
- };
tdoing doing = doing_command;
// Look for the ALL option.
More information about the Cmake-commits
mailing list