Commit Graph

46347 Commits

Author SHA1 Message Date
Phil Edwards
840ceb345b TODO: Note change in clause 27 docs.
2002-11-21  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/TODO:  Note change in clause 27 docs.
	* include/bits/basic_ios.h, include/bits/fpos.h,
	include/bits/ios_base.h, include/bits/stl_deque.h,
	include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
	include/std/std_iomanip.h, include/std/std_iosfwd.h,
	include/std/std_iostream.h, include/std/std_istream.h,
	include/std/std_ostream.h, include/std/std_sstream.h,
	include/std/std_streambuf.h:  Doxygenate all I/O entities.

From-SVN: r59325
2002-11-21 07:06:41 +00:00
Toon Moene
02f0f531d4 invoke.texi: Explain the purpose of -fmove-all-movables...
2002-11-20  Toon Moene  <toon@moene.indiv.nluug.nl>

	* invoke.texi: Explain the purpose of -fmove-all-movables,
	-freduce-all-givs and -frerun-loop-opts better.

From-SVN: r59323
2002-11-20 23:22:50 +00:00
Steve Ellcey
27e58a706f emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type to component type using GET_MODE_INNER.
* emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
	to component type using GET_MODE_INNER.
	* expr.c (emit_move_insn_1): Ditto.
	* optabs.c (expand_binop): Ditto.
	(expand_unop): Ditto.
	(expand_complex_abs): Ditto.

From-SVN: r59317
2002-11-20 21:52:59 +00:00
Douglas B Rupp
964b104aba * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
From-SVN: r59316
2002-11-20 21:41:19 +00:00
Benjamin Kosnik
5e85fa9997 streambuf.tcc (__copy_streambufs): Revert previous fix for the interactive half of libstdc++/6745...
2002-11-20  Benjamin Kosnik  <bkoz@redhat.com>
	    Jonathan Lennox  <lennox@cs.columbia.edu>

	* include/bits/streambuf.tcc (__copy_streambufs):
	Revert previous fix for the interactive half of
	libstdc++/6745, use _M_buf_size_opt to set dynamically
	the correct buffer size.

Co-Authored-By: Jonathan Lennox <lennox@cs.columbia.edu>

From-SVN: r59314
2002-11-20 21:22:48 +00:00
Michael Koch
c6de9c29fd Makefile.am (ordinary_java_source_files): Added java/nio/channels/FileChannel.java.
2002-11-20  Michael Koch <konqueror@gmx.de>

	* Makefile.am (ordinary_java_source_files):
	Added java/nio/channels/FileChannel.java.
	* Makefile.in: Regenerated.

From-SVN: r59313
2002-11-20 21:19:26 +00:00
DJ Delorie
3d4b192ae9 stormy16.c (s16builtins, [...]): New.
* config/stormy16/stormy16.c (s16builtins,
xstormy16_init_builtins, xstormy16_expand_builtin): New.
* config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.

