1. 13 Mar, 2000 3 commits
  2. 12 Mar, 2000 14 commits
    • Convert cpplib to use libiberty/hashtab.c. · d35364d1
      	* 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
      Zack Weinberg committed
    • configure.in: Define IEEE_COMPLEX_DIVIDE. · 6973bf54
      	* 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
      Toon Moene committed
    • Revert previous checkin · 66e86e32
      From-SVN: r32495
      Gabriel Dos Reis committed
    • cp-tree.h (scope_kind): New type. · 74b846e0
      	* 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
      Mark Mitchell committed
    • * MAINTAINERS: Added myself for write-after-approval. · d4537148
      From-SVN: r32493
      Toon Moene committed
    • lex.c (whitespace_cr): Compress consecutive calls to warning(). · b4f4233d
      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
      Gabriel Dos Reis committed
    • * cppinit.c (cl_directive_handler): More K&R fixing. · 8be1ddca
      From-SVN: r32490
      Kaveh R. Ghazi committed
    • Daily bump. · c24f4303
      From-SVN: r32489
      Jeff Law committed
    • * MAINTAINERS: Add self as ia64 port maintainer. · f152e9d4
      From-SVN: r32488
      Jim Wilson committed
    • Fix bug found by make bootstrap failure. Eliminate some warnings. · 294dac80
      	* 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
      Jim Wilson committed
    • cppinit.c (no_arg, [...]): Change from char[] to macros. · 5e2ee78d
      	* cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
      	Change from char[] to macros.
      
      From-SVN: r32486
      Kaveh R. Ghazi committed
    • cppinit.c (cpp_start_read): Update indirect function call to K&R C. · b1b74f93
      2000-03-12  Neil Booth  <NeilB@earthling.net>
      
      	* cppinit.c (cpp_start_read): Update indirect function
      	call to K&R C.
      
      From-SVN: r32485
      Neil Booth committed
    • ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79 entry. · 794eefd9
      	* config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
      	entry.
      
      From-SVN: r32484
      Jim Wilson committed
    • ia64-protos.h, [...]: Fix copyright messages. · be480cec
      	* 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
      Jim Wilson committed
  3. 11 Mar, 2000 8 commits
    • oops · 72050793
      From-SVN: r32482
      Jason Merrill committed
    • cppinit.c (struct pending option): Replace undef with a pointer to a directive handling routine. · 40eac643
      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
      Neil Booth committed
    • exception.cc (__check_null_eh_spec): New fn. · 1ef9f749
              * exception.cc (__check_null_eh_spec): New fn.
              * except.c (expand_end_eh_spec): Call it if the spec is throw().
      
      From-SVN: r32480
      Jason Merrill committed
    • Daily bump. · 8d2daaa7
      From-SVN: r32479
      Jeff Law committed
    • tweak formatting · ff0bee63
      From-SVN: r32478
      Jason Merrill committed
    • cppfiles.c (file_cleanup, [...]): Replace bcopy(), index() etc calls. · 7ceb3598
      	* 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
      Neil Booth committed
    • builtins.c (expand_builtin_strlen): Revert last change. · fca9f642
              * builtins.c (expand_builtin_strlen): Revert last change.
              Use emit_insn_before if we're at the beginning of a sequence.
      
      From-SVN: r32476
      Richard Henderson committed
    • decl.c (push_throw_library_fn): Take the FUNCTION_TYPE. · cf74fb86
              * 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
      Jason Merrill committed
  4. 10 Mar, 2000 15 commits
    • bastring.h (basic_string<>::push_back): Was missing. · e5fd03ba
      2000-03-10  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
      
              * std/bastring.h (basic_string<>::push_back): Was missing.
      
      From-SVN: r32474
      Gabriel Dos Reis committed
    • builtins.c (expand_builtin_strlen): Make sure that we have something at the… · dd1ba632
      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
      Jason Merrill committed
    • Fix typo last change. · 8ad52449
      From-SVN: r32472
      Richard Henderson committed
    • except.c (can_throw): Use INTVAL on a CONST_INT. · bee249aa
              * 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
      Richard Henderson committed
    • linux.h: Undefine MD_EXEC_PREFIX and MD_STARTFILE_PREFIX since those are not needed on linux. · 602f9606
      	* 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
      Andreas Jaeger committed
    • lang-options.h, decl2.c: Add -fno-enforce-eh-specs. · 1660cb3a
              * 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 committed
    • decl.c (push_overloaded_decl_1, [...]): Lose. · 0c11ada6
              * 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
      Jason Merrill committed
    • Daily bump. · c3ab7a40
      From-SVN: r32467
      Jeff Law committed
    • Changes in include: · d9d4fb43
      	* 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
      Alex Samuel committed
    • Key.java (serialVersionUID): Set to 0 for now. · ea7f51a4
      	* 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
      Warren Levy committed
    • Fix ia64 spec95 134.perl miscompilation. · 1858863b
      	* expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
      	same as VAR_DECL.
      
      From-SVN: r32463
      Jim Wilson committed
    • linux.h (WCHAR_TYPE): Make consistent. · 4ed442c9
      
      2000-03-09  Benjamin Kosnik  <bkoz@cygnus.com>
      
      	* config/alpha/linux.h (WCHAR_TYPE): Make consistent.
      
      From-SVN: r32462
      Benjamin Kosnik committed
    • AlgorithmParameterGeneratorSpi.java: New file. · 8560e497
      	* 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
      Warren Levy committed
    • pa-hpux11.h (LIB_SPEC): Correct typo in !p case. · 7238ae53
              * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
              (MD_STARTFILE_PREFIX_1): New macro.
      
      From-SVN: r32460
      Jeffrey A Law committed