diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-03 16:28:16 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-03 16:28:16 (GMT) |
commit | 077805ff49649537998ae446d73249dd9570e770 (patch) | |
tree | ebd38db707d2aa455455f281c3ece5412597dbbe /Source/cmAddCustomTargetCommand.cxx | |
parent | 5f8feedbace2f8410d70951b8f705cff86ff719e (diff) | |
download | CMake-077805ff49649537998ae446d73249dd9570e770.zip CMake-077805ff49649537998ae446d73249dd9570e770.tar.gz CMake-077805ff49649537998ae446d73249dd9570e770.tar.bz2 |
ENH: fix ICE with gcc in dash8
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r-- | Source/cmAddCustomTargetCommand.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index af64838..241cdcc 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -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 @@ bool cmAddCustomTargetCommand 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. |