]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* c-common.c (c_common_nodes_and_builtins): Don't special case
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Mar 2000 16:24:07 +0000 (16:24 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Mar 2000 16:24:07 +0000 (16:24 +0000)
cplus_mode when declaring builtin bzero/bcmp, always avoid
prototype arguments.

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

gcc/ChangeLog
gcc/c-common.c

index d40c51e4cafc9d5ea297ed0ac5e5ba04ee423c5e..d26f0d54f30132c5ecdc6847d66a2484fd3d7f47 100644 (file)
@@ -1,3 +1,9 @@
+2000-03-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * c-common.c (c_common_nodes_and_builtins): Don't special case
+       cplus_mode when declaring builtin bzero/bcmp, always avoid
+       prototype arguments.
+
 2000-03-29  Bruce Korb  <bkorb@gnu.org>
 
        * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
index b80501d089803368b5a4f17d59ed26bd1b9b8747..0589c03a8d73049e59c3bd025a2dd4c7a5f24258 100644 (file)
@@ -3645,13 +3645,13 @@ c_common_nodes_and_builtins (cplus_mode, no_builtins, no_nonansi_builtins)
       /* Suppress error if redefined as a non-function.  */
       DECL_BUILT_IN_NONANSI (temp) = 1;
 
-      /* In C mode, don't conflict with system prototype variations.  */
-      temp = builtin_function ("bzero",
-                              cplus_mode ? bzero_ftype : void_ftype_any,
+      /* The system prototypes for these functions have many
+        variations, so don't specify parameters to avoid conflicts.
+        The expand_* functions check the argument types anyway.  */
+      temp = builtin_function ("bzero", void_ftype_any,
                               BUILT_IN_BZERO, BUILT_IN_NORMAL, NULL_PTR);
       DECL_BUILT_IN_NONANSI (temp) = 1;
-      temp = builtin_function ("bcmp",
-                              cplus_mode ? bcmp_ftype : int_ftype_any,
+      temp = builtin_function ("bcmp", int_ftype_any,
                               BUILT_IN_BCMP, BUILT_IN_NORMAL, NULL_PTR);
       DECL_BUILT_IN_NONANSI (temp) = 1;
     }