[PATCH] D33013: Driver must return non-zero code on errors in command line
Serge Pavlov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 9 11:38:04 PDT 2017
sepavloff created this revision.
Herald added subscribers: krytarowski, javed.absar, nhaehnle, rengolin, aemerson.
Now if clang driver is given wrong arguments, in some cases it
continues execution and returns zero code. This change fixes this
The fix revealed some errors in clang test set.
File test/Driver/gfortran.f90 added in r118203 checks forwarding
gfortran flags to GCC. Now driver reports error on this file, because
the option -working-directory implemented in clang differs from the
option with the same name implemented in gfortran, in clang the option
requires argument, in gfortran does not.
In the file test/Driver/arm-darwin-builtin.c clang is called with
options -fbuiltin-strcat and -fbuiltin-strcpy. These option were removed
in r191435 and now clang reports error on this test.
File arm-default-build-attributes.s uses option -verify, which is not
supported by driver, it is cc1 option.
Similarly, the file split-debug.h uses options -fmodules-embed-all-files
and -fmodule-format=obj, which are not supported by driver.
Other revealed errors are mainly mistypes.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16383 bytes
Desc: not available
More information about the cfe-commits