1. 10 Jan, 2004 28 commits
  2. 09 Jan, 2004 12 commits
    • gcc.c (init_spec): Remove -lunwind from shared case. · 9813058e
      2004-01-09   James E Wilson  <wilson@specifixinc.com>
      
      	* gcc.c (init_spec): Remove -lunwind from shared case.
      	* conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
      
      From-SVN: r75611
      James E Wilson committed
    • JLayeredPane.java: Rewrite to accomodate djee@redhat.com's recent inverse ordering of Container... · 27c99ffe
      2004-01-08  Graydon Hoare  <graydon@redhat.com>
      
      	* javax/swing/JLayeredPane.java: Rewrite to accomodate
      	djee@redhat.com's recent inverse ordering of Container elements.
      
      From-SVN: r75608
      Graydon Hoare committed
    • name-lookup.c (qualified_lookup_using_namespace): Consider strong using… · c404ab02
      name-lookup.c (qualified_lookup_using_namespace): Consider strong using directives even if we've already found a binding.
      
      * name-lookup.c (qualified_lookup_using_namespace): Consider
      strong using directives even if we've already found a binding.
      
      From-SVN: r75599
      Alexandre Oliva committed
    • * g++.dg/lookup/strong-using-1.C: New. · bafb62a2
      From-SVN: r75598
      Alexandre Oliva committed
    • configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*. · b0fd7d27
      	* configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
      	* configure: Regenerate
      
      From-SVN: r75597
      Steve Ellcey committed
    • re PR c/11234 (-pedantic accepts function pointer <-> void*) · 3897f229
      	PR c/11234
      	* c-typeck.c (build_c_cast): If pedantic, warn for conversions
      	between function and object pointers.
      	(digest_init): When comparing a pointer to function type to the
      	target type, only apply TREE_TYPE once to the pointer to function
      	type.
      	* except.c (for_each_eh_label_1): Treat data as a pointer to a
      	function pointer rather than casting it to a function pointer.
      	(for_each_eh_label): Update caller.
      	* recog.h (struct insn_data): Use a struct or union for output.
      	* genoutput.c (output_insn_data): Update.
      	* final.c (get_insn_template): Update.
      
      testsuite:
      	* gcc.dg/func-ptr-conv-1.c: New test.
      	* gcc.dg/weak/weak-6.c, gcc.dg/weak/weak-7.c: Update.
      
      From-SVN: r75595
      Joseph Myers committed
    • expr.h (expand_expr): Make it a macro, not a function. · 0fab64a3
      	* expr.h (expand_expr): Make it a macro, not a function.
      	(expand_expr_real): New function.
      	* expr.c (store_expr): Adjust logic for deciding whether or not to
      	copy the value returned by expand_expr.
      	(expand_expr): Rename to ...
      	(expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
      	calls to language hooks.
      	* c-common.h (c_expand_expr): Adjust prototype.
      	* c-common.c (c_expand_expr): Add alt_rtl parameter.
      	* langhooks-def.h (lhd_expand_expr): Change prototype.
      	* langhooks.c (lhd_expand_expr): Add all_rtl parameter.
      	* langhooks.h (lang_hooks): Change type of expand_expr.
      	* stmt.c (stmt_status): Add x_last_expr_alt_rtl.
      	(last_expr_alt_rtl): Likewise.
      	(expand_expr_stmt_value): Set last_expr_alt_rtl.
      	(clear_last_expr): Clear it.
      	(expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
      	(expand_end_bindings): Save and restor last_expr_alt_rtl.
      	* tree.def (RTL_EXPR): Give it an additional operand.
      	* tree.h (RTL_EXPR_ALT_RTL): New macro.
      
      	* misc.c (gnat_expand_expr): Add alt_rtl parameter.
      
      	* cp-tree.h (cxx_expand_expr): Change prototype.
      	* expr.c (cxx_expand_expr): Add alt_rtl parameter.
      
      	* java-tree.h (java_expand_expr): Change prototype.
      	* expr.c (java_expand_expr): Add alt_rtl parameter.
      
      From-SVN: r75594
      Mark Mitchell committed
    • libjava.exp (bytecompile_file): Log compile command. · 2fca049f
      2004-01-09  Andrew Haley  <aph@redhat.com>
      
      	* lib/libjava.exp (bytecompile_file): Log compile command.
      
      From-SVN: r75593
      Andrew Haley committed
    • 2004-01-09 Michael Koch <konqueror@gmx.de> · e6f82998
      	* gnu/java/lang/ArrayHelper.java
      	(equalsArray): Removed.
      
      From-SVN: r75592
      Michael Koch committed
    • natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before… · d55d97f1
      natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before looking at its class.
      
      2004-01-09  Andrew Haley  <aph@redhat.com>
      
      	* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
      	a Utf8Const field before looking at its class.
      
      From-SVN: r75591
      Andrew Haley committed
    • re PR java/12755 (Binary Compatibility: Resolving static methods and classes is not thread safe) · 85194ee9
      2004-01-09  Andrew Haley  <aph@redhat.com>
      
      	PR java/12755:
      	* parse.y (java_fix_constructors):  Set output_class.
      	(java_reorder_fields): Likewise.
      	(java_layout_classes): Likewise.
      	(java_expand_classes): Generate indirect dispatch tables.
      	(java_expand_classes): Set output_class.
      	(java_finish_classes): Likewise.
      	* lang.c (java_init): Turn on always_initialize_class_p if we're
      	using indirect dis[atch.
      	(java_decl_ok_for_sibcall): Use output_class, not current_class.
      	(java_get_callee_fndecl): Use class local atable.
      	* jcf-parse.c
      	(always_initialize_class_p): Decl moved to java-tree.h.
      	(HANDLE_CLASS_INFO): Set output_class.
      	(read_class): Likewise.
      	(parse_class_file): Call gen_indirect_dispatch_tables.
      	(parse_zip_file_entries): Set output_class.
      	(java_parse_file): Set output_class.  Don't emit symbol tables.
      	* java-tree.h (output_class): New.
      	Remove global declarations for otable, atable, and ctable.
      	(always_initialize_class_p): moved here from decl.c.
      	(DECL_OWNER): New.
      	(TYPE_ATABLE_METHODS, TYPE_ATABLE_SYMS_DECL, TYPE_ATABLE_DECL,
      	TYPE_OTABLE_METHODS, TYPE_OTABLE_SYMS_DECL, TYPE_OTABLE_DECL,
      	TYPE_CTABLE_DECL, TYPE_CATCH_CLASSES): New.
      	(struct lang_type): Add otable_methods, otable_decl,
      	otable_syms_decl, atable_methods, atable_decl, atable_syms_decl,
      	ctable_decl, catch_classes, type_to_runtime_map.
      	* expr.c (build_field_ref): Make otable, atable, and ctable class
      	local rather than global.
      	(build_known_method_ref): Likewise.
      	(build_invokeinterface): Likewise.
      	(java_expand_expr): Pass runtime type (rather than actual type) to
      	expand_start_catch.
      	* except.c (prepare_eh_table_type): Create TYPE_TO_RUNTIME_MAP for
      	this class.  Look up each class in that map to delete duplicates.
      	(expand_end_java_handler): Pass runtime type (rather than actual
      	type) to expand_start_catch.
      	* decl.c: (always_initialize_class_p): Decl moved to java-tree.h.
      	(do_nothing): New.
      	(java_init_decl_processing): Rearrange things.  Remove global
      	declarations of otable, atable, and ctable.
      	(java_init_decl_processing): Make lang_eh_runtime_type do_nothing.
      	(java_expand_body): Set output_class.
      	* constants.c (build_constant_data_ref): Use output_class, not
      	current_class.
      	(alloc_name_constant): Likewise.
      	* class.c (gen_indirect_dispatch_tables): New.
      	(build_class_ref): Generate hard reference to superclass, even if
      	using indirect dispatch.
      	(build_static_field_ref): Use class local atable.
      	(make_class_data): Generate hard reference to superclass, even if
      	using indirect dispatch.
      	Generate symbolic references to interfaces when using indirect
      	dispatch.
      	(make_class_data): Emit otable, atable, and ctable.
      	Make otable, atable, and ctable class local rather than global.
      	(emit_catch_table): Make otable, atable, and ctable class local
      	rather than global.
      
      From-SVN: r75590
      Andrew Haley committed
    • (call26_operand): Allow in PIC mode. · 900a35c8
      From-SVN: r75589
      Kazuhiro Inaoka committed