Jakub Jelinek [Mon, 13 Mar 2000 17:34:57 +0000 (18:34 +0100)]
sparc.md: Remove all traces of TARGET_LIVE_G0.
* config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
(movsi_zero_liveg0): Remove.
(movsf_insn_novis_liveg0): Remove.
(negsi2): Remove.
(negsi2_not_liveg0): Rename to negsi2.
(one_cmplsi2): Remove.
(one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
(one_cmplsi2_liveg0): Remove.
* config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
(CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
(PREDICATE_CODES): Remove zero_operand.
* config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
TARGET_BROKEN_SAVERESTORE.
(zero_operand): Remove.
* config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
-mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
options.
(SUBTARGET_OVERRIDE_OPTIONS): Remove.
* config/sparc/linux-aout.h (TARGET_LIVE_G0,
TARGET_BROKEN_SAVERESTORE): Remove.
* config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
Remove.
* config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
Remove.
* config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
Remove.
* config/sparc/sparc.md (return_df_no_fpu): New pattern.
From-SVN: r32508
Zack Weinberg [Mon, 13 Mar 2000 17:25:36 +0000 (17:25 +0000)]
cpplib.c (do_pragma_implementation): Fix off-by-one error truncating a string.
* cpplib.c (do_pragma_implementation): Fix off-by-one error
truncating a string. Don't assume tokens are nul terminated.
Problem noted by Andreas Jaeger <aj@suse.de>
From-SVN: r32507
Jason Merrill [Mon, 13 Mar 2000 15:09:49 +0000 (15:09 +0000)]
dwarf2out.c (add_name_and_src_coords_attributes): Only add DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
* dwarf2out.c (add_name_and_src_coords_attributes): Only add
DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
(ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
From-SVN: r32506
Richard Earnshaw [Mon, 13 Mar 2000 13:24:54 +0000 (13:24 +0000)]
stor-layout.c (new_record_layout_info): Fix typo inside ifdef STRUCTURE_SIZE_BOUNDARY.
* stor-layout.c (new_record_layout_info): Fix typo inside ifdef
STRUCTURE_SIZE_BOUNDARY.
From-SVN: r32505
Nathan Sidwell [Mon, 13 Mar 2000 11:12:13 +0000 (11:12 +0000)]
* g++.old-deja/g++.warn/inline.C: New test.
From-SVN: r32504
Mark Mitchell [Mon, 13 Mar 2000 09:12:50 +0000 (09:12 +0000)]
tree.h (record_layout_info_s): New structure.
* tree.h (record_layout_info_s): New structure.
(record_layout_info): New type.
(new_record_layout_info): New function.
(layout_field): Likewise.
(finish_record_layout): Likewise.
* stor-layout.c (layout_record): Remove.
(new_record_layout_info): New function.
(layout_field): New function, broken out from layout_record.
(finalize_record_size): Likewise.
(compute_record_mode): Likewise.
(finalize_type_size): New function, broken out from layout_type.
(finish_record_layout): Likewise.
(layout_type): Use them.
From-SVN: r32503
Jeff Law [Mon, 13 Mar 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r32502
Mark Mitchell [Mon, 13 Mar 2000 04:54:39 +0000 (04:54 +0000)]
cp-tree.h (revert_static_member_fn): Change prototype.
* cp-tree.h (revert_static_member_fn): Change prototype.
* decl.c (grokfndecl): Adjust call to revert_static_member_fn.
(grok_op_properties): Likewise.
(start_function): Likewise.
(revert_static_member_fn): Simplify.
* pt.c (check_explicit_specialization): Adjust call to
revert_static_member_fn.
From-SVN: r32501
Zack Weinberg [Mon, 13 Mar 2000 03:43:19 +0000 (03:43 +0000)]
toon forgot to check in configure
From-SVN: r32500
Zack Weinberg [Mon, 13 Mar 2000 00:10:13 +0000 (00:10 +0000)]
cpphash.c: Don't include version.h.
* cpphash.c: Don't include version.h.
(special_symbol) [case T_VERSION]: Look for the string in
hp->value.cpval; don't use version_string.
* cppinit.c (initialize_builtins): Set hp->value.cpval for
__VERSION__ to version_string.
* Makefile.in (cpphash.o): Update deps.
From-SVN: r32499
Zack Weinberg [Sun, 12 Mar 2000 23:46:05 +0000 (23:46 +0000)]
Convert cpplib to use libiberty/hashtab.c.
* cpplib.h (struct cpp_reader): Make hashtab and
all_include_files of type 'struct htab *'. Delete HASHSIZE
and ALL_INCLUDE_HASHSIZE macros.
* cpphash.h: Update prototypes.
(struct hashnode): Remove next, prev, and bucket_hdr members.
Make length a size_t. Add hash member.
(struct ihash): Remove next member. Add hash member. Make
name a flexible array member.
* cppfiles.c: Include hashtab.h.
(include_hash): Delete.
(IHASHSIZE): New macro.
(hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
(cpp_included): Do the hash lookup here.
(_cpp_find_include_file): Rewrite.
(cpp_read_file): Put the "fake" hash entry into the hash
table. Honor the control_macro, if it turns out we've seen
the file before. Don't push the buffer here.
(_cpp_read_include_file): Push the buffer here.
(OMODES): New macro. Use it whenever we call open(2).
* cpphash.c: Include hashtab.h.
(hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
_cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
_cpp_lookup_slot): New functions.
(HASHSIZE): new macro.
(hashf, _cpp_install, _cpp_delete_macro): Delete.
(_cpp_lookup): Use hashtab.h routines.
* cppinit.c: Include hashtab.h.
(cpp_reader_init): Call _cpp_init_macro_hash and
_cpp_init_include_hash. Don't allocate hashtab directly.
(cpp_cleanup): Just call htab_delete on pfile->hashtab and
pfile->all_include_files.
(initialize_builtins): Use _cpp_make_hashnode and
htab_find_slot to add hash entries.
(cpp_finish): Just call _cpp_dump_macro_hash.
* cpplib.c: Include hashtab.h.
(do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
create hash entries.
(do_pragma_poison, do_assert): Likewise.
(do_include): Don't push the buffer here. Don't increment
system_include_depth unless _cpp_read_include_file succeeds.
(do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
or htab_remove_elt.
(do_pragma_implementation): Use alloca to create copy.
* Makefile.in: Update dependencies.
From-SVN: r32497
Toon Moene [Sun, 12 Mar 2000 19:20:47 +0000 (19:20 +0000)]
configure.in: Define IEEE_COMPLEX_DIVIDE.
* libF77/configure.in: Define IEEE_COMPLEX_DIVIDE.
* libF77/[cz]_div.c: Arrange for compilation under
-DIEEE_COMPLEX_DIVIDE to make these routines
avoid calling sig_die when the denominator vanishes.
* libF77/s_rnge.c: Add casts for the case of
sizeof(ftnint) == sizeof(int) < sizeof(long).
* libI77/endfile.c: Set state to writing (b->uwrt = 1) when an
endfile statement requires copying the file
Also, supply a missing (long) cast in the sprintf call.
* libI77/sfe.c: Add #ifdef ALWAYS_FLUSH logic, for formatted I/O.
From-SVN: r32496
Gabriel Dos Reis [Sun, 12 Mar 2000 19:03:13 +0000 (19:03 +0000)]
Revert previous checkin
From-SVN: r32495
Mark Mitchell [Sun, 12 Mar 2000 18:47:52 +0000 (18:47 +0000)]
cp-tree.h (scope_kind): New type.
* cp-tree.h (scope_kind): New type.
(tmpl_spec_kind): Likewise.
(declare_pseudo_global_level): Remove.
(pseudo_global_level_p): Rename to template_parm_scope_p.
(pushlevel): Remove declaration.
(begin_scope): New function.
(finish_scope): Likewise.
(current_tmpl_spec_kind): Likewise.
* decl.c (struct binding_level): Shorten parm_flag to 2 bits.
Shorten keep to 2 bits. Rename pseudo_global to template_parms_p.
Add template_spec_p.
(toplevel_bindings_p): Adjust.
(declare_pseudo_global_level): Remove.
(pseudo_global_level_p): Rename to template_parm_scope_p.
(current_tmpl_spec_kind): New function.
(begin_scope): Likewise.
(finish_scope): Likewise.
(maybe_push_to_top_level): Adjust.
(maybe_process_template_type_declaration): Likewise.
(pushtag): Likewise.
(pushdecl_nonclass_level): Likewise.
(lookup_tag): Likewise.
(grokfndecl): Handle member template specializations. Share
constructor and non-constructor code.
* decl2.c (check_classfn): Handle member template specializations.
* pt.c (begin_template_parm_list): Use begin_scope.
(begin_specialization): Likewise.
(end_specialization): Likewise.
(check_explicit_specialization): Use current_tmpl_spec_kind.
Handle member template specializations.
(end_template_decl): Use finish_scope. Remove call to
get_pending_sizes.
(push_template_decl_real): Remove bogus error message.
(tsubst_decl): Fix typo in code contained in comment.
(instantiate_template): Handle member template specializations.
(most_general_template): Likewise.
From-SVN: r32494
Toon Moene [Sun, 12 Mar 2000 17:24:42 +0000 (18:24 +0100)]
* MAINTAINERS: Added myself for write-after-approval.
From-SVN: r32493
Gabriel Dos Reis [Sun, 12 Mar 2000 17:19:22 +0000 (17:19 +0000)]
lex.c (whitespace_cr): Compress consecutive calls to warning().
2000-03-11 Gabriel Dos Reis <gdr@codesourcery.com>
* lex.c (whitespace_cr): Compress consecutive calls to warning().
(do_identifier): Ditto for error().
* pt.c (convert_nontype_argument): Ditto for cp_error().
(convert_template_argument): Ditto for cp_pedwarn().
From-SVN: r32492
Kaveh R. Ghazi [Sun, 12 Mar 2000 13:55:52 +0000 (13:55 +0000)]
* cppinit.c (cl_directive_handler): More K&R fixing.
From-SVN: r32490
Jeff Law [Sun, 12 Mar 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r32489
Jim Wilson [Sun, 12 Mar 2000 08:24:23 +0000 (08:24 +0000)]
* MAINTAINERS: Add self as ia64 port maintainer.
From-SVN: r32488
Jim Wilson [Sun, 12 Mar 2000 08:00:08 +0000 (08:00 +0000)]
Fix bug found by make bootstrap failure. Eliminate some warnings.
* config/ia64/ia64.c (ia64_compute_frame_size): Align size to
STACK_BOUNDARY.
* config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
From-SVN: r32487
Kaveh R. Ghazi [Sun, 12 Mar 2000 04:33:26 +0000 (04:33 +0000)]
cppinit.c (no_arg, [...]): Change from char[] to macros.
* cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
Change from char[] to macros.
From-SVN: r32486
Neil Booth [Sun, 12 Mar 2000 00:32:01 +0000 (00:32 +0000)]
cppinit.c (cpp_start_read): Update indirect function call to K&R C.
2000-03-12 Neil Booth <NeilB@earthling.net>
* cppinit.c (cpp_start_read): Update indirect function
call to K&R C.
From-SVN: r32485
Jim Wilson [Sun, 12 Mar 2000 00:28:18 +0000 (00:28 +0000)]
ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79 entry.
* config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
entry.
From-SVN: r32484
Jim Wilson [Sun, 12 Mar 2000 00:20:06 +0000 (00:20 +0000)]
ia64-protos.h, [...]: Fix copyright messages.
* config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
From-SVN: r32483
Jason Merrill [Sat, 11 Mar 2000 10:14:13 +0000 (05:14 -0500)]
oops
From-SVN: r32482
Neil Booth [Sat, 11 Mar 2000 09:13:00 +0000 (09:13 +0000)]
cppinit.c (struct pending option): Replace undef with a pointer to a directive handling routine.
2000-03-11 Neil Booth <NeilB@earthling.net>
* cppinit.c (struct pending option): Replace undef with a
pointer to a directive handling routine.
(struct cpp_pending): Replace separate assert_ and define_
lists with one directive_ list.
(new_pending_define): Rename new_pending_directive. Extra
argument is the directive's handling routine.
(handle_option): Update to use new_pending_directive.
From-SVN: r32481
Jason Merrill [Sat, 11 Mar 2000 09:00:13 +0000 (09:00 +0000)]
exception.cc (__check_null_eh_spec): New fn.
* exception.cc (__check_null_eh_spec): New fn.
* except.c (expand_end_eh_spec): Call it if the spec is throw().
From-SVN: r32480
Jeff Law [Sat, 11 Mar 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r32479
Jason Merrill [Sat, 11 Mar 2000 08:27:17 +0000 (03:27 -0500)]
tweak formatting
From-SVN: r32478
Neil Booth [Sat, 11 Mar 2000 00:49:44 +0000 (00:49 +0000)]
cppfiles.c (file_cleanup, [...]): Replace bcopy(), index() etc calls.
* cppfiles.c (file_cleanup, _cpp_find_include_file,
remap_filename, _cpp_read_include_file, actual_directory,
hack_vms_include_specification): Replace bcopy(), index() etc
calls. Add casts to some allocations. Make some variables
pointers to const [unsigned] char.
* cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
collect_formal_parameters): Similarly.
* cppinit.c (struct pending_option, append_include_chain,
cpp_options_init, cpp_reader_init, initialize_standard_includes,
cpp_start_read, new_pending_define, handle_option): Similarly.
* cpplib.c (cpp_define, copy_comment, do_define, do_include,
do_undef, do_error, do_warning, do_pragma, do_pragma_once,
do_pragma_implementation, detect_if_not_defined,
do_ifdef, skip_if_group, cpp_get_token, parse_string,
do_assert, do_unassert): Similarly.
* cpplib.h (cpp_buffer, cpp_options): Update types. Update
function prototypes.
* mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
From-SVN: r32477
Richard Henderson [Sat, 11 Mar 2000 00:30:06 +0000 (16:30 -0800)]
builtins.c (expand_builtin_strlen): Revert last change.
* builtins.c (expand_builtin_strlen): Revert last change.
Use emit_insn_before if we're at the beginning of a sequence.
From-SVN: r32476
Jason Merrill [Sat, 11 Mar 2000 00:23:18 +0000 (19:23 -0500)]
decl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
* decl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
* except.c (expand_end_eh_spec): Add the return type.
* rtti.c (throw_bad_cast): Add the parmtypes.
(throw_bad_typeid): Likewise.
* semantics.c (expand_stmt): Only leave out rtl for unused
artificials, and set DECL_IGNORED_P on them as well.
* decl.c (wrapup_globals_for_namespace): Likewise.
* decl.c (maybe_commonize_var): Skip all artificial decls.
* pt.c (tsubst_decl): Don't copy TREE_ASM_WRITTEN.
From-SVN: r32475
Gabriel Dos Reis [Fri, 10 Mar 2000 21:20:08 +0000 (22:20 +0100)]
bastring.h (basic_string<>::push_back): Was missing.
2000-03-10 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/bastring.h (basic_string<>::push_back): Was missing.
From-SVN: r32474
Jason Merrill [Fri, 10 Mar 2000 19:50:09 +0000 (19:50 +0000)]
builtins.c (expand_builtin_strlen): Make sure that we have something at the beginning of the sequence.
* builtins.c (expand_builtin_strlen): Make sure that we have something
at the beginning of the sequence.
* toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
deferred inlines.
* invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
From-SVN: r32473
Richard Henderson [Fri, 10 Mar 2000 19:21:06 +0000 (11:21 -0800)]
Fix typo last change.
From-SVN: r32472
Richard Henderson [Fri, 10 Mar 2000 19:12:53 +0000 (11:12 -0800)]
except.c (can_throw): Use INTVAL on a CONST_INT.
* except.c (can_throw): Use INTVAL on a CONST_INT.
(reachable_handlers): Likewise.
* flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
From-SVN: r32471
Andreas Jaeger [Fri, 10 Mar 2000 14:24:50 +0000 (15:24 +0100)]
linux.h: Undefine MD_EXEC_PREFIX and MD_STARTFILE_PREFIX since those are not needed on linux.
* config/mips/linux.h: Undefine MD_EXEC_PREFIX and
MD_STARTFILE_PREFIX since those are not needed on linux.
(ASM_FILE_START): New, from mips/gnu.h.
From-SVN: r32470
Jason Merrill [Fri, 10 Mar 2000 11:56:00 +0000 (11:56 +0000)]
lang-options.h, decl2.c: Add -fno-enforce-eh-specs.
* lang-options.h, decl2.c: Add -fno-enforce-eh-specs.
* cp-tree.h: Declare flag_enforce_eh_specs.
* decl.c (store_parm_decls, finish_function): Check it.
C library functions don't throw.
* Makefile.in (cfns.h): New target.
(except.o): Depend on it.
* Make-lang.in (cc1plus): Depend on cfns.gperf.
* cfns.gperf: New file.
* cfns.h: Generated.
* except.c: Include it.
(nothrow_libfn_p): New fn.
* decl.c (grokfndecl): Use it.
* cp-tree.h: Declare it.
From-SVN: r32469
Jason Merrill [Fri, 10 Mar 2000 09:25:45 +0000 (09:25 +0000)]
decl.c (push_overloaded_decl_1, [...]): Lose.
* decl.c (push_overloaded_decl_1, auto_function,
define_function): Lose.
(build_library_fn_1): New static fn.
(builtin_function): Use it.
(get_atexit_node): Use build_library_fn_ptr.
(build_library_fn, build_cp_library_fn, build_library_fn_ptr,
build_cp_library_fn_ptr, push_library_fn, push_cp_library_fn,
push_void_library_fn, push_throw_library_fn): New fns.
* cp-tree.h: Declare them.
(cp_tree_index): Remove CPTI_BAD_CAST, CPTI_BAD_TYPEID.
(throw_bad_cast_node, throw_bad_typeid_node): Lose.
* except.c (init_exception_processing, call_eh_info, do_pop_exception,
(expand_end_eh_spec, alloc_eh_object, expand_throw): Use above fns.
* rtti.c (build_runtime_decl): Lose.
(throw_bad_cast, throw_bad_typeid, get_tinfo_decl,
build_dynamic_cast_1, expand_si_desc, expand_class_desc,
expand_ptr_desc, expand_attr_desc, expand_generic_desc): Use above fns.
* call.c (build_call): Remove result_type parm.
Call mark_used on unused artificial fns.
* init.c, method.c, typeck.c, except.c, rtti.c: Adjust.
From-SVN: r32468
Jeff Law [Fri, 10 Mar 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r32467
Jason Merrill [Fri, 10 Mar 2000 08:44:50 +0000 (08:44 +0000)]
* com.c (ffecom_stabilize_aggregate_): Don't refer to TREE_RAISES.
From-SVN: r32466
Alex Samuel [Fri, 10 Mar 2000 08:16:55 +0000 (08:16 +0000)]
Changes in include:
* partition.h: New file.
Changes in libiberty:
* Makefile.in (CFILES): Add partition.c.
(REQUIRED_OFILES): Add partition.o.
(partition.o): New rule.
* partition.c: New file.
Changes in gcc:
* Makefile.in (ssa.o): New rule.
(OBJS): Add ssa.o.
(STAGESTUFF): Add *.ssa and *.ussa.
(mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
* rtl.def (PHI): New RTL expression.
* rtl.h (clear_log_links): New declaration.
(convert_to_ssa): Likewise.
(convert_from_ssa): Likewise.
* flow.c (split_edge): If the entry node falls through to the
split edge's source block, split the entry edge.
(clear_log_links): New function.
* toplev.c (ssa_dump): New variable.
(flag_ssa): Likewise.
(f_options): Add "ssa".
(compile_file): Create SSA dump files.
(rest_of_compilation): Go to and from SSA if enabled.
(decide_d_option): Handle -de for SSA dump files.
* ssa.c: New file.
From-SVN: r32465
Warren Levy [Fri, 10 Mar 2000 05:10:40 +0000 (05:10 +0000)]
Key.java (serialVersionUID): Set to 0 for now.
* java/security/Key.java(serialVersionUID): Set to 0 for now.
* java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
* java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
From-SVN: r32464
Jim Wilson [Fri, 10 Mar 2000 04:03:10 +0000 (04:03 +0000)]
Fix ia64 spec95 134.perl miscompilation.
* expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
same as VAR_DECL.
From-SVN: r32463
Benjamin Kosnik [Fri, 10 Mar 2000 03:01:05 +0000 (03:01 +0000)]
linux.h (WCHAR_TYPE): Make consistent.
2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
* config/alpha/linux.h (WCHAR_TYPE): Make consistent.
From-SVN: r32462
Warren Levy [Fri, 10 Mar 2000 02:43:57 +0000 (02:43 +0000)]
AlgorithmParameterGeneratorSpi.java: New file.
* java/security/AlgorithmParameterGeneratorSpi.java: New file.
* java/security/DigestException.java: New file.
* java/security/GeneralSecurityException.java: New file.
* java/security/InvalidAlgorithmParameterException.java: New file.
* java/security/InvalidKeyException.java: New file.
* java/security/InvalidParameterException.java: New file.
* java/security/Key.java: New file.
* java/security/KeyException.java: New file.
* java/security/KeyPair.java: New file.
* java/security/KeyPairGenerator.java: New file.
* java/security/KeyPairGeneratorSpi.java: New file.
* java/security/NoSuchProviderException.java: New file.
* java/security/PrivateKey.java: New file.
* java/security/Provider.java: New file.
* java/security/PublicKey.java: New file.
* java/security/SecureRandom.java: New file.
* java/security/Security.java: New file.
* java/security/Signature.java: New file.
* java/security/SignatureException.java: New file.
* java/security/interfaces/DSAKey.java: New file.
* java/security/interfaces/DSAParams.java: New file.
* java/security/interfaces/DSAPrivateKey.java: New file.
* java/security/interfaces/DSAPublicKey.java: New file.
* java/security/interfaces/RSAPrivateCrtKey.java: New file.
* java/security/interfaces/RSAPrivateKey.java: New file.
* java/security/interfaces/RSAPublicKey.java: New file.
* java/security/spec/AlgorithmParameterSpec.java: New file.
* java/security/spec/InvalidKeySpecException.java: New file.
* java/security/spec/InvalidParameterSpecException.java: New file.
* java/security/spec/KeySpec.java: New file.
* java/security/spec/RSAPrivateCrtKeySpec.java: New file.
* java/security/spec/RSAPrivateKeySpec.java: New file.
* java/security/spec/RSAPublicKeySpec.java: New file.
* Makefile.am: Added above java.security files.
* Makefile.in: Rebuilt.
* java/security/MessageDigest.java: Rewritten.
* java/security/SecureClassLoader.java: Added JDK1.2 comment.
From-SVN: r32461
Jeffrey A Law [Fri, 10 Mar 2000 01:12:22 +0000 (01:12 +0000)]
pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
* config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
(MD_STARTFILE_PREFIX_1): New macro.
From-SVN: r32460
Zack Weinberg [Fri, 10 Mar 2000 00:00:24 +0000 (00:00 +0000)]
hashtab.h (struct htab): Add del_f.
* hashtab.h (struct htab): Add del_f.
(htab_del): New type.
(htab_create): Add fourth argument.
* hashtab.c (htab_create): Set del_f.
(htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
Use it.
From-SVN: r32459
Zack Weinberg [Thu, 9 Mar 2000 23:04:50 +0000 (23:04 +0000)]
Add another case
From-SVN: r32458
Bryce McKinlay [Thu, 9 Mar 2000 22:42:01 +0000 (22:42 +0000)]
Updated again.
From-SVN: r32457
Bryce McKinlay [Thu, 9 Mar 2000 22:20:43 +0000 (22:20 +0000)]
Updated README.
From-SVN: r32456
Robert Lipe [Thu, 9 Mar 2000 21:06:33 +0000 (21:06 +0000)]
Patch from Robert Lipe
* config/ia64/ia64.c: Include system.h.
From-SVN: r32455
Jason Merrill [Thu, 9 Mar 2000 20:37:06 +0000 (20:37 +0000)]
except.c (nothrow_function_p): If -fno-exceptions, just return.
* except.c (nothrow_function_p): If -fno-exceptions, just return.
(init_eh_nesting_info): Likewise.
From-SVN: r32454
Jason Merrill [Thu, 9 Mar 2000 20:34:52 +0000 (15:34 -0500)]
tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
* tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
(TREE_NOTHROW): Rename from TREE_RAISES.
* toplev.c (rest_of_compilation): Set it.
* print-tree.c (print_node): Adjust.
* tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
(stabilize_reference_1, get_unwidened, get_narrower): Likewise.
* calls.c (emit_call_1): Add 'nothrow' parm. Add
REG_EH_REGION note as appropriate.
(libfunc_nothrow): New fn.
(emit_library_call, emit_library_call_value): Use it.
(expand_call): Check TREE_NOTHROW.
cp:
* call.c (build_call): Set TREE_NOTHROW on the CALL_EXPR as
appropriate.
* decl.c (define_function): Set TREE_NOTHROW on the FUNCTION_DECL.
* except.c (call_eh_info, alloc_eh_object, expand_throw): Set
TREE_NOTHROW or TREE_THIS_VOLATILE on the function as appropriate.
* rtti.c (build_runtime_decl, get_tinfo_decl, build_dynamic_cast_1,
expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc,
expand_generic_desc): Likewise.
From-SVN: r32453
Jason Merrill [Thu, 9 Mar 2000 19:54:51 +0000 (19:54 +0000)]
varasm.c (make_decl_rtl): Skip initial '*' when setting DECL_ASSEMBLER_NAME.
* varasm.c (make_decl_rtl): Skip initial '*' when setting
DECL_ASSEMBLER_NAME.
From-SVN: r32452
Andreas Jaeger [Thu, 9 Mar 2000 19:38:52 +0000 (20:38 +0100)]
linux.h (NO_IMPLICIT_EXTERN_C): Define.
* config/mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
(TARGET_MEM_FUNCTIONS): Define.
From-SVN: r32451
Jason Merrill [Thu, 9 Mar 2000 19:30:09 +0000 (19:30 +0000)]
* i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
From-SVN: r32450
Jason Merrill [Thu, 9 Mar 2000 19:01:47 +0000 (14:01 -0500)]
except.c (can_throw): See through a SEQUENCE.
* except.c (can_throw): See through a SEQUENCE.
(nothrow_function_p): New fn.
* except.h: Declare it.
* function.c (current_function_nothrow): New var.
(prepare_function_start): Initialize it.
* output.h: Declare it.
* toplev.c (rest_of_compilation): Set it.
* dwarf2out.c (dwarf2out_begin_prologue): Use it.
From-SVN: r32449
Zack Weinberg [Thu, 9 Mar 2000 17:49:26 +0000 (17:49 +0000)]
cpphash.c (collect_formal_parameters): strncmp returns 0 for match.
* cpphash.c (collect_formal_parameters): strncmp returns 0 for
match. (cpp_compare_defs): Count the nul separator when
advancing over argument names.
From-SVN: r32448
Bernd Schmidt [Thu, 9 Mar 2000 16:07:33 +0000 (16:07 +0000)]
Fix a bug in preprocess_constraints
From-SVN: r32447
Bernd Schmidt [Thu, 9 Mar 2000 16:01:10 +0000 (16:01 +0000)]
Fix suboptimal code generation by register elimination
From-SVN: r32446
Bryce McKinlay [Thu, 9 Mar 2000 09:22:36 +0000 (09:22 +0000)]
natClassLoader.cc (_Jv_FindArrayClass): Call _Jv_PrepareConstantTimeTables.
2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
_Jv_PrepareConstantTimeTables.
* java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
classes should have an IDT, so don't return if klass is an array
class.
From-SVN: r32445
Jeff Law [Thu, 9 Mar 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r32444
Tom Tromey [Thu, 9 Mar 2000 04:50:49 +0000 (04:50 +0000)]
natArray.cc (newInstance): Don't allow array of `void' to be created.
* java/lang/reflect/natArray.cc (newInstance): Don't allow array
of `void' to be created.
From-SVN: r32443
Bryce McKinlay [Thu, 9 Mar 2000 04:47:57 +0000 (04:47 +0000)]
re GNATS gcj/168 (Build fails on Alpha)
2000-03-08 Bryce McKinlay <bryce@albatross.co.nz>
* config.guess, config.sub: Update from the gcc tree.
Fix for PR libgcj/168.
From-SVN: r32442
Warren Levy [Thu, 9 Mar 2000 04:35:30 +0000 (04:35 +0000)]
* java/math/BigInteger.java(signum): Handle zero properly.
From-SVN: r32441
Kaveh R. Ghazi [Thu, 9 Mar 2000 03:39:09 +0000 (03:39 +0000)]
libgcc2.h: New file.
* libgcc2.h: New file.
* libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
From-SVN: r32440
Jim Wilson [Thu, 9 Mar 2000 00:26:04 +0000 (00:26 +0000)]
Add ia64 port.
From-SVN: r32438
Zack Weinberg [Wed, 8 Mar 2000 23:44:29 +0000 (23:44 +0000)]
hashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions).
* hashtab.c: Remove debugging variables (all_searches,
all_collisions, all_expansions). Delete
all_hash_table_collisions.
(create_hash_table, delete_hash_table, empty_hash_table,
find_hash_table_entry, remove_element_from_hash_table_entry,
clear_hash_table_slot, traverse_hash_table, hash_table_size,
hash_table_elements_number, hash_table_collisions): Rename to:
htab_create, htab_delete, htab_empty, htab_find_slot,
htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
htab_elements, htab_collisions.
(htab_find): New function, handles common case where you don't
plan to add or delete an entry.
(htab_expand): Don't create a whole new table, just a new
entry vector.
(htab_find_slot): Simplify logic.
* hashtab.h (hash_table_t): Rename to htab_t.
(struct hash_table): Rename to struct htab. Shorten element
names. Reorder elements by size.
(htab_hash, htab_eq, htab_trav): New typedefs for the callback
function pointers.
(hash_table_entry_t): Discard; just use void * for element
type.
From-SVN: r32437
Zack Weinberg [Wed, 8 Mar 2000 23:43:41 +0000 (23:43 +0000)]
oops - meant to commit with last batch of cpplib changes
From-SVN: r32436
Zack Weinberg [Wed, 8 Mar 2000 23:35:19 +0000 (23:35 +0000)]
Makefile.in (LIBCPP_DEPS): New macro.
* Makefile.in (LIBCPP_DEPS): New macro.
(cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
it to declare deps.
* cpperror.c: Include cpphash.h.
* cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
dingleberry.
(lex): Don't use CPP_WARN_UNDEF.
(_cpp_parse_expr): Return an int, the truth value.
* cppfiles.c: Include cpphash.h.
(_cpp_merge_include_chains): Move to cppinit.c and make static.
* cppinit.c (include_defaults_array): Disentangle.
(cpp_cleanup): Don't free the if stack here.
(cpp_finish): Pop off all buffers, not just one.
* cpplib.c (eval_if_expr): Return int.
(do_xifdef): Rename do_ifdef.
(handle_directive): Don't use CPP_PREPROCESSED.
(cpp_get_token): Don't use CPP_C89.
* fix-header.c: Don't use CPP_OPTIONS.
* cpplib.h: Move U_CHAR, enum node_type, struct
file_name_list, struct ihash, is_idchar, is_idstart,
is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
of _cpp_simplify_pathname, _cpp_find_include_file,
_cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
Move struct if_stack to cpplib.c. Move struct cpp_pending to
cppinit.c.
Change all uses of U_CHAR to be unsigned char instead.
Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
From-SVN: r32435
Jason Merrill [Wed, 8 Mar 2000 23:05:30 +0000 (23:05 +0000)]
dwarf2out.c (dw_fde_struct): Add 'nothrow'.
* dwarf2out.c (dw_fde_struct): Add 'nothrow'.
(dwarf2out_begin_prologue): Set it.
(output_call_frame_info): Don't emit EH unwind info for leaves.
From-SVN: r32434
Jason Merrill [Wed, 8 Mar 2000 22:50:54 +0000 (22:50 +0000)]
g++.exp (g++_init): Don't put { } around -fmessage-length=0.
* lib/g++.exp (g++_init): Don't put { } around -fmessage-length=0.
(g++_target_compile): Put test-specific options last.
From-SVN: r32433
Jason Merrill [Wed, 8 Mar 2000 21:30:17 +0000 (16:30 -0500)]
flow.c (count_basic_blocks, [...]): A rethrow can occur outside of an EH region.
* flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
can occur outside of an EH region.
* except.c: Correct comments about rethrow behavior.
(rethrow_symbol_map): Do nothing if !flag_new_exceptions.
* flow.c (make_edges): Always call make_eh_edge for calls.
From-SVN: r32432
Zack Weinberg [Wed, 8 Mar 2000 20:38:06 +0000 (20:38 +0000)]
cpp-mi.c: Fix switches.
cpp-redef-2.c: New.
From-SVN: r32431
Zack Weinberg [Wed, 8 Mar 2000 20:37:23 +0000 (20:37 +0000)]
cpplib.h (parse_underflow_t, [...]): Delete.
* cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
(struct cpp_buffer): Remove fname and underflow fields.
(struct cpp_reader): Remove get_token field.
(struct include_hash): Rename to struct ihash. Add typedef to
IHASH.
(struct if_stack): Remove fname field.
(IF_STACK_FRAME): Rename to IF_STACK.
* cpperror.c (print_containing_files): Trust that there are no
macro buffers below the top file buffer.
* cppfiles.c: Replace all references to 'struct include_hash'
with 'IHASH'. Rename initialize_input_buffer to
init_input_buffer. Don't set or reference cpp_buffer->fname,
use buffer->ihash->name instead.
* cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
not CPP_NULL_BUFFER.
* cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
IF_STACK_FRAME, IHASH not struct include_hash.
* cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
references to cpp_buffer->fname (delete entirely, or use
->ihash->name instead) and IF_STACK->fname.
(cpp_push_buffer): Don't set new->underflow.
(do_include): Use cpp_file_buffer.
* cpphash.c (collect_formal_parameters): Remove duplicate
increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
used as a macro argument name. Don't append "..." to namebuf
for varargs macros. After we're done scanning, go through
namebuf and make it NUL separated, not comma separated.
(_cpp_compare_defs): Remove register tag from variables.
Expect defn->argnames to be NUL separated.
(_cpp_dump_definition): Expect defn->argnames to be NUL
separated and in forward order.
* cpphash.h: Update documentation of argnames field.
From-SVN: r32430
Richard Henderson [Wed, 8 Mar 2000 19:21:13 +0000 (11:21 -0800)]
builtins.c (expand_builtin_strlen): Be prepared for strlensi to fail.
* builtins.c (expand_builtin_strlen): Be prepared for strlensi
to fail. Don't pre-expand the source operand.
From-SVN: r32429
Richard Henderson [Wed, 8 Mar 2000 19:20:22 +0000 (11:20 -0800)]
* i386.md (strlensi): Initialize eoschar and align before use.
From-SVN: r32428
Nathan Sidwell [Wed, 8 Mar 2000 17:17:50 +0000 (17:17 +0000)]
* g++.old-deja/g++.eh/vbase4.C: New test.
From-SVN: r32427
Nathan Sidwell [Wed, 8 Mar 2000 17:16:17 +0000 (17:16 +0000)]
* exception.cc (__cp_pop_exception): Cleanup the original object.
From-SVN: r32426
Nathan Sidwell [Wed, 8 Mar 2000 17:09:57 +0000 (17:09 +0000)]
* g++.old-deja/g++.bugs/900215_01.C: Adjust.
From-SVN: r32425
Nathan Sidwell [Wed, 8 Mar 2000 17:09:15 +0000 (17:09 +0000)]
decl.c (grok_op_properties): Merge conversion to void warning with other silly op warnings.
* decl.c (grok_op_properties): Merge conversion to void warning
with other silly op warnings.
From-SVN: r32424
Jason Merrill [Wed, 8 Mar 2000 16:00:00 +0000 (11:00 -0500)]
expr.c (expand_expr, [...]): Still check for missing CONSTRUCTOR element.
* expr.c (expand_expr, case ARRAY_REF): Still check for missing
CONSTRUCTOR element.
From-SVN: r32423
Jason Merrill [Wed, 8 Mar 2000 15:56:16 +0000 (15:56 +0000)]
typeck2.c (process_init_constructor): Set TREE_PURPOSE of array CONSTRUCTOR elements.
* typeck2.c (process_init_constructor): Set TREE_PURPOSE of
array CONSTRUCTOR elements. Don't use expr_tree_cons.
From-SVN: r32422
Gavin Romig-Koch [Wed, 8 Mar 2000 14:31:10 +0000 (14:31 +0000)]
mips.c (mips_expand_prologue): If the last named argument is the vararg marker "va_list"...
* config/mips/mips.c (mips_expand_prologue): If the last
named argument is the vararg marker "va_list", treat it as
an unnamed argument.
From-SVN: r32421
Clinton Popetz [Wed, 8 Mar 2000 13:45:17 +0000 (13:45 +0000)]
dbxout.c (dbxout_parms): When correcting for promoted big-endian parameters...
* dbxout.c (dbxout_parms): When correcting for promoted
big-endian parameters, use the mode of the DECL_RTL rather
than UNITS_PER_WORD.
From-SVN: r32420
Nathan Sidwell [Wed, 8 Mar 2000 11:22:15 +0000 (11:22 +0000)]
misc12.C: Removed.
* g++.old-deja/g++.brendan/misc12.C: Removed.
* g++.old-deja/g++.pt/memtemp77.C: Constify.
* g++.old-deja/g++.ext/pretty4.C: New test.
From-SVN: r32419
Nathan Sidwell [Wed, 8 Mar 2000 11:21:28 +0000 (11:21 +0000)]
c-common.h (make_fname_decl): Declare.
gcc:
* c-common.h (make_fname_decl): Declare.
* c-common.c (make_fname_decl): Define.
(declare_hidden_char_array): Remove.
(declare_function_name): Use make_fname_decl.
* c-decl.c (c_make_fname_decl): New function.
(init_decl_processing): Set make_fname_decl.
gcc/cp:
* decl.c (cp_make_fname_decl): New function.
(wrapup_globals_for_namespace): Don't emit unused static vars.
(init_decl_processing): Remove comment about use of
array_domain_type. Set make_fname_decl.
(cp_finish_decl): Remove __FUNCTION__ nadgering.
* semantics.c (begin_compound_stmt): Remove
current_function_name_declared flagging.
(expand_stmt): Don't emit unused local statics.
* typeck.c (decay_conversion): Don't treat __FUNCTION__ decls
specially.
From-SVN: r32418
Nathan Sidwell [Wed, 8 Mar 2000 10:26:40 +0000 (10:26 +0000)]
* g++.old-deja/g++.other/string2.C: New test.
From-SVN: r32417
Neil Booth [Wed, 8 Mar 2000 10:26:31 +0000 (10:26 +0000)]
Added myself to MAINTAINERS file.
From-SVN: r32416
Nathan Sidwell [Wed, 8 Mar 2000 10:26:06 +0000 (10:26 +0000)]
typeck.c (convert_for_assignment): Don't look at array initializer.
* typeck.c (convert_for_assignment): Don't look at array
initializer.
* call.c (convert_like_real): Likewise.
From-SVN: r32415
Jason Merrill [Wed, 8 Mar 2000 09:07:36 +0000 (09:07 +0000)]
Add initial support for '\uNNNN' specifier.
* lex.c (read_ucs): New fn.
(readescape, skip_white_space): Call it.
(is_extended_char, is_extended_char_1): New fns.
(utf8_extend_token): New fn, #if 0'd out.
(real_yylex): Treat extended chars like letters.
From-SVN: r32414
Jeff Law [Wed, 8 Mar 2000 08:45:11 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r32413
Jeffrey A Law [Wed, 8 Mar 2000 06:55:21 +0000 (06:55 +0000)]
* cccp.c (handle_directive): Initialize backslash_newlines_p.
From-SVN: r32412
Philipp Thomas [Wed, 8 Mar 2000 06:38:47 +0000 (06:38 +0000)]
* po/POTFILES.in: Remove cppalloc.c from file list.
From-SVN: r32410
Steve Chamberlain [Wed, 8 Mar 2000 06:27:35 +0000 (06:27 +0000)]
pj.c (pj_expand_prologue): current_function->args_info is now current_function_args_info.
* pj.c (pj_expand_prologue): current_function->args_info is
now current_function_args_info.
* pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
From-SVN: r32409
Tom Tromey [Wed, 8 Mar 2000 05:42:07 +0000 (05:42 +0000)]
re GNATS gcj/162 (gcj does not initialize interfaces according to spec)
* libjava.lang/PR162.java: Mention `PR162', not `Test', as class
name.
From-SVN: r32408
Michael Hayes [Wed, 8 Mar 2000 04:13:39 +0000 (04:13 +0000)]
c4x.h (PUT_SDB_TYPE): Define so that the type info is output as hexadecimal rather than the default octal.
* config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
output as hexadecimal rather than the default octal.
From-SVN: r32400
Zack Weinberg [Wed, 8 Mar 2000 03:58:12 +0000 (03:58 +0000)]
* cpphash.c (special_symbol): Fix thinko in previous commit.
From-SVN: r32399
Anthony Green [Wed, 8 Mar 2000 03:10:19 +0000 (03:10 +0000)]
re GNATS gcj/107 (Bad array or type conversion bug when compiling bytecode)
1999-11-28 Anthony Green <green@cygnus.com>
* decl.c (find_local_variable): Reuse single slot decls when
appropriate.
(This fixes the Java PR #107:
http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00171.html)
From-SVN: r32398