Commit Graph

41272 Commits

Author SHA1 Message Date
Alexandre Oliva
12f61e776a gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as NULL_RTX.
* config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
NULL_RTX.  Set all HFmode operations as NULL_RTX.
* optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
NULL_RTX, try reversing the comparison and the operands.

From-SVN: r50422
2002-03-08 02:57:13 +00:00
Adam Megacz
4e00202772 natPlainSocketImpl.cc: Changed USE_WINSOCK to WIN32, and added thunks for read(), write(), and close().
2002-03-07  Adam Megacz  <adam@xwt.org>

        * java/net/natPlainSocketImpl.cc: Changed USE_WINSOCK to
        WIN32, and added thunks for read(), write(), and close().
        * java/net/natPlainSocketImpl.cc (accept, read, read):
        Disabled timeouts on WIN32 pending discussion.

From-SVN: r50418
2002-03-08 01:46:34 +00:00
Adam Megacz
8eeda6e0e7 win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong.
2002-03-07  Adam Megacz  <adam@xwt.org>

        * win32.cc (_Jv_platform_gettimeofday): Now takes no args,
        returns jlong. Added implementation
        * posix.cc (_Jv_platform_gettimeofday): Now takes no args,
        returns jlong.
        * win32.h (_Jv_platform_gettimeofday): Now takes no args,
        returns jlong.
        * posix.h (_Jv_platform_gettimeofday): Now takes no args,
        returns jlong.
        * java/lang/natSystem.cc (currentTimeMillis): Now uses updated
        _Jv_platform_gettimeofday signature.

From-SVN: r50416
2002-03-08 01:03:56 +00:00
David Edelsohn
3df3221216 - Add Darwin and AIX to supported platforms.
From-SVN: r50414
2002-03-07 17:11:35 -05:00
Ulrich Weigand
6d7a1c4c78 genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
* genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
	genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
	and MATCH_OP_DUP.

From-SVN: r50412
2002-03-07 22:03:27 +00:00
Jeff Sturm
d3e1c36d08 Make-lang.in (JAVA_TARGET_INSTALL_NAME): Define.
* java/Make-lang.in (JAVA_TARGET_INSTALL_NAME): Define.
	(java.install-common): Link native driver to
	JAVA_TARGET_INSTALL_NAME.

From-SVN: r50411
2002-03-07 20:28:49 +00:00
H.J. Lu
9bec4bf079 configure.in: Enable gprof for mips*-*-linux*.
2002-03-07  H.J. Lu  (hjl@gnu.org)

	* configure.in: Enable gprof for mips*-*-linux*.

From-SVN: r50410
2002-03-07 11:32:12 -08:00
Andreas Tobler
073ae293d9 Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
2002-03-07  Andreas Tobler  <toa@pop.agri.ch>
	    David Edelsohn  <edelsohn@gnu.org>

	* Makefile.am (EXTRA_DIST): Add Darwin and AIX closure files.
	(TARGET_SRC_POWERPC_AIX): Add aix_closure.S.
	(TARGET_SRC_POWERPC_DARWIN): Add darwin_closure.S.
	* Makefile.in: Regenerate.
	* include/ffi.h.in: Add AIX and Darwin closure definitions.
	* src/powerpc/ffi_darwin.c (ffi_prep_closure): New function.
	(flush_icache, flush_range): New functions.
	(ffi_closure_helper_DARWIN): New function.
	* src/powerpc/aix_closure.S: New file.
	* src/powerpc/darwin_closure.S: New file.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>

From-SVN: r50408
2002-03-07 13:24:42 -05:00
Jeff Law
fcf742eac8 * g77.f-torture/compile/20020307-1.f: New test.
From-SVN: r50407
2002-03-07 10:50:08 -07:00
Jan Hubicka
66d5434463 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
From-SVN: r50406
2002-03-07 15:55:03 +00:00
Jan Hubicka
068473ec92 basic-block.h (fixup_abnormal_edges): Declare.
* basic-block.h (fixup_abnormal_edges): Declare.
	* reload1.c (fixup_abnormal_edges): New function.
	* reg-stack.c (convert_regs): Use it.

	* gcse.c (insert_insn_end_bb): Handle trapping insns.

	* gcse.c (hash_scan_set): Refuse instructions with EH edges.

