Commit Graph

31938 Commits

Author SHA1 Message Date
Bryce McKinlay
ebb66eb5fa Vector.java: Improve exception messages.
2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/Vector.java: Improve exception messages.
	(Vector): Check initialCapacity for IllegalArgumentException.
	(tromToSize): Don't check for elementCount == elementData.length
	case.
	(toArray): Don't try to set null marker if target array is the same
	length as the vector.

From-SVN: r37685
2000-11-23 05:18:41 +00:00
Gabriel Dos Reis
23a5b4448c ios_base.h (ios_base::failure::~failure, [...]): Move defintion to ...
* include/bits/ios_base.h (ios_base::failure::~failure,
	ios_base::failure::what): Move defintion to ...

	* src/ios.cc (ios_base::failure::~failure): ... here.
	src/ios.cc (ios::failure::what): Likewise.

From-SVN: r37684
2000-11-23 04:53:40 +00:00
Alexandre Oliva
4773afa487 sh.h (FIRST_GENERAL_REG, [...]): New.
* config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
Moved most register-number #defines...
* config/sh/sh.md (define_constants): ... here.  Use macros to
refer to registers and unspecs.
* config/sh/sh.c: Likewise.

From-SVN: r37683
2000-11-23 04:22:48 +00:00
Benjamin Kosnik
27ddcd48c1 Make deprecated strstream header consistent with new and new.h.
2000-11-22  Benjamin Kosnik  <bkoz@redhat.com>

	Make deprecated strstream header consistent with new and new.h.
	* include/backward/strstream.h: Add. Use using declarations to
	scope strstreambuf, istrstream, ostrstream, strstream to global
	scope.
	* include/backward/strstream: Remove using declarations.
	* src/Makefile.am (base_headers): Add strstream.
	* src/Makefile.in: Regenerate.

	* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
	to be consistent with other headers.

From-SVN: r37682
2000-11-23 03:25:47 +00:00
Richard Henderson
ea88c0f77e ctype_inline.h (is): Fix order of expressions.
2000-11-22  Richard Henderson  <rth@redhat.com>

	* config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.

