Commit Graph

31328 Commits

Author SHA1 Message Date
Denis Chertykov
1cf7847fed expmed.c (expand_divmod): For signed divide by 2, prefer a branch and fewer shifts if branches are very cheap.
* expmed.c (expand_divmod): For signed divide by 2, prefer
	a branch and fewer shifts if branches are very cheap.

From-SVN: r37270
2000-11-06 11:39:54 +03:00
Tom Tromey
099a51500c lex.h (JAVA_FLOAT_RANGE_ERROR): Typo fix.
* lex.h (JAVA_FLOAT_RANGE_ERROR): Typo fix.
	* lex.c (IS_ZERO): New define.
	(java_perform_atof): Error on floating point underflow.

From-SVN: r37269
2000-11-06 05:35:53 +00:00
Tom Tromey
f83c165658 libjava.exp (libjava_arguments): Set --tag on libtool invocation.
* lib/libjava.exp (libjava_arguments): Set --tag on libtool
	invocation.

From-SVN: r37268
2000-11-06 00:22:01 +00:00
Tom Tromey
cbf53a1d5e lex.c (java_parse_escape_sequence): Only read two octal characters if the first one is greater than 3.
* lex.c (java_parse_escape_sequence): Only read two octal
	characters if the first one is greater than 3.  Don't allow
	"octal" numbers to include the digits 8 or 9.

From-SVN: r37267
2000-11-05 22:59:56 +00:00
Toon Moene
35f93a1e2d root.texi, [...]: Remove non-historical references to egcs/EGCS.
2000-11-05  Toon Moene  <toon@moene.indiv.nluug.nl>

	* root.texi, news.texi, g77install.texi, g77.texi, bugs.texi:
	Remove non-historical references to egcs/EGCS.

From-SVN: r37266
2000-11-05 13:20:46 +00:00
Joseph Myers
436a88a6d4 Makefile.in: Remove all targets related to building distributions and diffs, or INSTALL.
* Makefile.in: Remove all targets related to building
	distributions and diffs, or INSTALL.
	* INSTALL, install1.texi: Remove.
	* configure.in: Remove mention of distdir.
	* configure: Regenerate.
	* objc/Make-lang.in: Remove mention of distdir.

ch:
	* Make-lang.in (CHILL.distdir): Remove.

cp:
	* Make-lang.in (c++.distdir): Remove.

f:
	* Make-lang.in: Remove f77.distdir and f/INSTALL.
	* INSTALL, install0.texi: Remove.

java:
	* Make-lang.in (java.distdir): Remove.

From-SVN: r37265
2000-11-05 10:35:33 +00:00
Jeff Law
28d31a703f Daily bump.
From-SVN: r37264
2000-11-05 01:45:08 -07:00
Mark Mitchell
bb4127f8c9 acinclude.m4 (LIB_AC_PROG_CXX): Set CXX_libstdcxx from CXX.
* acinclude.m4 (LIB_AC_PROG_CXX): Set CXX_libstdcxx from CXX.
	* aclocal.m4: Regenerated.
	* configure: Likewise.

From-SVN: r37263
2000-11-05 02:38:53 +00:00
Mark Mitchell
f73bbdca85 use of `test'.
* aclocal.m4: Regenerated.
	* configure: Likewise.

From-SVN: r37262
2000-11-04 23:00:26 +00:00
Mark Mitchell
bfd2cff7a6 misc13.C: Put strlen' in std' namespace.
* g++.old-deja/g++.brendan/misc13.C: Put `strlen' in `std'
	namespace.

From-SVN: r37260
2000-11-04 20:29:16 +00:00
Mark Mitchell
247a2b0ab5 weak.C: Fix uses of iostreams to be standards-conformant.
* g++.old-deja/g++.law/weak.C: Fix uses of iostreams to be
	standards-conformant.

