Commit Graph

35446 Commits

Author SHA1 Message Date
Dale Johannesen
c132505efe t-darwin: Fix dependencies for darwin.o.
2001-05-25  Dale Johannesen  <dalej@apple.com>

        * config/rs6000/t-darwin: Fix dependencies for darwin.o.

From-SVN: r42582
2001-05-25 19:50:50 +00:00
Neil Booth
d3c733f95f * c-parse.in (notype_initdcl): Remove redundant line.
From-SVN: r42581
2001-05-25 19:44:20 +00:00
Diego Novillo
47cf924739 20010518-2.c: New file.
2001-05-25  Diego Novillo  <dnovillo@redhat.com>

	* gcc.c-torture/compile/20010518-2.c: New file.
	* gcc.c-torture/execute/20010518-1.c: New file.
	* gcc.c-torture/execute/20010518-2.c: New file.

From-SVN: r42580
2001-05-25 15:38:52 -04:00
Rainer Orth
827ae6cf7c aclocal.m4: Fixed typo.
* aclocal.m4: Fixed typo.
        (gcc_AC_HEADER_STDBOOL): Define.
        (gcc_AC_C__BOOL): Define.
        * configure.in: Use them.
        (AC_CHECK_HEADERS): Remove stdbool.h
        * configure, config.in: Regenerate.

From-SVN: r42578
2001-05-25 12:30:11 -07:00
Richard Henderson
80a480ca16 function.c (expand_function_start): Don't abort on PARALLEL returns from hard_function_value.
* function.c (expand_function_start): Don't abort on PARALLEL
        returns from hard_function_value.

From-SVN: r42577
2001-05-25 12:05:24 -07:00
Richard Henderson
244ec848eb i386.md: Revert previous change.
* config/i386/i386.md: Revert previous change.  Do not apply
        the peephole if the components do not die after the sequence.

From-SVN: r42576
2001-05-25 11:17:40 -07:00
Joseph Myers
0e03329a6f c-parse.in (array_declarator): New.
* c-parse.in (array_declarator): New.  Handle C99 constructs.
	Don't restrict [*] declarators to C only.
	(after_type_declarator, parm_declarator_starttypename,
	parm_declarator_nostarttypename, notype_declarator,
	direct_absdcl1): Use it.
	* c-decl.c (build_array_declarator, set_array_declarator_type):
	New functions.  Warn that [*] isn't properly implemented; pedwarn
	for [*] outside C99 mode if pedantic rather than giving a hard
	error.
	(grokdeclarator): Handle static and type qualifiers in parameter
	array declarators.
	* c-tree.h (build_array_declarator, set_array_declarator_type):
	Declare.
	* extend.texi (Attribute Syntax): Document attributes in parameter
	array declarators.

testsuite:
	* gcc.dg/c90-arraydecl-1.c, gcc.dg/c99-arraydecl-1.c: New tests.

From-SVN: r42574
2001-05-25 12:12:47 +01:00
Mark Mitchell
b60868e00c New test
From-SVN: r42570
2001-05-25 09:16:08 +00:00
Mark Mitchell
e35031a67a i386.md: Make sure cmpstr peepholes do not affect liveness information.
* config/i386/i386.md: Make sure cmpstr peepholes do not
	affect liveness information.

From-SVN: r42568
2001-05-25 09:09:17 +00:00
GCC Administrator
2afb18a116 Daily bump.
From-SVN: r42566
2001-05-25 07:16:41 +00:00
Ovidiu Predescu
12e010668b init.c (__objc_send_message_in_list): When setting a new entry in __objc_load_methods use the method name as key...
2001-05-25  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* init.c (__objc_send_message_in_list): When setting a new entry
	in __objc_load_methods use the method name as key, not the method
	IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).

From-SVN: r42562
2001-05-25 07:14:10 +00:00
Ovidiu Predescu
3e5252057d (__objc_send_message_in_list): When setting a new entry in __objc_load_methods use the method name as key...
(__objc_send_message_in_list): When setting a new entry in
__objc_load_methods use the method name as key, not the method IMP
(reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).

From-SVN: r42561
2001-05-25 07:12:17 +00:00
Mark Mitchell
eb8543b353 c-typeck.c (digest_init): Issue error messages about invalid constants, not warnings.
* c-typeck.c (digest_init): Issue error messages about
	invalid constants, not warnings.

From-SVN: r42560
2001-05-25 06:34:16 +00:00
Benjamin Kosnik
a16ad77946 inserters_extractors.cc (test09): New test.
2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2830
	* testsuite/21_strings/inserters_extractors.cc (test09): New test.
	* include/bits/ostream.tcc: Format to match istream.tcc.
	(operator<<(basic_ostream __out, const basic_string __s)): Fix.

From-SVN: r42557
2001-05-25 04:24:12 +00:00
Phil Edwards
1044b043c2 eh_alloc.cc (__cxa_allocate_exception): Qualify malloc with std:: .
2001-05-24  Phil Edwards  <pme@sources.redhat.com>

	* libsupc++/eh_alloc.cc (__cxa_allocate_exception):  Qualify
	malloc with std:: .
	(__cxa_free_exception):  Likewise with free.

From-SVN: r42556
2001-05-25 02:10:55 +00:00
Mark Mitchell
eeff8d2c06 std_cstring.h: #define away all global functions we will redeclare in namespace `std'.
* include/c_std/bin/std_cstring.h: #define away all global
	functions we will redeclare in namespace `std'.
	* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Use
	std::memset, instead of memset.
	* testsuite/19_diagnostics/stdexceptions.cc: Use `std::strcmp',
	not plain `strcmp'.
	* testsuite/21_strings/c_strings.cc: Use `std::strcpy' instead of
	plain `strcpy'.

From-SVN: r42555
2001-05-25 01:33:21 +00:00
Mark Mitchell
f5aada2647 G++ no longer defines builtins that do not begin with __builtin.
* g++.old-deja/g++.abi/bitfields.C: Update accordingly.
	* g++.old-deja/g++.brendand/misc13.C: Likewise.
	* g++.old-deja/g++.law/builtin1.C: Likewise.
	* g++.old-deja/g++.law/cvt2.C: Likewise.
	* g++.old-deja/g++.mike/net5.C: Likewise.
	* g++.old-deja/g++.other/builtins1.C: Likewise.
	* g++.old-deja/g++.other/builtins2.C: Likewise.
	* g++.old-deja/g++.other/builtins3.C: Likewise.
	* g++.old-deja/g++.other/builtins4.C: Likewise.
	* g++.old-deja/g++.other/inline8.C: Likewise.
	* g++.old-deja/g++.robertl/eb39.C: Likewise.

From-SVN: r42554
2001-05-25 01:30:57 +00:00
Mark Mitchell
0b1161fcb2 invoke.texi (-fno-builtin): Document that this is always on in C++.
* invoke.texi (-fno-builtin): Document that this is always on
	in C++.

	* decl.c (duplicate_decls): Tidy.
	(init_decl_processing): Always set flag_no_builtin.

From-SVN: r42553
2001-05-25 01:27:08 +00:00
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