]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/symtab.c
Correct a function pre/postcondition [PR102403].
[thirdparty/gcc.git] / gcc / symtab.c
index 8c4cb70b015469633971f25d8cf5d81711eee264..c7ea8ecef74f8ac9d112328466c56ebb5f8e0abe 100644 (file)
@@ -1959,6 +1959,8 @@ symtab_node::noninterposable_alias (void)
   /* If aliases aren't supported by the assembler, fail.  */
   if (!TARGET_SUPPORTS_ALIASES)
     return NULL;
+  else if (lookup_attribute ("target_clones", DECL_ATTRIBUTES (node->decl)))
+    return NULL;
 
   /* Otherwise create a new one.  */
   new_decl = copy_node (node->decl);