aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2003-07-26 13:27:20 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2003-07-26 13:27:20 +0000
commitcc42f5f54cd6dc6c0b6b8409acb7e77dd8253c66 (patch)
tree6f32d1872bc490cd139e7966725d23ea3bc810b8 /gcc/c-decl.c
parent92e7a6efaffc9b4a26754c3b0263c9b452113435 (diff)
downloadgcc-cc42f5f54cd6dc6c0b6b8409acb7e77dd8253c66.zip
gcc-cc42f5f54cd6dc6c0b6b8409acb7e77dd8253c66.tar.gz
gcc-cc42f5f54cd6dc6c0b6b8409acb7e77dd8253c66.tar.bz2
builtins.def (DEF_FALLBACK_BUILTIN): Delete.
* builtins.def (DEF_FALLBACK_BUILTIN): Delete. (DEF_EXT_FALLBACK_BUILTIN): Delete. (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using the regular DEF_EXT_LIB_BUILTIN macro. (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using the regular DEF_LIB_BUILTIN macro. (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED): Declare using the regular DEF_EXT_LIB_BUILTIN macro. * c-decl.c (duplicate_decls): Remove code to handle builtin functions prototyped without an argument list. From-SVN: r69814
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 20222a5..a9c10dc 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -861,7 +861,7 @@ duplicate_decls (tree newdecl, tree olddecl, int different_binding_level,
/* Discard the old built-in function. */
return 0;
}
- else if (!types_match)
+ if (!types_match)
{
/* Accept harmless mismatch in function types.
This is for the ffs and fprintf builtins. */
@@ -876,22 +876,6 @@ duplicate_decls (tree newdecl, tree olddecl, int different_binding_level,
TREE_TYPE (olddecl) = oldtype;
}
}
- else if (TYPE_ARG_TYPES (oldtype) == NULL
- && TYPE_ARG_TYPES (newtype) != NULL)
- {
- /* For bcmp, bzero, fputs the builtin type has arguments not
- specified. Use the ones from the prototype so that type checking
- is done for them. */
- tree trytype
- = build_function_type (TREE_TYPE (oldtype),
- TYPE_ARG_TYPES (newtype));
- trytype = build_type_attribute_variant (trytype,
- TYPE_ATTRIBUTES (oldtype));
-
- oldtype = trytype;
- if (! different_binding_level)
- TREE_TYPE (olddecl) = oldtype;
- }
if (!types_match)
{
/* If types don't match for a built-in, throw away the built-in. */