Commit Graph

35328 Commits

Author SHA1 Message Date
Benjamin Kosnik
d422980b3f basic_ios.tcc: Small tweak.
2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2832
	* include/bits/basic_ios.tcc: Small tweak.
	* include/bits/std_fstream.h (ifstream): Add buffer member. Adjust
	ctors and dtors, and rdbuf settings.
	(ofstream): Same.
	(fstream): Same.
	* include/bits/std_sstream.h: Same, but for stringstream classes.
	* testsuite/27_io/ostringstream_members.cc: New.
	* testsuite/27_io/stringstream_members.cc: New.
	* testsuite/27_io/fstream_members.cc: New.
	* testsuite/27_io/ifstream_members.cc: Add test.
	* testsuite/27_io/istringstream_members.cc: Add test.
	* testsuite/27_io/ofstream_members.cc: Add test.

From-SVN: r42547
2001-05-24 23:09:53 +00:00
Phil Blundell
476c334ecf install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is required.
2001-05-24  Philip Blundell  <philb@gnu.org>

	* doc/install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is
	required.

From-SVN: r42546
2001-05-24 21:16:41 +00:00
Phil Blundell
6646fd701f install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is required.
2001-05-24  Philip Blundell  <philb@gnu.org>

	* doc/install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is
	required.

[[Split portion of a mixed commit.]]

From-SVN: r42545.2
2001-05-24 21:16:36 +00:00
Philip Blundell
e46ccf7c81 arm.c (output_return_instruction): Correctly handle interworking and interrupt functions.
2001-05-24  Philip Blundell  <philb@gnu.org>

	* config/arm/arm.c (output_return_instruction): Correctly handle
	interworking and interrupt functions.

From-SVN: r42543
2001-05-24 21:09:05 +00:00
Phil Blundell
b605cfa891 arm.h (TARGET_SWITCHES): Correct misleading help for -m{no-}sched-prolog.
2001-05-24  Philip Blundell  <philb@gnu.org>

	* config/arm/arm.h (TARGET_SWITCHES): Correct misleading help for
	-m{no-}sched-prolog.  Fix typos and improve formatting.

From-SVN: r42542
2001-05-24 21:06:36 +00:00
Phil Blundell
6399271af7 arm.h (TARGET_SWITCHES): Correct misleading help for -m{no-}sched-prolog.
2001-05-24  Philip Blundell  <philb@gnu.org>

	* config/arm/arm.h (TARGET_SWITCHES): Correct misleading help for
	-m{no-}sched-prolog.  Fix typos and improve formatting.

[[Split portion of a mixed commit.]]

From-SVN: r42541.2
2001-05-24 21:06:35 +00:00
Philip Blundell
247f856129 invoke.texi (ARM Options): Improve wording slightly.
2001-05-24  Philip Blundell  <philb@gnu.org>

	* invoke.texi (ARM Options): Improve wording slightly.  Add
	documentation for more options, including those for Thumb mode.
	Don't mention options that don't exist or are unimplemented.
	(Thumb Options): Delete; merged into above section.

From-SVN: r42539
2001-05-24 20:54:59 +00:00
Gabriel Dos Reis
3e0105a41d c++config (__NO_MATH_INLINES): Move to...
* include/bits/c++config(__NO_MATH_INLINES): Move to...
      * config/os/gnu-linux/bits/os_defines.h: ...here.

From-SVN: r42538
2001-05-24 20:51:33 +00:00
Geoffrey Keating
a0a843c7bf linux.h (SIGNAL_FRAMESIZE): Define.
* config/rs6000/linux.h (SIGNAL_FRAMESIZE): Define.
	(MD_FALLBACK_FRAME_STATE_FOR): Use it.

From-SVN: r42534
2001-05-24 20:15:13 +00:00
Gabriel Dos Reis
cf3e18dd1e c++config (__NO_MATH_INLINES): New macro.
* include/bits/c++config (__NO_MATH_INLINES): New macro.
      * testsuite/26_numerics/fabs_inline.cc (main): New test.

