Commit Graph

40423 Commits

Author SHA1 Message Date
Andreas Tobler
73068e369f nogc.cc: Remove warnings.
2002-01-26 Andreas Tobler <a.tobler@schweiz.ch>

	* nogc.cc: Remove warnings.
	(_Jv_GCRegisterDisappearingLink, _Jv_GCCanReclaimSoftReference):
	New functions.

From-SVN: r49273
2002-01-27 22:33:35 +00:00
Tom Tromey
45a2b4f74e reverted accidental checkin
From-SVN: r49272
2002-01-27 22:30:30 +00:00
Andreas Tobler
1d8478d79a builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF.
2002-01-26 Andreas Tobler <a.tobler@schweiz.ch>

	* gcc/java/builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not
	BUILT_IN_SQRTF.

From-SVN: r49271
2002-01-27 22:28:42 +00:00
Kazu Hirata
438451ccec * gcc.c-torture/execute/20020127-1.c: New test.
From-SVN: r49270
2002-01-27 22:02:49 +00:00
Kazu Hirata
8ed43adf98 h8300.md: Replace dead bit extraction patterns with ones that work.
* config/h8300/h8300.md: Replace dead bit extraction patterns
	with ones that work.

From-SVN: r49269
2002-01-27 21:50:10 +00:00
Richard Kenner
917afb0c3f emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode if not STRICT_ALIGNMENT.
* emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
	if not STRICT_ALIGNMENT.
	* rtl.h (MEM_ALIGN): Likewise.

From-SVN: r49268
2002-01-27 13:29:33 -05:00
Craig Rodrigues
f70a54cb87 invoke.texi (-fdump-translation-unit): Revert this patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        * doc/invoke.texi (-fdump-translation-unit): Revert this
        patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>

From-SVN: r49267
2002-01-27 17:44:54 +00:00
GCC Administrator
eeb373f61c Daily bump.
From-SVN: r49265
2002-01-27 08:16:20 +00:00
Kazu Hirata
d8fd4914ea h8300.md (define_constants): New.
* config/h8300/h8300.md (define_constants): New.
	(anonymous patterns) Use defined constants appropriately.

From-SVN: r49264
2002-01-27 06:44:53 +00:00
Kazu Hirata
15e0e27547 * config/h8300/h8300.c (function_arg): Remove redundant code.
From-SVN: r49263
2002-01-27 06:33:17 +00:00
Richard Henderson
37a0f8a525 sched-deps.c (reg_pending_uses_head): New.
* sched-deps.c (reg_pending_uses_head): New.
        (reg_pending_barrier): Rename from reg_pending_sets_all.
        (find_insn_list): Don't mark inline.
        (find_insn_mem_list): Remove.
        (add_dependence_list, add_dependence_list_and_free): New.
        (flush_pending_lists): Replace only_write param with separate
        for_read and for_write parameters.  Update all callers.  Use
        add_dependence_list_and_free.
        (sched_analyze_1): Do not add reg dependencies here; just set
        the pending bits.  Use add_dependence_list.
        (sched_analyze_2): Likewise.
        (sched_analyze_insn): Replace schedule_barrier_found with
        reg_pending_barrier.  Add all dependencies for pending reg
        uses, sets, and clobbers.
        (sched_analyze): Don't add reg dependencies for calls, just
        set pending bits.  Use regs_invalidated_by_call.  Treat
        sched_before_next_call as a normal list, not a fake insn.
        (init_deps): No funny init for sched_before_next_call.
        (free_deps): Free pending mems lists.  Don't zero reg_last.
        (init_deps_global): Init reg_pending_uses.
        (finish_deps_global): Free it.
        * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
        (find_insn_mem_list): Remove.
        * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
        (propagate_deps): Use them.  Zero temp mem lists.

