aboutsummaryrefslogtreecommitdiff
path: root/gcc/dojump.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2012-07-24 10:36:56 -0700
committerRichard Henderson <rth@gcc.gnu.org>2012-07-24 10:36:56 -0700
commit19b5fafb92343ca3f1449f3ba6fe5e2b9318496f (patch)
tree915b8b77cea8c62c51c2089f3804fe1591603acd /gcc/dojump.c
parent723cd7abc6c94d4fa8cc4e1428f79e7861c5d99a (diff)
downloadgcc-19b5fafb92343ca3f1449f3ba6fe5e2b9318496f.zip
gcc-19b5fafb92343ca3f1449f3ba6fe5e2b9318496f.tar.gz
gcc-19b5fafb92343ca3f1449f3ba6fe5e2b9318496f.tar.bz2
Introduce and use code_to_optab and optab_to_code functions
Removes all the direct uses of op->code so that we can change the representation of "optab". The code_to_optab change is simply for uniformity (and better type checking). * optabs.h (struct optab_d): Rename code member to code_. (struct convert_optab_h): Likewise. (code_to_optab_): Rename from code_to_optab. (code_to_optab, optab_to_code): New. * dojump.c (do_compare_rtx_and_jump): Use code_to_optab. * ifcvt.c (noce_emit_move_insn): Likewise. * optabs.c (simplify_expand_binop): Use optab_to_code. (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise. (avoid_expensive_constant, expand_binop_directly): Likewise. (expand_binop, expand_simple_unop, expand_unop_direct): Likewise. (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise. (have_insn_for, debug_optab_libfuncs): Likewise. (init_optab, init_optabv, init_convert_optab): Update for optab member name change. From-SVN: r189818
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r--gcc/dojump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c
index 24eed63..ea6620d 100644
--- a/gcc/dojump.c
+++ b/gcc/dojump.c
@@ -1037,7 +1037,7 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp,
we can jump on other conditions... */
&& (have_insn_for (COMPARE, mode)
/* ... or if there is no libcall for it. */
- || code_to_optab[code] == unknown_optab))
+ || code_to_optab (code) == unknown_optab))
{
enum rtx_code first_code;
bool and_them = split_comparison (code, mode, &first_code, &code);