Commit Graph

56891 Commits

Author SHA1 Message Date
Benjamin Kosnik f214923cca acinclude.m4: Quote correctly.
2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4: Quote correctly.
	* aclocal.m4: Regenerate.
	* linkage.m4: Same.

From-SVN: r78715
2004-03-01 19:22:28 +00:00
Jeff Law 9bf793f935 fold-const.c (fold): An equality comparison of a non-weak object against zero has a known result.
* fold-const.c (fold): An equality comparison of a non-weak object
	against zero has a known result.  Similarly an equality comparison
	of the address of two non-weak, unaliased symbols has a known result.

	* ggc-page.c (struct page_entry): New field PREV.
	(ggc_alloc): Update PREV field appropriately.
	(sweep_pages): Likewise.
	(ggc_free): Likewise.  Use PREV field rather than loop to
	improve ggc_free performance.

cp/
	* init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to
	the proper type.

From-SVN: r78713
2004-03-01 12:18:01 -07:00
Richard Sandiford c9e0ce3716 mips.c (mips_output_division): Use the division instruction to fill the delay slot of a zero check.
* config/mips/mips.c (mips_output_division): Use the division
	instruction to fill the delay slot of a zero check.
	(mips_idiv_insns): Adjust accordingly.

From-SVN: r78712
2004-03-01 18:17:35 +00:00
Benjamin Kosnik 6728336267 test.html: Add multilib RUNTESTFLAGS example.
2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/test.html: Add multilib RUNTESTFLAGS example.

	* docs/html/18_support/howto.html: Add bit about writing to
	stderr, mostly by Zack.

From-SVN: r78709
2004-03-01 17:42:01 +00:00
Paolo Carlini 98e953f57b locale_facets.tcc (money_get<>::_M_extract, [...]): ...
2004-03-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (money_get<>::_M_extract,
	money_get<>::do_get(string_type&)): ... and two more.

From-SVN: r78708
2004-03-01 17:29:27 +00:00
Paolo Carlini b19fb27d1e locale_facets.tcc (money_get<>::_M_extract): Fix thinkos in the switch from string_type& to string& as last argument.
2004-03-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (money_get<>::_M_extract):
	Fix thinkos in the switch from string_type& to string& as last
	argument.

From-SVN: r78707
2004-03-01 17:08:45 +00:00
Michael Matz 8f8cdf339c * Makefile.in (ALL_CFLAGS): Add -fno-strict-aliasing.
From-SVN: r78706
2004-03-01 15:34:48 +00:00
Nathanael Nerode 65d151a781 config.gcc: Create a default tmake_file for linux, and use it in all but two linux clauses.
* config.gcc: Create a default tmake_file for linux, and use
	it in all but two linux clauses.  Comment those two.

From-SVN: r78704
2004-03-01 15:12:57 +00:00
Brian Booth e6f71f9d4e * MAINTAINERS: Add myself to write-after-approval.
From-SVN: r78703
2004-03-01 15:09:32 +00:00
Paolo Carlini 08ff96c346 locale_facets.tcc (num_get<>::_M_extract_float): Also when parsing exponent sign, first look for thousands_sep and decimal_point...
2004-03-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
	Also when parsing exponent sign, first look for thousands_sep
	and decimal_point; tweak a bit.
	* testsuite/22_locale/num_get/get/char/15.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/15.cc: New.

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
	num_get<>::_M_extract_int): Reorder some conditionals.

2004-03-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (money_get<>::_M_extract):
	Consistently with numpunct, enforce the requirements in
	22.2.6.3, p3 for the thousands separators; tweak a bit.
	* testsuite/22_locale/money_get/get/char/15.cc: New.
	* testsuite/22_locale/money_get/get/wchar_t/15.cc: New.

From-SVN: r78699
2004-03-01 10:31:33 +00:00
Paolo Bonzini 9a5a17f3df combine.c (try_combine): Do not refer to is_replaced.
2004-03-01  Paolo Bonzini  <bonzini@gnu.org>

        * combine.c (try_combine):  Do not refer to is_replaced.
        (gen_lowpart_for_combine):  Perverse subregs now have a
        more politically correct name.
        * cse.c (cse_insn): Likewise.
        * jump.c: Fix bogus reference to delete_insn.

