aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-02-07Daily bump.Jeff Law5-5/+5
From-SVN: r31830
2000-02-06cpplib.c (my_strerror, [...]): Move to cpperror.c.Zack Weinberg10-495/+468
* cpplib.c (my_strerror, cpp_error, cpp_error_with_line, cpp_error_from_errno, cpp_warning, cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line, cpp_pedwarn_with_file_and_line): Move to cpperror.c. (cpp_print_file_and_line, v_cpp_error, v_cpp_warning, v_cpp_error_with_line, v_cpp_warning_with_line, cpp_message_from_errno, cpp_perror_with_name): Delete. * cpperror.c (cpp_print_containing_files): Take starting buffer as argument. (cpp_file_line_for_message): Rename to cpp_print_file_and_line. (v_cpp_message): Now called directly by all entry points. Remove -1 case. (cpp_pfatal_with_name, cpp_message): Delete. (cpp_notice_from_errno, cpp_ice): New functions. (cpp_notice): Is now for reporting error conditions, just without an associated file. (cpp_error, cpp_error_with_line): Don't do anything if opts->inhibit_errors is on. (cpp_pedwarn_with_file_and_line): Take column argument also. * cpplib.h: Update prototypes of exported functions. (struct cpp_options): Add inhibit_errors. * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for non-error messages. Include intl.h. * cppinit.c, cppmain.c: Likewise. Also, use cpp_notice_from_errno instead of cpp_perror_with_name or cpp_pfatal_with_name, and cpp_notice instead of cpp_message. * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to report internal errors. * cpplib.c (do_define): Switch bcopy to memcpy. Give cpp_pedwarn_with_file_and_line a dummy column argument. From-SVN: r31829
2000-02-06cpplib.c (copy_rest_of_line): Revert previous change: don't bail out early ↵Zack Weinberg2-2/+5
if we hit a line comment. * cpplib.c (copy_rest_of_line): Revert previous change: don't bail out early if we hit a line comment. From-SVN: r31828
2000-02-06i386.c (ix86_can_use_return_insn_p): Fail for large poped args and for ↵Richard Henderson3-3/+29
non-empty stack frames. * 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. From-SVN: r31827
2000-02-06flow.c (flow_delete_insn, [...]): Export.Richard Henderson7-58/+143
* 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. From-SVN: r31826
2000-02-06simplify-rtx.c (simplify_relational_operation): Canonicalize constant to op1 ↵Richard Henderson2-8/+21
for testing. * simplify-rtx.c (simplify_relational_operation): Canonicalize constant to op1 for testing. From-SVN: r31825
2000-02-06c4x.md (*ldi_on_overflow): New pattern.Michael Hayes2-21/+31
2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * config/c4x/c4x.md (*ldi_on_overflow): New pattern. (fixuns_truncqfqi2): Use it. From-SVN: r31823
2000-02-06i386.md (widening and peepholes): Mask the constant instead of using ↵Richard Henderson2-7/+17
gen_lowpart. * i386.md (widening and peepholes): Mask the constant instead of using gen_lowpart. From-SVN: r31822
2000-02-06i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack as a TYPE_LEA ↵Richard Henderson1-1/+11
insn. * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack as a TYPE_LEA insn. From-SVN: r31821
2000-02-06Daily bump.Jeff Law5-5/+5
From-SVN: r31820
2000-02-06cppfiles.c (read_and_prescan): Bump input pointer before possibly branching ↵Zack Weinberg7-41/+157
off to the backslash code. * 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. From-SVN: r31819
2000-02-06cppalloc.c: Update copyright.Zack Weinberg4-50/+47
* cppalloc.c: Update copyright. * cpplib.c: Merge all the static function prototypes into one block. * cpplib.h: Remove #if 0 block. From-SVN: r31818
2000-02-06cpperror.c: Remove #ifdef EMACS block.Zack Weinberg7-183/+68
* 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. From-SVN: r31817
2000-02-06tinfo.h: Remove apostrophes from C++ comment (xgettext thinks this file is ↵Zack Weinberg7-5/+19
plain C). * 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. From-SVN: r31816
2000-02-05Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>Alan Modra2-0/+21
Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au> * gcc.c-torture/execute/20000205-1.c: New. From-SVN: r31815
2000-02-06* longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.Kaveh R. Ghazi2-12/+16
From-SVN: r31814
2000-02-06gjavah.c (overloaded_jni_method_exists_p): Add prototype.Kaveh R. Ghazi2-2/+9
* gjavah.c (overloaded_jni_method_exists_p): Add prototype. (print_name_for_stub_or_jni, process_file): Constify a char*. From-SVN: r31813
2000-02-06com.c (mark_tracker_head, [...]): Protoize.Kaveh R. Ghazi3-6/+9
* com.c (mark_tracker_head, mark_binding_level): Protoize. * where.c (mark_ffewhere_head): Likewise. From-SVN: r31812
2000-02-06Makefile.in (call.o): Depend on $(EXPR_H).Kaveh R. Ghazi5-1/+14
* 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. From-SVN: r31811
2000-02-06Makefile.in (c-common.o): Depend on $(EXPR_H).Kaveh R. Ghazi18-26/+105
* 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. From-SVN: r31810
2000-02-06ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.Geoff Keating2-5/+10
* ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX. (FUNC_END): Likewise. From-SVN: r31808
2000-02-05Daily bump.Jeff Law5-5/+5
From-SVN: r31806
2000-02-05caller-save.c: Include tm_p.h.Michael Hayes2-0/+5
2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * caller-save.c: Include tm_p.h. From-SVN: r31805
2000-02-05Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).Michael Hayes2-10/+16
2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2). From-SVN: r31804
2000-02-05Word wrap commentZack Weinberg1-1/+2
From-SVN: r31803
2000-02-05cccp.c (main): Check 'dir' for a NULL pointer before passing it to strcmp.Neil Booth2-1/+6
2000-02-04 Neil Booth <NeilB@earthling.net> * cccp.c (main): Check 'dir' for a NULL pointer before passing it to strcmp. From-SVN: r31802
2000-02-05recog.h: Remove NO_MD_PROTOTYPES ifdefs.Zack Weinberg6-60/+61
* 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. From-SVN: r31801
2000-02-05Makefile.in (HDR): Add machname.h.Kaveh R. Ghazi2-2/+7
* fixinc/Makefile.in (HDR): Add machname.h. (clean): Likewise. From-SVN: r31800
2000-02-05c4x.h (c4x_compare_op0, [...]): Move ...Michael Hayes3-14/+19
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. From-SVN: r31799
2000-02-04dwarf2out.c (add_abstract_origin_attribute): Don't call ↵Jason Merrill2-6/+17
gen_abstract_function on our context if we're a nested function. * dwarf2out.c (add_abstract_origin_attribute): Don't call gen_abstract_function on our context if we're a nested function. From-SVN: r31798
2000-02-04c4x.md (fixuns_truncqfqi2): Rewrite.Michael Hayes3-14/+32
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. From-SVN: r31797
2000-02-04Added credits for Per Bothner's work on MPN.java and IntNum.java (forWarren Levy1-2/+4
BigInteger). From-SVN: r31795
2000-02-04Makefile.am: Added MPN.java and BigInteger.java.Warren Levy5-7/+2437
* Makefile.am: Added MPN.java and BigInteger.java. * Makefile.in: Rebuilt. * gnu/gcj/math/MPN.java: New file. * java/math/BigInteger.java: New file. From-SVN: r31794
2000-02-04genfixes (machname.h): Move the functionality from gen-machine.h into this file.Bruce Korb8-85/+126
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 From-SVN: r31793
2000-02-04i386.c (SAVE_REGS_FIRST): Remove.Jan Hubicka3-144/+123
* 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. Co-Authored-By: Richard Henderson <rth@cygnus.com> From-SVN: r31792
2000-02-04function.c (diddle_return_value): Rework to use a callback function.Richard Henderson6-74/+103
* 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. From-SVN: r31791
2000-02-04defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase pointers.Tom Tromey8-58/+312
* 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. From-SVN: r31790
2000-02-04tm.texi (Values in Registers): Fix typo: "fo" "for".Hans-Peter Nilsson2-6/+10
* tm.texi (Values in Registers): Fix typo: "fo" "for". (Misc): Say the scheduler, not the Haifa scheduler. From-SVN: r31789
2000-02-04jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs when in_mem is ↵Clinton Popetz2-13/+25
set. * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs when in_mem is set. Update all callers. From-SVN: r31787
2000-02-04* i386/openbsd.h (INT_ASM_OP): Define.Richard Henderson2-2/+9
From-SVN: r31786
2000-02-04Throwable.java (CPlusPlusDemangler): New class.Andrew Haley3-6/+97
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. From-SVN: r31785
2000-02-04* tm.texi: Fix various typos.Hans-Peter Nilsson2-11/+14
From-SVN: r31784
2000-02-04Daily bump.Jeff Law5-5/+5
From-SVN: r31783
2000-02-03pa-hpux11.h (LIB_SPEC): Correct typo in !p case.Steve Ellcey2-9/+15
* config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case. (MD_STARTFILE_PREFIX_1): New macro. From-SVN: r31780
2000-02-03* jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.Tom Tromey2-5/+13
From-SVN: r31779
2000-02-03javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to assemble doubles ↵Scott Bambrough2-0/+10
correctly when... 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. From-SVN: r31777
2000-02-03Make-lang.in (java.mostlyclean): Remove executables in `mostlyclean'.Tom Tromey2-1/+7
* Make-lang.in (java.mostlyclean): Remove executables in `mostlyclean'. From-SVN: r31776
2000-02-03Calendar.java (toString): New method.Tom Tromey10-10/+132
* 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. From-SVN: r31775
2000-02-03PipedOutputStream.java (write(byte[], int, int)): New method.Tom Tromey2-7/+15
* java/io/PipedOutputStream.java (write(byte[], int, int)): New method. From-SVN: r31774
2000-02-03i386.md (movstrsi, clrstrsi): Support variable sized copies, align ↵Jan Hubicka4-15/+384
destination when needed. * 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. From-SVN: r31773