From-SVN: r49262
2002-01-26 20:46:53 -08:00
Richard Henderson
cea3bd3e5a Makefile.in (CRTSTUFF_CFLAGS): New.
* Makefile.in (CRTSTUFF_CFLAGS): New.
	(crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
	* config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
	crtstuff.c instead of alpha assembly version.
	* crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
	entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
	not FORCE_{INIT,FINI}_SECTION_ALIGN.
	(__do_global_dtors_aux): Mark used.
	(frame_dummy, __do_global_ctors_aux): Mark used.
	(fini_dummy, init_dummy): Remove.

	* config/alpha/crtbegin.asm: Remove file.
	* config/alpha/crtend.asm: Remove file.
	* config/alpha/t-crtbe: Remove file.
	* config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
	(LINK_EH_SPEC): New.

	* config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
	FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
	calling constructors.
	* config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.

	* config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
	* config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
	CRT_END_INIT_DUMMY hack.
	* config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
	FORCE_{INIT,FINI}_SECTION_ALIGN.

	* config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
	FORCE_{INIT,FINI}_SECTION_ALIGN.

	* config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
	invocation sequence.
	* config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.

	* doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
	(FORCE_CODE_SECTION_ALIGN): New.

From-SVN: r49261
2002-01-26 20:18:12 -08:00
Richard Henderson
1f9131b7db Update copyright.
From-SVN: r49260
2002-01-26 19:44:58 -08:00
Richard Henderson
60ffa0e5ba * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
From-SVN: r49259
2002-01-26 19:42:07 -08:00
Jason Thorpe
51584787e0 configure.in (*-*-netbsd*): New.
* configure.in (*-*-netbsd*): New.  Skip target-newlib,
target-libiberty, and target-libgloss.  Skip Java-related
libraries if not supported for NetBSD on target CPU.

From-SVN: r49258
2002-01-27 02:41:37 +00:00
David Billinghurst
1bf8640cba f77-edit-i-in.f: New test
2002-01-26  David Billinghurst  <David.Billinghurst@riotinto.com>

	* g77.dg/f77-edit-i-in.f: New test
	* g77.dg/f77-edit-i-out.f: New test

From-SVN: r49257
2002-01-27 01:39:36 +00:00
Richard Henderson
61334ebeff alpha.c (alpha_sa_mask): Mark RA for unicos here too.
* config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
        (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.

From-SVN: r49256
2002-01-26 16:38:07 -08:00
Kazu Hirata
1d788fb684 h8300.md: Remove bit extraction patterns that cannot be triggered.
* config/h8300/h8300.md: Remove bit extraction patterns that
	cannot be triggered.
	Restrict each bit extraction pattern to a variant on which the
	pattern is tested.

From-SVN: r49253
2002-01-26 21:31:04 +00:00
Joseph Myers
87611f881e * doc/include/texinfo.tex: Update to version 2002-01-04.07.
From-SVN: r49249
2002-01-26 19:21:02 +00:00
Toon Moene
892c8ea0fa intrin.c (ffeintrin_cmp_name_): Correct comparison for intrinsics in intrinsic table (intrin.def).
2002-01-26  Toon Moene  <toon@moene.indiv.nluug.nl>

	* intrin.c (ffeintrin_cmp_name_): Correct comparison
	for intrinsics in intrinsic table (intrin.def).

From-SVN: r49248
2002-01-26 16:14:39 +00:00
Kazu Hirata
cd74ec597b h8300.md: Remove bit test patterns that cannot be triggered.
* config/h8300/h8300.md: Remove bit test patterns that cannot
	be triggered.
	Restrict each bit test pattern to a variant on which the
	pattern is tested.

From-SVN: r49247
2002-01-26 15:29:52 +00:00
Kaveh R. Ghazi
93051e0f93 builtins.c (expand_builtin_strncat): Remove redundant check for INTEGER_CST.
* builtins.c (expand_builtin_strncat): Remove redundant check for
	INTEGER_CST.

From-SVN: r49246
2002-01-26 14:47:12 +00:00
Bryce McKinlay
2198265a72 MemoryImageSource.java (newPixels(byte[], ColorModel, int, int): Remove empty "if" statement to work around compiler bug.
* java/awt/image/MemoryImageSource.java (newPixels(byte[], ColorModel,
        int, int):  Remove empty "if" statement to work around compiler bug.
        (newPixels(int[], ColorModel, int, int): Likewise.

From-SVN: r49245
2002-01-26 08:35:34 +00:00
GCC Administrator
f478b973d6 Daily bump.
From-SVN: r49243
2002-01-26 08:16:14 +00:00
David O'Brien
216c995f35 x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide default setting.
2002-01-25  David O'Brien  <obrien@FreeBSD.org>
	* config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
	default setting.
	* config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
	existing setting.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020125174510.C18589@redhat.com>

From-SVN: r49242
2002-01-26 07:24:57 +00:00
Per Bothner
f24e160adc ChangeLog entry for verify.cc.
From-SVN: r49241
2002-01-25 22:33:31 -08:00
Per Bothner
f70443f75c verify.cc (verify_fail): Change from being a top-level function to e method of _Jv_BytecodeVerifier.
* verify.cc (verify_fail):  Change from being a top-level function
	to e method of _Jv_BytecodeVerifier.  Emit current method name.
	Pass the current verifier to type: and state: methods as needed,
	for better error messages, and for resolve.
	(resolve):  Pass current class's loader for Class.forName and
	_Jv_FindClassFromSignature, rather than using the default loader.
	(various type: and state: methods):  Take _Jv_BytecodeVerifier* arg.
	(get_type_val_for_signature):  Make non-static.
	(various methods):  Pass start_PC implicitly, not explicitly.

From-SVN: r49240
2002-01-25 22:32:55 -08:00
Loren J. Rittle
63b3a44f03 pthread1.cc: Use one condition variable per predicate instead of tricky use of one condition...
* testsuite/thread/pthread1.cc: Use one condition variable
        per predicate instead of tricky use of one condition variable.

From-SVN: r49239
2002-01-26 03:26:14 +00:00
Geoffrey Keating
33c7f925c6 Index: gcc/ChangeLog
* dbxout.c (dbxout_init): Use assemble_name rather than just
	stripping off the first character.
	(dbxout_source_file): Likewise.

Index: gcc/testsuite/ChangeLog

	* gcc.dg/debug/debug.exp: New file.
        * gcc.dg/debug/trivial.c: New file.
        * gcc.dg/debug/20000503-1.c: Moved from gcc.dg/.
        * gcc.dg/debug/20010207-1.c: Moved from gcc.dg/.
        * gcc.dg/debug/20011223-1.c: Moved from gcc.dg/.
        * gcc.dg/debug/20020104-2.c: Moved from gcc.dg/.
        * gcc.dg/debug/debug-1.c: Moved from gcc.dg/.
        * gcc.dg/debug/debug-2.c: Moved from gcc.dg/.
        * gcc.dg/debug/debug-3.c: Moved from gcc.dg/.
        * gcc.dg/debug/debug-4.c: Moved from gcc.dg/.
        * gcc.dg/debug/debug-5.c: Moved from gcc.dg/.
        * gcc.dg/debug/debug-6.c: Moved from gcc.dg/.
        * gcc.dg/debug/dwarf2-1.c: Moved from gcc.dg/.
        * gcc.dg/debug/dwarf2-2.c: Moved from gcc.dg/.
        * gcc.dg/20000503-1.c: Removed.
        * gcc.dg/20010207-1.c: Removed.
        * gcc.dg/20011223-1.c: Removed.
        * gcc.dg/20020104-2.c: Removed.
        * gcc.dg/debug-1.c: Removed.
        * gcc.dg/debug-2.c: Removed.
        * gcc.dg/debug-3.c: Removed.
        * gcc.dg/debug-4.c: Removed.
        * gcc.dg/debug-5.c: Removed.
        * gcc.dg/debug-6.c: Removed.
        * gcc.dg/dwarf2-1.c: Removed.
        * gcc.dg/dwarf2-2.c: Removed.

From-SVN: r49238
2002-01-26 02:38:57 +00:00
DJ Delorie
6cd444b4e0 sparc.c (sparc_emit_set_symbolic_const64): Compare using rtx_equal_p, not by comparing pointers.
* config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
using rtx_equal_p, not by comparing pointers.

From-SVN: r49237
2002-01-25 21:09:02 -05:00
Benjamin Kosnik
e67051746f fstream.tcc (filebuf::close()): Fix close for input streams.
2002-01-25  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/fstream.tcc (filebuf::close()): Fix close for input
	streams.
	(filebuf::_M_really_overflow): Match indeterminate and sync calls.
	* testsuite/27_io/filebuf.cc: Compile only.
	* testsuite/27_io/filebuf_members.cc: Move tests to here.
	* testsuite/27_io/filebuf_virtuals.cc: And here.
	Revert sungetc, sync changes for expected values.
	* testsuite/27_io/filebuf-*: Move to...
	* testsuite/27_io/filebuf_virtuals-*: ...here.
	* testsuite/27_io/istream.cc: Compile only, activate.
	* testsuite/27_io/ostream.cc: Same.
	* testsuite/27_io/iostream.cc: New.
	* testsuite/27_io/iostream_members.cc: New.

From-SVN: r49236
2002-01-26 01:55:09 +00:00
Steve Ellcey
751551d5c6 emit-rtl.c (gen_rtx_REG): Always return the same rtx for PIC_OFFSET_TABLE_REGNUM.
* emit-rtl.c (gen_rtx_REG): Always return the same rtx
        for PIC_OFFSET_TABLE_REGNUM.
        (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.

From-SVN: r49234
2002-01-25 17:29:55 -08:00
David O'Brien
e564e61805 config.gcc (x86_64-*-freebsd*): New target.
2002-01-25  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc (x86_64-*-freebsd*): New target.
	(x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
	value.
	(i[34567]86-*-freebsd*): Don't include svr4.h.
	* config/i386/freebsd64.h: New file.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020125160119.B17943@redhat.com>

From-SVN: r49233
2002-01-26 01:23:27 +00:00
Douglas B Rupp
4857d29d81 x-vms (version): Make static.
* config/alpha/x-vms (version): Make static.

	* config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
	in previous checkin.

From-SVN: r49230
2002-01-25 18:49:58 -05:00
Douglas B Rupp
ff3aaf1732 Makefile.in (install-headers-cp): New target.
* Makefile.in (install-headers-cp): New target.
	* config.gcc (alpha-dec-*vms*): Install headers with
	install-headers-cp

From-SVN: r49229
2002-01-25 18:46:14 -05:00
Douglas B Rupp
5701d273b0 * install-sh: Use _inst.$$_ for temp file name.
From-SVN: r49228
2002-01-25 18:42:28 -05:00
Gerald Pfeifer
66b8f5d7a8 gennews (files): Replace gcc-2.95/gcc-2.95.html...
* gennews (files): Replace gcc-2.95/gcc-2.95.html,
	gcc-2.95/gcc-2.95.1.html, gcc-2.95/gcc-2.95.2.html,
	and gcc-2.95/gcc-2.95.3.html by gcc-2.95/index.html.

From-SVN: r49226
2002-01-25 23:27:45 +00:00
Jan Hubicka
48d79c431e unroll.c (unroll_loop): Lower final_value to nonmemory operand; avoid it's copies.
* unroll.c (unroll_loop): Lower final_value to nonmemory operand;
	avoid it's copies.

From-SVN: r49224
2002-01-25 21:46:07 +00:00
Richard Kenner
995b590439 builtins.c (expand_builtin_strncpy): Use integer_zerop instead of compare_tree_int.
* builtins.c (expand_builtin_strncpy): Use integer_zerop instead
	of compare_tree_int.
	(expand_builtin_strncat): Likewise.
	* c-decl.c (finish_struct): Use tree_low_cst.
	* tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
	* tree.c (compare_tree_int): Likewise.

From-SVN: r49222
2002-01-25 15:45:48 -05:00
Ulrich Weigand
75eefe3fe0 reload1.c (eliminate_regs_in_insn): Recognize frame pointer adjustments even if...
* reload1.c (eliminate_regs_in_insn): Recognize frame pointer
adjustments even if they are implemented by more than two insns.

From-SVN: r49221
2002-01-25 20:22:31 +00:00
Jan Hubicka
5a133afd40 df.c (df_ref_create, [...]): Kill BB argument.
* df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB argument.
	* df.h (struct ref): Kill B.
	(DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.

	* basic-block.h (PROP_EQUAL_NOTES): New flag.
	* flow.c (propagate_one_insn): Use it.
	(mark_used_regs): Handle NIL.

From-SVN: r49220
2002-01-25 19:46:43 +00:00
Geoffrey Keating
3d8dd3c051 stormy16.md (tablejump_pcrel): Use a MEM to help folding.
* config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
	to help folding.

From-SVN: r49219
2002-01-25 18:20:27 +00:00
David Edelsohn
6cb3421f1f gc.h (GC_INIT): Add DATASTART and DATAEND roots on AIX.
* include/gc.h (GC_INIT): Add DATASTART and DATAEND roots on AIX.
	* include/private/gcconfig.h (RS6000): Add 64-bit AIX support.
	Define USE_GENERIC_PUSH_REGS.  Use AIX _data and _end symbols for
	DATASTART and DATAEND roots.
	* rs6000_mach_dep.s: Add function descriptor and traceback table.

From-SVN: r49218
2002-01-25 13:06:24 -05:00
David Edelsohn
01a2ccd010 rs6000.md (prefetch): Make address V4SI mode so that the address is restricted to legitimate form for...
* rs6000.md (prefetch): Make address V4SI mode so that the address
        is restricted to legitimate form for instruction.

From-SVN: r49217
2002-01-25 12:52:43 -05:00
Tom Tromey
2fb4e07f24 FlowLayout.java (layoutContainer): Correctly compute loop termination condition.
* java/awt/FlowLayout.java (layoutContainer): Correctly compute
	loop termination condition.
	* java/awt/GridLayout.java (getSize): Use `real_cols' to compute
	width.

From-SVN: r49216
2002-01-25 17:25:26 +00:00
Bob Wilson
fd29f6eae8 install.texi (xtensa-*-elf): New target.
* doc/install.texi (xtensa-*-elf): New target.
	(xtensa-*-linux*): New target.
	* doc/contrib.texi: Add myself.

From-SVN: r49215
2002-01-25 17:10:46 +00:00
David Billinghurst
a68d024dfc pthread1.cc: Enable on cygwin.
* testsuite/thread/pthread1.cc: Enable on cygwin.
	* testsuite/thread/pthread2.cc: Likewise.
	* testsuite/thread/pthread3.cc: Likewise.
	* testsuite/thread/pthread4.cc: Likewise.
	* testsuite/thread/pthread5.cc: Likewise.
	* testsuite/thread/pthread6.cc: Likewise.

From-SVN: r49214
2002-01-25 16:05:48 +00:00
Nick Clifton
55492b32d7 Allow any general purpose register to hold an SImode (or smaller) value.
From-SVN: r49213
2002-01-25 11:44:12 +00:00
Jakub Jelinek
72c7c913b4 unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame* registry only.
* unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
	registry only.
	* crtstuff.c: Likewise.

From-SVN: r49212
2002-01-25 12:22:52 +01:00
Jakub Jelinek
1658df0aca eh5.C: New test.
* g++.old-deja/g++.other/eh5.C: New test.
	* g++.old-deja/g++.other/sibcall2.C: New test.
	* g++.old-deja/g++.other/array9.C: New test.
	* g++.old-deja/g++.other/typename2.C: New test.
	* g++.old-deja/g++.other/crash60.C: New test.
	* g++.old-deja/g++.other/conv9.C: New test.
	* g++.old-deja/g++.other/mangle10.C: New test.
	* g++.old-deja/g++.other/unchanging1.C: New test.
	* g++.old-deja/g++.other/exprstmt1.C: New test.
	* g++.old-deja/g++.other/inline23.C: New test.
	* g++.old-deja/g++.eh/ia64-1.C: New test.
	* g++.old-deja/g++.other/dwarf2-1.C: New test.
	* g++.old-deja/g++.other/mangle11.C: New test.
	* g++.old-deja/g++.other/reload1.C: New test.
	* g++.old-deja/g++.other/static20.C: New test.
	* g++.old-deja/g++.other/local-alloc1.C: New test.
	* g++.old-deja/g++.other/conv8.C: New test.
	* g++.old-deja/g++.other/stmtexpr2.C: New test.
	* g++.old-deja/g++.other/storeexpr1.C: New test.
	* g++.old-deja/g++.other/storeexpr2.C: New test.
	* g++.dg/eh/template2.C: New test.
	* g++.dg/warn/weak1.C: New test.

From-SVN: r49211
2002-01-25 12:20:29 +01:00