OSDN Git Service

pf3gnuchains/gcc-fork.git
24 years ago * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
rth [Sun, 6 Feb 2000 13:19:20 +0000 (13:19 +0000)]
    * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
        and for non-empty stack frames.
        * i386.md (return): Expand to return-pop as needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31827 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
rth [Sun, 6 Feb 2000 13:01:03 +0000 (13:01 +0000)]
    * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
        * basic-block.h: Declare them.
        * emit-rtl.h (active_insn_p): New.
        (next_active_insn, prev_active_insn): Use it.
        * rtl.h: Declare it.
        * function.c (emit_return_into_block): New.
        (thread_prologue_and_epilogue_insns): Insert return insns instead
        of epilogues when possible.
        * jump.c (jump_optimize_1): Remove code to insert a return insn
        on the fallthru to the exit block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31826 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * simplify-rtx.c (simplify_relational_operation): Canonicalize
rth [Sun, 6 Feb 2000 10:56:56 +0000 (10:56 +0000)]
    * simplify-rtx.c (simplify_relational_operation): Canonicalize
        constant to op1 for testing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31825 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Sun, 6 Feb 2000 10:36:26 +0000 (10:36 +0000)]
2000-02-06  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* config/c4x/c4x.md (*ldi_on_overflow): New pattern.
(fixuns_truncqfqi2): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31823 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.md (widening and peepholes): Mask the constant instead of
rth [Sun, 6 Feb 2000 09:47:49 +0000 (09:47 +0000)]
    * i386.md (widening and peepholes): Mask the constant instead of
        using gen_lowpart.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31822 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
rth [Sun, 6 Feb 2000 09:47:28 +0000 (09:47 +0000)]
    * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
        as a TYPE_LEA insn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31821 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Sun, 6 Feb 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31820 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
zack [Sun, 6 Feb 2000 08:24:22 +0000 (08:24 +0000)]
* cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
input pointer before possibly branching off to the backslash
code.
* cpphash.c (macroexpand): Correctly delete \r escapes when
stringifying parameters.
* cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
if we can; bail out early if we hit a line comment.
(handle_directive): Treat '# 123' in an .S file just like
'# <punctuation>'.  Discard the shifted '#' if we hit '#\n'.
Return 1 for '# not_a_directive'.
(get_directive_token): Pop macro buffers here, so that
cpp_get_token can't sneakily move past a newline.
Add sanity checks.
(cpp_get_token): goto randomchar if handle_directive returns 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31819 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cppalloc.c: Update copyright.
zack [Sun, 6 Feb 2000 07:53:50 +0000 (07:53 +0000)]
* cppalloc.c: Update copyright.
* cpplib.c: Merge all the static function prototypes into one
block.
* cpplib.h: Remove #if 0 block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31818 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cpperror.c: Remove #ifdef EMACS block.
zack [Sun, 6 Feb 2000 07:30:25 +0000 (07:30 +0000)]
* cpperror.c: Remove #ifdef EMACS block.
* cppmain.c: Likewise.
* cpphash.c: Remove #if 0 blocks.
* cppinit.c: Remove #if 0 blocks, and the -lint option.
* cpplib.c: Remove #if 0 blocks and code referencing
pcp_inside_if or for_lint.  Remove duplicate error message.
Fix error messages for #else after #else or #elif.  Reformat.
Remove archaic TODO list.
* cpplib.h: Remove pcp_inside_if and for_lint flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31817 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp/tinfo.h: Remove apostrophes from C++ comment (xgettext
zack [Sun, 6 Feb 2000 06:57:21 +0000 (06:57 +0000)]
* cp/tinfo.h: Remove apostrophes from C++ comment (xgettext
thinks this file is plain C).
* i386/osf1elf.h: Add missing backslash to multiline string.
* po/POTFILES.in: Remove stupid.c.
* exgettext: s/VPROTO/VPARAMS/ now that we are no longer using
VPROTO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31816 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
rth [Sun, 6 Feb 2000 05:39:32 +0000 (05:39 +0000)]
Alan Modra  <alan@SPRI.Levels.UniSA.Edu.Au>
        * gcc.c-torture/execute/20000205-1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31815 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
ghazi [Sun, 6 Feb 2000 04:48:20 +0000 (04:48 +0000)]
   * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31814 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gjavah.c (overloaded_jni_method_exists_p): Add prototype.
ghazi [Sun, 6 Feb 2000 04:33:10 +0000 (04:33 +0000)]
   * gjavah.c (overloaded_jni_method_exists_p): Add prototype.
       (print_name_for_stub_or_jni, process_file): Constify a char*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31813 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * com.c (mark_tracker_head, mark_binding_level): Protoize.
ghazi [Sun, 6 Feb 2000 04:30:45 +0000 (04:30 +0000)]
   * com.c (mark_tracker_head, mark_binding_level): Protoize.

       * where.c (mark_ffewhere_head): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31812 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in (call.o): Depend on $(EXPR_H).
ghazi [Sun, 6 Feb 2000 04:27:53 +0000 (04:27 +0000)]
* Makefile.in (call.o): Depend on $(EXPR_H).

* call.c: Include "expr.h".

* class.c (dump_class_hierarchy): Add prototype.

* search.c (dfs_get_pure_virtuals): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31811 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in (c-common.o): Depend on $(EXPR_H).
ghazi [Sun, 6 Feb 2000 03:40:46 +0000 (03:40 +0000)]
* Makefile.in (c-common.o): Depend on $(EXPR_H).

* c-common.c: Include expr.h.

* c-pragma.c (mark_align_stack): Add prototype.

* caller-save.c (add_stored_regs): Likewise.

* combine.c (record_promoted_value): Likewise.

* i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
Likewise.

* cppinit.c (new_pending_define): Likewise.

* cpplib.c (skip_block_comment, skip_line_comment): Likewise.

* dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
class_scope_p): Likewise.

