aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobert Bowdidge <bowdidge@apple.com>2003-10-21 16:41:53 -0700
committerRobert Bowdidge <bowdidge@gcc.gnu.org>2003-10-21 16:41:53 -0700
commit437081d7f58fc5feaaa1f8afb9739746258ce41b (patch)
treef2defe2f1d160110e8eb43a27d1c8f9cf404f97c /gcc
parent7451756f3107554b2f1c442e3dd1d53e6fc74d46 (diff)
downloadgcc-437081d7f58fc5feaaa1f8afb9739746258ce41b.zip
gcc-437081d7f58fc5feaaa1f8afb9739746258ce41b.tar.gz
gcc-437081d7f58fc5feaaa1f8afb9739746258ce41b.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c12
2 files changed, 6 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b702409..df0297a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 7b27feb..1951b25 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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. */