]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/varpool.c
Introduce TARGET_SUPPORTS_ALIASES
[thirdparty/gcc.git] / gcc / varpool.c
index b005f529cc0b95a3888fdfda47f24ad18781cd92..d849fe8a7da2ff9f1bb3c646b76c1d41ae914fbb 100644 (file)
@@ -788,10 +788,10 @@ varpool_node::create_extra_name_alias (tree alias, tree decl)
 {
   varpool_node *alias_node;
 
-#ifndef ASM_OUTPUT_DEF
   /* If aliases aren't supported by the assembler, fail.  */
-  return NULL;
-#endif
+  if (!TARGET_SUPPORTS_ALIASES)
+    return NULL;
+
   alias_node = varpool_node::create_alias (alias, decl);
   alias_node->cpp_implicit_alias = true;