Revert r194097: "With this patch -Wwrite-strings is still implemented with the terrible
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 7 Feb 2014 08:33:28 +0000 (08:33 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 7 Feb 2014 08:33:28 +0000 (08:33 +0000)
commit25f2afdee0131dfe025f1987f3f6a5c52a883c06
treeae5217fe87875759784a8c59852de1021c512d3e
parentced9226b0f79f85e4e2215b8d2b9746a7262dab1
Revert r194097: "With this patch -Wwrite-strings is still implemented with the terrible
    hack of passing -fconst-strings to -cc1"

Passing or not a language option based on diagnostic settings is a bad idea, it breaks
using a PCH that was compiled with different diagnostic settings.

Also add a test case to make sure we don't regress.

llvm-svn: 200964
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Driver/Options.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/clang_f_opts.c
clang/test/PCH/different-diagnostic-level.c [new file with mode: 0644]