Commit a44cea75 by Mark Mitchell Committed by Mark Mitchell

varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of TRANSLATION_UNIT_DECL as top_level.

	* varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
	TRANSLATION_UNIT_DECL as top_level.

From-SVN: r69244
parent 358b8f01
2003-07-11 Mark Mitchell <mark@codesourcery.com>
* varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
TRANSLATION_UNIT_DECL as top_level.
2003-07-11 Jakub Jelinek <jakub@redhat.com> 2003-07-11 Jakub Jelinek <jakub@redhat.com>
* optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists, * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
......
...@@ -750,7 +750,9 @@ decode_reg_name (const char *asmspec) ...@@ -750,7 +750,9 @@ decode_reg_name (const char *asmspec)
void void
make_decl_rtl (tree decl, const char *asmspec) make_decl_rtl (tree decl, const char *asmspec)
{ {
int top_level = (DECL_CONTEXT (decl) == NULL_TREE); int top_level = (DECL_CONTEXT (decl) == NULL_TREE
|| (TREE_CODE (DECL_CONTEXT (decl))
== TRANSLATION_UNIT_DECL));
const char *name = 0; const char *name = 0;
const char *new_name = 0; const char *new_name = 0;
int reg_number; int reg_number;
......
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