f18 runs compilation all the way to the linking step. However, with the implementation of the -Werror option in the frontend driver, to makes tests shareable between the driver and f18, the code of the later was modified so that it terminates compilation if anything other than error is given for -W.
So a command like the following would fail:
flang -Wl,-z,muldefs -march=skylake-avx512 -mfpmath=sse -Ofast -funroll-loops -flto exchange2.fppized.o -L/export/users/build_1.1.1/jemalloc/intel64/lib/ -ljemalloc -o exchange2_r
This patch takes away the modification ONLY from f18, so that the flang-new driver still retains the power to cause compilation termination if anything other that -Werror is supplied for the -W option (until they are supported).