From 0590533746b2500bdb91af99562fe026f9a8e313 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 20 Jul 2005 10:42:51 +0000 Subject: [PATCH] bfin.c: Include "langhooks.h". * config/bfin/bfin.c: Include "langhooks.h". (def_builtin): Go through lang_hooks to call builtin_function. From-SVN: r102193 --- gcc/ChangeLog | 3 +++ gcc/config/bfin/bfin.c | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5704cca606a..f5edcf18ed9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2005-07-20 Bernd Schmidt + * config/bfin/bfin.c: Include "langhooks.h". + (def_builtin): Go through lang_hooks to call builtin_function. + * config/bfin/bfin-protos.h (bfin_longcall_p): Declare. * config/bfin/predicates.md (symbol_ref_operand): New. (call_insn_operand): Delete. All callers changed to use diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index c4ee58b4ae5..a0c768d5a2a 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -45,6 +45,7 @@ #include "recog.h" #include "ggc.h" #include "integrate.h" +#include "langhooks.h" #include "bfin-protos.h" #include "tm-preds.h" #include "gt-bfin.h" @@ -2832,10 +2833,10 @@ enum bfin_builtins BFIN_BUILTIN_MAX }; -#define def_builtin(NAME, TYPE, CODE) \ -do { \ - builtin_function ((NAME), (TYPE), (CODE), BUILT_IN_MD, \ - NULL, NULL_TREE); \ +#define def_builtin(NAME, TYPE, CODE) \ +do { \ + lang_hooks.builtin_function ((NAME), (TYPE), (CODE), BUILT_IN_MD, \ + NULL, NULL_TREE); \ } while (0) /* Set up all builtin functions for this target. */ -- 2.30.2