Commit cbed4565 by Richard Stallman

(assemble_variable): Set last_assemble_variable_decl.

(last_assemble_variable_decl): New variable.

From-SVN: r5877
parent 84a92af4
...@@ -87,6 +87,13 @@ int var_labelno; ...@@ -87,6 +87,13 @@ int var_labelno;
int size_directive_output; int size_directive_output;
/* The last decl for which assemble_variable was called,
if it did ASM_DECLARE_OBJECT_NAME.
If the last call to assemble_variable didn't do that,
this holds 0. */
tree last_assemble_variable_decl;
/* Nonzero if at least one function definition has been seen. */ /* Nonzero if at least one function definition has been seen. */
static int function_defined; static int function_defined;
...@@ -858,6 +865,8 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -858,6 +865,8 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
int reloc = 0; int reloc = 0;
enum in_section saved_in_section; enum in_section saved_in_section;
last_assemble_variable_decl = 0;
if (output_bytecode) if (output_bytecode)
return; return;
...@@ -1179,6 +1188,7 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -1179,6 +1188,7 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
/* Do any machine/system dependent processing of the object. */ /* Do any machine/system dependent processing of the object. */
#ifdef ASM_DECLARE_OBJECT_NAME #ifdef ASM_DECLARE_OBJECT_NAME
last_assemble_variable_decl = decl;
ASM_DECLARE_OBJECT_NAME (asm_out_file, name, decl); ASM_DECLARE_OBJECT_NAME (asm_out_file, name, decl);
#else #else
/* Standard thing is just output label for the object. */ /* Standard thing is just output label for the object. */
......
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