From-SVN: r37259
2000-11-04 20:13:44 +00:00
Mark Mitchell
bb77c16cdc * g++.old-deja/g++.mike/net5.C: Put abort' in std' namespace.
From-SVN: r37258
2000-11-04 20:08:18 +00:00
Mark Mitchell
ffb2827932 p755.C: Tweak handling of exit.
* g++.old-deja/g++.mike/p755.C: Tweak handling of exit.
	* g++.old-deja/g++.mike/p755a.C: Likewise.
	* g++.old-deja/g++.mike/p9706.C: Don't assume that the standard
	library makes no calls to `operator new' during initialization.

From-SVN: r37257
2000-11-04 20:00:52 +00:00
Mark Mitchell
8d48367bef Use <vector> rather than <vector.h>.
From-SVN: r37256
2000-11-04 19:37:37 +00:00
Tom Tromey
4e2c8d44e8 re PR other/567 ("make dvi" fails)
* Make-lang.in (java.dvi): New target.
	Partial fix for PR other/567.

From-SVN: r37255
2000-11-04 19:12:46 +00:00
Mark Mitchell
7a4e509111 decl2.c (do_nonmember_using_decl): Allow `extern "C"' declarations from different namespaces to be combined.
* decl2.c (do_nonmember_using_decl): Allow `extern "C"'
	declarations from different namespaces to be combined.

From-SVN: r37254
2000-11-04 18:47:16 +00:00
Neil Booth
9cf11a478d * cpp.texi: Update for _Pragma.
From-SVN: r37253
2000-11-04 14:09:28 +00:00
Joseph Myers
f148ca886c * gcc.texi (Contributing): Update URL for projects web page.
From-SVN: r37252
2000-11-04 12:42:25 +00:00
Neil Booth
e8ecb16d5e * gcc.dg/cpp/include2.c: New tests.
From-SVN: r37251
2000-11-04 11:14:54 +00:00
Neil Booth
16eb278877 cpplex.c (parse_string): Don't allow multiline strings in #include family directives.
* cpplex.c (parse_string): Don't allow multiline strings in
        #include family directives.

From-SVN: r37250
2000-11-04 11:13:22 +00:00
Neil Booth
9232b7d9c6 cpplib.c (do_line): Only warn pedantically if not reading preprocessed input.
* cpplib.c (do_line): Only warn pedantically if not reading
        preprocessed input.

From-SVN: r37249
2000-11-04 10:34:34 +00:00
Jeff Law
532abb52f4 Daily bump.
From-SVN: r37248
2000-11-04 01:45:08 -07:00
Hans-Peter Nilsson
d50d20ecc8 hashtab.c (htab_expand): Change to return int.
* hashtab.c (htab_expand): Change to return int.  Use calloc or
 	xcalloc depending on htab->return_allocation_failure.  Return zero
 	if calloc fails.
	(htab_create): Update comment to cover memory allocation.
	(htab_try_create): New.
	(htab_find_slot_with_hash): Return NULL if htab_expand fails.
  	Update comment to cover this.

From-SVN: r37247
2000-11-04 07:42:53 +00:00
Hans-Peter Nilsson
5dd0f480ae hashtab.h (struct htab): Add member return_allocation_failure.
* hashtab.h (struct htab): Add member return_allocation_failure.
	(htab_try_create): New prototype.  Mention which functions may
	return NULL when this is used.

From-SVN: r37246
2000-11-04 07:35:33 +00:00
Alexandre Oliva
de9aefe0ea acinclude.m4 (CXX): Prevent it from being cached.
* acinclude.m4 (CXX): Prevent it from being cached.
* aclocal.m4, configure, */Makefile.in: Rebuilt.

From-SVN: r37245
2000-11-04 07:07:38 +00:00
Tom Tromey
b7436b7288 lang-options.h: Mention -Wout-of-date.
* lang-options.h: Mention -Wout-of-date.
	* jcf-dump.c (flag_newer): New global.
	* gjavah.c (flag_newer): New global.
	* jcf-io.c (find_class): Only warn when flag_newer set.
	* lang.c (flag_newer): New global.
	(struct string_option): New declaration.
	(lang_W_options): New global.
	(process_option_with_no): New function.
	(lang_decode_option): Use it.

From-SVN: r37244
2000-11-04 04:57:33 +00:00
Tom Tromey
0160fbe150 class.c (cxx_keyword_p): Accept keywords with trailing `$'s.
* class.c (cxx_keyword_p): Accept keywords with trailing `$'s.
	* gjavah.c (cxx_keyword_subst): Handle any number of trailing
	`$'.

From-SVN: r37243
2000-11-04 04:56:25 +00:00
Alexandre Oliva
f132f529e0 calls.c (emit_call_1): Use n_popped instead of RETURN_POPS_ARGS().
* calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
RETURN_POPS_ARGS().

