]> gcc.gnu.org Git - gcc.git/log
gcc.git
24 years agoDaily bump.
Jeff Law [Sun, 12 Mar 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32489

24 years ago* MAINTAINERS: Add self as ia64 port maintainer.
Jim Wilson [Sun, 12 Mar 2000 08:24:23 +0000 (08:24 +0000)]
* MAINTAINERS: Add self as ia64 port maintainer.

From-SVN: r32488

24 years agoFix bug found by make bootstrap failure. Eliminate some warnings.
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

24 years agocppinit.c (no_arg, [...]): Change from char[] to macros.
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

24 years agocppinit.c (cpp_start_read): Update indirect function call to K&R C.
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

24 years agoia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79 entry.
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

24 years agoia64-protos.h, [...]: Fix copyright messages.
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

24 years agooops
Jason Merrill [Sat, 11 Mar 2000 10:14:13 +0000 (05:14 -0500)]
oops

From-SVN: r32482

24 years agocppinit.c (struct pending option): Replace undef with a pointer to a directive handli...
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

24 years agoexception.cc (__check_null_eh_spec): New fn.
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

24 years agoDaily bump.
Jeff Law [Sat, 11 Mar 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32479

24 years agotweak formatting
Jason Merrill [Sat, 11 Mar 2000 08:27:17 +0000 (03:27 -0500)]
tweak formatting

From-SVN: r32478

24 years agocppfiles.c (file_cleanup, [...]): Replace bcopy(), index() etc calls.
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

24 years agobuiltins.c (expand_builtin_strlen): Revert last change.
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

24 years agodecl.c (push_throw_library_fn): Take the FUNCTION_TYPE.
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

24 years agobastring.h (basic_string<>::push_back): Was missing.
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

24 years agobuiltins.c (expand_builtin_strlen): Make sure that we have something at the beginning...
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

24 years agoFix typo last change.
Richard Henderson [Fri, 10 Mar 2000 19:21:06 +0000 (11:21 -0800)]
Fix typo last change.

From-SVN: r32472

24 years agoexcept.c (can_throw): Use INTVAL on a CONST_INT.
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

24 years agolinux.h: Undefine MD_EXEC_PREFIX and MD_STARTFILE_PREFIX since those are not needed...
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

24 years agolang-options.h, decl2.c: Add -fno-enforce-eh-specs.
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

24 years agodecl.c (push_overloaded_decl_1, [...]): Lose.
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

24 years agoDaily bump.
Jeff Law [Fri, 10 Mar 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32467

24 years ago* com.c (ffecom_stabilize_aggregate_): Don't refer to TREE_RAISES.
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

24 years agoChanges in include:
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

24 years agoKey.java (serialVersionUID): Set to 0 for now.
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

24 years agoFix ia64 spec95 134.perl miscompilation.
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

24 years agolinux.h (WCHAR_TYPE): Make consistent.
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

24 years agoAlgorithmParameterGeneratorSpi.java: New file.
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

24 years agopa-hpux11.h (LIB_SPEC): Correct typo in !p case.
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

24 years agohashtab.h (struct htab): Add del_f.
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

24 years agoAdd another case
Zack Weinberg [Thu, 9 Mar 2000 23:04:50 +0000 (23:04 +0000)]
Add another case

From-SVN: r32458

24 years agoUpdated again.
Bryce McKinlay [Thu, 9 Mar 2000 22:42:01 +0000 (22:42 +0000)]
Updated again.

From-SVN: r32457

24 years agoUpdated README.
Bryce McKinlay [Thu, 9 Mar 2000 22:20:43 +0000 (22:20 +0000)]
Updated README.

From-SVN: r32456

24 years agoPatch from Robert Lipe
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

24 years agoexcept.c (nothrow_function_p): If -fno-exceptions, just return.
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

24 years agotree.h (struct tree_common): Rename raises_flag to nothrow_flag.
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

24 years agovarasm.c (make_decl_rtl): Skip initial '*' when setting DECL_ASSEMBLER_NAME.
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

24 years agolinux.h (NO_IMPLICIT_EXTERN_C): Define.
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

24 years ago* i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
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

24 years agoexcept.c (can_throw): See through a SEQUENCE.
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

24 years agocpphash.c (collect_formal_parameters): strncmp returns 0 for match.
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

24 years agoFix a bug in preprocess_constraints
Bernd Schmidt [Thu, 9 Mar 2000 16:07:33 +0000 (16:07 +0000)]
Fix a bug in preprocess_constraints

From-SVN: r32447

24 years agoFix suboptimal code generation by register elimination
Bernd Schmidt [Thu, 9 Mar 2000 16:01:10 +0000 (16:01 +0000)]
Fix suboptimal code generation by register elimination

From-SVN: r32446

24 years agonatClassLoader.cc (_Jv_FindArrayClass): Call _Jv_PrepareConstantTimeTables.
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

24 years agoDaily bump.
Jeff Law [Thu, 9 Mar 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32444

24 years agonatArray.cc (newInstance): Don't allow array of `void' to be created.
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

24 years agore GNATS gcj/168 (Build fails on Alpha)
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

24 years ago* java/math/BigInteger.java(signum): Handle zero properly.
Warren Levy [Thu, 9 Mar 2000 04:35:30 +0000 (04:35 +0000)]
* java/math/BigInteger.java(signum): Handle zero properly.

From-SVN: r32441

24 years agolibgcc2.h: New file.
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

24 years agoAdd ia64 port.
Jim Wilson [Thu, 9 Mar 2000 00:26:04 +0000 (00:26 +0000)]
Add ia64 port.

From-SVN: r32438

24 years agohashtab.c: Remove debugging variables (all_searches, all_collisions, all_expansions).
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

24 years agooops - meant to commit with last batch of cpplib changes
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

24 years agoMakefile.in (LIBCPP_DEPS): New macro.
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

24 years agodwarf2out.c (dw_fde_struct): Add 'nothrow'.
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

24 years agog++.exp (g++_init): Don't put { } around -fmessage-length=0.
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

24 years agoflow.c (count_basic_blocks, [...]): A rethrow can occur outside of an EH region.
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

24 years agocpp-mi.c: Fix switches.
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

24 years agocpplib.h (parse_underflow_t, [...]): Delete.
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

24 years agobuiltins.c (expand_builtin_strlen): Be prepared for strlensi to fail.
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

24 years ago* i386.md (strlensi): Initialize eoschar and align before use.
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

24 years ago* g++.old-deja/g++.eh/vbase4.C: New test.
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

24 years ago* exception.cc (__cp_pop_exception): Cleanup the original object.
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

24 years ago* g++.old-deja/g++.bugs/900215_01.C: Adjust.
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

24 years agodecl.c (grok_op_properties): Merge conversion to void warning with other silly op...
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

24 years agoexpr.c (expand_expr, [...]): Still check for missing CONSTRUCTOR element.
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

24 years agotypeck2.c (process_init_constructor): Set TREE_PURPOSE of array CONSTRUCTOR elements.
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

24 years agomips.c (mips_expand_prologue): If the last named argument is the vararg marker "va_li...
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

24 years agodbxout.c (dbxout_parms): When correcting for promoted big-endian parameters...
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

24 years agomisc12.C: Removed.
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

24 years agoc-common.h (make_fname_decl): Declare.
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

24 years ago* g++.old-deja/g++.other/string2.C: New test.
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

24 years agoAdded myself to MAINTAINERS file.
Neil Booth [Wed, 8 Mar 2000 10:26:31 +0000 (10:26 +0000)]
Added myself to MAINTAINERS file.

From-SVN: r32416

24 years agotypeck.c (convert_for_assignment): Don't look at array initializer.
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

24 years agoAdd initial support for '\uNNNN' specifier.
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

24 years agoDaily bump.
Jeff Law [Wed, 8 Mar 2000 08:45:11 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32413

24 years ago* cccp.c (handle_directive): Initialize backslash_newlines_p.
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

24 years ago* po/POTFILES.in: Remove cppalloc.c from file list.
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

24 years agopj.c (pj_expand_prologue): current_function->args_info is now current_function_args_info.
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

24 years agore GNATS gcj/162 (gcj does not initialize interfaces according to spec)
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

24 years agoc4x.h (PUT_SDB_TYPE): Define so that the type info is output as hexadecimal rather...
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

24 years ago* cpphash.c (special_symbol): Fix thinko in previous commit.
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

24 years agore GNATS gcj/107 (Bad array or type conversion bug when compiling bytecode)
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

24 years agore GNATS gcj/102 (crashes when compiling try block from java source)
Alexandre Petit-Bianco [Wed, 8 Mar 2000 01:37:39 +0000 (01:37 +0000)]
re GNATS gcj/102 (crashes when compiling try block from java source)

2000-03-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (qualify_ambiguous_name): Properly handle expressions
using `null'.

(This fixes the Java PR #102:
 http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00152.html)

From-SVN: r32397

24 years agore GNATS gcj/94 (compiler allows assignment to interface constants)
Alexandre Petit-Bianco [Wed, 8 Mar 2000 00:30:06 +0000 (00:30 +0000)]
re GNATS gcj/94 (compiler allows assignment to interface constants)

2000-02-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (check_final_assignment): Extended to process
COMPOUND_EXPR.
(patch_assignment): Have check_final_assignment called only once.

(This fixes the Java PR #94:
 http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00125.html)

From-SVN: r32396

24 years agosearch.c (note_debug_info_needed): Walk the bases even if we weren't deferring the...
Jason Merrill [Wed, 8 Mar 2000 00:22:21 +0000 (00:22 +0000)]
search.c (note_debug_info_needed): Walk the bases even if we weren't deferring the type itself.

        * search.c (note_debug_info_needed): Walk the bases even if we
        weren't deferring the type itself.

From-SVN: r32395

24 years ago[multiple changes]
Zack Weinberg [Tue, 7 Mar 2000 23:11:06 +0000 (23:11 +0000)]
[multiple changes]

2000-03-07  Neil Booth  <NeilB@earthling.net>

* cppexp.c (struct operation, left_shift, right_shift,
cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
"int"s to "unsigned int"s.
* cpplib.c (detect_if_not_defined, do_assert, do_unassert):
Similarly.
* cpplib.h: Update for above.
* mkdeps.c (deps_init, deps_calc_target): Cast pointers
returned from allocations.

* cppinit.c (opt_comp, parse_options): New functions.
(handle_option): Use parse_option to parse a single command
line option, that possibly takes an argument.
(cpp_handle_options): Sort the array of command line options on
first invocation (non-ASCII hosts only).
(print_help): Update.

2000-03-07  Zack Weinberg  <zack@wolery.cumb.org>

* mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
backslash counting loops.  Problem noted by Matt Kraai <kraai@ghs.com>.

From-SVN: r32394

24 years agoTest for PR gcj/163:
Bryce McKinlay [Tue, 7 Mar 2000 22:54:12 +0000 (22:54 +0000)]
Test for PR gcj/163:

2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>

        Test for PR gcj/163:
        * libjava.lang/PR163.java: New file.
        * libjava.lang/PR163.xfail: New file.

From-SVN: r32393

24 years agolibjava.exp (test_libjava_from_javac): Removed hack for interfaces.
Tom Tromey [Tue, 7 Mar 2000 22:44:22 +0000 (22:44 +0000)]
libjava.exp (test_libjava_from_javac): Removed hack for interfaces.

* lib/libjava.exp (test_libjava_from_javac): Removed hack for
interfaces.  Fail if jv-scan reports a parse error.

From-SVN: r32392

24 years agore GNATS gcj/108 (Compiler doesn't check access modifiers on interface implementations)
Alexandre Petit-Bianco [Tue, 7 Mar 2000 22:09:56 +0000 (22:09 +0000)]
re GNATS gcj/108 (Compiler doesn't check access modifiers on interface implementations)

2000-03-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* java-tree.h (IS_INIT_CHECKED): New flag.
* check-init.c (check_init): Test and set IS_INIT_CHECKED.
* parse.y (patch_string): Call force_evaluation_order on the
completed string concatenation tree.
* expr.c (force_evaluation_order): Call force_evaluation_order on
        function's arguments too.

(This fixes the Java PR #108:
 http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00174.html)

From-SVN: r32391

24 years agocppfiles.c (_cpp_find_include_file): Make sure ih->name is initialized.
Zack Weinberg [Tue, 7 Mar 2000 20:58:47 +0000 (20:58 +0000)]
cppfiles.c (_cpp_find_include_file): Make sure ih->name is initialized.

* cppfiles.c (_cpp_find_include_file): Make sure ih->name is
initialized.
* cppinit.c (cpp_cleanup): Free imp->nshort also.

* cpperror.c (cpp_print_containing_files,
cpp_print_file_and_line, v_cpp_message): Rename to
print_containing_files, print_file_and_line, and v_message.
* cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
to _cpp_parse_expr, parse_escape, and lex.
(parse_charconst): Remove broken multibyte support.
* cppfiles.c (include_hash): Make static.
(cpp_included): New function.
(merge_include_chains, find_include_file, finclude,
simplify_pathname): Rename to _cpp_merge_include_chains,
_cpp_find_include_file, _cpp_read_include_file, and
_cpp_simplify_pathname.
* cpphash.c (cpp_lookup, free_definition, delete_macro,
cpp_install, create_definition, macroexpand, compare_defs,
dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
_cpp_delete_macro, _cpp_install, _cpp_create_definition,
_cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
* cppinit.c (cpp_handle_option): Rename to handle_option, make
static.
* cpplib.c: Remove extern prototype of cpp_parse_expr.

* cpphash.h: Update prototypes.
* cpplib.h: Likewise.  Prototype _cpp_parse_expr here.

From-SVN: r32390

24 years agomips.h (PTRDIFF_TYPE): Revert broken change; PTRDIFF_TYPE should be based solely...
Andrew Haley [Tue, 7 Mar 2000 20:49:45 +0000 (20:49 +0000)]
mips.h (PTRDIFF_TYPE): Revert broken change; PTRDIFF_TYPE should be based solely on Pmode.

2000-03-07  Andrew Haley  <aph@cygnus.com>

* config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
PTRDIFF_TYPE should be based solely on Pmode.
(SIZE_TYPE): ditto.

From-SVN: r32389

24 years agortl.h (rtunion_def): Constify member `rtstr'.
Kaveh R. Ghazi [Tue, 7 Mar 2000 20:39:10 +0000 (20:39 +0000)]
rtl.h (rtunion_def): Constify member `rtstr'.

* rtl.h (rtunion_def): Constify member `rtstr'.
(emit_line_note_after, emit_line_note, emit_line_note_force,
emit_note, decode_asm_operands): Constify.

* cse.c (canon_hash): Likewise.

* dbxout.c (dbxout_block): Likewise.

* diagnostic.c (file_and_line_for_asm, v_error_for_asm,
v_warning_for_asm): Likewise.

* dwarfout.c (function_start_label): Likewise.

* emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
emit_line_note_force): Likewise.

* final.c (last_filename, asm_insn_count, final_scan_insn,
output_source_line): Likewise.

* function.h (struct emit_status): Likewise.

* gcse.c (hash_expr_1): Likewise.

* genattr.c (gen_attr, main): Likewise.

* genattrtab.c (struct function_unit, current_alternative_string,
write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
attr_numeral, check_attr_test, check_attr_value,
convert_set_attr_alternative, convert_set_attr,
compute_alternative_mask, simplify_by_exploding, gen_attr,
gen_unit): Likewise.

* genflags.c (gen_insn): Likewise.

* gengenrtl.c (type_from_format): Likewise.

* genopinit.c (gen_insn): Likewise.

* genoutput.c (n_occurrences, process_template, process_template):
Likewise.

* ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
Likewise.

* ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
Likewise.

* ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
ggc_set_mark, ggc_get_size): Likewise.

* objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.

* optabs.c (init_one_libfunc): Likewise.

* output.h (assemble_start_function): Likewise.

* recog.c (decode_asm_operands): Likewise.

* toplev.c (rest_of_compilation): Likewise.

* tree.h (emit_line_note_after, emit_line_note,
emit_line_note_force): Likewise.

* varasm.c (asm_output_bss, asm_output_aligned_bss,
asm_emit_uninitialised, assemble_start_function,
assemble_variable, const_hash, compare_constant_1,
find_pool_constant, mark_constant_pool, assemble_alias): Likewise.

* xcoffout.h (DBX_FINISH_SYMBOL): Likewise.

* alpha/alpha.md (call_vms, call_value_vms): Likewise.

* arm/aof.h (ASM_OUTPUT_ASCII): Likewise.

* arm/aout.h (ASM_OUTPUT_ASCII): Likewise.

* arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
arm_dllimport_name_p): Likewise.

* arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
Likewise.

* arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.

* arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
arm_mark_dllexport, arm_mark_dllimport,
arm_pe_encode_section_info): Likewise.

* arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
ASM_FINISH_DECLARE_OBJECT): Likewise.

