Commit Graph

41360 Commits

Author SHA1 Message Date
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
Tom Tromey
6901a00903 jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not AbstractMethodError.
* jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not
	AbstractMethodError.

From-SVN: r50337
2002-03-05 22:36:11 +00:00
Danny Smith
3020a4b265 gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
From-SVN: r50336
2002-03-05 22:08:23 +00:00
Danny Smith
c7fc1f8488 MAINTAINERS (Write After Approval): Add myself.
From-SVN: r50335
2002-03-05 21:29:18 +00:00
Benjamin Kosnik
251a817e23 002-03-05 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/RELEASE-NOTES: Fix usage.
	* README (libmath): Make clear.

From-SVN: r50331
2002-03-05 21:14:20 +00:00
Jakub Jelinek
d7ac744e9f acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version script globbing in ld.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version
	script globbing in ld.
	* aclocal.m4: Rebuilt.
	* configure: Rebuilt.

From-SVN: r50330
2002-03-05 22:12:17 +01:00
Ira Ruben
e8b3c8acf3 This is the documentation for -### that I forgot to add when -### was
originally added.

From-SVN: r50328
2002-03-05 20:17:57 +00:00
Benjamin Kosnik
c01bfdbf7c RELEASE-NOTES: Update.
2002-03-05  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/17_intro/RELEASE-NOTES: Update.
	* README: Format subdirectories.

From-SVN: r50326
2002-03-05 20:16:09 +00:00
Jakub Jelinek
65649daa25 mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc -r command line.
* mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
	-r command line.  Don't hide any symbols if not building
	shared libgcc.

From-SVN: r50321
2002-03-05 19:09:29 +01:00
Jan Hubicka
5a1a3e5e4d cfg.c (dump_flow_info): Warn about profile mismatches.
* cfg.c (dump_flow_info): Warn about profile mismatches.
	* cfgrtl.c (verify_flow_info): Few aditional sanity checks.
	(purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.

From-SVN: r50320
2002-03-05 17:34:16 +00:00
Joseph Myers
7ce5e9df40 snapshot-README: Note that snapshots come from the 3.1 branch.
* snapshot-README: Note that snapshots come from the 3.1 branch.
	Update list of files.

From-SVN: r50318
2002-03-05 13:50:12 +00:00
Paolo Carlini
84eb48794c 2002-03-05 Paolo Carlini <pcarlini@unitus.it>
libstdc++/5816
	* include/bits/locale_facets.tcc
	(num_get::_M_extract_float): Fix the parsing of __dec, since
	the standard prescribes that if no grouping characters are
	seen, no grouping check is applied.
        * testsuite/22_locale/num_get_members_char.cc: Add test05
	distilled from the PR.
        * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.

From-SVN: r50317
2002-03-05 12:09:45 +00:00
Jakub Jelinek
170c56da73 expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2 wide volatile memory by parts.
* expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
	wide volatile memory by parts.

	* gcc.c-torture/compile/20020304-2.c: New test.

From-SVN: r50314
2002-03-05 12:10:43 +01:00