bernds [Thu, 11 Jan 2001 15:57:59 +0000 (15:57 +0000)]
Update for 2.95.3
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38907
138bc75d-0d04-0410-961f-
82ee72b054a4
rearnsha [Thu, 11 Jan 2001 14:01:45 +0000 (14:01 +0000)]
* encoding.c (STRUCTURE_SIZE_BOUNDARY): Redefine in a way that
determines the value dynamically.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38906
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 11 Jan 2001 13:34:00 +0000 (13:34 +0000)]
cp:
* decl2.c (get_guard): Set linkage from guarded decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38905
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 11 Jan 2001 12:50:28 +0000 (12:50 +0000)]
testsuite:
* g++.old-deja/g++.pt/instantiate13.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38904
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 11 Jan 2001 12:29:20 +0000 (12:29 +0000)]
cp:
* call.c (convert_default_arg): Check for unprocessed
DEFAULT_ARG.
* cp-tree.h (replace_defarg): Move to spew.c.
(maybe_snarf_defarg, add_defarg_fn, do_pending_defargs): Move to
spew.c, which is where they really are.
(done_pending_defargs): Declare.
(unprocessed_defarg_fn): Declare.
* decl.c (replace_defarg): Move to spew.c
* parse.y (structsp): Call done_pending_defargs.
* spew.c (defarg_fns): Rearrange list structure.
(defarg_fnsdone): New static variable.
(defarg_depfns): New static variable.
(init_spew): Adjust.
(add_defarg_fn): Store the type in TREE_TYPE.
(do_pending_defargs): Detect and deal with ordering constraints
and circularity.
(done_pending_defargs): New function.
(unprocessed_defarg_fn): New function.
(replace_defarg): Moved from decl.c. Robustify. Don't save
if circularity detected.
testsuite:
* g++.old-deja/g++.other/defarg7.C: New test.
* g++.old-deja/g++.other/defarg8.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38903
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 11 Jan 2001 11:45:03 +0000 (11:45 +0000)]
cp:
* pt.c (unify): Check array has a domain, before checking
whether it is variable sized.
testsuite:
* g++.old-deja/g++.pt/crash64.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38902
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 11 Jan 2001 11:37:15 +0000 (11:37 +0000)]
cp:
* decl.c (grokparms): Unobfuscate and get correct diagnostic for
parameters with pointers to arrays of unknown bound.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38901
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Thu, 11 Jan 2001 11:29:06 +0000 (11:29 +0000)]
cp:
* parse.y (template_parm_header, template_spec_header): New
reductions. Split out from ...
(template_header): ... here. Use them.
(template_template_parm): Use template_parm_header.
* semantics.c (finish_template_template_parm): Add assert.
testsuite:
* g++.old-deja/g++.pt/crash63.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38900
138bc75d-0d04-0410-961f-
82ee72b054a4
m.hayes [Thu, 11 Jan 2001 09:13:02 +0000 (09:13 +0000)]
* flow.c (flow_call_edges_add): New.
* basic_block.h (flow_call_edges_add): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38899
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 11 Jan 2001 08:45:08 +0000 (08:45 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38898
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Thu, 11 Jan 2001 08:11:29 +0000 (08:11 +0000)]
* gcc.dg/cpp/if-2.c: Fix bogus update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38897
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Thu, 11 Jan 2001 07:53:41 +0000 (07:53 +0000)]
* gcc.dg/cpp/if-2.c: Add wide char test without sign extension.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38896
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Thu, 11 Jan 2001 07:27:50 +0000 (07:27 +0000)]
2001-01-10 Benjamin Kosnik <bkoz@redhat.com>
* src/ios.cc: Fix typo: change cout->wcout.
* src/Makefile.am (targetincludep): Fix for version-specific-libs.
* src/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38895
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Thu, 11 Jan 2001 03:15:49 +0000 (03:15 +0000)]
* mangle.c (write_builtin_type): Fix thinko.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38894
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Thu, 11 Jan 2001 03:10:12 +0000 (03:10 +0000)]
* pt.c (copy_default_args_to_explicit_spec_1): New function.
(copy_default_args_to_explicit_spec): Likewise.
(check_explicit_specialization): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38893
138bc75d-0d04-0410-961f-
82ee72b054a4
bryce [Thu, 11 Jan 2001 03:00:56 +0000 (03:00 +0000)]
* parse.y (resolve_expression_name): Permit instance variables from
enclosing context in super constructor call.
(resolve_qualified_expression_name): Permit enclosing class's
qualified "this" in super constructor call.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38892
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Thu, 11 Jan 2001 02:57:52 +0000 (02:57 +0000)]
* reload1.c (move2add_note_store): Update reg_set_luid even if
base reg remains the same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38891
138bc75d-0d04-0410-961f-
82ee72b054a4
bryce [Thu, 11 Jan 2001 02:50:47 +0000 (02:50 +0000)]
* Makefile.am: Re-enable dependencies.
* Makefile.in: Rebuilt.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38890
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 11 Jan 2001 02:12:48 +0000 (02:12 +0000)]
Rotate ChangeLog entries.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38889
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Thu, 11 Jan 2001 01:47:23 +0000 (01:47 +0000)]
Initialise machine_function structure to zero.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38888
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Thu, 11 Jan 2001 00:08:45 +0000 (00:08 +0000)]
* c-common.h (CTI_VOID_LIST): Remove.
(void_list_node): Likewise.
* tree.h (TI_VOID_LIST_NODE): New enumeral.
(void_list_node): New macro.
* config/arm/arm.c (arm_init_builtins): Use void_list_node.
* config/i386/i386.c (ix86_init_builtins): Likewise.
* config/ia64a/ia64.c (ia64_init_builtins): Likewise.
* class.c (finish_struct_1): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
* decl.c (builtin_function): Likewise.
(build_cp_library_fn): Likewise.
(check_initializer): Likewise.
(make_rtl_for_nonlocal_decl): Likewise.
(cp_finish_decl): Likewise.
(start_function): Likewise.
* decl2.c (finish_anon_union): Likewise.
* friend.c (do_friend): Likewise.
* init.c (build_java_class_ref): Likewise.
* method.c (make_thunk): Likewise.
* pt.c (tsubst_friend_function): Likewise.
* semantics.c (expand_body): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38887
138bc75d-0d04-0410-961f-
82ee72b054a4
alehotsky [Wed, 10 Jan 2001 23:57:55 +0000 (23:57 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38886
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Wed, 10 Jan 2001 23:28:00 +0000 (23:28 +0000)]
* Makefile.in (tradcpp0): Depend on mkdeps.h. Link mkdeps.o
* cppinit.c (cpp_start_read): Update comment, remove unneeded
if statement.
* tradcpp.c: Include mkdeps.h.
(deps, print_deps_phony_targets, deps_append, output_deps,
init_dependency_output, output_deps): New.
(deps_buffer, deps_allocated_size, deps_size, deps_column,
deps_output): Delete.
(print_deps_missing_files): Rename deps_missing_files.
(inhibit_output): Make global.
(main): Delete inhibit_output, deps_stream, deps_target.
Use mkdeps functionality in the same way as cpplib. Remove
-g3 handling. Handle -MF, -MP, -MQ, -MT. Update handling of
-M and -MM. Remove old handling of deps via deps_out, and
old reading of environment variables.
(get_filename): Update to use deps_add_dep.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38885
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Wed, 10 Jan 2001 23:06:30 +0000 (23:06 +0000)]
* output.h (make_function_rtl): Remove prototype.
(make_decl_rtl): Likewise.
* varasm.c (make_function_rtl): Remove.
(make_decl_rtl): Determine top-levelness from DECL_CONTEXT, rather
than from a third parameter.
* tree.h (make_decl_rtl): Remove last parameter.
* c-decl.c (builtin_function): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
(start_function): Likewise.
* except.c (call_get_eh_context): Likewise.
* expr.c (emit_block_move): Likewise.
(clear_storage): Likewise.
* profile.c (output_func_start_profiler): Likewise.
* toplev.c (rest_of_decl_compilation): Likewise.
* objc/objc-act.c (create_builtin_decl): Likewise.
(synth_module_prologue): Likewise.
(generate_static_reference): Likewise.
(build_selector_reference_decl): Likewise.
(build_class_reference_decl): Likewise.
(build_objc_string_decl): Likewise.
(build_protocol_reference): Likewise.
* class.c (finish_struct_1): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
* decl.c (builtin_function): Likewise.
(build_cp_library_fn): Likewise.
(check_initializer): Likewise.
(make_rtl_for_nonlocal_decl): Likewise.
(cp_finish_decl): Likewise.
(start_function): Likewise.
* decl2.c (finish_anon_union): Likewise.
* friend.c (do_friend): Likewise.
* init.c (build_java_class_ref): Likewise.
* method.c (make_thunk): Likewise.
* pt.c (tsubst_friend_function): Likewise.
* semantics.c (expand_body): Likewise.
* com.c (ffecom_init_zero_): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
(ffecom_lookup_label_): Likewise.
(builtin_function): Likewise.
(start_function): Likewise.
* class.c (build_utf8_ref): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
(build_class_ref): Likewise.
(build_static_field_ref): Likewise.
(get_dispatch_table): Likewise.
(layout_class_method): Likewise.
(emit_register_classes): Likewise.
* constants.c (build_constant_data_ref): Likewise.
* decl.c (builtin_function): Likewise.
(create_primitive_vtable): Likewise.
* expr.c (build_known_method_def): Likewise.
(build_jni_stub): Likewise.
(java_lang_expand_expr): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38884
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 10 Jan 2001 22:27:40 +0000 (22:27 +0000)]
* hwint.h: Revert yesterday's change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38883
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Wed, 10 Jan 2001 21:40:14 +0000 (21:40 +0000)]
Remove {save|restore}_machine_status.
Document {init|mark|free}_machine_status.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38882
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Wed, 10 Jan 2001 21:32:15 +0000 (21:32 +0000)]
* cppinit.c (OPT_g): Remove.
(cpp_handle_option): Update for removed -g3.
(print_help): Update.
* cpplib.h (struct cpp_options): Remove debug_output.
* cppmain.c (setup_callbacks, cb_define): Update.
* gcc.c (cpp_options): Translate -g3 to -dD.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38881
138bc75d-0d04-0410-961f-
82ee72b054a4
aldyh [Wed, 10 Jan 2001 21:14:04 +0000 (21:14 +0000)]
fix constraint for i960.md
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38880
138bc75d-0d04-0410-961f-
82ee72b054a4
aldyh [Wed, 10 Jan 2001 21:12:28 +0000 (21:12 +0000)]
fix constraint
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38879
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Wed, 10 Jan 2001 20:55:03 +0000 (20:55 +0000)]
2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/std_complex.h: Fix a typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38878
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Wed, 10 Jan 2001 19:59:23 +0000 (19:59 +0000)]
* config/alpha/alpha.c (alpha_free_machine_status): New.
(override_options): Install it.
(alpha_mark_machine_status): Verify machine non-null.
* config/i386/i386.c (ix86_free_machine_status): New.
(override_options): Install it.
(ix86_init_machine_status): Use xcalloc.
(ix86_mark_machine_status): Verify machine non-null.
* config/ia64/ia64.c (ia64_free_machine_status): New.
(ia64_override_options): Install it.
(ia64_mark_machine_status): Verify machine non-null.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38877
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Wed, 10 Jan 2001 19:55:03 +0000 (19:55 +0000)]
* cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
looking at DECL_CLONED_FUNCTION for non-functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38876
138bc75d-0d04-0410-961f-
82ee72b054a4
apbianco [Wed, 10 Jan 2001 19:20:52 +0000 (19:20 +0000)]
2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
* decl2.c (acceptable_java_type): Allow references too.
* init.c (build_java_class_ref): When using the new ABI, search
`class$' and have it mangled with `mangle_decl.'
* mangle.c (write_java_integer_type_codes): New function.
(write_builtin_type): Detect and mangle Java integer and real
types.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg00756.html)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38875
138bc75d-0d04-0410-961f-
82ee72b054a4
tromey [Wed, 10 Jan 2001 19:13:10 +0000 (19:13 +0000)]
* jvspec.c (jvgenmain_spec): Omit -fencoding from cc1 invocation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38874
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 10 Jan 2001 18:35:50 +0000 (18:35 +0000)]
* function.c (instantiate_virtual_regs): Instantiate virtual
registers found in CALL_INSN_FUNCTION_USAGE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38873
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 10 Jan 2001 17:52:40 +0000 (17:52 +0000)]
* i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
equivalent to -ansi in disabling -Di386.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38872
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Wed, 10 Jan 2001 17:24:11 +0000 (17:24 +0000)]
2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
<kainz@ilm.com>
Fixes for libstdc++/1576
* src/stdstreams.cc: Initialize with NULL filebuf. Delete
file, move contents into....
* src/ios.cc: ...Here. Put defines for iostreams objects and
initialization routines into one file to simplify DSO interaction.
* include/bits/std_iostream.h: Touch.
* include/bits/ios_base.h (_S_synched_with_stdio): Make static.
* src/Makefile.am (sources): Remove stdstreams.cc.
* src/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38871
138bc75d-0d04-0410-961f-
82ee72b054a4
apbianco [Wed, 10 Jan 2001 17:05:43 +0000 (17:05 +0000)]
2001-01-08 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java-tree.h (lang_printable_name_wls): New prototype.
* lang.c (put_decl_name): Removed dead code. Use DECL_CONTEXT
rather than `current_class' to print type name. Don't prepend type
names when printing constructor names.
(lang_printable_name_wls): New function.
* jcf-parse.c (jcf_parse_source): Pass NULL `file' argument to
`build_expr_wfl', alway set EXPR_WFL_FILENAME_NODE.
* parse.y (patch_method_invocation): Message tuned for constructors.
(not_accessible_p): Grant `private' access from within
enclosing contexts.
2001-01-05 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (patch_binop): Compute missing type in error situations.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg00752.html)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38870
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Wed, 10 Jan 2001 15:41:00 +0000 (15:41 +0000)]
cp:
* error.c (dump_template_parameter): Use parm to determine how
to print default value.
testsuite:
* g++.old_deja/g++.pt/error3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38869
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Wed, 10 Jan 2001 15:39:55 +0000 (15:39 +0000)]
* i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
new functions.
(ix86_expand_fp_compare): Make trivial use of new infrastructure.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38868
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Wed, 10 Jan 2001 15:30:59 +0000 (15:30 +0000)]
cp:
* class.c (duplicate_tag_error): Clear more flags.
testsuite:
* g++.old_deja/g++.other/crash39.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38867
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Wed, 10 Jan 2001 14:13:41 +0000 (14:13 +0000)]
cp:
* call.c (build_new_method_call): Use binfo_for_vbase.
testsuite:
* g++.old_deja/g++.other/vbase4.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38866
138bc75d-0d04-0410-961f-
82ee72b054a4
rearnsha [Wed, 10 Jan 2001 13:54:30 +0000 (13:54 +0000)]
Temporary fix to work around bug in C++ front end.
* arm.c (arm_init_builtins): Temporarily disable xscale builtins.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38865
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 10 Jan 2001 10:57:17 +0000 (10:57 +0000)]
* invoke.texi: Document that -fcond-mismatch isn't supported for
C++.
cp:
* cp-tree.h (flag_cond_mismatch): Don't declare.
* decl2.c (flag_cond_mismatch): Don't define.
(lang_f_options): Remove cond-mismatch.
(unsupported_options): Add cond-mismatch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38864
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 10 Jan 2001 10:54:02 +0000 (10:54 +0000)]
gcc:
* gcc.texi: Define macro gcctabopt.
* invoke.texi: Add manpage sections BUGS and AUTHOR. Use
@command, @env and @option in some places where appropriate. Use
@gcctabopt where appropriate. Put URLs and email addresses inside
@w.
contrib:
* texi2pod.pl: Handle @gcctabopt and @env in tables. Handle
@command. Format URLs and email addresses in bold.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38863
138bc75d-0d04-0410-961f-
82ee72b054a4
warrenl [Wed, 10 Jan 2001 10:26:34 +0000 (10:26 +0000)]
* java/math/BigDecimal.java (divide): Fixed comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38862
138bc75d-0d04-0410-961f-
82ee72b054a4
warrenl [Wed, 10 Jan 2001 09:38:08 +0000 (09:38 +0000)]
Fix for PR libgcj/1596:
* java/math/BigDecimal.java (divide): Check newScale for validity.
Ensure that BigInteger.pow() is called with a non-negative value.
(setScale (int)): New public method.
(setScale (int,int)): New public method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38861
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 10 Jan 2001 08:45:10 +0000 (08:45 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38860
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Wed, 10 Jan 2001 08:18:10 +0000 (08:18 +0000)]
* gcc.c (cpp_options): Set MD file name from output
filename, if specified.
(suffix_subst): New static variable.
(do_spec): Clear it.
(do_spec_1, case '.'): Handle new `%.suffix' spec.
Clear it.
(give_switch): Handle suffix_subst.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38859
138bc75d-0d04-0410-961f-
82ee72b054a4
pme [Wed, 10 Jan 2001 08:10:59 +0000 (08:10 +0000)]
2001-01-10 Phil Edwards <pme@sources.redhat.com>
* invoke.texi: Fix another typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38858
138bc75d-0d04-0410-961f-
82ee72b054a4
pme [Wed, 10 Jan 2001 07:54:07 +0000 (07:54 +0000)]
2001-01-10 Phil Edwards <pme@sources.redhat.com>
* invoke.texi: Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38857
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Wed, 10 Jan 2001 07:51:11 +0000 (07:51 +0000)]
* c-lang.c (lang_hooks): Update.
(lang_decode_option): Remove.
(lang_init_options): Rename c_init_options.
* toplev.c (main): Use lang_hooks for lang_init_options
and lang_decode_option.
* toplev.h (lang_hooks): Add 2 new hooks.
* tree.h: Remove lang_init_options and lang_decode_option.
* cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
* cp/decl2.c: Similarly.
* cp/lex.c (lang_init_options): Rename cxx_init_options.
(lang_hooks): Update.
* f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
for consistency.
(lang_init_options): Rename ffe_init_options.
(lang_hooks): Update.
(lang_decode_option): Remove.
* java/lang.c (lang_init_options): Rename java_init_options.
(lang_decode_option): Rename java_decode_option.
(lang_hooks): Update.
* objc/objc-act.c (lang_init_options): Rename objc_init_options.
(lang_decode_option): Rename objc_decode_option.
(lang_hooks): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38856
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Wed, 10 Jan 2001 05:29:14 +0000 (05:29 +0000)]
Change from using {save|restore}_machine_status to {init|mark|free}_machine_status
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38855
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 10 Jan 2001 04:35:07 +0000 (04:35 +0000)]
* pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code,
PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
* pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38854
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 10 Jan 2001 04:32:04 +0000 (04:32 +0000)]
* objc/lang-options.h: Remove bogus reference to
Java trademark.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38853
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Wed, 10 Jan 2001 04:19:31 +0000 (04:19 +0000)]
* gcc.dg/
20000419-2.c: Move to "special" subdirectory.
* gcc.dg/special/
20000419-2.c: New file. Identical to above.
* gcc.dg/special/special.exp: New test driver which will check
for alias support for the above test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38852
138bc75d-0d04-0410-961f-
82ee72b054a4
gdr [Wed, 10 Jan 2001 02:48:08 +0000 (02:48 +0000)]
2001-01-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* tests_flags.in (check_directory): Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38851
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Wed, 10 Jan 2001 02:47:50 +0000 (02:47 +0000)]
2001-01-09 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (get_shift_alg): Use a struct shift_info to
return the result.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38850
138bc75d-0d04-0410-961f-
82ee72b054a4
alehotsky [Wed, 10 Jan 2001 02:34:14 +0000 (02:34 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38849
138bc75d-0d04-0410-961f-
82ee72b054a4
gdr [Wed, 10 Jan 2001 02:30:57 +0000 (02:30 +0000)]
2001-01-09 Peter Schmid<schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/std_complex.h: Fix a typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38848
138bc75d-0d04-0410-961f-
82ee72b054a4
gerald [Wed, 10 Jan 2001 02:08:16 +0000 (02:08 +0000)]
* config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
code path:) Remove magic constants and restructure to handle
ctype.h bit mask layout changes more gracefully. (Make fast
code path:) Use __maskrune (), if available.
(is): Remove special case for digit and xdigit masks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38847
138bc75d-0d04-0410-961f-
82ee72b054a4
alehotsky [Wed, 10 Jan 2001 01:14:28 +0000 (01:14 +0000)]
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38846
138bc75d-0d04-0410-961f-
82ee72b054a4
oldham [Wed, 10 Jan 2001 00:51:39 +0000 (00:51 +0000)]
Remove unintentional merge indicators.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38845
138bc75d-0d04-0410-961f-
82ee72b054a4
oldham [Wed, 10 Jan 2001 00:49:22 +0000 (00:49 +0000)]
2001-01-09 Jeffrey Oldham <oldham@codesourcery.com>
* g++.old-deja/g++.ext/instantiate2.C: ERROR line should fail for
mips.
* g++.old-deja/g++.ext/instantiate3.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38844
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 9 Jan 2001 22:51:05 +0000 (22:51 +0000)]
* c-common.c (enum format_type): Add format_type_error.
(decode_format_type): New function.
(decl_attributes): Use it.
(format_kind_info): Adjust comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38843
138bc75d-0d04-0410-961f-
82ee72b054a4
obrien [Tue, 9 Jan 2001 22:10:53 +0000 (22:10 +0000)]
2001-01-09 David O'Brien <obrien@BSDi.com>
* config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1,
i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific
files in tm_file.
* config/i386/gnu.h: Don't include required platform specific .h files,
tm.h will do it instead.
* config/i386/i386elf.h: Likewise.
* config/i386/linux.h: Likewise.
* config/i386/moss.h: Likewise.
* config/mips/gnu.h: Likewise.
Approved by: Richard Henderson <rth@redhat.com>
Message-ID: <
20010107030000.A24090@redhat.com>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38842
138bc75d-0d04-0410-961f-
82ee72b054a4
sirl [Tue, 9 Jan 2001 20:46:11 +0000 (20:46 +0000)]
2001-01-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
(rs6000-ibm-aix3.[01]*): Likewise.
(rs6000-ibm-aix3.2.[456789]*, powerpc-ibm-aix3.2.[456789]*): Likewise.
(rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Likewise.
(rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Likewise.
(rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
(powerpc-*-sysv*): Include {tm_file}. svr4.h and rs6000/sysv4.h.
(powerpc-*-eabiaix*): Likewise.
(powerpc-*-eabisim*): Likewise.
(powerpc-*-elf*): Likewise.
(powerpc-*-eabi*): Likewise.
(powerpc-*-rtems*): Likewise.
(powerpc-*-linux*libc1): Likewise.
(powerpc-*-linux*): Likewise.
(powerpc-wrs-vxworks*): Likewise.
(powerpcle-wrs-vxworks*): Likewise.
(powerpcle-*-sysv*): Likewise.
(powerpcle-*-elf*): Likewise.
(powerpcle-*-eabisim*): Likewise.
(powerpcle-*-eabi*): Likewise.
(powerpcle-*-solaris2*): Likewise.
* config/rs6000/aix31.h: Delete includes.
* config/rs6000/aix3newas.h: Likewise.
* config/rs6000/aix41.h: Likewise.
* config/rs6000/aix43.h: Likewise.
* config/rs6000/beos.h: Likewise.
* config/rs6000/rtems.h: Likewise.
* config/rs6000/sysv4.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38841
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Tue, 9 Jan 2001 20:17:02 +0000 (20:17 +0000)]
2001-01-09 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (function_prologue): Fix code for a
monitor function. Support H8/S.
(function_epilogue): Do not output pop for a monitor function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38840
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Tue, 9 Jan 2001 20:02:35 +0000 (20:02 +0000)]
2001-01-09 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (get_shift_alg): Remove an argument cpu.
Change an argument mode of machine_mode to shift_mode of
shift_mode. Remove an extra error check.
(emit_a_shift): Adopt to the new calling prototype of
get_shift_alg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38839
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Tue, 9 Jan 2001 19:38:25 +0000 (19:38 +0000)]
oops - omitted from previous delta
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38838
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Tue, 9 Jan 2001 18:55:41 +0000 (18:55 +0000)]
* Makefile.in (CONFIGURE_TARGET_MODULES): Pass back configuration
failures of subdirectories.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38837
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Tue, 9 Jan 2001 18:07:51 +0000 (18:07 +0000)]
SWitch use if {save|restore}_machine_status with {init|free}_machine_status
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38836
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Tue, 9 Jan 2001 17:45:12 +0000 (17:45 +0000)]
* sched-int.h (struct deps): Add max_reg, reg_last_in_use; merge
reg_last_uses, reg_last_sets, reg_last_clobbers into struct deps_reg.
* sched-deps.c (sched_analyze_1): Update uses of struct deps.
(sched_analyze_2, sched_analyze_insn): Likewise.
(sched_analyze, init_deps): Likewise.
(free_deps): Likewise. Iterate with EXECUTE_IF_SET_IN_REG_SET.
* sched-rgn.c (propagate_deps): Likewise. Remove max_reg argument.
(compute_block_backward_dependences): Update propagate_deps call.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38835
138bc75d-0d04-0410-961f-
82ee72b054a4
dj [Tue, 9 Jan 2001 16:35:53 +0000 (16:35 +0000)]
* gcc.c (process_command): Set switches[n_switches].ordering to 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38834
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Tue, 9 Jan 2001 14:45:44 +0000 (14:45 +0000)]
* cppinit.c (OPT_MD, OPT_MMD): Restore.
(cpp_handle_option): Handle them.
(cpp_post_options): Ensure one of -M or -MM is specified with
any other -M? option.
(init_dependency_output): Suppress output with -MG.
* cpp.texi: Update.
* invoke.texi: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38833
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 9 Jan 2001 14:23:50 +0000 (14:23 +0000)]
* sh.md (reload_outsf): Generate recognizable patterns for
TARGET_SH3E.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38832
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Tue, 9 Jan 2001 11:37:07 +0000 (11:37 +0000)]
cp:
* class.c (handle_using_decl): Reject using of constructor name
of sourcing class. Allow injecting of a method with same name as
nested class. Fixup error messages.
testsuite:
* g++.old_deja/g++.pt/using8.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38831
138bc75d-0d04-0410-961f-
82ee72b054a4
warrenl [Tue, 9 Jan 2001 11:21:12 +0000 (11:21 +0000)]
2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
Fix for PR libgcj/1338:
* java/io/StreamTokenizer.java (nextToken): Handle // and /* before
commentChar. Fixed typos in comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38830
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Tue, 9 Jan 2001 10:58:19 +0000 (10:58 +0000)]
* ChangLog: Edited wrong ChangeLog.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38829
138bc75d-0d04-0410-961f-
82ee72b054a4
neil [Tue, 9 Jan 2001 10:54:01 +0000 (10:54 +0000)]
* c-lang.c (lang_hooks): Update.
(lang_init): Rename c_init.
(lang_finish): Remove.
* toplev.c (compile_file): Use lang_hooks for lang_init ()
and lang_finish ().
* toplev.h (lang_hooks): Add init () and finish ().
* tree.h (lang_init, lang_finish): Remove.
* cp/tree.h (lang_init, lang_finish): Remove.
* cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
* cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
lang_hooks): New.
(lang_init, lang_finish): Remove.
* f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
(lang_hooks): Update.
* java/lang.c (lang_init): Rename java_init.
(lang_finish): Remove.
(lang_hooks): Update.
* objc/objc-act.c (lang_init): Rename objc_init.
(lang_finish): Remove.
(lang_hoooks): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38828
138bc75d-0d04-0410-961f-
82ee72b054a4
grahams [Tue, 9 Jan 2001 10:51:42 +0000 (10:51 +0000)]
* cppfiles.c (_cpp_execute_include): Move `len` initialisation
after `ptr` is initialised.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38827
138bc75d-0d04-0410-961f-
82ee72b054a4
grahams [Tue, 9 Jan 2001 10:43:47 +0000 (10:43 +0000)]
* cppfiles.c (_cpp_execute_include): Move `len` initialisation
after `ptr` is initialised.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38826
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 9 Jan 2001 10:37:02 +0000 (10:37 +0000)]
* decl2.c (lang_decode_option): Handle -Wformat=2.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38825
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 9 Jan 2001 10:35:21 +0000 (10:35 +0000)]
* gcc.dg/format/attr-2.c, gcc.dg/format/attr-3.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38824
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 9 Jan 2001 10:31:32 +0000 (10:31 +0000)]
* config/sh/sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
(INITIALIZE_TRAMPOLINE): Adjust accordingly.
* config/sh/sh.c (sh_expand_prologue): Use r1 as temporary for
stack adjusts, instead of r3.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38823
138bc75d-0d04-0410-961f-
82ee72b054a4
m.hayes [Tue, 9 Jan 2001 10:25:44 +0000 (10:25 +0000)]
* flow.c (flow_loop_scan): Break out of ...
(flow_loops_find) ... here.
* basic-block.h (flow_loop_scan): New.
(LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES): Add.
(LOOP_EDGES, LOOP_EXITS_DOMS, LOOP_ALL): Redefine.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38822
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 9 Jan 2001 09:30:43 +0000 (09:30 +0000)]
* cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
macro_buffer_len.
* cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
realloc()ing macro_buffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38821
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 9 Jan 2001 09:28:07 +0000 (09:28 +0000)]
* hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
if it's wider than long and the target's long is wider than the
host's.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38820
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Tue, 9 Jan 2001 08:45:11 +0000 (08:45 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38819
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Tue, 9 Jan 2001 08:32:01 +0000 (08:32 +0000)]
Remove support for using UWIN as a host machine.
* configure.in: Issue an error message.
* configure: Regenerated.
* config.gcc: Remove xm_* UWIN configury.
* config/i386/xm-uwin.h: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38818
138bc75d-0d04-0410-961f-
82ee72b054a4
robertl [Tue, 9 Jan 2001 07:42:45 +0000 (07:42 +0000)]
* include/c_std/bits/std_ctime.h: Undefine difftime.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38817
138bc75d-0d04-0410-961f-
82ee72b054a4
warrenl [Tue, 9 Jan 2001 07:07:51 +0000 (07:07 +0000)]
Fix for PR libgcj/1411:
* Makefile.am: Removed java/util/natTimeZone.cc.
* Makefile.in: Rebuilt.
* gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
missing localized timezone names.
* java/lang/System.java (getDefaultTimeZoneId): New private method.
* java/lang/natSystem.cc (getSystemTimeZone): New private method.
(init_properties): Set user.timezone property.
* java/text/DateFormatSymbols.java (zoneStringsDefault): Added
default timezone names; removed non-standard ones. Use standard
ID names per JCL.
* java/util/Date.java (toGMTString): Removed zoneGMT variable.
(UTC): Ditto.
* java/util/TimeZone.java: Add standard ID names per JCL; removed
non-standard ones.
(getDefaultTimeZoneId): Removed.
(zoneGMT): Removed.
(getDefaultTimeZoneId): Removed.
* java/util/natTimeZone.cc: Removed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38816
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Tue, 9 Jan 2001 03:10:13 +0000 (03:10 +0000)]
Use init/mark/free machine status functions.
Fix compile time warnings building varasm.o
Define USER_LABEL_PREFIX, undefine ASM_OUTPUT_LABELREF
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38815
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 9 Jan 2001 03:01:56 +0000 (03:01 +0000)]
* src/gen-num-limits.cc (signal_adapter): New template function.
(signal_handler): Use it, instead of signal.
(traps<T>): Likewise. Install SIGTRAP handler too. Don't
require both tests to trap to set trap_flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38814
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Tue, 9 Jan 2001 02:40:18 +0000 (02:40 +0000)]
* sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
1 to unsigned HOST_WIDE_INT before left shift.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38813
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Tue, 9 Jan 2001 01:11:34 +0000 (01:11 +0000)]
* gcc.c-torture/execute/ieee/mzero2.x: Adjust statement of
where a failure is expected.
* gcc.c-torture/execute/ieee/rbug.x: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38812
138bc75d-0d04-0410-961f-
82ee72b054a4
nickc [Tue, 9 Jan 2001 01:08:53 +0000 (01:08 +0000)]
Fix memory leak
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38811
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Mon, 8 Jan 2001 23:51:57 +0000 (23:51 +0000)]
2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
initialize mbstate_t member, name offset data members *off, not pos.
* include/bits/fstream.tcc (filebuf::filebuf): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38809
138bc75d-0d04-0410-961f-
82ee72b054a4
bryce [Mon, 8 Jan 2001 23:28:56 +0000 (23:28 +0000)]
In gcc/java:
* class.c (make_class_data): Push initial value for "arrayclass".
* decl.c (init_decl_processing): Add new class field "arrayclass".
In libjava:
* java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
(_Jv_GetArrayClass): New inline function.
(arrayclass): New field.
* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
_Jv_GetArrayElementFromElementType.
(_Jv_NewPrimArray): Ditto.
(_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
"idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
Set Modifier::ABSTRACT.
* java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
Now synchronized. Array classes are now referenced from
elementClass->arrayclass. Don't use _Jv_FindClassInCache.
Set array classes' accessibility flags correctly. Optimize so that
all array classes share the same IDT.
* java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
* java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
* java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
in superclasses from overwriting classes own fields.
(_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
Modifier::isAbstract().
(null_idt): New static field.
(_Jv_PrepareConstantTimeTables): Optimize case where class implements
no interfaces.
(_Jv_IndexOf): Made inline.
* boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38808
138bc75d-0d04-0410-961f-
82ee72b054a4
tromey [Mon, 8 Jan 2001 22:55:15 +0000 (22:55 +0000)]
Fix for PR java/1586:
* Makefile.in: Rebuilt.
* Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38807
138bc75d-0d04-0410-961f-
82ee72b054a4