mips.c (mips_output_external): Replace checks for specific builtin-in functions with...
authorRichard Sandiford <rsandifo@redhat.com>
Tue, 2 Dec 2003 22:30:28 +0000 (22:30 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 2 Dec 2003 22:30:28 +0000 (22:30 +0000)
* config/mips/mips.c (mips_output_external): Replace checks for
specific builtin-in functions with a check for DECL_BUILTIN_IN.

From-SVN: r74202

gcc/ChangeLog
gcc/config/mips/mips.c

index 938bf4a2cbd6c9c0e2d1f4e799822e959a3dc743..1e86e86ac7f72ddef2d77c4f3b4d2fe742adce1a 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/mips/mips.c (mips_output_external): Replace checks for
+       specific builtin-in functions with a check for DECL_BUILTIN_IN.
+
 2003-12-02  Richard Henderson  <rth@redhat.com>
 
         * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
index 2b362a45d9746566c4ea1e578ef785a085df1d73..0691941a08bb0f6bf280cd3284c97c970b036cb4 100644 (file)
@@ -5566,12 +5566,7 @@ mips_output_external (FILE *file ATTRIBUTE_UNUSED, tree decl, const char *name)
 
   if (TARGET_IRIX && mips_abi == ABI_32
       && TREE_CODE (decl) == FUNCTION_DECL
-      /* ??? Don't include alloca, since gcc will always expand it
-        inline.  If we don't do this, the C++ library fails to build.  */
-      && strcmp (name, "alloca")
-      /* ??? Don't include __builtin_next_arg, because then gcc will not
-        bootstrap under Irix 5.1.  */
-      && strcmp (name, "__builtin_next_arg"))
+      && !DECL_BUILT_IN (decl))
     {
       p = (struct extern_list *) ggc_alloc (sizeof (struct extern_list));
       p->next = extern_head;