From-SVN: r78698
2004-03-01 09:42:10 +00:00
Paolo Bonzini 8983e50eff Add myself back to write-after-approval.
From-SVN: r78697
2004-03-01 08:14:18 +00:00
Mark Mitchell 91b004e5ec re PR c++/14138 (100x -O0 C++ Compile Time Regression {3.2,3.3} -> {3.4,4.0})
PR c++/14138
	* name-lookup.h (push_scope): Change prototype.
	* name-lookup.c (push_scope): Do not reenter the current class
	scope.
	* decl.c (grokfndecl): Check return code from push_scope before
	calling pop_scope.
	* decl2.c (check_classfn): Likewise.
	* parser.c (cp_parser_conversion_function_id): Likewise.
	(cp_parser_init_declarator): Likewise.
	(cp_parser_direct_declarator): Likewise.
	(cp_parser_class_specifier): Likewise.
	(cp_parser_class_head): Likewise.
	(cp_parser_lookup_name): Likewise.
	(cp_parser_constructor_declarator_p): Likewise.
	* pt.c (instantiate_class_template): Likewise.
	(resolve_typename_type): Likewise.

From-SVN: r78696
2004-03-01 06:23:38 +00:00
David Billinghurst 1152b861f7 libstdc++.exp (v3-list-tests): Use testsuite_files from correct multilib blddir when running testsuite.
2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>

	* testsuite/lib/libstdc++.exp (v3-list-tests): Use
	testsuite_files from correct multilib blddir when running
	testsuite.

From-SVN: r78692
2004-03-01 04:30:49 +00:00
Mark Mitchell 5bb2ed2c24 re PR debug/14328 (gcc3.2.2 generates incorrect debugging enum values)
PR debug/14328
	* dwarf2out.c (gen_enumeration_type_die): Output all enumeration
	constants as signed values.

From-SVN: r78690
2004-03-01 04:07:36 +00:00
Mark Mitchell 719f407a02 re PR c++/14267 (ICE on invalid, cast to lval related)
PR c++/14267
	* typeck.c (build_modify_expr): Remove more of the cast-as-lvalue
	extension.

	PR c++/14267
	* g++.dg/expr/crash2.C: New test.

From-SVN: r78689
2004-03-01 02:25:06 +00:00
GCC Administrator 4ce4f2b50c Daily bump.
From-SVN: r78686
2004-03-01 00:16:12 +00:00
Mark Mitchell c5b6f18e7a re PR middle-end/13448 (gcc 3.3.2, internal error when -O3 and trying to modify function const arg)
PR middle-end/13448
	* c-tree.h (readonly_warning): Rename to ...
	(readonly_error): ... this.
	* c-typeck.c (build_unary_op): Adjust accordingly.
	(readonly_warning): Rename to ...
	(readonly_error): ... this and issue errors, not warnings.
	(build_modify_expr): Call readonly_error, not readonly_warning.
	(c_expand_asm_operands): Likewise.
	* tree-inline.c (optimize_inline_calls): Do not inline functions
	after errors have occurred.

	PR middle-end/13448
	* gcc.dg/inline-5.c: New test.
	* gcc.dg/always-inline.c: Split out tests into ...
	* gcc.dg/always-inline2.c: ... this and ...
	* gcc.dg/always-inline3.c: ... this.

From-SVN: r78682
2004-02-29 23:43:29 +00:00
Mark Mitchell 3987635271 re PR debug/12103 (-g only crash (segfault) with a forward declared class used as a template parameter)
PR debug/12103
	* class.c (update_vtable_entry_for_fn): Do not go through
	covariance machinery if the type returned by an overrider is the
	same as the original.

	PR debug/12103
	* g++.dg/debug/crash1.C: New test.

From-SVN: r78680
2004-02-29 23:10:43 +00:00
Nathanael Nerode 8bb915b654 configure.ac: Rearrange some threading code for clarity; add section comment.
* configure.ac: Rearrange some threading code for clarity;
	add section comment.
	* configure: Regenerate.

From-SVN: r78678
2004-02-29 22:50:19 +00:00
Kazu Hirata 4ee31f1e47 passes.c, [...]: Fix comment typos.
gcc/
	* passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
	typos.
	* doc/cppopts.texi: Fix a typo.

gcc/cp/
	* call.c: Fix a comment typo.

From-SVN: r78676
2004-02-29 22:02:30 +00:00
Kazu Hirata 15ec19b9b8 * config/i386/i386.md: Fix formatting.
From-SVN: r78674
2004-02-29 21:31:06 +00:00
Andrew Pinski 61c3ff8ff5 gcc_update (files_and_dependencies): Update intl/configure.in to intl/configure.ac.
2004-02-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc_update (files_and_dependencies): Update intl/configure.in
        to intl/configure.ac.