From-SVN: r37242
2000-11-04 04:02:25 +00:00
Phil Edwards
626d8f0a2c [multiple changes]
2000-11-03  David Edelsohn <dje@watson.ibm.com>

	* acinclude.m4 (GLIBCPP_CHECK_OS): Add AIX target selecting threads
	  flag based on multilib definition of $CXX.
	* mknumeric_limits (LDFLAGS): Add AIX target linking with pthreads
	  based on multilib definition of $CXX.
	* config/os/aix/bits/os_defines.h (_G_USING_THUNKS): Define as 0.

2000-11-03  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4:  Cleanups.
	* aclocal.m4:  Regenerated.
	* configure:  Ditto.
	* Makefile.in:  Ditto.
	* libio/Makefile.in:  Ditto.
	* libmath/Makefile.in:  Ditto.
	* libsupc++/Makefile.in:  Ditto.
	* src/Makefile.in:  Ditto.

	* docs/install.html:  Removal of EGCS.
	* docs/23_containers/wrappers_h.txt:  Likewise.
	* docs/faq/index.html:  Likewise.
	* docs/faq/index.txt:  Regenerated.
	* docs/thanks.html:  More people.

From-SVN: r37241
2000-11-04 03:00:12 +00:00
Phil Edwards
872865cf04 Dummy checking of footer.html to force web update.
From-SVN: r37240
2000-11-04 02:40:32 +00:00
Alexandre Petit-Bianco
7ccd2fc96f Make-lang.in (LIBGCJ_ZIP_FILE): Define with `$(prefix)'.
2000-10-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* Make-lang.in (LIBGCJ_ZIP_FILE): Define with `$(prefix)'.
	Fixes gcj/365.

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

From-SVN: r37239
2000-11-03 15:38:36 -08:00
David Edelsohn
50149aa9f9 std_cwchar.h: Undefine macro that conflicts with function name defined in this file.
* include/c/bits/std_cwchar.h: Undefine macro that conflicts
	with function name defined in this file.

From-SVN: r37238
2000-11-03 18:01:19 -05:00
Zack Weinberg
0e9295cf74 builtins.c (expand_builtin_strlen): Remove unused mode argument.
* builtins.c (expand_builtin_strlen): Remove unused mode
	argument.
	* gcc.c (process_command): Remove unused variable.
	* fold-const.c: Include expr.h.
	* recog.c: Include reload.h.
	* Makefile.in (recog.o, fold-const.o): Update deps.
cp:
	* decl.c: Include tm_p.h.

From-SVN: r37237
2000-11-03 22:24:21 +00:00
Geoff Keating
f2682362a5 In gcc/:
* fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.

In gcc/ch/:
	* Make-lang.in: Remove 'CYGNUS LOCAL' markers.
	* Makefile.in: Likewise.
	* configure: Likewise.

From-SVN: r37236
2000-11-03 20:59:02 +00:00
Mark Mitchell
25f80eae6a iris6.h (SUBTARGET_CC1_SPEC): Remove -static handling.
* config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
	handling.
	(STARTFILE_SPEC): Likewise.
	(LINK_SPEC): Likewise.

From-SVN: r37235
2000-11-03 20:43:43 +00:00
Mark Mitchell
334c4aae75 g++.exp (g++_set_ld_library_path): New function.
* lib/g++.exp (g++_set_ld_library_path): New function.
	Use it to set LD_LIBRARYN32_PATH and LD_LIBRARY64_PATH.

From-SVN: r37234
2000-11-03 20:33:47 +00:00
Tom Tromey
747800ee8a lex.h (_JAVA_IDENTIFIER_IGNORABLE): New macro.
* lex.h (_JAVA_IDENTIFIER_IGNORABLE): New macro.
	(JAVA_ID_CHAR_P): Also try java_ignorable_control_p.
	* lex.c (java_read_unicode): Removed `term_context' argument.
	Recognize any number of `u' in `\u'.
	(java_read_unicode_collapsing_terminators): New function.
	(java_get_unicode): Use it.
	(java_lineterminator): Removed.
	(yylex): Produce error if character literal is newline or single
	quote.  Return if eof found in middle of `//' comment.  EOF in
	`//' comment is only an error if pedantic.
	(java_ignorable_control_p): New function.
	(java_parse_end_comment): Return if eof found in middle of
	comment.
	Include flags.h.
	* jv-scan.c (pedantic): New global.

