ENH: fix ICE with gcc in dash8
This commit is contained in:
parent
5f8feedbac
commit
077805ff49
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue