Commit 437081d7 by Robert Bowdidge Committed by Robert Bowdidge

decl.c (cp_finish_decl): Remove clause intended for asm directives in struct or class fields...



* cp/decl.c (cp_finish_decl): Remove clause intended for asm
  directives in struct or class fields: this code is never executed.

From-SVN: r72775
parent 7451756f
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
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment