[java] fix constructor markup
Richard Henderson
rth@redhat.com
Fri Dec 21 11:58:00 GMT 2001
While grepping for other occurences of make_decl_rtl, I found this.
Changes Java to match the rest of the compiler.
r~
* class.c (compile_resource_file): Set TREE_PUBLIC on the constructor
only if the target requires collect2.
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.121
diff -c -p -d -r1.121 class.c
*** class.c 2001/12/16 16:23:49 1.121
--- class.c 2001/12/21 19:22:16
*************** compile_resource_file (name, filename)
*** 923,930 ****
current_function_decl = init_decl;
DECL_RESULT (init_decl) = build_decl (RESULT_DECL,
NULL_TREE, void_type_node);
! /* DECL_EXTERNAL (init_decl) = 1;*/
! TREE_PUBLIC (init_decl) = 1;
pushlevel (0);
make_decl_rtl (init_decl, NULL);
init_function_start (init_decl, input_filename, 0);
--- 923,933 ----
current_function_decl = init_decl;
DECL_RESULT (init_decl) = build_decl (RESULT_DECL,
NULL_TREE, void_type_node);
!
! /* It can be a static function as long as collect2 does not have
! to scan the object file to find its ctor/dtor routine. */
! TREE_PUBLIC (init_decl) = ! targetm.have_ctors_dtors;
!
pushlevel (0);
make_decl_rtl (init_decl, NULL);
init_function_start (init_decl, input_filename, 0);
More information about the Gcc-patches
mailing list