From-SVN: r78673
2004-02-29 13:13:41 -08:00
Nathanael Nerode 630327c32a * configure.ac: Add some comments delineating sections of code.
From-SVN: r78672
2004-02-29 20:43:45 +00:00
Nathanael Nerode 38fe909090 * doc/install.texi: Note that libada uses autoconf 2.57 also.
From-SVN: r78671
2004-02-29 20:30:33 +00:00
Nathanael Nerode 42fce956f3 * doc/install.texi: Fix idiot typo in previous commit.
From-SVN: r78670
2004-02-29 20:27:15 +00:00
Nathanael Nerode cbff2c1c92 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
From-SVN: r78669
2004-02-29 20:25:19 +00:00
Nathanael Nerode 79035f0d6b configure.in: Convert to autoconf 2.57, gratuitous stylistic cleanup, rename to configure.ac.
* configure.in: Convert to autoconf 2.57, gratuitous stylistic
	cleanup, rename to configure.ac.
	* configure.ac: Renamed from configure.in.
	* config.h.in: Rebuilt with autoheader 2.57.
	* configure: Rebuilt with autoconf 2.57
	* README: Update to reflect rename of configure.in to configure.ac.

From-SVN: r78668
2004-02-29 20:22:40 +00:00
Kazu Hirata c8574b54f3 * config/h8300/h8300.md: Add comments about peephole2's.
From-SVN: r78667
2004-02-29 19:18:37 +00:00
Per Bothner 76c88fd97b ChangeLog: Previous java/io, java/nio, gnu/java/nio and related changes.
* Makefile.am, configure.in:  Updated accordingly.

From-SVN: r78666
2004-02-29 11:16:55 -08:00
Per Bothner 881ad9e405 natPosixProcess.cc (startProcess): Implement standard streams using FileChannelImpl, not FileDescriptor.
* java/lang/natPosixProcess.cc (startProcess):  Implement standard
	streams using FileChannelImpl, not FileDescriptor.
	* java/lang/natWin32Process.cc (startProcess):  Likewise.

From-SVN: r78664
2004-02-29 11:14:20 -08:00
Per Bothner 3ae1e52c91 FileLockImpl.java (fd): Remove field, replacing it by:
* gnu/java/nio/FileLockImpl.java (fd):  Remove field, replacing it by:
	(ch):  New FileChannelImpl field.  Update constructor to match.
	(releaseImpl):  Remove native method.  Instead ...
	(release):  Call unlock on channel.
	* gnu/java/nio/natFileLockImpl.cc:  Removed file.

From-SVN: r78663
2004-02-29 11:13:45 -08:00
Per Bothner d199feb748 MappedByteBuffer.java: (forceImpl...
* java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
	unmapImpl):  New dummy methods, to be overridden by subclass.
	(finalize, isLoaded, load, force):  New methods.
	* java/nio/MappedByteBufferImpl.java:  More-or-less rewrite.
	Now works, at least for read mapping.

From-SVN: r78662
2004-02-29 11:12:45 -08:00
Per Bothner ef3916ef8e FileDescriptor.java: Implement on top of FileChannel.
* java/io/FileDescriptor.java:  Implement on top of FileChannel.
	Remove native methods.

	* java/io/natFileDescriptorEcos.cc:  Remove file.
	* java/io/natFileDescriptorPosix.cc:  Remove file.
	* java/io/natFileDescriptorWin32.cc:  Remove file.
	* java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
	(<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
	(<init>(FileChannelImpl)):  New package-private constructor.
	(<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
	(available, close, read, skip):  Implement using FileChannelImpl.
	(getFD):  Allocate FileDescriptor if needed.
	(getChannel):  Is now trivial.
	* java/io/FileOutputStream.java:  Corresponding changes.
	* java/io/RandomAccessFile.java:  Corresponding changes.

From-SVN: r78661
2004-02-29 11:12:15 -08:00
Per Bothner d5fe0403cc FileChannelImpl.java: Moved to package gnu/java/nio/channels, since we need to refer to it from java.io.
* java/nio/channels/FileChannelImpl.java:  Moved to package
	gnu/java/nio/channels, since we need to refer to it from java.io.
	* java/nio/channels/natFileChannelImpl.cc:  Removed file.

	* Makefile.am, configure.in:  Updated accordingly.

From-SVN: r78660
2004-02-29 11:10:46 -08:00
Per Bothner 612e660987 FileChannelImpl.java: New class, renamed from java/nio/channels.
* gnu/java/nio/channels/FileChannelImpl.java:  New class, renamed
	from java/nio/channels.  Don't depend on FileDescriptor.
	(in, out, err):  New static fields.
	(mode):  New field.
	(SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC):  Moved constants
	from FileDescriptor.
	(by):  Removed MappedByteBuffer field.
	(map):  New working implementation.
	* gnu/java/nio/channels/natFileChannelPosix.cc:  New file, though
	some code "ported" from natFileDescriptoPosix.cc.
	* gnu/java/nio/channels/natFileChannelEcos.cc:  Likewise.
	* gnu/java/nio/channels/natFileChannelWin32.cc  Likewise.

From-SVN: r78659
2004-02-29 11:09:28 -08:00
Kazu Hirata 2f537af9e7 h8300.md: Tweak operand numbers of some peephole2's.
* config/h8300/h8300.md: Tweak operand numbers of some
	peephole2's.

From-SVN: r78658
2004-02-29 19:04:34 +00:00
Kazu Hirata a207f649ad * config/h8300/h8300.md: Tweak comments about peephole2's.
From-SVN: r78657
2004-02-29 18:44:18 +00:00
Kazu Hirata 2750f3f2fd Fix the date of the last entry.
From-SVN: r78653
2004-02-29 15:16:08 +00:00
Kazu Hirata f5d404d7c3 sibcall-3.c (recurser_void1): Make it an extern function with __attribute__((noinline)).
* gcc.dg/sibcall-3.c (recurser_void1): Make it an extern
	function with __attribute__((noinline)).
	(recurser_void2): Likewise.
	* gcc.dg/sibcall-4.c (recurser_void1): Likewise.
	(recurser_void2): Likewise.

From-SVN: r78652
2004-02-29 15:11:12 +00:00
Roger Sayle b416fab459 parse.c (ffe_parse_file): Handle the case that main_input_filename is NULL.
* parse.c (ffe_parse_file): Handle the case that main_input_filename
	is NULL.

From-SVN: r78650
2004-02-29 14:12:20 +00:00
Roger Sayle 083474cc69 jcf-parse.c (java_parse_file): Handle the case that input_filename is NULL.
* jcf-parse.c (java_parse_file): Handle the case that input_filename
	is NULL.

From-SVN: r78649
2004-02-29 14:09:58 +00:00
Roger Sayle bc41842bb2 [multiple changes]
2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>

	PR middle-end/14203
	* function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
	instead of testing whether DECL_RTL is not NULL.

2004-02-29  Roger Sayle  <roger@eyesopen.com>

	PR middle-end/14203
	* g++.dg/warn/Wunused-6.C: New test case.

From-SVN: r78648
2004-02-29 14:07:44 +00:00
Phil Edwards 8b42508262 Makefile.am (check-abi, [...]): Copy the summary file to the logfile.
2004-02-29  Phil Edwards  <phil@codesourcery.com>

	* testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
	the summary file to the logfile.
	* testsuite/Makefile.in:  Regenerate.

From-SVN: r78647
2004-02-29 12:57:33 +00:00
Kazu Hirata 832a3292d9 * config/sh/sh.c: Fix formatting.
From-SVN: r78646
2004-02-29 02:53:51 +00:00
Kazu Hirata 508ea1c5fa * config/sh/sh.c: Convert to ISO-C.
From-SVN: r78645
2004-02-29 02:28:59 +00:00
GCC Administrator 4217f24bf8 Daily bump.
From-SVN: r78642
2004-02-29 00:16:40 +00:00
Andrew Pinski 8cd6bdd1c6 c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in my previous patch.
2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
        my previous patch.

From-SVN: r78635
2004-02-28 15:23:30 -08:00
Andrew Pinski dd833c7b25 darwin.h (machopic_finish): Output stub even if the symbol is already defined.
2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/darwin.h (machopic_finish): Output stub even if the
        symbol is already defined.

From-SVN: r78634
2004-02-28 15:20:01 -08:00
John David Anglin 3a1a4ed26e atomicity.h (__atomic_add): Make first argument volatile.
* config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
	volatile.
	* config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
	__GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.

From-SVN: r78633
2004-02-28 22:46:32 +00:00