* arm/thumb.c (thumb_function_prologue): Likewise.

* arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.

* avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.

* fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.

* i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.

* i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.

* i386/i386-protos.h (asm_output_function_prefix): Likewise.

* i386/i386.c (asm_output_function_prefix): Likewise.

* i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.

* i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.

* i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
ASM_OUTPUT_SECTION_NAME): Likewise.

* i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.

* i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.

* i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.

* m32r/m32r.c (m32r_encode_section_info): Likewise.

* mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* mcore/mcore.c (mcore_encode_section_info): Likewise.

* mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* mips/mips.h (ASM_OUTPUT_IDENT): Likewise.

* mips/mips.md (movdi, movsi): Likewise.

* mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

* ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
ASM_OUTPUT_ASCII): Likewise.

* rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
output_mi_thunk, output_toc): Likewise.

* rs6000/rs6000.md (movsi): Likewise.

* rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.

* tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.

* v850/v850.c (print_operand, print_operand_address,
v850_encode_data_area): Likewise.

ch:
* grant.c (globalize_decl): Constify a char*.

cp:
* decl2.c (finish_objects): Constify a char*.

* method.c (emit_thunk): Likewise.

From-SVN: r32388

24 years agoAll files: Updated copyright information.
Tom Tromey [Tue, 7 Mar 2000 19:55:28 +0000 (19:55 +0000)]
All files: Updated copyright information.

