summaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-11 15:51:55 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-11 15:51:55 +0000
commit2ade676bb8f37e7d1f6f285e6be78fdb96a60f32 (patch)
tree5d9f1d3aecfc00b70650045e6e854639f280e872 /gcc/toplev.h
parent54a55b531965a0e344f0c4e9260b71ee95482890 (diff)
downloadgcc-2ade676bb8f37e7d1f6f285e6be78fdb96a60f32.tar.gz
* Makefile.in (ifcvt.o): Depend on toplev.h.
* c-semantics.c: Include expr.h. * ifcvt.c: Include toplev.h. * expr.h (rtx_equal_p): Delete prototype. * rtl.h (exact_log2_wide, floor_log2_wide, permalloc, protect_from_queue, gen_jump, gen_beq, gen_bge, gen_ble, eliminate_constant_term, expand_complex_abs, find_single_use, make_tree, init_expr_once, init_optabs, supports_one_only): Likewise. * tree.h (exact_log2_wide, floor_log2_wide, expand_null_return, rest_of_type_compilation, emit_queue, do_pending_stack_adjust, expand_assignment, store_expr, emit_line_note_after, emit_line_note_force, split_specs_attrs, label_rtx): Likewise. * toplev.h (exact_log2_wide, floor_log2_wide): Add prototype. cp: * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H). * semantics.c: Include expr.h. java: * Make-lang.in (java/boehm.o): Depend on toplev.h. * boehm.c: Include toplev.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41256 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r--gcc/toplev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index bed92ae63a9..edf7e0242e0 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -170,4 +170,14 @@ extern struct lang_hooks lang_hooks;
extern void set_fast_math_flags PARAMS ((void));
extern void set_no_fast_math_flags PARAMS ((void));
+/* The following functions accept a wide integer argument. Rather
+ than having to cast on every function call, we use a macro instead. */
+
+#ifndef exact_log2
+#define exact_log2(N) exact_log2_wide ((unsigned HOST_WIDE_INT) (N))
+#define floor_log2(N) floor_log2_wide ((unsigned HOST_WIDE_INT) (N))
+#endif
+extern int exact_log2_wide PARAMS ((unsigned HOST_WIDE_INT));
+extern int floor_log2_wide PARAMS ((unsigned HOST_WIDE_INT));
+
#endif /* __GCC_TOPLEV_H */