mirror of git://gcc.gnu.org/git/gcc.git
re PR java/52815 (class.c:2815:53: error: 'JCR_SECTION_NAME' was not declared in this scope)
PR java/52815 * class.c (emit_register_classes_in_jcr_section): Revise placement of #ifdef JCR_SECTION_NAME. From-SVN: r187724
This commit is contained in:
parent
ce863f5d61
commit
bbe9ae5180
|
@ -1,3 +1,9 @@
|
||||||
|
2012-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||||
|
|
||||||
|
PR java/52815
|
||||||
|
* class.c (emit_register_classes_in_jcr_section): Revise placement
|
||||||
|
of #ifdef JCR_SECTION_NAME.
|
||||||
|
|
||||||
2012-04-22 Jan Hubicka <jh@suse.cz>
|
2012-04-22 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* class.c (build_utf8_ref): Do not mark varpool node as needed.
|
* class.c (build_utf8_ref): Do not mark varpool node as needed.
|
||||||
|
|
|
@ -2789,17 +2789,12 @@ emit_indirect_register_classes (tree *list_p)
|
||||||
static void
|
static void
|
||||||
emit_register_classes_in_jcr_section (void)
|
emit_register_classes_in_jcr_section (void)
|
||||||
{
|
{
|
||||||
|
#ifdef JCR_SECTION_NAME
|
||||||
tree klass, cdecl, class_array_type;
|
tree klass, cdecl, class_array_type;
|
||||||
int i;
|
int i;
|
||||||
int size = VEC_length (tree, registered_class);
|
int size = VEC_length (tree, registered_class);
|
||||||
VEC(constructor_elt,gc) *init = VEC_alloc (constructor_elt, gc, size);
|
VEC(constructor_elt,gc) *init = VEC_alloc (constructor_elt, gc, size);
|
||||||
|
|
||||||
#ifndef JCR_SECTION_NAME
|
|
||||||
/* A target has defined TARGET_USE_JCR_SECTION,
|
|
||||||
but doesn't have a JCR_SECTION_NAME. */
|
|
||||||
gcc_unreachable ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
FOR_EACH_VEC_ELT (tree, registered_class, i, klass)
|
FOR_EACH_VEC_ELT (tree, registered_class, i, klass)
|
||||||
CONSTRUCTOR_APPEND_ELT (init, NULL_TREE, build_fold_addr_expr (klass));
|
CONSTRUCTOR_APPEND_ELT (init, NULL_TREE, build_fold_addr_expr (klass));
|
||||||
|
|
||||||
|
@ -2825,6 +2820,11 @@ emit_register_classes_in_jcr_section (void)
|
||||||
relayout_decl (cdecl);
|
relayout_decl (cdecl);
|
||||||
rest_of_decl_compilation (cdecl, 1, 0);
|
rest_of_decl_compilation (cdecl, 1, 0);
|
||||||
mark_decl_referenced (cdecl);
|
mark_decl_referenced (cdecl);
|
||||||
|
#else
|
||||||
|
/* A target has defined TARGET_USE_JCR_SECTION,
|
||||||
|
but doesn't have a JCR_SECTION_NAME. */
|
||||||
|
gcc_unreachable ();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue