Commit Graph

26158 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
75874af96c * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
From-SVN: r31814
2000-02-06 04:48:20 +00:00
Kaveh R. Ghazi
5ca1627b6d gjavah.c (overloaded_jni_method_exists_p): Add prototype.
* 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-06 04:33:10 +00:00
Kaveh R. Ghazi
5455104482 com.c (mark_tracker_head, [...]): Protoize.
* com.c (mark_tracker_head, mark_binding_level): Protoize.

       * where.c (mark_ffewhere_head): Likewise.

From-SVN: r31812
2000-02-06 04:30:45 +00:00
Kaveh R. Ghazi
70a51bdac1 Makefile.in (call.o): Depend on $(EXPR_H).
* 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-06 04:27:53 +00:00
Kaveh R. Ghazi
c69916605c Makefile.in (c-common.o): Depend on $(EXPR_H).
* 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-06 03:40:46 +00:00
Geoff Keating
79f4e1c0af ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
* ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
(FUNC_END): Likewise.

From-SVN: r31808
2000-02-06 03:14:46 +00:00
Jeff Law
8734cf78a2 Daily bump.
From-SVN: r31806
2000-02-05 01:45:07 -07:00
Michael Hayes
632905214b caller-save.c: Include tm_p.h.
2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

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

From-SVN: r31805
2000-02-05 05:46:57 +00:00
Michael Hayes
a0b4eeee42 Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
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-05 05:41:22 +00:00
Zack Weinberg
b492151d02 Word wrap comment
From-SVN: r31803
2000-02-05 05:05:03 +00:00
Neil Booth
f15e0a178d cccp.c (main): Check 'dir' for a NULL pointer before passing it to strcmp.
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-05 05:04:09 +00:00
Zack Weinberg
706b0f603f recog.h: Remove NO_MD_PROTOTYPES ifdefs.
* 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-05 04:56:11 +00:00
Kaveh R. Ghazi
c05d48e668 Makefile.in (HDR): Add machname.h.
* fixinc/Makefile.in (HDR): Add machname.h.
        (clean): Likewise.

From-SVN: r31800
2000-02-05 03:59:43 +00:00
Michael Hayes
31113446bc c4x.h (c4x_compare_op0, [...]): Move ...
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-05 00:05:12 +00:00
Jason Merrill
e40a1c6765 dwarf2out.c (add_abstract_origin_attribute): Don't call 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-04 18:46:13 -05:00
Michael Hayes
a5fa648417 c4x.md (fixuns_truncqfqi2): Rewrite.
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-04 23:35:52 +00:00
Warren Levy
4f88416976 Added credits for Per Bothner's work on MPN.java and IntNum.java (for
BigInteger).

From-SVN: r31795
2000-02-04 22:11:07 +00:00
Warren Levy
25c449becf Makefile.am: Added MPN.java and BigInteger.java.
* 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-04 22:00:36 +00:00
Bruce Korb
bff0dc38c2 genfixes (machname.h): Move the functionality from gen-machine.h into this file.
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-04 21:42:00 +00:00
Jan Hubicka
1c71e60ef7 i386.c (SAVE_REGS_FIRST): Remove.
* 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-04 13:40:37 -08:00
Richard Henderson
c13fde0599 function.c (diddle_return_value): Rework to use a callback function.
* 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-04 13:30:22 -08:00
Tom Tromey
facc279fc1 defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase pointers.
* 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-04 20:49:27 +00:00
Hans-Peter Nilsson
a89608cbeb tm.texi (Values in Registers): Fix typo: "fo" "for".
* tm.texi (Values in Registers): Fix typo: "fo" "for".
	(Misc): Say the scheduler, not the Haifa scheduler.

From-SVN: r31789
2000-02-04 19:51:57 +00:00
Clinton Popetz
a76063a6c8 jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs when in_mem is 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 12:51:11 -05:00
Richard Henderson
2e3af27c58 * i386/openbsd.h (INT_ASM_OP): Define.
From-SVN: r31786
2000-02-04 09:48:50 -08:00
Andrew Haley
43c5c8a630 Throwable.java (CPlusPlusDemangler): New class.
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 16:59:35 +00:00
Hans-Peter Nilsson
8760eaae3c * tm.texi: Fix various typos.
From-SVN: r31784
2000-02-04 10:30:26 +00:00
Jeff Law
cebb3bd563 Daily bump.
From-SVN: r31783
2000-02-04 01:45:06 -07:00
Steve Ellcey
7d4d86036d 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: r31780
2000-02-03 18:15:43 -05:00
Tom Tromey
d8b6d4cf40 * jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
From-SVN: r31779
2000-02-03 19:09:54 +00:00
Scott Bambrough
2c2f0e546b javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to assemble doubles 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-03 18:45:45 +00:00
Tom Tromey
ef2aac99d4 Make-lang.in (java.mostlyclean): Remove executables in `mostlyclean'.
* Make-lang.in (java.mostlyclean): Remove executables in
	`mostlyclean'.

From-SVN: r31776
2000-02-03 18:39:48 +00:00
Tom Tromey
14447d9674 Calendar.java (toString): New method.
* 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-03 18:26:51 +00:00
Tom Tromey
7d3151e1c9 PipedOutputStream.java (write(byte[], int, int)): New method.
* java/io/PipedOutputStream.java (write(byte[], int, int)): New
	method.

From-SVN: r31774
2000-02-03 17:17:26 +00:00
Jan Hubicka
79f05c19ca i386.md (movstrsi, clrstrsi): Support variable sized copies, align 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
2000-02-03 14:10:02 +00:00
Nathan Sidwell
31a72d3f3e cast3.C: Return void.
* g++.old-deja/g++.jason/cast3.C: Return void.
	* g++.old-deja/g++.pt/dynarray.C: Don't be pedantic.

From-SVN: r31772
2000-02-03 13:43:49 +00:00
Jeff Law
b8f10c6eca Daily bump.
From-SVN: r31769
2000-02-03 01:45:07 -07:00
Scott Bambrough
9b4a08f945 gjavah.c (D_NAN_MASK): Alternate definition required when HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
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.

From-SVN: r31768
2000-02-03 06:46:30 +00:00
Tom Tromey
de3807234a gjavah.c (options): Added `jni' entry.
* 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.

From-SVN: r31767
2000-02-03 06:13:46 +00:00
Krister Walfridsson
cf8e13bbc8 * i386/netbsd.h (INT_ASM_OP): Define.
From-SVN: r31766
2000-02-02 15:27:03 -08:00
Tom Tromey
c89c53eb67 jv-scan.c: Include version.c, <getopt.h>.
* 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.

From-SVN: r31765
2000-02-02 21:55:39 +00:00
Zack Weinberg
2e695cbbc1 Add -Wunused to dg-options
From-SVN: r31764
2000-02-02 21:43:17 +00:00
Zack Weinberg
5237f531da cpplib.h (cpp_reader): Add new flag, no_directives.
* 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.

From-SVN: r31763
2000-02-02 21:41:35 +00:00
Jim Wilson
3e7cd49fee 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.

From-SVN: r31762
2000-02-02 13:08:47 -08:00
Clinton Popetz
2cade2ad5d flow.c (find_basic_blocks): Don't kill label_value_list here.
* flow.c (find_basic_blocks): Don't kill label_value_list
	here.
	(cleanup_cfg): Kill it here.

From-SVN: r31760
2000-02-02 08:56:01 -05:00
Richard Kenner
c297a34efe expr.c (store_field): Ensure ALIGN is no stricter than the alignment of EXP.
* expr.c (store_field): Ensure ALIGN is no stricter than the
	alignment of EXP.

From-SVN: r31759
2000-02-02 08:04:50 -05:00
Richard Henderson
a7c197f8eb jump.c (delete_insn): Partially revert 19 Jan change; don't convert unused code labels to notes at -O0.
* jump.c (delete_insn): Partially revert 19 Jan change;
        don't convert unused code labels to notes at -O0.

From-SVN: r31758
2000-02-02 01:41:03 -08:00
Jeff Law
095cf96da0 Daily bump.
From-SVN: r31757
2000-02-02 01:45:06 -07:00
Herman A.J. ten Brugge
0edaaa41bb toplev.c (rest_of_compilation): Run rebuild_jump_labels after split_all_insns to recreate REG_LABEL notes for...
* toplev.c (rest_of_compilation): Run rebuild_jump_labels after
        split_all_insns to recreate REG_LABEL notes for flow2 pass.

From-SVN: r31756
2000-02-02 00:15:44 -08:00
Richard Henderson
2c5a510cb8 i386.c (general_no_elim_operand): New.
* 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.

From-SVN: r31755
2000-02-01 23:50:21 -08:00