ccc: Don't be pedantically compatible with -Z options, these are the
result of an internal implementation detail of gcc.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62389 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 427bc0e..0f5b226 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -399,6 +399,11 @@
         if hasCombine:
             raise NotImplementedError,"-combine is not yet supported"
         
+        # Reject -Z* at the top level for now.
+        arg = args.getLastArg(self.parser.ZOption)
+        if arg:
+            raise Arguments.InvalidArgumentsError("%s: unsupported use of internal gcc option" % ' '.join(args.render(arg)))
+
         if (not inputs and 
             not args.getLastArg(self.parser.hashHashHashOption)):
             raise Arguments.InvalidArgumentsError("no input files")