OSDN Git Service

* config/bfin/bfin.c: Include "langhooks.h".
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jul 2005 10:42:51 +0000 (10:42 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jul 2005 10:42:51 +0000 (10:42 +0000)
(def_builtin): Go through lang_hooks to call builtin_function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102193 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 5704cca..f5edcf1 100644 (file)
@@ -1,5 +1,8 @@
 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
 
+       * 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
index c4ee58b..a0c768d 100644 (file)
@@ -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.  */