* cp/decl.c (cp_finish_decl): Remove clause intended for asm
authorbowdidge <bowdidge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 23:41:53 +0000 (23:41 +0000)
committerbowdidge <bowdidge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 23:41:53 +0000 (23:41 +0000)
  directives in struct or class fields: this code is never executed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72775 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index b702409..df0297a 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Robert Bowdidge   <bowdidge@apple.com>
+       * decl.c (cp_finish_decl): Remove clause intended for asm directives 
+          in struct or class fields: this code is never executed.
+
 2003-10-22  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        * decl.c (start_decl): Exit if push_template_decl returns
index 7b27feb..1951b25 100644 (file)
@@ -4677,7 +4677,7 @@ cp_finish_decl (tree decl, tree init, tree asmspec_tree, int flags)
   /* If a name was specified, get the string.  */
   if (global_scope_p (current_binding_level))
     asmspec_tree = maybe_apply_renaming_pragma (decl, asmspec_tree);
-  if (asmspec_tree)
+  if (asmspec_tree) 
     asmspec = TREE_STRING_POINTER (asmspec_tree);
 
   if (init && TREE_CODE (init) == NAMESPACE_DECL)
@@ -4763,15 +4763,7 @@ cp_finish_decl (tree decl, tree init, tree asmspec_tree, int flags)
       TREE_READONLY (decl) = 0;
     }
 
-  if (TREE_CODE (decl) == FIELD_DECL && asmspec)
-    {
-      /* This must override the asm specifier which was placed by
-        grokclassfn.  Lay this out fresh.  */
-      SET_DECL_RTL (TREE_TYPE (decl), NULL_RTX);
-      SET_DECL_ASSEMBLER_NAME (decl, get_identifier (asmspec));
-      make_decl_rtl (decl, asmspec);
-    }
-  else if (TREE_CODE (decl) == VAR_DECL)
+  if (TREE_CODE (decl) == VAR_DECL)
     {
       /* Only PODs can have thread-local storage.  Other types may require
         various kinds of non-trivial initialization.  */