OSDN Git Service

(alpha_need_linkage): Call get_identifier.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Apr 1997 21:48:27 +0000 (21:48 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Apr 1997 21:48:27 +0000 (21:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13944 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/alpha/alpha.c

index 3203eb8..46f621a 100644 (file)
@@ -3102,13 +3102,13 @@ alpha_need_linkage (name, is_local)
       {
        if (is_local)
          {
       {
        if (is_local)
          {
-           /* defined here but external assumed.  */
+           /* Defined here but external assumed.  */
            if (lptr->kind == KIND_EXTERN)
              lptr->kind = KIND_LOCAL;
          }
        else
          {
            if (lptr->kind == KIND_EXTERN)
              lptr->kind = KIND_LOCAL;
          }
        else
          {
-           /* used here but unused assumed.  */
+           /* Used here but unused assumed.  */
            if (lptr->kind == KIND_UNUSED)
              lptr->kind = KIND_LOCAL;
          }
            if (lptr->kind == KIND_UNUSED)
              lptr->kind = KIND_LOCAL;
          }
@@ -3122,6 +3122,9 @@ alpha_need_linkage (name, is_local)
   /* Assume external if no definition.  */
   nptr->kind = (is_local ? KIND_UNUSED : KIND_EXTERN);
 
   /* Assume external if no definition.  */
   nptr->kind = (is_local ? KIND_UNUSED : KIND_EXTERN);
 
+  /* Ensure we have an IDENTIFIER so assemble_name can mark is used.  */
+  get_identifier (name);
+
   alpha_links_base = nptr;
 
   return;
   alpha_links_base = nptr;
 
   return;