(assemble_name): Disable warn_id_clash around get_identifier call.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 8 Jun 1995 15:53:36 +0000 (11:53 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 8 Jun 1995 15:53:36 +0000 (11:53 -0400)
From-SVN: r9900

gcc/varasm.c

index ace5ba69bd384bbd4d4e58b35a52b8aa6c67a968..a5e51ef15bab3196e6aa6894d11ce4b047311875 100644 (file)
@@ -1561,9 +1561,15 @@ assemble_name (file, name)
      char *name;
 {
   char *real_name;
+  int save_warn_id_clash = warn_id_clash;
 
   STRIP_NAME_ENCODING (real_name, name);
+
+  /* Don't warn about an identifier name length clash on this name, since
+     it can be a user symbol suffixed by a number.  */
+  warn_id_clash = 0;
   TREE_SYMBOL_REFERENCED (get_identifier (real_name)) = 1;
+  warn_id_clash = save_warn_id_clash;
 
   if (name[0] == '*')
     {