Commit 0e5f14d4 by Trevor Saunders Committed by Trevor Saunders

add default for HAVE_tablejump

gcc/ChangeLog:

2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* defaults.h (gen_tablejump): New function.
	(HAVE_tablejump): Add default value.
	* expr.c: Adjust.
	* stmt.c: Likewise.

From-SVN: r223625
parent b77eb5eb
2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* defaults.h (gen_tablejump): New function.
(HAVE_tablejump): Add default value.
* expr.c: Adjust.
* stmt.c: Likewise.
2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* defaults.h (gen_store_multiple): New function. * defaults.h (gen_store_multiple): New function.
(HAVE_store_multiple): Add default value. (HAVE_store_multiple): Add default value.
* expr.c (move_block_from_reg): Adjust. * expr.c (move_block_from_reg): Adjust.
......
...@@ -1494,6 +1494,16 @@ gen_store_multiple (rtx, rtx, rtx) ...@@ -1494,6 +1494,16 @@ gen_store_multiple (rtx, rtx, rtx)
} }
#endif #endif
#ifndef HAVE_tablejump
#define HAVE_tablejump 0
static inline rtx
gen_tablejump (rtx, rtx)
{
gcc_unreachable ();
return NULL;
}
#endif
#endif /* GCC_INSN_FLAGS_H */ #endif /* GCC_INSN_FLAGS_H */
#endif /* ! GCC_DEFAULTS_H */ #endif /* ! GCC_DEFAULTS_H */
...@@ -11226,11 +11226,6 @@ try_casesi (tree index_type, tree index_expr, tree minval, tree range, ...@@ -11226,11 +11226,6 @@ try_casesi (tree index_type, tree index_expr, tree minval, tree range,
} }
/* Attempt to generate a tablejump instruction; same concept. */ /* Attempt to generate a tablejump instruction; same concept. */
#ifndef HAVE_tablejump
#define HAVE_tablejump 0
#define gen_tablejump(x, y) (0)
#endif
/* Subroutine of the next function. /* Subroutine of the next function.
INDEX is the value being switched on, with the lowest value INDEX is the value being switched on, with the lowest value
......
...@@ -796,10 +796,6 @@ dump_case_nodes (FILE *f, struct case_node *root, ...@@ -796,10 +796,6 @@ dump_case_nodes (FILE *f, struct case_node *root,
#define HAVE_casesi 0 #define HAVE_casesi 0
#endif #endif
#ifndef HAVE_tablejump
#define HAVE_tablejump 0
#endif
/* Return the smallest number of different values for which it is best to use a /* Return the smallest number of different values for which it is best to use a
jump-table instead of a tree of conditional branches. */ jump-table instead of a tree of conditional branches. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment