Commit Graph

37010 Commits

Author SHA1 Message Date
Tom Tromey
4c8d8761b0 * java/awt/GridBagConstraints.java: Removed comment.
From-SVN: r45061
2001-08-20 19:53:14 +00:00
Tom Tromey
a4f291fc90 jni.cc (nathash, [...]): New globals.
* jni.cc (nathash, nathash_count, nathash_size): New globals.
	(DELETED_ENTRY): New define.
	(hash): New function.
	(nathash_find_slot): Likewise.
	(natrehash): Likewise.
	(nathash_add): Likewise.
	(_Jv_JNI_RegisterNatives): No longer interpreter-specific.  Use
	nathash_add.
	(nathash_find): New function.
	(_Jv_LookupJNIMethod): Use it.  Synchronize body.
	(call): Synchronize around assignment.

From-SVN: r45060
2001-08-20 19:52:02 +00:00
John David Anglin
010dc908b2 * pa.h (RETURN_IN_MEMORY): Improve comment.
From-SVN: r45059
2001-08-20 18:12:39 +00:00
Janis Johnson
5e42753176 Test of gcov branch coverage reporting.
From-SVN: r45058
2001-08-20 17:40:26 +00:00
Janis Johnson
b235406124 Test of gcov line coverage information.
From-SVN: r45057
2001-08-20 17:39:20 +00:00
Janis Johnson
8c9bdd540e Change to invoke gcov and clean up.
Remove dg-prms-id, which carried over to other tests.

From-SVN: r45056
2001-08-20 17:37:23 +00:00
Janis Johnson
de3e861eb0 Add support for branch information.
From-SVN: r45055
2001-08-20 17:36:05 +00:00
Janis Johnson
d573392193 gcov.exp: Add support for branch information.
* gcc.misc-tests/gcov.exp: Add support for branch information.
	* gcc.misc-tests/gcov-2.c: Change to invoke gcov and clean up.
	* gcc.misc-tests/gcov-4.c: New test.
	* gcc.misc-tests/gcov-4b.c: New test.
	* gcc.misc-tests/gcov-5b.c: New test.

From-SVN: r45054
2001-08-20 17:34:48 +00:00
Janis Johnson
3de87bf2b0 invoke.texi (Profiling options): Clarify the interactions between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
* doc/invoke.texi (Profiling options): Clarify the interactions
	between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.

From-SVN: r45053
2001-08-20 17:08:14 +00:00
Tom Tromey
0ff95153a1 configure: Rebuilt.
* configure: Rebuilt.
	* configure.in: Always ask gcc for threads package.

From-SVN: r45052
2001-08-20 16:40:46 +00:00
Jeffrey Oldham
c8a6b91604 crtstuff.c (__do_global_ctors): Fix typo in preprocessing command.
2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>

	* crtstuff.c (__do_global_ctors): Fix typo in preprocessing
	command.

From-SVN: r45051
2001-08-20 15:24:24 +00:00
Matt Kraai
27a1448728 gcc.c (make_relative_prefix): Allocate a sufficiently large buffer.
* gcc.c (make_relative_prefix): Allocate a sufficiently large
	buffer.

From-SVN: r45049
2001-08-20 13:39:36 +00:00
Richard Sandiford
2a895e441a Fixed ChangeLog entry: mips.c (reload_outcc) -> (reload_incc)
From-SVN: r45048
2001-08-20 09:08:57 +00:00
Richard Henderson
ca8264b4b3 * final.c (end_final): Fix typo last change.
From-SVN: r45047
2001-08-20 00:27:32 -07:00
GCC Administrator
b7ae9d530c Daily bump.
From-SVN: r45046
2001-08-20 07:16:49 +00:00
GCC Administrator
7e787befc6 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r45044.2
2001-08-20 07:16:44 +00:00
Neil Booth
51c042567c cppinit.c (init_standard_includes): The returned buffer is already malloc-ed.
* cppinit.c (init_standard_includes): The returned buffer
	is already malloc-ed.
	* gcc.c (add_prefix): Similarly.
	* prefix.c (translate_name): Update to support clear buffer
	ownership rules.
	(update_path): Similarly.  Be sure to free any newly allocated
	key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
	(tr): New function.
	* prefix.h (update_path): Update prototype and document.
	* config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
	up and update to new buffer ownership rules.
	* doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.

From-SVN: r45043
2001-08-20 06:14:53 +00:00
Jan Hubicka
247a370b4f final.c (compute_alignments): New function.
* final.c (compute_alignments): New function.
	(init_insn_lengths): Do not care label_align.
	(LABEL_ALIGN_AFTER_BARRIER): Default to 1.
	(LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
	(JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
	(shorted_branches): Realloc label_align array; do
	not call init_insn_lengths; Do not care about loop alignments.
	* output.h (compute_alignments): Declare.
	* toplev.c (rest_of_compilation): Call compute_alignments.
	* tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.

	* predict.c (block_info_def): Add npredecesors, remove nvisited;
	change visited to tovisit.
	(propagate_freq): Use faster traversing algorithm.
	(estimate_loops_at_level, estimate_bb_frequencies): Change visited
	to tovisit; reverse meaning.

	* predict.c (struct block_info_def): Remove nvisited.
	(propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
	(estimate_bb_frequencies): Call mark_dfs_back_edges.

From-SVN: r45042
2001-08-19 23:46:10 +00:00
Geoffrey Keating
13fac94a68 invoke.texi (MIPS Options): Document -mfused-madd.
* doc/invoke.texi (MIPS Options): Document -mfused-madd.
	* config/mips/mips.h (MASK_NO_FUSED_MADD): New.
	(TARGET_FUSED_MADD): New.
	(TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
	* config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
	the multiply-add instructions.

From-SVN: r45041
2001-08-19 21:40:37 +00:00
John David Anglin
915a17f667 * g++.dg/special/ecos.exp (initp1.C): Run initp1.C test.
From-SVN: r45037
2001-08-19 21:00:30 +00:00
Richard Henderson
2919600a2b dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref is aligned to pointer size.
* dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
        is aligned to pointer size.

From-SVN: r45034
2001-08-19 13:08:36 -07:00
Jakub Jelinek
baeb47327e typeck2.c (add_exception_specifier): Only require complete type if not in processing template declaration.
* typeck2.c (add_exception_specifier): Only require complete type if
	not in processing template declaration.

	* g++.dg/eh/template1.C: New test.

From-SVN: r45032
2001-08-19 20:35:06 +02:00
Richard Henderson
fd1a3f7330 ia64.c (ia64_cycle_display): Only emit cycle display markers during final schedule.
* config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
        display markers during final schedule.

From-SVN: r45031
2001-08-19 08:42:38 -07:00
Richard Henderson
c49f511c7e * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
From-SVN: r45030
2001-08-19 02:04:31 -07:00
Richard Henderson
c45632b732 ia64.h (STRIP_NAME_ENCODING): Handle @ and * in the same string.
* config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
	in the same string.
	(ASM_NAME_TO_STRING): Remove.
	* config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
	in the same string.  Remove support for expressions.

From-SVN: r45029
2001-08-19 02:03:02 -07:00
Richard Henderson
9067592172 i386.md (tablejump): Make an expander; handle pic relative addressing here.
* config/i386/i386.md (tablejump): Make an expander; handle
        pic relative addressing here.
        (tablejump_1): Rename from tablejump_pic.
        (casesi): Remove.

From-SVN: r45028
2001-08-19 01:45:28 -07:00
Richard Henderson
ec523c2f34 * regclass.c (fix_register): Fix typo.
From-SVN: r45027
2001-08-19 01:39:19 -07:00
GCC Administrator
a943f0a2d8 Daily bump.
From-SVN: r45025
2001-08-19 07:52:23 +00:00
Richard Henderson
443621af25 unwind-ia64.c (UNW_REG_B0): New.
* config/ia64/unwind-ia64.c (UNW_REG_B0): New.
        (struct _Unwind_Context): Expand br_loc to hold it.
        (uw_frame_state_for): Handle leaf functions better.
        (uw_update_reg_address): Update for br_loc change.

From-SVN: r45024
2001-08-18 21:55:15 -07:00
Richard Henderson
3dff7ed031 crtbegin.asm (dtor_ptr): Make gp-relative.
* config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
        (__do_global_dtors_aux): Update to match.
        (__JCR_LIST__, __do_jv_register_classes): New.
        (.init): Call it.
        * config/ia64/crtend.asm (__JCR_END__): New.
        (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
        instead of an indirect LTOFF22 reloc.

From-SVN: r45023
2001-08-18 21:46:25 -07:00
Richard Henderson
213f974a3a crtstuff.c: Move list heads before code that uses them.
* crtstuff.c: Move list heads before code that uses them.
        (__JCR_LIST__): Remove initial null.
        (frame_dummy, __frame_dummy): Do java registration here ...
        (__do_global_ctors_aux): ... not here.

From-SVN: r45022
2001-08-18 20:53:34 -07:00
Richard Henderson
6ca3c22fd1 flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
* flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
        * regclass.c (init_reg_sets_1): Fix typo.
        * config/ia64/ia64.c (ar_pfs_reg_operand): New.
        (ia64_expand_call): Pass ar.pfs to sibcall expanders.
        (ia64_compute_frame_size): Make ar.unat live when in use.
        (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
        for ar.pfs; remove ar.unat handling.
        * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
        call-saved.
        (PREDICATE_CODES): Add ar_pfs_reg_operand.
        * config/ia64/ia64-protos.h: Update decls.
        * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
        (sibcall_pic): Likewise.

From-SVN: r45021
2001-08-18 20:04:19 -07:00
Richard Henderson
8e8de25448 ia64.md (cycle_display): Combine the expander and insn patterns.
* config/ia64/ia64.md (cycle_display): Combine the expander
        and insn patterns.

From-SVN: r45020
2001-08-18 19:54:15 -07:00
Richard Henderson
b395ddbee5 ia64.c (ia64_sched_reorder2): Also skip past pred_rel_mutex when searching for insn_group_barrier.
* config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
        pred_rel_mutex when searching for insn_group_barrier.

From-SVN: r45019
2001-08-18 19:51:35 -07:00
Richard Henderson
f83594c41c ia64.c (ia64_internal_sched_reorder): Emit stop bit before asm as needed.
* config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
        bit before asm as needed.

From-SVN: r45018
2001-08-18 19:46:30 -07:00
Richard Henderson
eced69b5dd timevar.def (TV_MACH_DEP): New.
* timevar.def (TV_MACH_DEP): New.
        * toplev.c (rest_of_compilation): Use it.
        * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.

From-SVN: r45017
2001-08-18 19:43:30 -07:00
Vladimir A Merzliakov
b36d8fb47a locale_facets.tcc (collate::do_transform): Add typename.
2001-08-18  Vladimir A Merzliakov  <wanderer@rsu.ru>

	* include/bits/locale_facets.tcc (collate::do_transform): Add typename.

From-SVN: r45016
2001-08-19 00:29:01 +00:00
Benjamin Kosnik
9f530faf18 operators.cc: Add test.
2001-08-18  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/operators.cc: Add test.

From-SVN: r45015
2001-08-19 00:20:07 +00:00
Zack Weinberg
5ed3149cb0 unwind-dw2.c (execute_stack_op): Add default aborts to the inner switches to prevent warnings.
* unwind-dw2.c (execute_stack_op): Add default aborts to
	the inner switches to prevent warnings.

From-SVN: r45014
2001-08-19 00:09:46 +00:00
Richard Henderson
20cc76d56e timevar.h (struct timevar_time_def): Change element type to float.
* timevar.h (struct timevar_time_def): Change element type to float.
        (ticks_to_msec, clocks_to_msec): Likewise.
        (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
        (get_time): Likewise.
        (timevar_print): Adjust zero check and printing to match.

From-SVN: r45013
2001-08-18 16:10:22 -07:00
Zack Weinberg
9c34dbbf06 extend.texi, [...]: Eliminate overfull or underfull hboxes.
* doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
        doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
        Eliminate overfull or underfull hboxes.

From-SVN: r45012
2001-08-18 21:02:44 +00:00
Zack Weinberg
b649398a84 ansidecl.h: Reorganize for readability...
include:
        * ansidecl.h: Reorganize for readability, remove documentation
        of obsolete macros, document PARAMS and VPARAMS.  Add new
        macros VA_OPEN, VA_CLOSE, and VA_FIXEDARG for nicer variadic
        function implementation.

gcc:
        * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.

From-SVN: r45011
2001-08-18 20:46:45 +00:00
Zack Weinberg
76f4925a6f oops, that went with the previous commit
From-SVN: r45010
2001-08-18 20:44:57 +00:00
Zack Weinberg
c237e94a5f haifa-sched.c: Convert to target hooks.
* haifa-sched.c: Convert to target hooks.  Macros replaced
	are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
	MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
	MD_SCHED_FINISH, and HAVE_cycle_display.
	* target-def.h (TARGET_SCHED_ADJUST_COST,
	TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
	TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
	TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
	TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
	New hook #defines to be overridden.
	(TARGET_SCHED): Bring them all together.
	(TARGET_INITIALIZER): Update.
	* target.h: Don't forward declare struct rtx_def.  Use 'rtx'
	instead of 'struct rtx_def *' throughout.
	(struct sched): New set of hooks for the scheduler.
	* Makefile.in (haifa-sched.o): Depend on target.h.
	* doc/tm.texi: Document the new scheduler hooks, together in
	their own section, instead of scattered around.
	Fix a bunch of underfull/overfull hboxes.

	* a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
	ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
	sparc.h: Don't define any of the old scheduler macros.

	* a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
	ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
	sparc.c: Create hook functions from code extracted from
	corresponding target header, or make existing hooks static, as
	appropriate.  Set the appropriate entries in targetm.

	* alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
	i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
	rs6000-protos.h, s390-protos.h, sparc-protos.h:
	Remove prototypes for functions which are now static.

	* d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
	related gunk; the Haifa scheduler is now the only choice.

From-SVN: r45009
2001-08-18 20:25:54 +00:00
Zack Weinberg
ef89d648b8 optabs.h (OTI_flodiv, [...]): Kill.
* optabs.h (OTI_flodiv, flodiv_optab): Kill.
	* genopinit.c: Put floating point divide insns in sdiv_optab.
	* expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
	* config/gofast.h, config/c4x/c4x.h,
	config/ia64/hpux_longdouble.h, config/mips/mips.h,
	config/pa/long_double.h, config/rs6000/sysv4.h,
	config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
	* optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
	(init_optabs): Use init_optabv for overflow-trapping optabs.
	Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
	cmp_optab RTX codes so have_insn_for can find them.

	* optabs.c (expand_simple_binop, expand_simple_unop,
	have_insn_for, gen_sub3_insn): New interfaces.
	* expr.h: Prototype new functions.
	(enum optab_methods): Move here from optabs.h.

	* builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
	loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
	Use new	functions instead of working directly with optabs.
	* doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
	unroll.c: Don't include optabs.h.
	* caller-save.c, combine.c, function.c, stmt.c: Just include
	insn-codes.h, not optabs.h.
	* Makefile.in: Update dependencies.

	* combine.c (make_compound_operation, simplify_comparison):
	Fix typos testing for this or that instruction.

From-SVN: r45008
2001-08-18 19:59:46 +00:00
Andreas Schwab
8d36d72292 configure.target (cpu_include_dir): Set to `config/cpu/m68k' for m68k and m680[246]0.
* configure.target (cpu_include_dir): Set to `config/cpu/m68k' for
	m68k and m680[246]0.
	* config/cpu/m68k/bits/atomicity.h: New file.

From-SVN: r45006
2001-08-18 19:22:25 +00:00
Herman A.J. ten Brugge
9e23c02d4f mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when generating libgcc.a.
* mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
        generating libgcc.a.

From-SVN: r45005
2001-08-18 11:16:08 -07:00
Kaveh R. Ghazi
1c0cc57e79 except.c (TYPE_HASH): Delete.
* except.c (TYPE_HASH): Delete.

	* objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
	HOST_WIDE_INT.

	* tree.c (TYPE_HASH): Delete.

	* tree.h (TYPE_HASH): Define.

ch:
	* tree.c (TYPE_HASH): Moved to ../tree.h.

cp:
	* decl.c: Cast argument to size_t, not HOST_WIDE_INT, in calls to
	GNU_xref_start_scope and GNU_xref_end_scope.

	* tree.c (TYPE_HASH): Moved to ../tree.h.

From-SVN: r45004
2001-08-18 18:11:18 +00:00
Graham Stott
13c508d991 mips.md (adddi3_internal_2+1): Remove contraints from define_split.
* config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
	define_split.
	(adddi3_internal_2+2): Likewise.
	(eh_set_lr_di+1): Likewise.

From-SVN: r45002
2001-08-18 11:23:01 +00:00
Neil Booth
fc0b1d1a48 cppinit.c (init_standard_includes): Reverse accidentally included hunk from prefix.c patch.
* cppinit.c (init_standard_includes): Reverse accidentally
	included hunk from prefix.c patch.

From-SVN: r45001
2001-08-18 07:17:14 +00:00