From-SVN: r42533
2001-05-24 18:38:20 +00:00
Tom Tromey
cb894e07ec natString.cc (init): Throw ArrayIndexOutOfBoundsException.
* java/lang/natString.cc (init): Throw
	ArrayIndexOutOfBoundsException.
	(getChars): Likewise.
	(getBytes): Likewise.
	(valueOf): Likewise.

From-SVN: r42531
2001-05-24 18:06:03 +00:00
Tom Tromey
cf6b8de459 configure.in: Only allow hash synchronization when POSIX threads are enabled.
* configure.in: Only allow hash synchronization when POSIX threads
	are enabled.
	* java/lang/natObject.cc (alloc_heavy): Properly find `init' field
	of sync info object.

From-SVN: r42530
2001-05-24 18:03:47 +00:00
Jan Hubicka
0fff422242 simplify-rtx.c (simplify_subreg): Fix CONCAT simplification; fix hard register simplification.
* simplify-rtx.c (simplify_subreg): Fix CONCAT simplification;
	fix hard register simplification.

From-SVN: r42529
2001-05-24 17:48:42 +00:00
Rainer Orth
5a2136e82c sol2.h (CPLUSPLUS_CPP_SPEC): Add all of CPP_SPEC instead of just copying CPP_CPU_SPEC.
* sparc/sol2.h (CPLUSPLUS_CPP_SPEC): Add all of CPP_SPEC instead
	of just copying CPP_CPU_SPEC.

From-SVN: r42528
2001-05-24 15:59:43 +00:00
Jan Hubicka
2b1c08f5bf * i386.c (incdec_operand): Accept only 1 and -1.
From-SVN: r42527
2001-05-24 13:59:09 +00:00
Nathan Sidwell
6f56d9253f re PR c++/2184 (using declarations for classes in function templates)
cp:
	PR c++/2184
	* decl2.c (do_local_using_decl): Push the decls, even in a
	template.
testsuite:
	* g++.old-deja/g++.pt/using1.C: Adjust.
	* g++.old-deja/g++.pt/using2.C: New test.

From-SVN: r42526
2001-05-24 12:00:52 +00:00
Bryce McKinlay
8948cb3972 Makefile.am: Override gctest_OBJECTS so tests/test.c can be built.
* Makefile.am: Override gctest_OBJECTS so tests/test.c can be built.
	(libgcjgc_la_SOURCES): Remove typo.
	* tests/test.c: Fix struct names and includes for GC_GCJ_SUPPORT case.
	* Makefile.in: Rebuilt.

From-SVN: r42524
2001-05-24 08:28:39 +01:00
GCC Administrator
678dbe56c0 Daily bump.
From-SVN: r42523
2001-05-24 07:16:48 +00:00
Tom Tromey
085a261966 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.

From-SVN: r42521
2001-05-24 05:43:46 +00:00
Tom Tromey
4c6a2b018f Revert patch of 2001-05-21:
* Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
	(libgcj_la_LIBADD): Likewise.
	(libgcjx_la_DEPENDENCIES): Removed x_nat_files.
	(libgcjx_la_LIBADD): Likewise.

From-SVN: r42520
2001-05-24 05:41:53 +00:00
Tom Tromey
3610e0d548 [multiple changes]
2001-05-23  Tom Tromey  <tromey@redhat.com>

	* posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
	* gcj/Makefile.in: Rebuilt.
	* gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
	* gcj/javaprims.h: Include gcj/libgcj-config.h.
	* gcj/libgcj-config.h.in: New file.
	* libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
	* configure: Rebuilt.
	* configure.in: Enable hash synchronization by default on some
	platforms.
	(HASH_SYNC_SPEC): New subst.
	(AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
	Correctly use `test -z' instead of `test -n' in a couple places.
	(JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
	LIBGCJ_CXXFLAGS.
	* configure.host (enable_java_net_default): Initialize.
	(enable_hash_synchronization_default): New variable.

2001-05-23  Hans Boehm <Hans_Boehm@hp.com>

	* boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
	synchronization in use.
	(_Jv_MarkArray): Likewise.
	(_Jv_AllocBytes): Don't check return result.
	(handle_out_of_memory): New function.
	(_Jv_InitGC): Set GC_oom_fn.
	(trace_one_vtable): New global.
	(_Jv_AllocTraceOne): New function.
	* configure.in: Added --enable-hash-synchronization.
	* defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
	java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
	* nogc.cc (_Jv_AllocObj): Throw out-of-memory.
	(_Jv_AllocArray): Likewise.
	(_Jv_AllocBytes): Likewise.
	(_Jv_AllocPtrFreeObject): New function.
	(_Jv_AllocTraceOne): Likewise.
	* posix-threads.cc (_Jv_ThreadRegister): Handle slow
	pthread_self().
	(self_cache): New global.
	(_Jv_ThreadSelf_out_of_line): New function.
	* prims.cc (_Jv_AllocBytesChecked): Removed.
	(_Jv_ThrowNoMemory): New function.
	(_Jv_AllocObject): Don't check for null return from allocator.
	(_Jv_NewObjectArray): Likewise.
	(_Jv_AllocPtrFreeObject): New function.
	(_Jv_NewPrimArray): Allocate pointer-free object if possible.
	* include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
	(_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
	* include/boehm-gc.h (_Jv_AllocObj): Define.
	(_Jv_AllocPtrFreeObj): Define.
	* include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
	(_Jv_ThrowNoMemory): Declare.
	(_Jv_AllocTraceOne): Declare.
	(_Jv_AllocBytesChecked): Removed.
	* include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
	_Jv_MutexUnlock): Handle LOCK_DEBUG.
	(_Jv_ThreadSelf): Handle case where system pthread_self() is
	slow.
	* java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
	friend.
	* java/lang/Object.h (sync_info): Conditional upon presence of
	hash synchronization.
	* java/lang/natObject.cc: Much new code to handle thin locks and
	hash synchronization.
	* java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
	object if possible.

From-SVN: r42519
2001-05-24 05:40:37 +00:00
Bruce Korb
865e0a8389 This is still broken. Do not use it yet
From-SVN: r42518
2001-05-24 04:37:54 +00:00
Kelley Cook
c4df8f8c89 Makefile.in: Move many of the *_H definitions eariler in the file...
* Makefile.in: Move many of the *_H definitions eariler in the
file, so that rules in t-* files that use them for
dependencies will work in a parallel build.
* config/i386/t-cygwin (winnt.o): Depend on $(CONFIG_H).

From-SVN: r42516
2001-05-23 18:58:41 -04:00
Richard Henderson
9688f9ada6 * integrate.c (expand_inline_function): Handle CONCAT DECL_RESULT.
From-SVN: r42515
2001-05-23 15:53:54 -07:00
Neil Booth
f8710242d3 cpp.texi: Update for handling of charconsts.
* cpp.texi: Update for handling of charconsts.
	* cpplex.c (maybe_read_ucs): Don't accept D800-DFFF.  Update
	diagnostics.  Skip to the end if the UCS is too short.
	(cpp_interpret_charconst): Long charconsts issue a warning
	not an error.

	* gcc.dg/cpp/charconst.c: New tests.
	* gcc.dg/cpp/escape.c: New tests.
	* gcc.dg/cpp/escape-1.c: New tests.
	* gcc.dg/cpp/escape-2.c: New tests.
	* gcc.dg/cpp/ucs.c: New tests.

From-SVN: r42514
2001-05-23 22:50:28 +00:00
Richard Henderson
75f3e3c8d6 * doc/install.texi (alpha-linux): Require binutils 2.11.
From-SVN: r42513
2001-05-23 14:33:30 -07:00
David Billinghurst
3af21e0427 linkage.exp: Pass appropriate flags to native compiler for irix6.5.
* gcc.misc-tests/linkage.exp:  Pass appropriate flags to
	native compiler for irix6.5.

From-SVN: r42511
2001-05-23 19:53:00 +00:00
Neil Booth
62729350f1 c-lex.c (read_escape, read_ucs): Delete.
* c-lex.c (read_escape, read_ucs): Delete.
	(lex_string): Use cpp_parse_escape.
	* cpplex.c (read_ucs): Rename maybe_read_ucs.  Do nothing
	if not C++ or not C99.  Warn if traditional.
	(parse_escape): Rename cpp_parse_escape.  Make the bitmask
	unsigned.  Warn for out-of-range escape sequences here.
	Update to use maybe_read_ucs.
	(cpp_interpret_charconst):  Don't warn here.
	* cpplib.h (cpp_parse_escape): New exported function.

From-SVN: r42509
2001-05-23 19:05:37 +00:00
Joseph Myers
ff867905f9 extend.texi (Attribute Syntax): Clarify application of attributes to parameters declared as functions or arrays.
* extend.texi (Attribute Syntax): Clarify application of
	attributes to parameters declared as functions or arrays.

From-SVN: r42507
2001-05-23 19:44:13 +01:00
Joseph Myers
719f0fde70 jv-scan.c (version): Update copyright year.
gcc/java:
	* jv-scan.c (version): Update copyright year.

libjava:
	* gij.cc (version): Update copyright year.

From-SVN: r42505
2001-05-23 19:10:30 +01:00
Jason Merrill
b1a86a997e * dbxout.c (dbxout_type_methods): Do still group methods by name.
From-SVN: r42504
2001-05-23 13:37:50 -04:00
Anthony Green
7aa9922d28 Fix typo applying previous patch.
From-SVN: r42503
2001-05-23 17:24:49 +00:00
Zack Weinberg
0fb617da85 POTFILES.in: Remove config/rs6000/xm-darwin.h and config/pa/pa-gas.h.
* POTFILES.in: Remove config/rs6000/xm-darwin.h and
	config/pa/pa-gas.h.

From-SVN: r42502
2001-05-23 17:22:19 +00:00
Anthony Green
f1b03787e5 Missed hunk from old GCJ_FOR_TARGET patch.
From-SVN: r42501
2001-05-23 17:19:40 +00:00
Zack Weinberg
1f8875f91d diagnostic.c (vnotice): Kill.
2001-05-23  Zack Weinberg  <zackw@stanford.edu>

	* diagnostic.c (vnotice): Kill.
	(fnotice): Call vfprintf directly.
	(diagnostic_for_decl, output_do_verbatim, output_verbatim,
	verbatim, set_diagnostic_context): Rename string argument to
	indicate that it is run through gettext.
	(vbuild_message_string, build_message_string, output_do_printf):
	Rename string argument to indicate that it is NOT run through
	gettext.
	(output_printf, diagnostic_for_decl, fatal_io_error, sorry,
	output_do_verbatim, set_diagnostic_context, fnotice, _fatal_insn):
	Run msgid argument through gettext.
	(default_print_error_function): Run constant strings through
	gettext when nothing else will.
	(fatal_error, internal_error, error_recursion): Use fnotice.
	Present complete sentences to gettext.

From-SVN: r42498
2001-05-23 17:15:07 +00:00
Anthony Green
13094d1293 Fix cross builds.
From-SVN: r42497
2001-05-23 17:13:27 +00:00
Jeffrey D. Oldham
1ec0759764 Wed May 23 2001 Jeffrey D. Oldham <oldham@codesourcery.com>
* lib/g++.exp (g++_include_flags): Use args to compute
 	get_multilibs.
	(g++_link_flags): Likewise.
	(g++_init): Pass TOOL_OPTIONS as arguments to two above functions.

From-SVN: r42495
2001-05-23 16:15:03 +00:00
Gerald Pfeifer
6cf735a769 * gcc_update (UPDATE_OPTIONS): Add -d to the default settings.
From-SVN: r42493
2001-05-23 12:15:03 +00:00
Mark Mitchell
834452d2f4 * jump.c (mark_jump_label): Fix thinko in 2001-05-19 change.
From-SVN: r42491
2001-05-23 07:56:45 +00:00
GCC Administrator
7cc72e9c81 Daily bump.
From-SVN: r42490
2001-05-23 07:17:19 +00:00
Benjamin Kosnik
ec233c75fb libstdc++-v3-dg.exp (libstdc++-v3-init): Set ld_library_path.
2001-05-22  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2841
	* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set
	ld_library_path.
	(libstdc++-v3_set_ld_library_path): New, copied from g++.exp.
	(libstdc++-v3-finish): Remove.
	(libstdc++-v3_exit): Remove.

From-SVN: r42487
2001-05-23 07:05:14 +00:00
Richard Henderson
d5bf114347 function.c (expand_function_start): Always use a pseudo for the function result value.
* function.c (expand_function_start): Always use a pseudo
        for the function result value.

From-SVN: r42486
2001-05-23 00:01:43 -07:00
Richard Henderson
9336389d37 iris6.h (EH_FRAME_SECTION_ASM_OP): Give the section pointer alignment.
* config/mips/iris6.h (EH_FRAME_SECTION_ASM_OP): Give the
        section pointer alignment.

From-SVN: r42484
2001-05-22 23:54:21 -07:00
Richard Henderson
e427d51a07 * doc/install.texi (alpha-linux): Require binutils >= 2.10.
From-SVN: r42483
2001-05-22 23:41:48 -07:00
Mark Mitchell
39e0656d10 optimize.c (initialize_inlined_parameters): Don't set TREE_READONLY for a VAR_DECL taking the place of an inlined PARM_DECL.
* optimize.c (initialize_inlined_parameters): Don't set
	TREE_READONLY for a VAR_DECL taking the place of an inlined
	PARM_DECL.

From-SVN: r42480
2001-05-23 02:14:51 +00:00
Phil Edwards
8d12b80039 documentation.html: Point to doxygen output.
2001-05-22  Phil Edwards  <pme@sources.redhat.com>

	* docs/html/documentation.html:  Point to doxygen output.

From-SVN: r42477
2001-05-23 02:00:05 +00:00
Richard Henderson
7ac76c8541 unwind-dw2-fde.c (__deregister_frame_info): Stringize use of __USER_LABEL_PREFIX__.
* unwind-dw2-fde.c (__deregister_frame_info): Stringize use
        of __USER_LABEL_PREFIX__.

From-SVN: r42475
2001-05-22 18:26:01 -07:00
Richard Henderson
101fa48cd8 unwind-dw2-fde.c (__deregister_frame_info): Stubbify in favour of...
* unwind-dw2-fde.c (__deregister_frame_info): Stubbify in favour of...
        (__deregister_frame_info_bases): New.
        * unwind-dw2-fde.h: Declare it.
        * libgcc-std.ver: Export it.
        * crtstuff.c (__do_global_dtors_aux): Call it if we would have
        called __register_frame_info_bases.

From-SVN: r42473
2001-05-22 16:01:33 -07:00
Toon Moene
b5e85669dd g77.texi: Update last-changed date.
2001-05-22  Toon Moene  <toon@moene.indiv.nluug.nl>

	* g77.texi: Update last-changed date.
	* news.texi: Update copyright years, last-changed date.
	* bugs.texi: Update copyright years, last-changed date.

From-SVN: r42471
2001-05-22 21:43:33 +00:00
Loren J. Rittle
73daf27e40 freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair instead of #elif (which is OK for this case but not in general).
* config/freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair
	instead of #elif (which is OK for this case but not in general).

From-SVN: r42469
2001-05-22 21:33:36 +00:00