class.c (emit_register_classes): Use assemble_jcr if possible.
authorAnthony Green <green@redhat.com>
Wed, 8 Aug 2001 23:33:51 +0000 (23:33 +0000)
committerAnthony Green <green@gcc.gnu.org>
Wed, 8 Aug 2001 23:33:51 +0000 (23:33 +0000)
commit6351543d13052c85f87b6e1e8af0273279a5c771
treeb2a3074871661348b009c02745413b72c17c05ab
parente8406c89d1aeb29b08924d191293dbb102051065
class.c (emit_register_classes): Use assemble_jcr if possible.

2001-08-08  Anthony Green  <green@redhat.com>

* java/class.c (emit_register_classes): Use assemble_jcr if
possible.  Keep the original mechanism as a fallback.
* defaults.h (JCR_SECTION_NAME): Define if we have named section
and weak symbol support.
* crtstuff.c (__JCR_LIST__): Define.
(__JCR_END__): Define.
(_Jv_RegiserClasses): Define weak symbol if possible.
(__do_global_ctors_aux): Register classes for ELF targets with
weak symbol support.

From-SVN: r44731
gcc/ChangeLog
gcc/crtstuff.c
gcc/defaults.h
gcc/java/class.c