sh.c (sh_media_init_builtins): Change use of poisoned identifier "bzero" to "memset".
authorRoger Sayle <roger@eyesopen.com>
Tue, 2 Jul 2002 04:01:04 +0000 (04:01 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 2 Jul 2002 04:01:04 +0000 (04:01 +0000)
* config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
builtin_function.

From-SVN: r55171

gcc/ChangeLog
gcc/config/sh/sh.c

index 7cd4641..4a6723d 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-01  Roger Sayle  <roger@eyesopen.com>
+
+       * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
+       identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
+       builtin_function.
+
 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
 
        * README.Portability: Fix typos.
index 429eda6..6ab45d2 100644 (file)
@@ -7192,7 +7192,7 @@ sh_media_init_builtins ()
   tree shared[SH_BLTIN_NUM_SHARED_SIGNATURES];
   const struct builtin_description *d;
 
-  bzero (shared, sizeof shared);
+  memset (shared, 0, sizeof shared);
   for (d = bdesc; d - bdesc < sizeof bdesc / sizeof bdesc[0]; d++)
     {
       tree type, arg_type;
@@ -7235,7 +7235,8 @@ sh_media_init_builtins ()
          if (signature < SH_BLTIN_NUM_SHARED_SIGNATURES)
            shared[signature] = type;
        }
-      builtin_function (d->name, type, d - bdesc, BUILT_IN_MD, NULL);
+      builtin_function (d->name, type, d - bdesc, BUILT_IN_MD,
+                       NULL, NULL_TREE);
     }
 }