Commit 58ad89b1 by Jakub Jelinek Committed by Jakub Jelinek

objc-act.c (handle_impent): Use assemble_variable to emit __objc_class_name_*.

	* objc/objc-act.c (handle_impent): Use assemble_variable to emit
	__objc_class_name_*.

From-SVN: r48584
parent e403b4bc
2002-01-06 Jakub Jelinek <jakub@redhat.com>
* objc/objc-act.c (handle_impent): Use assemble_variable to emit
__objc_class_name_*.
2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org> 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
* doc/install.texi (sparcv9-*-solaris2*): Add documentation. * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
......
...@@ -8357,14 +8357,23 @@ handle_impent (impent) ...@@ -8357,14 +8357,23 @@ handle_impent (impent)
ASM_DECLARE_CLASS_REFERENCE (asm_out_file, string); ASM_DECLARE_CLASS_REFERENCE (asm_out_file, string);
return; return;
} }
else
#endif #endif
{
tree decl, init;
/* (Should this be a routine in varasm.c?) */ init = build_int_2 (0, 0);
readonly_data_section (); TREE_TYPE (init) = type_for_size (BITS_PER_WORD, 1);
assemble_global (string); decl = build_decl (VAR_DECL, get_identifier (string), TREE_TYPE (init));
assemble_align (UNITS_PER_WORD); TREE_PUBLIC (decl) = 1;
assemble_label (string); TREE_READONLY (decl) = 1;
assemble_zeros (UNITS_PER_WORD); TREE_USED (decl) = 1;
TREE_CONSTANT (decl) = 1;
DECL_CONTEXT (decl) = 0;
DECL_ARTIFICIAL (decl) = 1;
DECL_INITIAL (decl) = init;
assemble_variable (decl, 1, 0, 0);
}
} }
static void static void
......
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