* dwarf2out.h (dwarf2out_set_demangle_name_func,
dwarf2out_add_library_unit_info): Likewise.

* ggc.h (ggc_page_print_statistics): Likewise.

* haifa-sched.c (propagate_deps): Likewise.

* reg-stack.c (next_flags_user, record_label_references): Likewise.

* rtl.h (set_stack_check_libfunc): Likewise.

* toplev.h (set_fatal_function): Likewise.

* toplev.c (set_fatal_function): Delete prototype.

* diagnostic.c: Deconstify functions returning malloc'ed ptrs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31810 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
geoffk [Sun, 6 Feb 2000 03:14:46 +0000 (03:14 +0000)]
* ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
(FUNC_END): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31808 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Sat, 5 Feb 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31806 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Sat, 5 Feb 2000 05:46:57 +0000 (05:46 +0000)]
2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* caller-save.c: Include tm_p.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31805 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Sat, 5 Feb 2000 05:41:22 +0000 (05:41 +0000)]
2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31804 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoWord wrap comment
zack [Sat, 5 Feb 2000 05:05:03 +0000 (05:05 +0000)]
Word wrap comment

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31803 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-04 Neil Booth <NeilB@earthling.net>
zack [Sat, 5 Feb 2000 05:04:09 +0000 (05:04 +0000)]
2000-02-04  Neil Booth  <NeilB@earthling.net>

* cccp.c (main): Check 'dir' for a NULL pointer before passing
it to strcmp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31802 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
zack [Sat, 5 Feb 2000 04:56:11 +0000 (04:56 +0000)]
  * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
  * genflags.c: Use the max_operand_1 logic from genemit.c to
  calculate how many arguments gen_insn prototypes have.  Remove
  NO_MD_PROTOTYPES ifdefs from the generated file.
  * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
  file.  Cast gen_insn initializers to insn_gen_fn.
  * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
  * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31801 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * fixinc/Makefile.in (HDR): Add machname.h.
ghazi [Sat, 5 Feb 2000 03:59:43 +0000 (03:59 +0000)]
    * fixinc/Makefile.in (HDR): Add machname.h.
        (clean): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31800 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Sat, 5 Feb 2000 00:05:12 +0000 (00:05 +0000)]
2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
(c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
(c4x_cpu_version): Ditto.
* config/c4x/c4x-protos.h: ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31799 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * dwarf2out.c (add_abstract_origin_attribute): Don't call
jason [Fri, 4 Feb 2000 23:46:13 +0000 (23:46 +0000)]
    * dwarf2out.c (add_abstract_origin_attribute): Don't call
        gen_abstract_function on our context if we're a nested function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31798 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
m.hayes [Fri, 4 Feb 2000 23:35:52 +0000 (23:35 +0000)]
2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
* config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31797 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoAdded credits for Per Bothner's work on MPN.java and IntNum.java (for
warrenl [Fri, 4 Feb 2000 22:11:07 +0000 (22:11 +0000)]
Added credits for Per Bothner's work on MPN.java and IntNum.java (for
BigInteger).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31795 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.am: Added MPN.java and BigInteger.java.
warrenl [Fri, 4 Feb 2000 22:00:36 +0000 (22:00 +0000)]
* Makefile.am: Added MPN.java and BigInteger.java.
* Makefile.in: Rebuilt.
* gnu/gcj/math/MPN.java: New file.
* java/math/BigInteger.java: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31794 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-04 Bruce Korb <bkorb@gnu.org>
korbb [Fri, 4 Feb 2000 21:42:00 +0000 (21:42 +0000)]
2000-02-04  Bruce Korb  <bkorb@gnu.org>

* fixinc/genfixes(machname.h):
Move the functionality from gen-machine.h into this file.
UNdef MN_NAME_PAT if there are no names to change.
Also, be a little kinder when AutoGen is not present.

* fixinc/Makefile.in(machname.h):
Change the generation rule to use genfixes.