From-SVN: r37232
2000-11-03 20:27:07 +00:00
Hans-Peter Nilsson
35e9340fc9 (htab_create, htab_expand): Correct formatting of comment before
function.

From-SVN: r37231
2000-11-03 20:26:51 +00:00
Hans-Peter Nilsson
5aa2300021 * hashtab.h: Change void * to PTR where necessary.
From-SVN: r37230
2000-11-03 20:23:00 +00:00
Kaveh R. Ghazi
426159a48b Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
* Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
	(toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
	(simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.

From-SVN: r37229
2000-11-03 19:42:17 +00:00
Joseph Myers
da61dec94b Use memset/memcmp instead of bzero/bcmp.
* c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
	(dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
	perm_calloc, get_identifier, maybe_get_identifier,
	real_value_from_int_cst, simple_cst_equal), varasm.c
	(assemble_name, assemble_real, immed_real_const_1,
	compare_constant_1, decode_rtx_const, output_constant_pool): Use
	strrchr () instead of rindex ().  Use memcmp () instead of bcmp
	().  Use memcpy () instead of bcopy ().  Use memset () instead of
	bzero ().

cp:
	* tree.c (cp_tree_equal): Use memcmp () instead of bcmp ().

From-SVN: r37228
2000-11-03 18:55:54 +00:00
Nathan Sidwell
def3263a33 cppfiles.c (open_file): If already read, then don't reopen.
* cppfiles.c (open_file): If already read, then don't reopen.
	Immediately close an empty file.

From-SVN: r37227
2000-11-03 16:03:37 +00:00
Bernd Schmidt
30235724a2 More tests for sequence point warnings.
From-SVN: r37226
2000-11-03 16:02:20 +00:00
Bernd Schmidt
94e9dc136e Move fold_builtin declaration to proper header
From-SVN: r37225
2000-11-03 14:04:43 +00:00
Jeff Law
72eb4729f6 Daily bump.
From-SVN: r37224
2000-11-03 01:45:07 -07:00
Warren Levy
a53785f90e ObjectInputStream.java (readObject): Added code to conditionally dump out the serialized data.
* java/io/ObjectInputStream.java (readObject): Added code to
	conditionally dump out the serialized data.
	Handle ENDBLOCKDATA case a bit more gracefully since the current
	behavior doesn't seem to work as expected.
	(readStreamHeader): Added code for serialized data dumper.
	(readNextBlock): Ditto.
	(readFields): Ditto.
	(dump): New private static field for turning on/off dumper.
	(setDump): New native method.
	(dumpElement): New native method.
	(dumpElementln): New native method.
	* java/io/natObjectInputStream.cc (setDump): New method.
	(dumpElement): New method.
	(dumpElementln): New method.

Serialization dumper.  Enable by configuring with --enable-libgcj-debug
and calling java.io.ObjectInputStream.setDump(true) in your test program.
The output will be generated as the object is deserialized (i.e. the
readObject() method is executed).

From-SVN: r37223
2000-11-03 08:04:33 +00:00
Warren Levy
6678181b3c InetAddress.java (addr): Renamed from 'address'.
* java/net/InetAddress.java (addr): Renamed from 'address'.
	(address): New field to match Serialized Form doc.
	(hostName): Renamed from 'hostname' to match Serialized Form doc.
	(family): New serialization field.
	(serialVersionUID): New field.
	(readObject): New method.
	(writeObject): New method.
	(getFamily): New native method.
	(InetAddress): Set family.
	* java/net/natInetAddress.cc (getFamily): New method.
	(addr): Renamed from 'address'.
	(hostName): Renamed from 'hostname' to match Serialized Form doc.
	* java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
	* java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.

Serialization mod.

From-SVN: r37222
2000-11-03 07:43:06 +00:00
Mark Mitchell
11d6fb5451 std_cctype.h: Undefine macros that conflict with function names defined in this file.
* include/c/bits/std_cctype.h: Undefine macros that conflict
	with function names defined in this file.
	* include/c/bits/std_cstdio.h: Likewise.

From-SVN: r37221
2000-11-03 06:20:17 +00:00
J"orn Rennecke
6c6a14b5fc * flow.c (verify_local_live_at_start): Allow hard regs to die.
From-SVN: r37220
2000-11-03 05:43:09 +00:00
Mark Mitchell
5a0b0c7abf * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Fix typo.
From-SVN: r37219
2000-11-03 05:15:35 +00:00