This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 1/4] always define HAVE_conditional_execution
- From: tbsaunde+gcc at tbsaunde dot org
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Aug 2015 21:21:13 -0400
- Subject: [PATCH 1/4] always define HAVE_conditional_execution
- Authentication-results: sourceware.org; auth=none
- References: <1440120076-1815-1-git-send-email-tbsaunde+gcc at tbsaunde dot org>
From: tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
gcc/ChangeLog:
2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
* targhooks.c (default_have_conditional_execution): Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227049 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/ChangeLog | 5 +++++
gcc/genconfig.c | 2 ++
gcc/targhooks.c | 4 ----
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 42abb92..87cccef 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
+ * targhooks.c (default_have_conditional_execution): Adjust.
+
2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
* rtl.h (rtvec_all_equal_p): Declare.
diff --git a/gcc/genconfig.c b/gcc/genconfig.c
index ac16c5b..acbf381 100644
--- a/gcc/genconfig.c
+++ b/gcc/genconfig.c
@@ -348,6 +348,8 @@ main (int argc, char **argv)
if (have_cond_exec_flag)
printf ("#define HAVE_conditional_execution 1\n");
+ else
+ printf ("#define HAVE_conditional_execution 0\n");
if (have_lo_sum_flag)
printf ("#define HAVE_lo_sum 1\n");
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index 3eca47e..7238c8f 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -1350,11 +1350,7 @@ default_case_values_threshold (void)
bool
default_have_conditional_execution (void)
{
-#ifdef HAVE_conditional_execution
return HAVE_conditional_execution;
-#else
- return false;
-#endif
}
/* By default we assume that c99 functions are present at the runtime,
--
2.4.0