From-SVN: r37681
2000-11-23 03:03:33 +00:00
J"orn Rennecke
9196ece5c2 gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
	(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
	(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
	(splay-tree.o, hash.o): Likewise.
	GCONFIG_H: New.
	(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
	(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
	(hashtab.o): Likewise.
	(gcov.o): Depend on $(CONFIG_H).
	* configure.in: #include insn-codes.h in tm.h.

	f:

	* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).

	java:

	* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).

	cp:

	* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).

From-SVN: r37680
2000-11-23 02:22:03 +00:00
H.J. Lu
3b3bd9a786 * cplus-dem.c (main): Handle gnat_demangling.
From-SVN: r37679
2000-11-22 23:57:50 +00:00
Mark Mitchell
6e1b44bce7 mangle.c (mangle_conv_op_name_for_type): Don't use `__op' prefix.
* mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
	prefix.

From-SVN: r37678
2000-11-22 23:53:03 +00:00
Nick Clifton
dc60a41bed Fix typo
From-SVN: r37677
2000-11-22 23:30:37 +00:00
Mark Mitchell
a862e95888 decl4.C: Tweak so that it fails with the new ABI, too.
* g++.old-deja/g++.other/decl4.C: Tweak so that it fails with the
	new ABI, too.

From-SVN: r37676
2000-11-22 23:24:43 +00:00
Phil Edwards
c361fee040 porting.texi: Minor tweaks to vocabulary.
2000-11-22  Phil Edwards  <pme@sources.redhat.com>

	* porting.texi:  Minor tweaks to vocabulary.

From-SVN: r37675
2000-11-22 23:23:53 +00:00
Mark Mitchell
71ca6fe964 p6610a.C: This test no longer fails.
* g++.old-deja/g++.mike/p6610a.C: This test no longer fails.
	* g++.old-deja/g++.robertl/eb55.C: Likewise.

From-SVN: r37674
2000-11-22 23:10:04 +00:00
Mark Mitchell
cac78ea281 pt.c (do_decl_instantiate): Explicitly clone constructors and destructors that haven't already been cloned.
* pt.c (do_decl_instantiate): Explicitly clone constructors and
	destructors that haven't already been cloned.

From-SVN: r37673
2000-11-22 22:43:49 +00:00
Nick Clifton
57f56af4c5 Make 'newstr' a const char * to avoid a compile time warning.
From-SVN: r37672
2000-11-22 20:51:18 +00:00
Nick Clifton
48a08b9cab Define symbolic names for the link register, last integer register and the fake CC register.
Define symbolic names for the link register, last integer register and the
fake CC register.  Update patterns to use these symbolic names.

From-SVN: r37671
2000-11-22 20:46:40 +00:00
Neil Booth
a16f893b63 * gcc.gd/cpp/Wtrigraphs.c: New test.
From-SVN: r37670
2000-11-22 20:37:44 +00:00
Neil Booth
4a5b68a2f7 cpplex.c (trigraph_ok): Ensure we don't warn twice.
* cpplex.c (trigraph_ok): Ensure we don't warn twice.
	* cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.

From-SVN: r37669
2000-11-22 20:36:10 +00:00
Richard Henderson
a165f034f9 haifa-sched.c (sched_analyze_1): Don't special-case calls for clobbering registers.
* haifa-sched.c (sched_analyze_1): Don't special-case calls
        for clobbering registers.
        (sched_analyze_2): Likewise.
        (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.

From-SVN: r37668
2000-11-22 11:22:58 -08:00
Neil Booth
10ebf5fe40 gcc.c (validate_switches): Validate multiple switches named in '|' (or) expressions in specs.
* gcc.c (validate_switches): Validate multiple switches named
        in '|' (or) expressions in specs.
        (handle_braces): If more than 1 alternative in a '|' spec
        matches, call do_spec1 just once.

From-SVN: r37667
2000-11-22 19:17:14 +00:00
Mark Mitchell
4f3d0af4a4 Compensate for V3 changes
From-SVN: r37666
2000-11-22 19:05:42 +00:00
Joern Rennecke
9f6709e04b Add blank lines between function comment and function return type.
From-SVN: r37665
2000-11-22 18:50:41 +00:00
Joern Rennecke
1c32dd2b28 Comment typo fix.
From-SVN: r37664
2000-11-22 18:49:02 +00:00
Loren J. Rittle
7686cadfb2 ltcf-cxx.sh: Support creation of C++ shared libraries on recent versions of FreeBSD (release...
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

        * ltcf-cxx.sh: Support creation of C++ shared libraries on
        recent versions of FreeBSD (release 3 or later).
        * ltconfig: On FreeBSD, -lc must not be provided when building
        a shared library or else the standard -pthread gcc option is
        rendered worthless to later users of the built library.

From-SVN: r37663
2000-11-22 18:31:25 +00:00
Loren J. Rittle
b60585a03c eb39.C: Don't include libio.h.
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

        * g++.old-deja/g++.robertl/eb39.C: Don't include libio.h.

From-SVN: r37662
2000-11-22 18:16:29 +00:00
Michael Meissner
fb0b2546c2 Paper over problem with -frename-registers; Provide help for options
From-SVN: r37661
2000-11-22 18:07:05 +00:00
Loren J. Rittle
5789a524a6 strstream.h: Reinstate the `using' statements.
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

        * include/backward/strstream.h: Reinstate the `using'
        statements.

From-SVN: r37660
2000-11-22 18:06:53 +00:00
Loren J. Rittle
eed86de8ac Makefile.am (base_headers): Add missing backwards headers.
2000-11-22  Loren J. Rittle  <ljrittle@acm.org>

	* src/Makefile.am (base_headers): Add missing backwards headers.
	* src/Makefile.in: Regenerate.

From-SVN: r37659
2000-11-22 17:55:06 +00:00
Scott Snyder
88628656c4 c_io_stdio.cc (seekoff): Fix return value.
2000-11-21  scott snyder  <snyder@fnal.gov>

        * config/c_io_stdio.cc (seekoff): Fix return value.
        (seekpos): Likewise.
        (sys_seek): Likewise.

From-SVN: r37658
2000-11-22 17:41:48 +00:00
Jakub Jelinek
e5a7acddf6 * gcc.c-torture/execute/ieee/20001122-1.c: New test.
From-SVN: r37657
2000-11-22 17:37:24 +01:00
David Billinghurst
ed5db764d5 * Make-lang.in: Add $(build_exeext) to f/fini target
From-SVN: r37656
2000-11-22 07:31:56 -07:00
Fred Fish
fff016992c configure.in (enable_libstdcxx_v3): Fix typo, libstd++ -> libstdc++.
2000-11-16  Fred Fish  <fnf@be.com>

	* configure.in (enable_libstdcxx_v3): Fix typo,
	libstd++ -> libstdc++.

From-SVN: r37655
2000-11-22 07:27:56 -07:00
Jeffrey A Law
67d6f2fc4a pa.c (hppa_encode_label): Account for addition of encoding character when...
* pa.c (hppa_encode_label): Account for addition of encoding
        character when allocating persistent space for the new label
        name.

From-SVN: r37654
2000-11-22 06:40:53 -07:00
Gerald Pfeifer
d9ddcc6a21 * gcc_update: Update a comment as we now require bison for CVS users.
From-SVN: r37653
2000-11-22 13:11:44 +00:00
Bryce McKinlay
79af883cd4 Makefile.in: Rebuilt.
2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>

	* Makefile.in: Rebuilt.
	* Makefile.am (core_java_source_files): Added Collections.java.
	* java/util/List.java: Merged from classpath.
	* java/util/Vector.java: Ditto.
	* java/util/Collections.java: From classpath.
	* java/util/ArrayList.java (addAll(Collection)): Call
	addAll(int,Collection) instead of duplicating code.
	(indexOf): Clean up int initialization.
	(clear): Set cleared array entries to null, to allow garbage
	collection.
	* java/util/List.java: Minor formatting fixes.
	* java/util/SimpleTimeZone.java: ditto.

From-SVN: r37652
2000-11-22 11:59:59 +00:00
Jeff Law
e9905e2d9d Daily bump.
From-SVN: r37651
2000-11-22 01:45:07 -07:00
Zack Weinberg
d1209685fa Makefile.in, [...]: Expunge remaining traces of facility for running MD files through C preprocessor.
gcc:
        * Makefile.in, config.gcc, configure.in: Expunge remaining
        traces of facility for running MD files through C preprocessor.

libiberty:
        * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
        (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
        * configure.in: Call AC_C_INLINE and AC_C_CONST.  Use three
        argument form of AC_DEFINE in dummy definitions block.  Use
        AC_DEFINE_NOAUTOHEADER for real definitions of things defined
        in dummy block.  Preload cache variables instead of bypassing
        tests, where possible.
        * acconfig.h: Removed.

        * xmalloc.c (xmalloc_failed): New function, does error
        reporting on failed allocation.
        (xmalloc, xcalloc, xrealloc): Use it.
        * libiberty.h: Move #includes to top.  Prototype xmalloc_failed.

From-SVN: r37650
2000-11-22 08:32:26 +00:00
Joseph Myers
c01a508e4e gcov.texi: Add magic comments for texi2pod.pl.
gcc:
	* gcov.texi: Add magic comments for texi2pod.pl.
	* Makefile.in: Add rules to generate and install gcov.1.
	* gcov.1: New (generated) file.

contrib:
	* gcc_update: Add gcov.1 to the list of generated files.

From-SVN: r37649
2000-11-22 08:29:32 +00:00
Scott Snyder
b32a46c30c c_io_stdio.cc (seekoff): Fix return value.
2000-11-21  scott snyder  <snyder@fnal.gov>

        * config/c_io_stdio.cc (seekoff): Fix return value.
        (seekpos): Likewise.
        (sys_seek): Likewise.

From-SVN: r37648
2000-11-22 06:37:34 +00:00
Loren J. Rittle
d37db09b0d mkcheck.in (explanation): Retain output of all failing compiles.
2000-11-21  Loren J. Rittle  <ljrittle@acm.org>

        * mkcheck.in (explanation): Retain output of all failing
        compiles.  Don't add gratuitous space to the log file.

From-SVN: r37647
2000-11-22 06:37:14 +00:00
Bryce McKinlay
c385cdf6a8 jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the scratch buffer.
2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>

	* jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the
	scratch buffer.

From-SVN: r37646
2000-11-22 05:47:26 +00:00
Alexandre Petit-Bianco
ee5f86dcd7 [multiple changes]
2000-10-31  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (outer_field_access_p): Inherited fields aren't
	consider outer fields.
	(maybe_build_thisn_access_method): Use
	PURE_INNER_CLASS_TYPE_P instead of INNER_CLASS_TYPE_P.
	(resolve_expression_name): Trigger an error if a static field
	is being accessed as an outer field.

2000-10-24  Alexandre Petit-Bianco  <apbianco@cygnus.com>

       * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Check inherited type in
       scope.

(http://gcc.gnu.org/ml/gcc-patches/2000-11/msg01217.html)

From-SVN: r37645
2000-11-21 21:25:15 -08:00
Richard Henderson
a125d8555a regrename.c (scan_rtx_reg): Terminate the chain rather than abort on mark_read with NO_REGS.
* regrename.c (scan_rtx_reg): Terminate the chain rather than
        abort on mark_read with NO_REGS.

From-SVN: r37644
2000-11-21 19:19:34 -08:00
Kriang Lerdsuwanakij
4dc1635549 * MAINTAINERS: Add self to Write After Approval list.
From-SVN: r37643
2000-11-22 02:45:51 +00:00
Mike Stump
ed3114070d fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow compilation with older compilers, such as /bin/cc on SunOS.
* fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
	compilation with older compilers, such as /bin/cc on SunOS.
	* fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
Fix build errors on SunOS 4.1.4.

From-SVN: r37642
2000-11-22 02:34:18 +00:00
Mike Stump
271fd958bb fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow compilation with older compilers, such as /bin/cc on SunOS.
* fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
	compilation with older compilers, such as /bin/cc on SunOS.
	* fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
Fix one problem with bootstrap on SunOS 4.1.4 system.

From-SVN: r37641
2000-11-22 02:23:40 +00:00
Loren J. Rittle
19322a5c41 mkcheck.in (explanation): Retain output of all failing compiles.
2000-11-21  Loren J. Rittle  <ljrittle@acm.org>

        * mkcheck.in (explanation): Retain output of all failing
        compiles.  Don't add gratuitous space to the log file.

From-SVN: r37640
2000-11-22 02:19:07 +00:00
Loren J. Rittle
5388a89aac mkcheck.in (explanation): Retain output of all failing compiles.
2000-11-21  Loren J. Rittle  <ljrittle@acm.org>

        * mkcheck.in (explanation): Retain output of all failing
        compiles.  Don't add gratuitous space to the log file.

From-SVN: r37639
2000-11-22 02:15:49 +00:00
Richard Henderson
cac16ef9da varasm.c (record_constant): Pad the constructed constant_descriptor appropriately.
* varasm.c (record_constant): Pad the constructed
        constant_descriptor appropriately.

From-SVN: r37638
2000-11-21 17:52:14 -08:00
Hans-Peter Nilsson
033b8a0cdb Fix typo in scan-assembler-dem-not
From-SVN: r37637
2000-11-22 01:50:15 +00:00
Hans-Peter Nilsson
d93415c9e0 gcc-dg.exp: load_lib scanasm.exp.
* lib/gcc-dg.exp: load_lib scanasm.exp.
	(scan-assembler, scan-assembler-not): Break out to scanasm.exp.
	* lib/g++-dg.exp: load_lib scanasm.exp.
	* lib/scanasm.exp: New.
	(scan-assembler, scan-assembler-not): Add optional arguments to
	test name, or if not present, the pattern name.
	(scan-assembler-dem, scan-assembler-demnot): New.

	* g++.dg/dg.exp: New.

From-SVN: r37636
2000-11-22 01:40:49 +00:00