aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2003-04-14 03:13:07 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2003-04-14 03:13:07 +0000
commit7f685e177ee99a15953f2ffa4292823c8a9b88da (patch)
tree3b5aae81043167976f8a6e9e31f1cc5aa74edcc3 /gcc/c-common.c
parent1331d16fd4b57c5927cec03b5a320bc59366a628 (diff)
downloadgcc-7f685e177ee99a15953f2ffa4292823c8a9b88da.zip
gcc-7f685e177ee99a15953f2ffa4292823c8a9b88da.tar.gz
gcc-7f685e177ee99a15953f2ffa4292823c8a9b88da.tar.bz2
tree.h (DECL_BUILT_IN_NONANSI): Remove.
* tree.h (DECL_BUILT_IN_NONANSI): Remove. * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI. * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI implies DECL_BUILT_IN to simplify logic. * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI. From-SVN: r65561
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index a2cad23..5d51579 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -3691,20 +3691,15 @@ builtin_function_2 (builtin_name, name, builtin_type, type, function_code,
{
tree bdecl = NULL_TREE;
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 = 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);
- if (nonansi_p)
- DECL_BUILT_IN_NONANSI (decl) = 1;
- }
+ decl = builtin_function (name, type, function_code, class, NULL, attrs);
+
return (bdecl != 0 ? bdecl : decl);
}