* fixinc/fixfixes.c(machine_name):
machine_name_fix's functionality now dependent upon whether
MN_NAME_PAT is defined.

* fixinc/fixtests.c(machine_name):
ditto.

* fixinc/fixlib.c(mn_get_regexps): conditional on definition
of MN_NAME_PAT.

* fixinc/fixlib.h(mn_get_regexps):
ditto

* fixinc/gen-machine.h: DELETED

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31793 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.c (SAVE_REGS_FIRST): Remove.
rth [Fri, 4 Feb 2000 21:40:37 +0000 (21:40 +0000)]
    * i386.c (SAVE_REGS_FIRST): Remove.
        (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
        (ix86_compute_frame_size): Likewise.
        (ix86_expand_prologue): Likewise.  Use pro_epilogue_adjust_stack.
        (ix86_emit_restore_regs): Remove.
        (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
        when a frame pointer is in use.
        (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode.  Use mov
        instead of pop to restore a register when profitable; emit leave
        when profitable.
        (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
        as a TYPE_LEA insn.
        (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
        * i386.md (prologue_allocate_stack): Remove.
        (epilogue_deallocate_stack): Remove.
        (pro_epilogue_adjust_stack): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31792 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * function.c (diddle_return_value): Rework to use a callback function.
rth [Fri, 4 Feb 2000 21:30:22 +0000 (21:30 +0000)]
    * function.c (diddle_return_value): Rework to use a callback function.
        Use current_function_return_rtx if it's been set up.
        (do_clobber_return_reg, clobber_return_register): New.
        (do_use_return_reg, use_return_register): New.
        (expand_function_end): Use them.
        * stmt.c (expand_null_return): Likewise.
        * function.h: Declare them.
        * flow.c (mark_regs_live_at_end): Use diddle_return_value.
        (mark_reg): Change arguments as appropriate for callback.
        * integrate.c (expand_inline_function): Revert 19 Jan change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31791 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
tromey [Fri, 4 Feb 2000 20:49:27 +0000 (20:49 +0000)]
* defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
pointers.
(handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
if the method is native.
* resolve.cc (ncode): Don't handle native methods.
(_Jv_JNIMethod::ncode): New method.
(_Jv_PrepareClass): Handle native methods.
* jni.cc (call): Renamed from _Jv_JNI_conversion_call.
Include AbstractMethodError.h.
(add_char): New function.
(mangled_name): Likewise.
* include/java-interp.h (class _Jv_JNIMethod): New class.
(class _Jv_MethodBase): New class.
(class _Jv_InterpMethod): Derive from _Jv_MethodBase.
(_Jv_InterpClass): Changed `interpreted_methods' field to type
`_Jv_MethodBase'.

* include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
* java/lang/natRuntime.cc (libraries_size, libraries_count,
libraries): New globals.
(add_library): New function.
(_Jv_FindSymbolInExecutable): New function.

* java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
Now static.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31790 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tm.texi (Values in Registers): Fix typo: "fo" "for".
hp [Fri, 4 Feb 2000 19:51:57 +0000 (19:51 +0000)]
* tm.texi (Values in Registers): Fix typo: "fo" "for".
(Misc): Say the scheduler, not the Haifa scheduler.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31789 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
cpopetz [Fri, 4 Feb 2000 17:51:11 +0000 (17:51 +0000)]
* jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
when in_mem is set.  Update all callers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31787 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386/openbsd.h (INT_ASM_OP): Define.
rth [Fri, 4 Feb 2000 17:48:50 +0000 (17:48 +0000)]
    * i386/openbsd.h (INT_ASM_OP): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31786 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-02-04 Andrew Haley <aph@cygnus.com>
aph [Fri, 4 Feb 2000 16:59:35 +0000 (16:59 +0000)]
2000-02-04  Andrew Haley  <aph@cygnus.com>

        * java/lang/Throwable.java (CPlusPlusDemangler): New class.
        (printStackTrace): Use a CPlusPlusDemangler to demangle names.
        * java/lang/natThrowable.cc (printRawStackTrace): Rename
        printStackTrace to printRawStackTrace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31785 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tm.texi: Fix various typos.
hp [Fri, 4 Feb 2000 10:30:26 +0000 (10:30 +0000)]
* tm.texi: Fix various typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31784 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Fri, 4 Feb 2000 08:45:06 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31783 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
kenner [Thu, 3 Feb 2000 23:15:43 +0000 (23:15 +0000)]
* config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
(MD_STARTFILE_PREFIX_1): New macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31780 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
tromey [Thu, 3 Feb 2000 19:09:54 +0000 (19:09 +0000)]
* jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31779 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-31 Scott Bambrough <scottb@netwinder.org>
tromey [Thu, 3 Feb 2000 18:45:45 +0000 (18:45 +0000)]
2000-01-31  Scott Bambrough  <scottb@netwinder.org>

* gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to
assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is
defined to be 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31777 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Make-lang.in (java.mostlyclean): Remove executables in
tromey [Thu, 3 Feb 2000 18:39:48 +0000 (18:39 +0000)]
* Make-lang.in (java.mostlyclean): Remove executables in
`mostlyclean'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31776 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * java/util/Calendar.java (toString): New method.
tromey [Thu, 3 Feb 2000 18:26:51 +0000 (18:26 +0000)]
* java/util/Calendar.java (toString): New method.
* java/util/SimpleTimeZone.java (clone): New method.
(toString): New method.
* java/util/TimeZone.java (clone): New method.
* java/text/SimpleDateFormat.java (clone): New method.
* java/text/NumberFormat.java (clone): New method.
(equals): New method.
* java/text/Format.java (clone): New method.
* java/text/DateFormatSymbols.java (DateFormatSymbols): New
constructor.
(clone): New method.
* java/text/DateFormat.java (clone): New method.
* java/text/Collator.java (clone): New method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31775 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * java/io/PipedOutputStream.java (write(byte[], int, int)): New
tromey [Thu, 3 Feb 2000 17:17:26 +0000 (17:17 +0000)]
* java/io/PipedOutputStream.java (write(byte[], int, int)): New
method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31774 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
hubicka [Thu, 3 Feb 2000 14:10:02 +0000 (14:10 +0000)]
* i386.md (movstrsi, clrstrsi): Support variable sized copies, align
destination when needed.
(strmovsi, strsetsi): New expander.
(strmovsi_1, strsetsi_1): New pattern.
* i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
(TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
* invoke.texi (align-stringops, inline-all-stringops): Document.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31773 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * g++.old-deja/g++.jason/cast3.C: Return void.
nathan [Thu, 3 Feb 2000 13:43:49 +0000 (13:43 +0000)]
* g++.old-deja/g++.jason/cast3.C: Return void.
* g++.old-deja/g++.pt/dynarray.C: Don't be pedantic.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31772 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Thu, 3 Feb 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31769 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-31 Scott Bambrough <scottb@netwinder.org>
tromey [Thu, 3 Feb 2000 06:46:30 +0000 (06:46 +0000)]
2000-01-31  Scott Bambrough  <scottb@netwinder.org>

* gcc/java/gjavah.c (D_NAN_MASK): Alternate definition required when
HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
(java_float_finite): Convert to use union Word from javaop.h.
(java_double_finite): Convert to use union DWord from javaop.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31768 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gjavah.c (options): Added `jni' entry.
tromey [Thu, 3 Feb 2000 06:13:46 +0000 (06:13 +0000)]
* gjavah.c (options): Added `jni' entry.
(help): Document -jni.
(flag_jni): New global.
(process_file): Handle JNI output.  Don't print text from
-prepend, -add, etc, when generating stubs.  Only remove `.class'
suffix if it actually exists.
(main): Create a `.c' file when run with `--jni --stubs'.  Create
correct output file name with `--jni'.
(print_include): Mangle header name differently in JNI case.
(HANDLE_METHOD): In JNI mode, call print_method_info to generate
method list.
(print_method_info): Handle JNI case.  Put signature info into
method name.  Handle case when STREAM is NULL.
(print_name_for_stub_or_jni): New function.
(print_stub_or_jni): Renamed from `print_stub'.  Handle JNI.
(print_cxx_classname): Handle JNI.
(print_full_cxx_name): Likewise.
(decode_signature_piece): Likewise.
(overloaded_jni_method_exists_p): New function.
(struct method_name): Added `signature' and `sig_length' fields.
(HANDLE_END_FIELD): Do nothing in JNI mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31767 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386/netbsd.h (INT_ASM_OP): Define.
rth [Wed, 2 Feb 2000 23:27:03 +0000 (23:27 +0000)]
    * i386/netbsd.h (INT_ASM_OP): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31766 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jv-scan.c: Include version.c, <getopt.h>.
tromey [Wed, 2 Feb 2000 21:55:39 +0000 (21:55 +0000)]
* jv-scan.c: Include version.c, <getopt.h>.
(LONG_OPT, OPT_HELP, OPT_VERSION): New macros.
(options): New array.
(usage): New function.
(version): New function.
(main): Use getopt_long to parse command line.
* jcf-dump.c: Include version.c, <getopt.h>.
(LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_VERSION,
OPT_JAVAP): New macros.
(options): New array.
(usage): Return `void'.  Changed message.
(help): New function.
(version): New function.
(main): Use getopt_long_only to parse command line.
* gjavah.c: Include <getopt.h>.
(LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_TEMP,
OPT_VERSION, OPT_PREPEND, OPT_FRIEND, OPT_ADD, OPT_APPEND, OPT_M,
OPT_MM, OPT_MG, OPT_MD, OPT_MMD): New macros.
(options): New array.
(java_no_argument): Removed.
(help): Updated with missing options.
(main): Use getopt_long_only to parse command line.
(usage): Changed message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31765 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoAdd -Wunused to dg-options
zack [Wed, 2 Feb 2000 21:43:17 +0000 (21:43 +0000)]
Add -Wunused to dg-options

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31764 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cpplib.h (cpp_reader): Add new flag, no_directives.
zack [Wed, 2 Feb 2000 21:41:35 +0000 (21:41 +0000)]
* cpplib.h (cpp_reader): Add new flag, no_directives.
* cpphash.c (macarg): Set it.
* cpplib.c (handle_directive): If no_directives is on and we
find a directive, issue an error and discard the line.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31763 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFix sparc -msoft-float abort while compiling newlib.
wilson [Wed, 2 Feb 2000 21:08:47 +0000 (21:08 +0000)]
Fix sparc -msoft-float abort while compiling newlib.
* config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
FP constants.  Add ! TARGET_FPU check for FP constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31762 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * flow.c (find_basic_blocks): Don't kill label_value_list
cpopetz [Wed, 2 Feb 2000 13:56:01 +0000 (13:56 +0000)]
* flow.c (find_basic_blocks): Don't kill label_value_list
here.
(cleanup_cfg): Kill it here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31760 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * expr.c (store_field): Ensure ALIGN is no stricter than the
kenner [Wed, 2 Feb 2000 13:04:50 +0000 (13:04 +0000)]
* expr.c (store_field): Ensure ALIGN is no stricter than the
alignment of EXP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31759 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jump.c (delete_insn): Partially revert 19 Jan change;
rth [Wed, 2 Feb 2000 09:41:03 +0000 (09:41 +0000)]
    * jump.c (delete_insn): Partially revert 19 Jan change;
        don't convert unused code labels to notes at -O0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31758 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Wed, 2 Feb 2000 08:45:06 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31757 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
rth [Wed, 2 Feb 2000 08:15:44 +0000 (08:15 +0000)]
    * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
        split_all_insns to recreate REG_LABEL notes for flow2 pass.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31756 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * i386.c (general_no_elim_operand): New.
rth [Wed, 2 Feb 2000 07:50:21 +0000 (07:50 +0000)]
    * i386.c (general_no_elim_operand): New.
        (nonmemory_no_elim_operand): New.
        (ix86_expand_move): Copy eliminable operands before a push.
        * i386-protos.h: Declare new functions.
        * i386.h (CAN_ELIMINATE): Simplify.
        (PREDICATE_CODES): Update.
        * i386.md (push insns): Don't allow eliminable register operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31755 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * flow.c (mark_regs_live_at_end): Follow expand_function_end and
rth [Wed, 2 Feb 2000 07:33:43 +0000 (07:33 +0000)]
    * flow.c (mark_regs_live_at_end): Follow expand_function_end and
        replace BLKmode with DECL_RTL's mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31754 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * parse.y (simple_stmt): Allow :: token in asm parameter list.
law [Wed, 2 Feb 2000 06:30:44 +0000 (06:30 +0000)]
    * parse.y (simple_stmt): Allow :: token in asm parameter list.
        * parse.c: Rebuilt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31753 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoargh, forgot to commit changelog
zack [Wed, 2 Feb 2000 05:05:41 +0000 (05:05 +0000)]
argh, forgot to commit changelog

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31752 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* gcc.dg/unused-2.c: Use -Wreturn-type instead of -Wall.
oliva [Wed, 2 Feb 2000 05:05:14 +0000 (05:05 +0000)]
* gcc.dg/unused-2.c: Use -Wreturn-type instead of -Wall.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31751 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago* gcc.dg/loop-1.c: New test.
oliva [Wed, 2 Feb 2000 05:02:47 +0000 (05:02 +0000)]
* gcc.dg/loop-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31750 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoGive test a better name, add some glue for the test harness
zack [Wed, 2 Feb 2000 04:45:58 +0000 (04:45 +0000)]
Give test a better name, add some glue for the test harness

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31749 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * sparc.c (fp_zero_operand): Turn into a normal predicate.
rth [Wed, 2 Feb 2000 03:05:57 +0000 (03:05 +0000)]
    * sparc.c (fp_zero_operand): Turn into a normal predicate.
        Use CONST0_RTX.  Update all callers.
        * sparc.h, sparc-protos.h: Update accordingly.
        * sparc.md (fp mov insns): Use fp_zero_operand directly
        where applicable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31748 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
hp [Wed, 2 Feb 2000 02:26:27 +0000 (02:26 +0000)]
* tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
example.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31747 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
tromey [Wed, 2 Feb 2000 01:55:03 +0000 (01:55 +0000)]
* include/java-interp.h (_Jv_JNI_conversion_call): Declare.
* resolve.cc (ncode): Use _Jv_JNI_conversion_call when
constructing the closure if the function is native.
* jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
a template function, #if'd out, or static.
Include <java-interp.h>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31746 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
tromey [Wed, 2 Feb 2000 01:47:01 +0000 (01:47 +0000)]
* include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31745 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * frame.c (find_fde): Convert for loop to do-while so compiler
zack [Tue, 1 Feb 2000 23:51:38 +0000 (23:51 +0000)]
* frame.c (find_fde): Convert for loop to do-while so compiler
sees it's always executed at least once.
* libgcc2.c (BBINBUFSIZE): Kill.
(__bb_init_prg): Use fgets.
(__bb_exit_trace_func): Don't paste strings.
* unroll.c (unroll_loop): Initialize unroll_type, not
unroll_number, and tweak logic to match.

* i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
all failure paths.
(ix86_flags_dependant): Likewise.  Disentangle control flow.
(ix86_sched_reorder): Break guts out to
ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
(ix86_sched_reorder_ppro): Initialize pair2 and insnp before
any possible use.

* i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
use string concatenation.  Don't save and restore esi.

* fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
(machname.h): Remove script to separate file.  Use two-step
sequence so target is not created if script fails.
* fixinc/gen-machname.h: New file.  Handle case where no non-reserved
identifiers are defined.
* fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
an empty string, machine_name doesn't need to do anything at
all.
(is_cxx_header): Add more cases to regexp.
* fixinc/fixlib.h: Update prototype.
* fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
mn_get_regexps.
* fixinc/fixincl.c: Define NO_BOGOSITY.

* fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
(hp_sysfile): Add missing comma.
(math_exception): Put the wrapper ifdefs at the beginning and
the end of the file.
* fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31744 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * Makefile.in (specs.ready): New target.
ghazi [Tue, 1 Feb 2000 22:30:35 +0000 (22:30 +0000)]
    * Makefile.in (specs.ready): New target.
        (fixinc.sh): Depend on `specs.ready' instead of `specs'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31743 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * fixinc.irix: Use unique filenames for writing into /tmp,
ghazi [Tue, 1 Feb 2000 21:42:05 +0000 (21:42 +0000)]
    * fixinc.irix: Use unique filenames for writing into /tmp,
        * fixinc.ptx: Likewise.
        * fixinc.sco: Likewise.
        * fixinc.svr4: Likewise.
        * fixinc.winnt: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31742 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tsystem.h: New file.
ghazi [Tue, 1 Feb 2000 21:30:52 +0000 (21:30 +0000)]
* tsystem.h: New file.

* Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
s-crtS): Depend on tsystem.h.

* crtstuff.c: Include tsystem.h.
* frame.c: Likewise.
* libgcc2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31741 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoNew test culled from gcc-bugs
zack [Tue, 1 Feb 2000 21:23:51 +0000 (21:23 +0000)]
New test culled from gcc-bugs

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31740 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
tromey [Tue, 1 Feb 2000 21:04:44 +0000 (21:04 +0000)]
* include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31739 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * builtins.c (expand_builtin_memset): Expand for variable sized
hubicka [Tue, 1 Feb 2000 18:57:21 +0000 (18:57 +0000)]
* builtins.c (expand_builtin_memset): Expand for variable sized
lengths too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31738 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agooops - omitted from previous delta fixing UNIQUE_SECTION
nickc [Tue, 1 Feb 2000 18:18:10 +0000 (18:18 +0000)]
oops - omitted from previous delta fixing UNIQUE_SECTION

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31737 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
tromey [Tue, 1 Feb 2000 17:36:05 +0000 (17:36 +0000)]
* jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
(_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
`locals == NULL'.
(wrap_value): New function.
(_Jv_JNI_CallAnyMethodV): Use it.
(_Jv_JNI_CallAnyMethodA): Likewise.
(_Jv_JNI_GetField): Use wrap_value; removed specialized version.
(_Jv_JNI_GetStaticField): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31736 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
tromey [Tue, 1 Feb 2000 16:32:21 +0000 (16:32 +0000)]
* jni.cc (_Jv_JNI_GetField): Specialize for jobject.
(_Jv_JNI_GetStaticField): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31735 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago(SUBTARGET_ASM_SPEC) : Default ISA based on ABI.
gavin [Tue, 1 Feb 2000 15:53:52 +0000 (15:53 +0000)]
(SUBTARGET_ASM_SPEC) : Default ISA based on ABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31734 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
hp [Tue, 1 Feb 2000 11:00:43 +0000 (11:00 +0000)]
* dwarfout.c (SHORT_TYPE_SIZE): Correct default.

* tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31733 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * config.sub: Add mmix-knuth-mmixware.
hp [Tue, 1 Feb 2000 10:45:12 +0000 (10:45 +0000)]
* config.sub: Add mmix-knuth-mmixware.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31732 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Tue, 1 Feb 2000 08:45:07 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31731 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * prims.cc (_Jv_MallocUnchecked): New function.
tromey [Tue, 1 Feb 2000 06:14:26 +0000 (06:14 +0000)]
* prims.cc (_Jv_MallocUnchecked): New function.
(main_init): Call _Jv_JNI_Init.
* include/jvm.h (_Jv_MallocUnchecked): Declare.
(_Jv_JNI_Init): Declare.
* jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
<string.h>.
(_Jv_JNI_NewGlobalRef): New function.
(_Jv_JNI_DeleteGlobalRef): New function.
(_Jv_JNI_DeleteLocalRef): New function.
(_Jv_JNI_conversion_call): Initialize and clear local reference
frame.
(_Jv_JNI_NewLocalRef): New function.
(struct _Jv_JNI_LocalFrame): New structure.
(_Jv_JNI_PushLocalFrame): New function.
(_Jv_JNI_EnsureLocalCapacity): New function.
(FRAME_SIZE): New define.
(_Jv_JNI_GetStringChars): Mark string, not characters.
(_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
(_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
(_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
elements.
(_Jv_JNI_DefineClass): Make return value a local ref.
(_Jv_JNI_FindClass): Likewise.
(_Jv_JNI_GetSuperclass): Likewise.
(_Jv_JNI_ExceptionOccurred): Likewise.
(_Jv_JNI_AllocObject): Likewise.
(_Jv_JNI_GetObjectClass): Likewise.
(_Jv_JNI_CallAnyMethodV): Likewise.
(_Jv_JNI_NewString): Likewise.
(_Jv_JNI_NewStringUTF): Likewise.
(_Jv_JNI_NewObjectArray): Likewise.
(_Jv_JNI_GetObjectArrayElement): Likewise.
(_Jv_JNI_ToReflectedField): Likewise.
(_Jv_JNI_ToReflectedMethod): Likewise.
(_Jv_JNIFunctions): Updated table for new functions.
(_Jv_JNI_Init): New function.
(mark_for_gc): Wrote.
(unmark_for_gc): Wrote.
* include/jni.h (struct JNINativeInterface): Removed name from
PopLocalFrame parameter.
(class _Jv_JNIEnv): Added `locals' field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31730 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoFix gdb testsuite regressions.
wilson [Tue, 1 Feb 2000 02:17:06 +0000 (02:17 +0000)]
Fix gdb testsuite regressions.
* class.c (build_vtbl_or_vbase_field): New parameter fcontext.
Store it in DECL_FCONTEXT.
(build_vbase_pointer_fields, create_vtable_ptr): Fix callers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31729 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
cchavva [Mon, 31 Jan 2000 22:23:43 +0000 (22:23 +0000)]
* combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
case 3->2 combining (combining with splitting) in which 2 is CC0
setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
checked at the begining of the function with the aid of calling
function 'can_combine_p'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31727 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago2000-01-31 Dave Brolley <brolley@redhat.com>
brolley [Mon, 31 Jan 2000 21:58:10 +0000 (21:58 +0000)]
2000-01-31  Dave Brolley  <brolley@redhat.com>

* cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31726 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tinfo.h (old abi): #include "tconfig.h".
jason [Mon, 31 Jan 2000 21:27:42 +0000 (21:27 +0000)]
    * tinfo.h (old abi): #include "tconfig.h".
        * tinfo.cc (convert_to_base): Move into old abi section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31725 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
mmitchel [Mon, 31 Jan 2000 21:00:01 +0000 (21:00 +0000)]
* cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
(CLASSTYPE_PRIMARY_BINFO): Use BINFO_PRIMARY_BINFO.
(BINFO_PRIMARY_BINFO): New macro.
(BF_DELTA): Rename to ...
(BV_DELTA): ... this.
(BF_VCALL_INDEX): Rename to ...
(BV_VCALL_INDEX): ... this.
(BF_FN): Rename to ...
(BV_FN): ... this.
* class.c (build_vbase_path): Adjust for changes to reverse_path.
(set_rtti_entry): Rename BF_ macros to BV_ variants.
(modify_vtable_entry): Simplify.
(add_virtual_function): Rename BF_ macros to BV_ variants.
(build_vtable_initializer): Likewise.
(get_class_offset_1): Remove.
(dfs_get_class_offset): Likewise.
(get_class_offset): Likewise.
(dfs_find_final_overrider): New function.
(find_final_overrider): Likewise.
(modify_one_vtable): Remove.
(dfs_find_base): New function.
(dfs_modify_vtables): Fold modify_one_vtable in here.  Use
find_final_overrider.
(modify_all_vtables): Adjust.  Set BV_VCALL_INDEX on new
virtuals.
(dfs_fixup_vtable_deltas): Remove.
(override_one_vtable): Remove.
(merge_overrides): Likewise.
(layout_virtual_bases): Make sure BINFO_OFFSET is set right for
unreal chilren of virtual bases.
(finish_struct_1): Don't use merge_overrides.  Don't use
dfs_fixup_vtable_deltas.
* tree.c (reverse_path): Return a TREE_LIST, not a chain of
BINFOs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31724 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
jason [Mon, 31 Jan 2000 18:52:34 +0000 (18:52 +0000)]
    * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
        new label.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31721 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
jason [Mon, 31 Jan 2000 17:20:39 +0000 (17:20 +0000)]
* tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.

* exception.cc (__throw_bad_typeid): Add missing std::.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31718 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (make_thunk): PROTO -> PARAMS.
ghazi [Mon, 31 Jan 2000 16:44:46 +0000 (16:44 +0000)]
   * cp-tree.h (make_thunk): PROTO -> PARAMS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31717 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
ghazi [Mon, 31 Jan 2000 16:39:49 +0000 (16:39 +0000)]
    * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.

        * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
        PROTO -> PARAMS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31716 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * MAINTAINERS: Pair cccp with cpplib maintainership.
ghazi [Mon, 31 Jan 2000 16:13:45 +0000 (16:13 +0000)]
* MAINTAINERS: Pair cccp with cpplib maintainership.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31715 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * cp-tree.h (new_abi_rtti_p): Use flag_new_abi.
nathan [Mon, 31 Jan 2000 10:21:47 +0000 (10:21 +0000)]
* cp-tree.h (new_abi_rtti_p): Use flag_new_abi.

Runtime support for new-abi rtti.
* inc/typeinfo (type_info::operator!=): Define in class.
(type_info::before, type_info::name, type_info::operator==,
type_info::operator!=): Define new ABI implementations.
(type_info::is_pointer_p, type_info::is_function_p): Declare
new virtual functions.
(type_info::do_catch, type_info::do_upcast): Likewise.

* tinfo.h (__base_class_info): Define new class.
(__class_type_info): Likewise.
(__si_class_type_info): Likewise.
(__vmi_class_type_info): Likewise.
(__dynamic_cast): Prototype.

* tinfo.cc: Conditionalize old and new rtti mechanisms.
(type_info::is_pointer_p): Define new function.
(type_info::is_function_p): Likewise.
(type_info::do_catch): Likewise.
(type_info::do_upcast): Likewise.
(vtable_prefix): New structure for vtable access.
(adjust_pointer): Define new template function.
(contained_p, public_p, virtual_p, contained_public_p,
contained_nonpublic_p, contained_nonvirtual_p): Define new
functions.
(nonvirtual_base_type): New local variable.
(__class_type_info::~__class_type_info): Define.
(__si_class_type_info::~__si_class_type_info): Likewise.
(__vmi_class_type_info::~__vmi_class_type_info): Likewise.
(__class_type_info::do_catch): Define new function.
(__class_type_info::do_upcast): Likewise.
(__class_type_info::find_public_src): Likewise.
(__class_type_info::do_find_public_src): Likewise.
(__si_class_type_info::do_find_public_src): Likewise.
(__vmi_class_type_info::do_find_public_src): Likewise.
(__class_type_info::do_dyncast): Likewise.
(__si_class_type_info::do_dyncast): Likewise.
(__vmi_class_type_info::do_dyncast): Likewise.
(__class_type_info::do_upcast): Likewise.
(__si_class_type_info::do_upcast): Likewise.
(__vmi_class_type_info::do_upcast): Likewise.
(__dynamic_cast): Likewise.

* tinfo2.cc (__fundamental_type_info): Define new class.
(__pointer_type_info): Likewise.
(__reference_type_info): Likewise.
(__array_type_info): Likewise.
(__function_type_info): Likewise.
(__enum_type_info): Likewise.
(__ptr_to_member_type_info): Likewise.
(__fundamental_type_info::~__fundamental_type_info): Define.
(__pointer_type_info::~__pointer_type_info): Likewise.
(__reference_type_info::~__reference_type_info): Likewise.
(__array_type_info::~__array_type_info): Likewise.
(__function_type_info::~__function_type_info): Likewise.
(__enum_type_info::~__enum_type_info): Likewise.
(__ptr_to_member_type_info::~__ptr_to_member_type_info): Likewise.
(__pointer_type_info::do_catch): Define new function.
(__ptr_to_member_type_info::do_catch): Define new function.

(__throw_type_match_rtti_2): Use new ABI interface, if enabled.
(__is_pointer): Likewise.

* exception.cc (__cplus_type_matcher): Deal with new-abi rtti.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31713 138bc75d-0d04-0410-961f-82ee72b054a4

24 years ago * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
green [Mon, 31 Jan 2000 08:56:09 +0000 (08:56 +0000)]
* gnu/gcj/convert/natIconv.cc (read): Minor fixes.
    (write): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31712 138bc75d-0d04-0410-961f-82ee72b054a4

24 years agoDaily bump.
law [Mon, 31 Jan 2000 08:45:06 +0000 (08:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31711 138bc75d-0d04-0410-961f-82ee72b054a4