* All files: Updated copyright information.
* COPYING: New file.
* COPYING.LIB: Removed.
* LIBGCJ_LICENSE: We now use GPL + special exception.

From-SVN: r32387

24 years agomips.md (zero_extendsidi2): Always force operand one to memory for mips16.
Clinton Popetz [Tue, 7 Mar 2000 19:29:51 +0000 (19:29 +0000)]
mips.md (zero_extendsidi2): Always force operand one to memory for mips16.

* config/mips/mips.md (zero_extendsidi2): Always force operand
one to memory for mips16.

From-SVN: r32386

24 years ago*** empty log message ***
Alexandre Petit-Bianco [Tue, 7 Mar 2000 18:46:22 +0000 (10:46 -0800)]
*** empty log message ***

From-SVN: r32385

24 years agoTest for PR gcj/162:
Tom Tromey [Tue, 7 Mar 2000 18:06:31 +0000 (18:06 +0000)]
Test for PR gcj/162:

* libjava.lang/PR162.out: New file.
* libjava.lang/PR162.java: New file.

From-SVN: r32384

24 years agotree.h (INT_CST_LT, [...]): Remove unneeded casts.
Richard Kenner [Tue, 7 Mar 2000 11:41:32 +0000 (11:41 +0000)]
tree.h (INT_CST_LT, [...]): Remove unneeded casts.

* tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
(struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
(attribute_hash_list, type_hash_canon): hashcode is now unsigned.
(type_hash_lookup, type_hash_add, type_hash_list): Likewise.
(min_precision): Result is unsignd.
(add_double, neg_double, mul_double): Low word is unsigned.
(lshift_double, rshift_double, lrotate_double): Likewise.
(rrotate_double, div_and_round_double): Likewise.
(tree_floor_log2, compare_tree_int): New functions.
(preserve_rtl_expr_temps): New declaration.
* c-common.c (declare_hidden_char_array): Use compare_tree_int.
(decl_attributes): Use tree_log2 to find alignment.
Check for TREE_INT_CST_HIGH for format args.
(min_precision): Now unsigned.
Use tree_floor_log2.
(truthvalue_conversion): Delete long-disabled code.
* c-decl.c (finish_struct): Clean up tests on field width.
(finish_function): Use compare_tree_int.
* c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
* c-typeck.c (comptypes): Use tree_int_cst_equal.
(default_conversion, digest_init): Use compare_tree_int.
(build_binary_op): Use integer_all_onesp and compare_tree_int.
Fix type errors in forming masks.
* calls.c (initialize_argument_information): Use compare_tree_int.
* dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
* except.c (expand_eh_region_start_tree): Use compare_tree_int.
* expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
(store_field): Use compare_tree_int.
(expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
(expand_expr, case ARRAY_REF): Use compare_tree_int.
(do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
(do_store_flag): Use compare_tree_int.
* fold-const.c (encode, decode): Low part is always unsigned.
(force_fit_type, add_double, neg_double, mul_double): Likewise.
(lshift_double, rshift_double, lrotate_double): Likewise.
(rrotate_double, div_and_round_double, int_const_binop): Likewise.
(fold_convert): Use compare_tree_int.
(operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
(invert_truthvalue, case INTEGER_CST): Likewise.
(fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
* mkdeps.c (deps_dummy_targets): Make I unsigned.
* rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
(lshift_double, rshift_double, lrotate_double, rrotate_double):
Likewise.
* stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
(expand_end_case): Use compare_tree_int.
(estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
* stor-layout.c (mode_for_size_tree): Use compare_tree_int.
(layout_decl): Likewise.
(layout_record, layout_union): Make sizes unsigned.
(layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
(layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
* tree.c (struct type_hash): hashcode is unsigned.
(build_type_attribute_variant, type_hash_list): Likewise.
(type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
(attribute_hash_list, build_array_type, build_method_type): Likewise.
(build_complex_type): Likewise.
(real_value_from_int_cst): Remove unneeded casts.
(integer_all_onesp): Add casts.
(tree_floor_log2, compare_tree_int): New functions.
(build_index_type): Use tree_int_cst_sgn.
* varasm.c (assemble_variable): Use compare_tree_int.
* ch/actions.c (chill_convert_for_assignment): INDEX is unsigned
HOST_WIDE_INT.
* ch/ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH
since unsigned.
* ch/except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
Use compare_tree_int.
(expand_goto_except_cleanup): Likewise.
* cp/class.c (dfs_modify_vtables): I is now unsigned.
(check_bitfield_decl): Use tree_int_cst_sgn and compare_tree_int.
(build_base_field): Add casts of TREE_INT_CST_LOW to HOST_WIDE_INT.
* cp/error.c (dump_expr): Cast TREE_INT_CST_HIGH to unsigned.
* cp/init.c (build_vec_init): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
* cp/method.c (build_overload_int): Cast TREE_INT_CST_HIGH to unsigned.
* cp/typeck.c (build_binary_op, case TRUNC_DIV_EXPR):
Call integer_all_onesp.
* cp/typeck2.c (process_init_constructor): Use compare_tree_int.
* f/com.c (ffecom_f2c_set_lio_code_): Use compare_tree_int.
(ffecom_sym_transform_, ffecom_transform_common_): Likewise.
(ffecom_transform_equiv_): Likewise.
* java/decl.c (emit_init_test_initialization): Mark KEY as unused.
* java/expr.c (build_newarray): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
(build_anewarray): Likewise.
* java/parse.y (patch_newarray): Likewise.
* java/parse.c: Regenerated.

From-SVN: r32383

24 years agoresolve.cc (_Jv_SearchMethodInClass): New function.
Bryce McKinlay [Tue, 7 Mar 2000 09:52:56 +0000 (09:52 +0000)]
resolve.cc (_Jv_SearchMethodInClass): New function.

2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>

        * resolve.cc (_Jv_SearchMethodInClass): New function.
        (_Jv_ResolvePoolEntry): Search superinterfaces for interface
        methods.
        * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.

2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>

        * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
        (struct _Jv_ifaces): New declaration.
        JV_CLASS: New macro definition.
        (getComponentType): Relocate below isArray() for inlining.
        (getModifiers): Declare `inline'.
        (getSuperclass): Ditto.
        (isArray): Ditto.
        (isPrimitive): Ditto.
        (_Jv_IsAssignableFrom): New prototype.
        (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
        linkage.
        (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
        Check for JV_STATE_DONE before invoking initializeClass().
        (_Jv_PrepareConstantTimeTables): New prototype.
        (_Jv_GetInterfaces): Ditto.
        (_Jv_GenerateITable): Ditto.
        (_Jv_GetMethodString): Ditto.
        (_Jv_AppendPartialITable): Ditto.
        (_Jv_FindIIndex): Ditto.
        depth, ancestors, idt: New class fields.

        * java/lang/natClass.cc (isAssignableFrom): Move functionality to
        inline function `_Jv_IsAssignableFrom'. Use that function.
        (isInstance): Declare `inline'.
        (initializeClass): Get lock on class before checking `state'. Unlock
        before calling resolveClass0. Call _Jv_PrepareConstantTimeTables
with the lock held.
        (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
        (_Jv_IsAssignableFrom): New inline function. Test assignability
using class->depth and ancestor table.
        (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
        (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
        _Jv_IsAssignableFrom.
        (_Jv_CheckArrayStore): Ditto.
        (_Jv_LookupInterfaceMethodIdx): New function.
        INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
        (_Jv_PrepareConstantTimeTables): New function.
        (_Jv_IndexOf): Ditto.
        (_Jv_GetInterfaces): Ditto.
        (_Jv_GenerateITable): Ditto.
        (_Jv_GetMethodString): Ditto.
        (_Jv_AppendPartialITable): Ditto.
        iindex_mutex, iindex_mutex_initialized: New static fields.
        (_Jv_FindIIndex): New function.

        * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.

        * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
        (_Jv_CheckArrayStore): Ditto.
        (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
        JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
        Moved to gcj/array.h.
        (_Jv_Realloc): New function.

        * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.

        * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
        (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
        JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
        JvNewDoubleArray): Implementations moved from prims.cc and
        declared `inline'.

        * gcj/javaprims.h (_Jv_Realloc): Prototype.

        * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.

From-SVN: r32382

24 years agodecl.c (init_decl_processing): Added new class fields `depth', `ancestors', and ...
Bryce McKinlay [Tue, 7 Mar 2000 08:58:26 +0000 (08:58 +0000)]
decl.c (init_decl_processing): Added new class fields `depth', `ancestors', and `idt' to class_type_node.

2000-03-06  Bryce McKinlay  <bryce@albatross.co.nz>

* decl.c (init_decl_processing): Added new class fields `depth',
`ancestors', and `idt' to class_type_node. Use
_Jv_LookupInterfaceMethodIdx for soft_lookupinterfacemthod_node.
* class.c (make_class_data): Push initial values for new fields.
* java-tree.h: Updated prototype for `build_invokeinterface'.
* expr.c (build_invokeinterface): Changed parameters to accept
`method' tree. Calculate index of `method' in its declaring
interface. Build call to _Jv_LookupInterfaceMethodIdx.
(expand_invoke): Call `build_invokeinterface' with new parameters.
* parse.y (patch_invoke): Call `build_invokeinterface' with new
parameters.

(This is Bryce McKinlay's implementation of the interfaces
 constant-time dispatch and type checking techniques designed by Per
 Bothner.)

From-SVN: r32381

This page took 0.107127 seconds and 5 git commands to generate.