mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 23:00:15 +08:00
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
This commit is contained in:
parent
d7d36ea879
commit
e3d2508d72
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user