From-SVN: r50405
2002-03-07 15:38:00 +00:00
Richard Sandiford
a9a437be8d Add 2002 to the copyright dates.
From-SVN: r50404
2002-03-07 13:38:22 +00:00
Richard Sandiford
e106e1b07e * gcc.dg/unordered-1.c: New test.
From-SVN: r50402
2002-03-07 11:39:13 +00:00
Richard Sandiford
71925bc04f defaults.h (MODE_HAS_NANS, [...]): New.
* defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
	(MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
	* flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
	(HONOR_SIGN_DEPENDENT_ROUNDING): New.
	* builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
	* c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
	unless x and y could be infinite.
	(expand_unordered_cmp): New, mostly split from expand_tree_builtin.
	Check that the common type of both arguments is a real, even for
	targets without unordered comparisons.  Allow an integer argument
	to be compared against a real.
	(expand_tree_builtin): Use expand_unordered_cmp.
	* combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
	* cse.c (fold_rtx): Likewise.  Fix indentation.
	* fold-const.c (fold_real_zero_addition_p): New.
	(fold): Use it, and the new HONOR_... macros.
	* ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
	* jump.c (reversed_comparison_code_parts): After searching for
	the true comparison mode, use HONOR_NANS to decide whether it
	can be safely reversed.
	(reverse_condition_maybe_unordered): Remove IEEE check.
	* simplify-rtx.c (simplify_binary_operation): Use the new macros
	to decide which simplifications are valid.  Allow the following
	simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
	and (a - -b) to (a + b).
	(simplify_relational_operation): Use HONOR_NANS.
	* doc/tm.texi: Document the MODE_HAS_... macros.

From-SVN: r50401
2002-03-07 11:37:16 +00:00
Richard Earnshaw
145d3bf292 combine.c (simplify_comparison): If simplifying a logical shift right and compare with constant...
* combine.c (simplify_comparison): If simplifying a logical shift
right and compare with constant, force the comparison to unsigned.

From-SVN: r50400
2002-03-07 10:39:50 +00:00
Richard Earnshaw
50cb1e208d * gcc.c-torture/execute/20020307-1.c: New test.
From-SVN: r50399
2002-03-07 10:38:25 +00:00
GCC Administrator
da4ea8993c Daily bump.
From-SVN: r50398
2002-03-07 08:16:59 +00:00
Benjamin Kosnik
d3d526aca6 stl_tree.h (_S_rb_tree_red): Make enum.
2002-03-06  Benjamin Kosnik  <bkoz@redhat.com>
	    Stephen M. Webb  <stephen.webb@bregmasoft.com>

	* include/bits/stl_tree.h (_S_rb_tree_red): Make enum.
	(_S_rb_tree_black): Make enum.
	Clean. Format.
	* include/bits/stl_bvector.h (__WORD_BIT): To _M_word_bit, enum.
	* include/bits/stl_algo.h (__stl_chunk_size): _M_chunk_size, enum.
	(__stl_threshold): _M_threshold, enum.
	* src/stl-inst.cc: Same.
	* config/linker-map.gnu: Remove.

	* testsuite/23_containers/vector_bool.cc: New.

Co-Authored-By: Stephen M. Webb <stephen.webb@bregmasoft.com>

From-SVN: r50393
2002-03-07 06:53:23 +00:00
Aldy Hernandez
76a773f3b9 invoke.texi: Add documentation for -mabi=no-altivec.
2002-03-07  Aldy Hernandez  <aldyh@redhat.com>

        * doc/invoke.texi: Add documentation for -mabi=no-altivec.

        * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
        -mabi=no-altivec
        (alt_reg_names): Remove % for vrsave.

From-SVN: r50392
2002-03-07 06:50:32 +00:00
Bryce McKinlay
a72f7227af natPlainSocketImpl.cc (_Jv_recv): Removed.
* java/net/natPlainSocketImpl.cc (_Jv_recv): Removed.
	(read): Call recv() directly, not _Jv_recv().

From-SVN: r50391
2002-03-07 01:53:21 +00:00
Richard Henderson
f2d1ae3879 Tidy whitespace.
From-SVN: r50387
2002-03-06 17:17:14 -08:00
Richard Henderson
ab55f58c9c genemit.c (gen_exp): New argument used.
* genemit.c (gen_exp): New argument used.  Invoke copy_rtx
        if used indicates we've already emitted one copy of an operand.
        (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
        (gen_split): Supply a non-null used.

From-SVN: r50386
2002-03-06 17:15:59 -08:00
Jim Blandy
957978a414 splay-tree.c (splay_tree_xmalloc_allocate, [...]): Use K&R-style definitions, not prototyped definitions.
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
prototyped definitions.  Mark `data' arguments as unused.

From-SVN: r50384
2002-03-07 00:20:12 +00:00
Tom Tromey
51532731d1 natFileDescriptorEcos.cc (init): Don't use GetStdHandle.
* java/io/natFileDescriptorEcos.cc (init): Don't use
	GetStdHandle.
	* java/io/natFileDescriptorPosix.cc (valid): Don't call stat if FD
	is negative.
	(init): Don't use GetStdHandle.

From-SVN: r50383
2002-03-06 23:23:34 +00:00
Tom Tromey
fd7852b37a config.h.in: Rebuilt.
* include/config.h.in: Rebuilt.
	* configure: Rebuilt.
	* Makefile.in: Rebuilt.

From-SVN: r50381
2002-03-06 23:11:18 +00:00
Ulrich Weigand
e16e32914a reload1.c (reload): Unshare all rtl after reload is done.
* reload1.c (reload): Unshare all rtl after reload is done.

	* simplify-rtx.c (simplify_plus_minus): Do not abort,
	but simply fail if the expression is too complex to simplify.
	(simplify_gen_binary): Handle simplify_plus_minus failures.

From-SVN: r50380
2002-03-06 23:07:08 +00:00
Adam Megacz
348c9efcd3 FileDescriptor.java: Initialize in/out/err in init().
2002-03-06  Adam Megacz  <adam@xwt.org>

        * java/io/FileDescriptor.java: Initialize in/out/err in init().
        * java/io/natFileDescriptorWin32.cc (init()): Added function.
        * java/io/natFileDescriptorPosix.cc (init()): Added function.
        * java/io/natFileDescriptorEcos.cc (init()): Added function.

From-SVN: r50378
2002-03-06 22:37:26 +00:00
Phil Edwards
037cfe71e0 user.cfg.in: Also document deprecated entries.
2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/user.cfg.in:  Also document deprecated entries.
	* docs/html/Makefile:  Example rule to rebuild porting-howto.html.
	* docs/html/17_intro/howto.html:  "gcc"->"GCC" changes, when
	referring to the collection as a whole.  New section on which macros
	can be redefined by the user.
	* docs/html/19_diagnostics/howto.html:  Update note for concepts.
	* docs/html/20_util/howto.html:  Update link to SGI.
	* docs/html/faq/index.html:  Update snapshot versions.  New entry
	on why g++ (but not gcc) must currently predefine certain macros.
	* docs/html/faq/index.txt:  Regenerated.

	* include/bits/basic_string.h (basic_string::_S_construct):  Fix
	names in declaration.
	(basic_string::compare):  These are no longer optional.
	* include/bits/ostream.tcc:  Tweak closing brace placement.
	* include/bits/stl_algo.h:  Lots of initial doxygen comment hooks.
	* include/std/std_sstream.h:  Fix typo in comment.
	* include/bits/locale_facets.tcc:  Remove unneeded header inclusion.
	* src/locale.cc:  Likewise.

From-SVN: r50376
2002-03-06 21:22:56 +00:00
Phil Edwards
d95336cf37 re PR libstdc++/5734 (2 extensions (empty push_back() and is_sorted()) are not documented)
2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/5734
	* include/bits/stl_vector.h (vector::push_back()):  Guard with
	_GLIBCPP_DEPRECATED.

From-SVN: r50375
2002-03-06 20:08:18 +00:00
Jeff Law
d094b0b313 ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains after completing fast dead code elimination.
* ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
        after completing fast dead code elimination.

From-SVN: r50374
2002-03-06 12:56:21 -07:00
Jan Hubicka
2ca6672b27 toplev.c (rest_of_compilation): Do jump threading before SSA path...
* toplev.c (rest_of_compilation): Do jump threading before SSA path;
	consistently call delete_trivially_dead_insns after CSE and GCSE;
	fix DFI_life dumping; do jump threading after liveness; do crossjumping
	after liveness2; update comment in last crossjumping.
	* cfgcleanup.c (try_crossjump_to_edge): Dirtify block.

From-SVN: r50373
2002-03-06 19:34:36 +00:00
Jeff Law
31d0dd4fa3 m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a COMPARE operator.
* m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
        COMPARE operator.

From-SVN: r50372
2002-03-06 12:25:13 -07:00
Eric Blake
380ff1ef9d Fix ChangeLog date typo
From-SVN: r50371
2002-03-06 19:15:09 +00:00
Eric Blake
1fa782725c unicode-decomp.pl: Move from chartables.pl...
2002-03-04  Eric Blake  <ebb9@email.byu.edu>

	* scripts/unicode-decomp.pl: Move from chartables.pl, and remove
	the code for generating include/java-chartables.h.
	* scripts/unicode-blocks.pl: Move from scripts/blocks.pl, and
	merge with Classpath.
	* scripts/unicode-muncher.pl: Copy from Classpath.
	* scritps/MakeCharTables.java: New file.
	* gnu/gcj/convert/Blocks-3.txt: New file.
	* gnu/gcj/convert/UnicodeData-3.0.0.txt: New file.
	* gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html: New file.
	* gnu/java/lang/CharData.java: Copy from Classpath.
	* Makefile.am (ordinary_java_source_files): Add
	gnu/java/lang/CharData.java.
	* configure.in: Remove --enable-fast-character option.
	* java/lang/Character.java: Merge algorithms and Javadoc with
	Classpath.
	* java/lang/natCharacter.cc: Implement Unicode lookup table more
	efficiently.
	* include/java-chardecomp.h: Regenerate.
	* include/java-chartables.h: Regenerate.

From-SVN: r50368
2002-03-06 18:54:45 +00:00
Phil Edwards
b87e4a4c6f Version.c: Fix misplaced leading blanks on first line.
2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* libF77/Version.c:  Fix misplaced leading blanks on first line.
	* libI77/Version.c:  Likewise.
	* libU77/Version.c:  Likewise.

From-SVN: r50367
2002-03-06 18:42:56 +00:00
Phil Edwards
f2b958b159 version.c: Fix misplaced leading blanks on first line.
2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* version.c:  Fix misplaced leading blanks on first line.

From-SVN: r50366
2002-03-06 18:40:56 +00:00
Phil Edwards
de53cb7506 c++config: Fix misplaced leading blanks on first line.
2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/c++config:  Fix misplaced leading blanks on first line.

From-SVN: r50365
2002-03-06 18:37:39 +00:00
Phil Edwards
809623c963 update_version: Don't indent the version string.
2002-03-06  Phil Edwards  <pme@gcc.gnu.org>

	* update_version:  Don't indent the version string.

From-SVN: r50364
2002-03-06 18:35:57 +00:00
Jan Hubicka
a2877a0977 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
From-SVN: r50363
2002-03-06 18:09:51 +00:00
Jan Hubicka
fe477d8b5b cfgcleanup.c (mentions_nonequal_regs): New function.
* cfgcleanup.c (mentions_nonequal_regs): New function.
	(thread_jump): Use it.
	* toplev.c (rest_of_compilation): Run jump threading after
	liveness.

From-SVN: r50361
2002-03-06 17:16:22 +00:00
Jakub Jelinek
2041cde455 ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05 patch.
* ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
	patch.

From-SVN: r50359
2002-03-06 17:53:07 +01:00
Jan Hubicka
82d68d46a3 predict.c (estimate_bb_frequencies): Do not reload the frequencies from notes.
* predict.c (estimate_bb_frequencies): Do not reload the
	frequencies from notes.

From-SVN: r50356
2002-03-06 10:29:11 +00:00
Jan Hubicka
3dec402428 cfgrtl.c (delete_insn_and_edges, [...]): New.
* cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
	* rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare

	* basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
	delete_noop_moves): Return indeger.
	* flow.c (ndead): New variable.
	(propagate_block_delete_insn): Use delete_insn_and_edges; remove
	BB argument; update callers.
	(propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
	(life_analysis): Do not call purge_all_dead_edges.
	(update_life_info): Return number of deleted insns; print statistics.
	(update_life_info_in_dirty_blocks): likewise.
	(delete_noop_moves): Use delete_insn_and_edges; print statistics;
	return number of insns deleted.

	* cse.c: Include timevar.h
	(delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
	iterate until stabilizes; print statistics; return number of killed
	insns.
	* Makefile.in: (cse.o): Add timevar.h dependency
	* rtl.h (delete_trivially_dead_insns): New.
	* timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
	* toplev.c (rest_of_compilation): Update callers.

	* cfgcleanup.c (try_optimize_cfg): Kill blocks.
	(try_optimize_cfg): Do not update liveness.
	(cleanup-cfg): Loop until try_optimize_cfg and dead code
	removal stabilizes; use delete_trivially_dead_insns.

	* cfgrtl.c (verify_flow_info): Sanity check outgoing edges.

From-SVN: r50355
2002-03-06 10:17:23 +00:00
GCC Administrator
9533dec173 Daily bump.
From-SVN: r50353
2002-03-06 08:18:28 +00:00
Bryce McKinlay
f095bbfc5b MediaTracker.java: Implemented.
* java/awt/MediaTracker.java: Implemented.
        * Makefile.am: Add MediaTracker.
        * Makefile.in: Rebuilt.

From-SVN: r50349
2002-03-06 08:11:06 +00:00
Zack Weinberg
c7544dd8fd cppmain.c (setup_callbacks): Disable #pragma and #ident callbacks when processing assembly language.
* cppmain.c (setup_callbacks): Disable #pragma and #ident
	callbacks when processing assembly language.

From-SVN: r50346
2002-03-06 07:50:03 +00:00
Andrew Cagney
ccc49bed1c Remove floatformat_arm_ext.
From-SVN: r50345
2002-03-06 06:29:00 +00:00
Tom Tromey
355526af2b natPosixProcess.cc (fail): Removed.
* java/lang/natPosixProcess.cc (fail): Removed.
	(startProcess): Simplified error-handling.  Preserve
	LD_LIBRARY_PATH across exec.

From-SVN: r50342
2002-03-06 05:13:58 +00:00
John David Anglin
50b424a908 pa.h (ASM_FILE_END): Define.
* pa.h (ASM_FILE_END): Define.
	* som.h (ASM_FILE_END): Delete.

	* pa.c (function_arg): Don't pass floats in general registers in
	indirect calls if TARGET_ELF32.

From-SVN: r50341
2002-03-06 04:59:28 +00:00
Richard Henderson
6185f21704 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
From-SVN: r50339
2002-03-05 16:06:05 -08:00