4b5a3e5
From 428ca4520a79ec5a6df9c6adc8b8069623868cdb Mon Sep 17 00:00:00 2001
4b5a3e5
From: Tom Stellard <tstellar@redhat.com>
4b5a3e5
Date: Fri, 26 Jan 2018 11:38:04 -0800
4b5a3e5
Subject: [PATCH] GCC compatibility: Ignore -fstack-clash-protection
4b5a3e5
4b5a3e5
Reviewers: sylvestre.ledru
4b5a3e5
4b5a3e5
Subscribers: cfe-commits
4b5a3e5
4b5a3e5
Differential Revision: https://reviews.llvm.org/D42593
4b5a3e5
---
4b5a3e5
 include/clang/Driver/Options.td | 1 +
4b5a3e5
 test/Driver/clang_f_opts.c      | 1 +
4b5a3e5
 2 files changed, 2 insertions(+)
4b5a3e5
4b5a3e5
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td
4b5a3e5
index 41f31cf..e9078a2 100644
4b5a3e5
--- a/include/clang/Driver/Options.td
4b5a3e5
+++ b/include/clang/Driver/Options.td
4b5a3e5
@@ -2705,6 +2705,7 @@ defm single_precision_constant : BooleanFFlag<"single-precision-constant">,
4b5a3e5
     Group<clang_ignored_gcc_optimization_f_Group>;
4b5a3e5
 defm spec_constr_count : BooleanFFlag<"spec-constr-count">, Group<clang_ignored_f_Group>;
4b5a3e5
 defm stack_check : BooleanFFlag<"stack-check">, Group<clang_ignored_f_Group>;
4b5a3e5
+defm stack_clash_protection : BooleanFFlag<"stack-clash-protection">, Group<clang_ignored_f_Group>;
4b5a3e5
 defm strength_reduce :
4b5a3e5
     BooleanFFlag<"strength-reduce">, Group<clang_ignored_gcc_optimization_f_Group>;
4b5a3e5
 defm tls_model : BooleanFFlag<"tls-model">, Group<clang_ignored_f_Group>;
4b5a3e5
diff --git a/test/Driver/clang_f_opts.c b/test/Driver/clang_f_opts.c
4b5a3e5
index 5755c5d..8710ff4 100644
4b5a3e5
--- a/test/Driver/clang_f_opts.c
4b5a3e5
+++ b/test/Driver/clang_f_opts.c
4b5a3e5
@@ -284,6 +284,7 @@
4b5a3e5
 // RUN:     -ffriend-injection                                                \
4b5a3e5
 // RUN:     -fno-implement-inlines -fimplement-inlines                        \
4b5a3e5
 // RUN:     -fstack-check                                                     \
4b5a3e5
+// RUN:     -fstack-clash-protection                                          \
4b5a3e5
 // RUN:     -fforce-addr                                                      \
4b5a3e5
 // RUN:     -malign-functions=100                                             \
4b5a3e5
 // RUN:     -malign-loops=100                                                 \
4b5a3e5
-- 
4b5a3e5
1.8.3.1
4b5a3e5