Skip to content

Commit 45c7205

Browse files
committed
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
1 parent 46f838f commit 45c7205

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ def fthinlto_index_EQ : Joined<["-"], "fthinlto-index=">,
11761176
def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">,
11771177
Group<f_Group>, Flags<[DriverOption, CoreOption]>;
11781178
def fmerge_all_constants : Flag<["-"], "fmerge-all-constants">, Group<f_Group>,
1179-
Flags<[CC1Option]>, HelpText<"Allow merging of constants">;
1179+
Flags<[CC1Option, CoreOption]>, HelpText<"Allow merging of constants">;
11801180
def fmessage_length_EQ : Joined<["-"], "fmessage-length=">, Group<f_Group>;
11811181
def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Option, CoreOption]>,
11821182
HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;

clang/test/Driver/cl-options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@
590590
// RUN: -fstandalone-debug \
591591
// RUN: -flimit-debug-info \
592592
// RUN: -flto \
593+
// RUN: -fmerge-all-constants \
593594
// RUN: --version \
594595
// RUN: -Werror /Zs -- %s 2>&1
595596

0 commit comments

Comments
 (0)