]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
varasm.cc: refer to assemble_external_libcall only ifdef ASM_OUTPUT_EXTERNAL
authorJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 28 Nov 2023 18:21:32 +0000 (19:21 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 28 Nov 2023 18:21:32 +0000 (19:21 +0100)
This fixes boostrap in targets where ASM_OUTPUT_EXTERNAL is not
defined.

gcc/ChangeLog

* varasm.cc (assemble_external_libcall): Refer in assert only ifdef
ASM_OUTPUT_EXTERNAL.

gcc/varasm.cc

index deb7eab7af91e2ddca86716908b3d85f76fec74b..167aea87091d17be0ee9be2d0e52269a655129c9 100644 (file)
@@ -2607,7 +2607,9 @@ assemble_external_libcall (rtx fun)
   /* Declare library function name external when first used, if nec.  */
   if (! SYMBOL_REF_USED (fun))
     {
+#ifdef ASM_OUTPUT_EXTERNAL
       gcc_assert (!pending_assemble_externals_processed);
+#endif
       SYMBOL_REF_USED (fun) = 1;
       /* Make sure the libcall symbol is in the symtab so any
          reference to it will mark its tree node as referenced, via