[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp f8321f0 5/8: * src/comp.c (add_driver_options): Fix
From: |
Andrea Corallo |
Subject: |
feature/native-comp f8321f0 5/8: * src/comp.c (add_driver_options): Fix missing condition + clean-up pragma |
Date: |
Wed, 26 Aug 2020 15:49:58 -0400 (EDT) |
branch: feature/native-comp
commit f8321f07ce874e9c7294cdb8e15f8a08ba064aa7
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* src/comp.c (add_driver_options): Fix missing condition + clean-up pragma
---
src/comp.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/comp.c b/src/comp.c
index 5bfbfba..7f6bbe3 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4146,13 +4146,12 @@ add_driver_options (void)
#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
|| defined (WINDOWSNT)
-#pragma GCC diagnostic ignored "-Waddress"
load_gccjit_if_necessary (true);
- FOR_EACH_TAIL (options)
- gcc_jit_context_add_driver_option (comp.ctxt,
- SSDATA (XCAR (options)));
+ if (!NILP (Fcomp_native_driver_options_available_p ()))
+ FOR_EACH_TAIL (options)
+ gcc_jit_context_add_driver_option (comp.ctxt,
+ SSDATA (XCAR (options)));
return;
-#pragma GCC diagnostic pop
#endif
if (CONSP (options))
xsignal1 (Qnative_compiler_error,
- feature/native-comp updated (337367a -> aa526c9), Andrea Corallo, 2020/08/26
- feature/native-comp c00aedb 2/8: Fix windows NT handling for [...]_add_driver_options, Andrea Corallo, 2020/08/26
- feature/native-comp 51acfee 7/8: * Init gcc_jit_context_add_driver_option as optional, Andrea Corallo, 2020/08/26
- feature/native-comp 1f105d5 3/8: * Improve 'add_driver_options', Andrea Corallo, 2020/08/26
- feature/native-comp f8321f0 5/8: * src/comp.c (add_driver_options): Fix missing condition + clean-up pragma,
Andrea Corallo <=
- feature/native-comp 2772e83 1/8: Set native driver options in async compiles, also, Andrea Corallo, 2020/08/26
- feature/native-comp c17013a 4/8: * Add 'comp-native-driver-options-available-p', Andrea Corallo, 2020/08/26
- feature/native-comp 63f041c 6/8: * Rename comp-native-driver-options-available-p, Andrea Corallo, 2020/08/26
- feature/native-comp aa526c9 8/8: Merge branch 'add_driver_option' into HEAD, Andrea Corallo, 2020/08/26