aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>1999-10-18 08:40:20 +0000
committerJeff Law <law@gcc.gnu.org>1999-10-18 02:40:20 -0600
commite3d2508d72d66372c23e3383e2eecf3713329740 (patch)
treeb3c2305d89099f72f6568f8ce90e405926ee6e2f
parentd7d36ea879e7f24f991f3962bbd43152df3b0c80 (diff)
downloadgcc-e3d2508d72d66372c23e3383e2eecf3713329740.zip
gcc-e3d2508d72d66372c23e3383e2eecf3713329740.tar.gz
gcc-e3d2508d72d66372c23e3383e2eecf3713329740.tar.bz2
c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
* c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT. (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of if that tests TREE_PERMANENT. From-SVN: r30068
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-decl.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4bbe8e9..8dcde75 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
+
+ * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
+ (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
+ if that tests TREE_PERMANENT.
+
Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
* combine.c (get_last_value): If the last set of a register
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 3a38c4f..ab1c053 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2220,7 +2220,7 @@ pushdecl (x)
{
if (type == error_mark_node)
break;
- if (! TREE_PERMANENT (type))
+ if (! TYPE_CONTEXT (type))
{
warning_with_decl (x, "type of external `%s' is not global");
/* By exiting the loop early, we leave TYPE nonzero,
@@ -3606,7 +3606,9 @@ finish_decl (decl, init, asmspec_tree)
{
/* This is a no-op in c-lang.c or something real in objc-actions.c. */
maybe_objc_check_decl (decl);
- rest_of_decl_compilation (decl, asmspec, DECL_CONTEXT (decl) == 0,
+ rest_of_decl_compilation (decl, asmspec,
+ (DECL_CONTEXT (decl) == 0
+ || TREE_ASM_WRITTEN (decl)),
0);
}
if (DECL_CONTEXT (decl) != 0)