* varasm.c (assemble_variable): Create DECL_RTL before setting
TREE_ASM_WRITTEN.
From-SVN: r44372
+2001-07-25 Richard Henderson <rth@redhat.com>
+
+ * varasm.c (assemble_variable): Create DECL_RTL before setting
+ TREE_ASM_WRITTEN.
+
Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
* predict.c (estimate_probability): Avoid duplicated predictions.
Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
* predict.c (estimate_probability): Avoid duplicated predictions.
register const char *name;
unsigned int align;
int reloc = 0;
register const char *name;
unsigned int align;
int reloc = 0;
last_assemble_variable_decl = 0;
last_assemble_variable_decl = 0;
if (TREE_ASM_WRITTEN (decl))
return;
if (TREE_ASM_WRITTEN (decl))
return;
+ /* Make sure ENCODE_SECTION_INFO is invoked before we set ASM_WRITTEN. */
+ decl_rtl = DECL_RTL (decl);
+
TREE_ASM_WRITTEN (decl) = 1;
/* Do no output if -fsyntax-only. */
TREE_ASM_WRITTEN (decl) = 1;
/* Do no output if -fsyntax-only. */
- name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
+ name = XSTR (XEXP (decl_rtl, 0), 0);
if (TREE_PUBLIC (decl) && DECL_NAME (decl)
&& ! first_global_object_name
&& ! (DECL_COMMON (decl) && (DECL_INITIAL (decl) == 0
if (TREE_PUBLIC (decl) && DECL_NAME (decl)
&& ! first_global_object_name
&& ! (DECL_COMMON (decl) && (DECL_INITIAL (decl) == 0