From-SVN: r59312
2002-11-20 16:08:33 -05:00
Hans-Peter Nilsson
9a0a7d5dfa ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD): Define as empty.
* ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
	Define as empty.
	(ggc_realloc): Update valgrind annotations.
	* ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
	Define as empty.
 	(alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
	valgrind-annotate memory.

From-SVN: r59310
2002-11-20 20:06:34 +00:00
Hans-Peter Nilsson
414d23ae18 Makefile.in (RUN_GEN, [...]): New variables.
* Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
	(DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
	(executing gencheck, genconfigs, genconditions, genflags,
	gencodes, genconstants, genemit, genrecog, genopinit, genextract,
	genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
	gengtype, genprotos): Prepend $(RUN_GEN).
	* configure.in: Move host compiler tests before --enable-checking
	tests.
	(--enable-checking=valgrind): New.
	* config.in, configure: Regenerate.
	* cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
	Define as empty.
	(read_include_file): When doing the mmap+1 trick,
	valgrind-annotate the byte after the mmap:ed area as readable.
	(purge_cache): Remove above annotation.
	* gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
	VALGRIND_PATH -q to each command.

From-SVN: r59309
2002-11-20 19:49:53 +00:00
Ulrich Weigand
3ba2436a67 recog.c (constrain_operands): Prefer exact match over reloadable EXTRA_MEMORY_CONSTRAINT or...
* recog.c (constrain_operands): Prefer exact match over reloadable
	EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.

	* reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
	operands in Pmode.

From-SVN: r59308
2002-11-20 17:05:08 +00:00
Michael Koch
3ebb998e6f 2002-11-20 Michael Koch <konqueror@gmx.de>
* java/io/FileInputStream.java
	(getChannel): New method.
	* java/io/FileOutputStream.java
	(getChannel): New method.
	* java/net/ServerSocket.java
	(bind): Removed duplicate code and called another bind method instead.
	* java/nio/channels/SelectionKey.java
	(isValid): Removed wrong exception documentation.
	* java/nio/channels/ServerSocketChannel.java
	(accept): Added exception documentation.
	(open): Fixed typo, added exception documentation.
	* java/nio/channels/spi/AbstractSelectableChannel.java
	(implCloseChannel): Added exception documentation.
	(add): Reformated.
	(register): Added exception documentation.

From-SVN: r59307
2002-11-20 16:19:08 +00:00
Rainer Orth
e6226a2f87 ltconfig (osf[345]): Append $major to soname_spec.
* ltconfig (osf[345]): Append $major to soname_spec.
	Reflect this in library_names_spec.
	* ltmain.sh (osf): Prefix $major with . for use as extension.

	boehm-gc:
	* ltconfig (osf[345]): Append $major to soname_spec.
	Reflect this in library_names_spec.
	* ltmain.sh (osf): Prefix $major with . for use as extension.

From-SVN: r59306
2002-11-20 15:59:07 +00:00
Andreas Jaeger
54d9d34a9b * configure: Regenerated with new libtool.m4.
From-SVN: r59305
2002-11-20 16:19:18 +01:00
Andreas Jaeger
3b75d2378c libtool.m4 (libtool_flags): Add patch from libtool CVS...
* libtool.m4 (libtool_flags): Add patch from libtool CVS: Support
	linking of 32-bit libraries with ld on the x86-64, ppc64, s390x
	and sparc64 GNU/Linux systems.

From-SVN: r59304
2002-11-20 16:18:53 +01:00
Eric Botcazou
6d1d1db044 20021120-1.c: New test.
* gcc.c-torture/compile/20021120-1.c: New test.
	* gcc.c-torture/compile/20021120-2.c: New test.

From-SVN: r59303
2002-11-20 10:50:29 +00:00
Eric Botcazou
02a362d982 re PR c/8518 (ICE when compiling mplayer)
PR c/8518
	* c-decl.c (duplicate_decls): Outline the second definition
	of an extern inline function in all cases.

From-SVN: r59302
2002-11-20 10:37:08 +00:00
Richard Sandiford
5354730bf6 stor-layout.c (place_field): Update rli->offset as well as rli->bitpos.
* stor-layout.c (place_field): Update rli->offset as well as
	rli->bitpos.

From-SVN: r59301
2002-11-20 10:09:01 +00:00
Richard Sandiford
5720520fc7 * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
From-SVN: r59300
2002-11-20 10:03:36 +00:00
Richard Sandiford
4392ebd361 sh.md (udivsi3): Don't put udivsi3_i4_media instructions into a libcall block.
* config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
	into a libcall block.
	(divsi3): Likewise divsi3_i4_media.

From-SVN: r59299
2002-11-20 09:59:28 +00:00
Richard Sandiford
3748bd9e22 global.c (find_reg): Check HARD_REGNO_NREGS before kicking out another register.
* global.c (find_reg): Check HARD_REGNO_NREGS before kicking
	out another register.

From-SVN: r59298
2002-11-20 09:52:14 +00:00
Jakub Jelinek
bc02f8d3f7 combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask (not just mask) are set in C.
* combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
	(not just mask) are set in C.

	* gcc.c-torture/execute/20021118-3.c: New test.

From-SVN: r59295
2002-11-20 10:43:20 +01:00
GCC Administrator
13b42735b6 Daily bump.
From-SVN: r59294
2002-11-20 08:17:15 +00:00
Andreas Jaeger
3bdcef4db4 loop.c (record_giv): Initialize not_replaceable.
* loop.c (record_giv): Initialize not_replaceable.
	(check_final_value): Likewise.

From-SVN: r59288
2002-11-20 07:14:54 +01:00
Mark Mitchell
ad2ae3b294 pt.c (for_each_template_parm): Free allocated memory.
* pt.c (for_each_template_parm): Free allocated memory.
	* search.c (is_subobject_of_p_1): New function.
	(is_subobject_of_p): Avoid walking virtual bases multiple times.

From-SVN: r59287
2002-11-20 05:17:01 +00:00
Kazu Hirata
ec5b0c68f3 h8300.c (h8300_init_once): Replace 1 with MASK_H8300S.
* config/h8300/h8300.c (h8300_init_once): Replace 1 with
	MASK_H8300S.

From-SVN: r59286
2002-11-20 05:04:31 +00:00
Vijay L. Khuspe
39ba95b5e1 h8300.c (h8300_init_once): Allow -mn switch only if -mh or -ms present.
* config/h8300/h8300.c (h8300_init_once): Allow -mn switch
	only if -mh or -ms present.
	(h8300_eightbit_constant_address_p): Support the normal mode.
	(h8300_tiny_constant_address_p): Likewise.
	* config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
	(POINTER_SIZE): Add 16 bit pointer for the normal mode.
	(Pmode): Evaluate to HImode for the normal mode.
	(SIZE_TYPE): Evaluate to unsigned int for normal mode.
	(PTRDIFF_TYPE): Evaluate to int for the normal mode.
	(ASM_WORD_OP): Evaluate to word for the normal mode.
	* config/h8300/h8300.md (tablejump_normal_mode): New.
	(indirect_jump_normal_mode): New.
	* config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
	directory.
	(MULTILIB_DIRNAMES): Create target dependent directory
	'normal'.
        (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
	* doc/invoke.texi (gccoptlist): Describe the new switch -mn.

From-SVN: r59285
2002-11-20 04:54:39 +00:00
Jonathan Wakely
dd768f5f25 howto.html: Fix example code...
2002-11-20  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/21_strings/howto.html: Fix example code, cite Gaby's
	explanation of "<unknown type>" error with toupper/tolower.
	* docs/html/22_locale/howto.html: Be more consistent with
	example in 21_strings.

From-SVN: r59284
2002-11-20 01:12:02 +00:00
Toon Moene
27dcc451f4 re PR fortran/8587 ((double complex zero)**(double prec number) = NAN instead of zero)
2002-11-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/8587
	* libF77/pow_zz.c: Handle (0.0, 0.0) ** power.

2002-11-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/8587
	* news.texi: Show PR fortran/8587 fixed.

From-SVN: r59280
2002-11-19 23:17:36 +00:00
Jan Hubicka
efcc70370b i386.md (length_immediate): Do not refer to insn address.
* i386.md (length_immediate): Do not refer to insn address.
	(jcc*, jmp patterns):  Compute length explicitly.

From-SVN: r59279
2002-11-19 22:52:40 +00:00
Tom Tromey
da98b11a83 natReference.cc (add_to_hash): Look at copy', not referent'.
* java/lang/ref/natReference.cc (add_to_hash): Look at `copy', not
	`referent'.
	(finalize_referred_to_object): Don't modify `referent' or `copy'
	fields.
	(add_to_hash): Correctly set `n->next' when updating list.
	* java/lang/ref/Reference.java (enqueue): Return false if already
	enqueued.

From-SVN: r59278
2002-11-19 21:59:41 +00:00
Ranjit Mathew
93745862c4 jni.h: Add missing JNICALL and JNIEXPORT attributes to function and function pointer...
2002-11-19  Ranjit Mathew <rmathew@hotmail.com>

	* include/jni.h: Add missing JNICALL and JNIEXPORT attributes
	to function and function pointer declarations in accordance with
	Sun's JDKs. Define JNIIMPEXP to either JNIEXPORT or JNIIMPORT
	based on whether __GCJ_JNI_IMPL__ has been defined or not.
	* jni.cc: Add missing JNICALL and JNIEXPORT attributes to
	JNI function definitions.

From-SVN: r59277
2002-11-19 21:23:28 +00:00
Eric Botcazou
d5fc82c51a 2002-11-19 �Eric Botcazou �<ebotcazou@libertysurf.fr>
* gcc.c-torture/compile/20021119-1.c: New test.

From-SVN: r59276
2002-11-19 20:19:50 +00:00
Eric Botcazou
35f1c975a3 re PR c/8588 (ICE in extract_insn, at recog.c:2148)
2002-11-19 �Eric Botcazou �<ebotcazou@libertysurf.fr>

	PR c/8588
	* optabs.c (expand_binop): Convert CONST_INTs in shift
	operations too.

From-SVN: r59274
2002-11-19 20:13:20 +00:00
Roger Sayle
a500466ba1 * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
From-SVN: r59271
2002-11-19 19:26:53 +00:00
Kazu Hirata
3b16115392 h8300.md (an anonymous pattern): Relax the condition to accept the same operands and/or subregs.
* config/h8300/h8300.md (an anonymous pattern): Relax the
	condition to accept the same operands and/or subregs.

From-SVN: r59270
2002-11-19 18:41:27 +00:00
Daniel Jacobowitz
85af47b9e6 sh.c (gen_shl_and): Revert previous patch.
* config/sh/sh.c (gen_shl_and): Revert previous patch.
        * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
        reload_completed.

From-SVN: r59269
2002-11-19 18:27:01 +00:00
Kazu Hirata
9675a91e9b h8300.c (print_operand): Update the use of EIGHTBIT_CONSTANT_ADDRESS_P.
* config/h8300/h8300.c (print_operand): Update the use of
	EIGHTBIT_CONSTANT_ADDRESS_P.
	(h8300_adjust_insn_length): Likewise.
	(h8300_eightbit_constant_address_p): Check if the given rtx is
	a variable with __attribute__((eightbit_data)).
	* config/h8300/h8300.h (OK_FOR_U): Update the use of
	EIGHTBIT_CONSTANT_ADDRESS_P.

From-SVN: r59263
2002-11-19 15:17:24 +00:00
John Gustafsson
c9a1e3d03a howto.html: Fix typo.
2002-11-19  John Gustafsson  <forgoil@rsn.bth.se>

	* docs/html/20_util/howto.html: Fix typo.

From-SVN: r59258
2002-11-19 11:32:10 +00:00
Nathan Sidwell
809108de46 * MAINTAINERS: Update email.
From-SVN: r59257
2002-11-19 10:57:58 +00:00
Gerald Pfeifer
7b61fa4da9 contrib.texi (Contributors): Add self as second contact in addition to Jeff Law.
* doc/contrib.texi (Contributors): Add self as second contact in
	addition to Jeff Law.

From-SVN: r59256
2002-11-19 08:25:01 +00:00
GCC Administrator
b9423ac22f Daily bump.
From-SVN: r59255
2002-11-19 08:18:06 +00:00
Andreas Jaeger
50aadcbcd9 tree-inline.c: Move prototpyes of find_alloca_call_1 and find_alloca_call to right place.
* tree-inline.c: Move prototpyes of find_alloca_call_1 and
	find_alloca_call to right place.

From-SVN: r59247
2002-11-19 08:11:42 +01:00
Kazu Hirata
dc65cd609e * cppfiles.c: Fix formatting.
From-SVN: r59245
2002-11-19 06:55:04 +00:00
Jason Thorpe
f3226a9001 gcc.c (The Specs Language): Document spec functions.
* gcc.c (The Specs Language): Document spec functions.
(static_spec_functions, lookup_spec_function)
(eval_spec_function, handle_spec_function)
(if_exists_spec_function, alloc_args): New.
(execute): Abort if processing_spec_function is true.
(do_spec_1): Hand off spec to handle_spec_function if %:
is encountered.  If processing_spec_function is true,
end any pending argument when the end of the string is reached.
(main): Use alloc_args to allocate the initial argument vector.
* gcc.h (struct spec_function): New.
(lang_specific_spec_functions): New extern.

* config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
(ENDFILE_SPEC): Add if-exists(crtn%O%s).
* config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.

* doc/invoke.texi: Document spec functions.

* cppspec.c (lang_specific_spec_functions): New.
* gccspec.c: Likewise.

* g++spec.c (lang_specific_spec_functions): New.

* g77spec.c (lang_specific_spec_functions): New.

* jvspec.c (lang_specific_spec_functions): New.

From-SVN: r59241
2002-11-19 04:37:50 +00:00
Jason Thorpe
3b312ef46f duff-1.c: New test.
* gcc.dg/duff-1.c: New test.
* gcc.dg/duff-2.c: New test.
* gcc.dg/duff-3.c: New test.

From-SVN: r59240
2002-11-19 04:27:13 +00:00
Steve Ellcey
08c42743e0 hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
* config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
	(FIXUNS_TRUNCTFDI2_LIBCALL): New.
	(fixunstfsi_libfunc): Change.
	(fixunstfdi_libfunc): Change.
	(sdiv_optab): Don't zero out SImode handler.
	(udiv_optab): Don't zero out SImode handler.
	(smod_optab): Don't zero out SImode handler.
	(umod_optab): Don't zero out SImode handler.

From-SVN: r59238
2002-11-18 23:21:42 +00:00
Jonathan Lennox
5bdb1440a1 streambuf.tcc (__copy_streambufs): verify __sbin->gptr() + __bufsize < __sbin->egptr() before using.
2002-11-18  Jonathan Lennox  <lennox@cs.columbia.edu>

	* include/bits/streambuf.tcc (__copy_streambufs): verify
	__sbin->gptr() + __bufsize < __sbin->egptr() before using.
	* testsuite/27_io/ostream_inserter_other.cc (test_buffer_4): Add.
	(test05): Use test_buffer_4.  Delete unused ostringstream
	variables.

From-SVN: r59234
2002-11-18 22:42:35 +00:00
Jesse Rosenstock
8c9aa0cba9 CoderResult.java (Cache.get): Fix a bug that was causing CoderResults to be cached...
2002-11-18  Jesse Rosenstock <jmr@ugcs.caltech.edu>

        * java/nio/charset/CoderResult.java (Cache.get): Fix a bug
        that was causing CoderResults to be cached, not WeakReferences
        to CoderResults.

From-SVN: r59233
2002-11-18 21:31:12 +00:00
Neil Booth
8128cccfcf re PR preprocessor/8524 (_Pragma within macros is improperly expanded)
PR preprocessor/8524
	* cpplib.c (run_directive): Remove previous kludge to _Pragma.
	Add a new one in its place, which hopefully works.
	(skip_rest_of_line): Change test for bottom-of-context-stack.
testsuite:
	* gcc.dg/cpp/_Pragma5.c: New test.

From-SVN: r59232
2002-11-18 20:43:40 +00:00
Jan Hubicka
9519920205 i386.md (addqi_1_slp): Fix output template.
* i386.md (addqi_1_slp): Fix output template.
	(subqi_1_slp): Fix type.

From-SVN: r59230
2002-11-18 20:32:56 +00:00