aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-07-17 20:35:04 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2004-07-17 20:35:04 +0100
commit6e34d3a39f0ce48e95a2853df4be8d01eb745850 (patch)
treeda217fba5f52589b72af2ded549bf9b898b28326 /gcc/c-common.c
parentac83f770155974ae069a59d73303eb7f4f19b827 (diff)
downloadgcc-6e34d3a39f0ce48e95a2853df4be8d01eb745850.zip
gcc-6e34d3a39f0ce48e95a2853df4be8d01eb745850.tar.gz
gcc-6e34d3a39f0ce48e95a2853df4be8d01eb745850.tar.bz2
langhooks.h (builtin_function): New langhook.
* langhooks.h (builtin_function): New langhook. * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New. (LANG_HOOKS_INITIALIZER): Update. * tree.h (builtin_function): Remove. * doc/tm.texi: Update. * c-tree.h (builtin_function): Declare. * c-common.c, config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c, config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c, config/stormy16/stormy16.c: All callers of builtin_function changed. ada: * gigi.h (builtin_function): Declare. cp: * cp-tree.h (builtin_function): Declare. fortran: * trans.h (builtin_function): Declare. java: * java-tree.h (builtin_function): Declare. From-SVN: r84878
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index e177d88..cc743cc 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -3106,7 +3106,8 @@ c_common_nodes_and_builtins (void)
abort (); \
\
if (!BOTH_P) \
- decl = builtin_function (NAME, builtin_types[TYPE], ENUM, \
+ decl = lang_hooks.builtin_function (NAME, builtin_types[TYPE], \
+ ENUM, \
CLASS, \
(FALLBACK_P \
? (NAME + strlen ("__builtin_")) \
@@ -3214,12 +3215,14 @@ builtin_function_2 (const char *builtin_name, const char *name,
tree decl = NULL_TREE;
if (builtin_name != 0)
- bdecl = builtin_function (builtin_name, builtin_type, function_code,
- class, library_name_p ? name : NULL, attrs);
+ bdecl = lang_hooks.builtin_function (builtin_name, builtin_type,
+ function_code, class,
+ library_name_p ? name : NULL, attrs);
if (name != 0 && !flag_no_builtin && !builtin_function_disabled_p (name)
&& !(nonansi_p && flag_no_nonansi_builtin))
- decl = builtin_function (name, type, function_code, class, NULL, attrs);
+ decl = lang_hooks.builtin_function (name, type, function_code, class,
+ NULL, attrs);
return (bdecl != 0 ? bdecl : decl);
}