summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-04-30 19:04:04 +0000
committerHans Wennborg <hans@hanshq.net>2018-04-30 19:04:04 +0000
commit45c7205b617895a96073da30aabfdbae2bb8651c (patch)
treefff742d68f8b07eaf26b5923e77dd0d10520a18b
parent46f838f3707183682fe0cd78601e85e089c35aa3 (diff)
downloadbcm5719-llvm-45c7205b617895a96073da30aabfdbae2bb8651c.tar.gz
bcm5719-llvm-45c7205b617895a96073da30aabfdbae2bb8651c.zip
clang-cl: Expose -fmerge-all-constants
Now that constant merging is off by default, we'd like a way to enable it on Windows. llvm-svn: 331214
-rw-r--r--clang/include/clang/Driver/Options.td2
-rw-r--r--clang/test/Driver/cl-options.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 3a5d58a8ee7..80facb79a48 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -1176,7 +1176,7 @@ def fthinlto_index_EQ : Joined<["-"], "fthinlto-index=">,
def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
Group<f_Group>, Flags<[DriverOption, CoreOption]>;
def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>,
- Flags<[CC1Option]>, HelpText<"Allow merging of constants">;
+ Flags<[CC1Option, CoreOption]>, HelpText<"Allow merging of constants">;
def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;
def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option, CoreOption]>,
HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index 4b4e2f0883c..37c2fa5b690 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -590,6 +590,7 @@
// RUN: -fstandalone-debug \
// RUN: -flimit-debug-info \
// RUN: -flto \
+// RUN: -fmerge-all-constants \
// RUN: --version \
// RUN: -Werror /Zs -- %s 2>&1
OpenPOWER on IntegriCloud