Commit Graph

50192 Commits

Author SHA1 Message Date
Paolo Carlini
c5b6351bd6 fstream.tcc (_M_convert_to_external): Don't check for __ilen > 0.
2003-05-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (_M_convert_to_external): Don't
	check for __ilen > 0.

From-SVN: r67240
2003-05-30 11:39:56 +00:00
Matt Kraai
61d74548d6 Remove conflict marker.
From-SVN: r67239
2003-05-30 00:50:32 +00:00
Matt Kraai
8fdf766886 gthr-gnat.c: Remove #undef UNUSED.
* gthr-gnat.c: Remove #undef UNUSED.
	(__gnat_default_lock, __gnat_default_unlock): Prototype.
	(__gnat_task_lock, __gnat_task_unlock): Make declarations
	prototypes.
	(__gnat_install_locks): Convert declaration to ISO C90, make
	parameter declarations prototypes, and remove blank line.
	* gthr-gnat.h (__gnat_install_locks): Make parameter
	declarations prototypes.

From-SVN: r67238
2003-05-30 00:43:08 +00:00
GCC Administrator
f0ae2326c0 Daily bump.
From-SVN: r67236
2003-05-30 00:16:06 +00:00
Jason Merrill
a7db751ae5 * Makefile.in (unstrap): Remove stage_last after make unstage1.
From-SVN: r67233
2003-05-29 19:05:39 -04:00
Roger Sayle
af7387cae5 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
From-SVN: r67232
2003-05-29 21:36:52 +00:00
Jason Merrill
ac850948a6 add comment
From-SVN: r67231
2003-05-29 17:33:50 -04:00
Roger Sayle
d90f988266 re PR bootstrap/10169 (Bootstrap fails on mainline with Tru64 5.1B)
PR bootstrap/10169
	* mips-tfile.c (main): Use getopt_long instead of getopt.
	Add new command line option --version to display version.
	Treat --verbose like -v to report a single line version.
	(options): New global variable for getopt_long.
	* mips-tdump.c (main): Use getopt_long instead of getopt.
	New command line options -v, --version and -verbose to display
	the program version number (to match mips-tfile's behavior).
	(options): New global variable for getopt_long.

	* gcov.c (options): Zero-terminate getopt_long array.
	* gcov-dump.c (options): Likewise.

	* Makefile.in (mips-tdump.o): Add dependency on version.h.

Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

From-SVN: r67230
2003-05-29 21:33:35 +00:00
Stan Shebs
1c36b2f912 Remove OBJC_PROLOGUE everywhere.
* objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
	* config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
	* config/d30v/d30v.h: Similarly.
	* config/ip2k/ip2k.h: Similarly.
	* doc/tm.texi: Remove doc of OBJC_PROLOGUE.

From-SVN: r67229
2003-05-29 21:13:35 +00:00
Gabriel Dos Reis
f37e2274d0 decl.c (ENABLE_SCOPE_CHECKING): Rename from DEBUG_BINDING_LEVELS.
* decl.c (ENABLE_SCOPE_CHECKING): Rename from DEBUG_BINDING_LEVELS.
        (binding_depth): Unconditionally define.
        (is_class_level): Likewise.
        (indent): Likewise.  Take an indenting parameter.
        (push_binding_level): Remove conditional definittion.
        (pop_binding_level): Likewise.
        (suspend_binding_level): Likewise.
        (resume_binding_level): Likewise.
        (pushlevel): Likewise.
        (pushlevel_class): Likewise.
        (poplevel_class): Likewise.
        (pop_everything): Likewise.

From-SVN: r67226
2003-05-29 17:25:04 +00:00
Roger Sayle
833e1a7724 builtins.c (cos_builtin, [...]): Delete.
* builtins.c (cos_builtin, sin_builtin, sqrt_builtin): Delete.
	(builtin_record): Add an additional builtin_code field to
	record which GCC built-in corresponds to the Java function.
	(java_builtins):  Add new entries for atan, atan2, exp, log,
	pow and tan.
	(max_builtin, min_builtin, abs_builtin): Perform constant
	folding on the resulting tree.
	(java_build_function_call_expr): Likewise, perform constant
	folding on the resulting tree.
	(initialize_builtins): The NULL creators are now allowed in
	the java_builtins table, which is now terminated by an entry
	with builtin_code == END_BUILTINS.
	(check_for_builtin): Likewise.  If the matching creator is
	NULL, construct the call using java_build_function_call_expr
	directly with the decl for the corresponding builtin_code.

From-SVN: r67225
2003-05-29 16:38:04 +00:00
Roger Sayle
0b82d59c03 c-semantics.c (genrtl_do_stmt_1): New function split out from...
* c-semantics.c (genrtl_do_stmt_1): New function split out from...
	(gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
	(expand_unreachable_stmt): Expand unreachable while statements
	using genrtl_do_stmt_1.

	* gcc.dg/duff-4.c: New test case.

From-SVN: r67224
2003-05-29 16:33:47 +00:00
Paolo Carlini
86f6262d61 [multiple changes]
2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>

	PR libstdc++/10783
	* include/bits/stl_iterator.h (class __normal_iterator):
	Don't inherit from iterator, add missing typedefs.

2003-05-29  Paolo Carlini <pcarlini@unitus.it>

	* testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
	* testsuite/24_iterators/reverse_iterator/1.cc: New.
	* testsuite/24_iterators/reverse_iterator/2.cc: New.
	* testsuite/24_iterators/reverse_iterator/3.cc: New, from
	PR libstdc++/10783.

From-SVN: r67223
2003-05-29 12:21:26 +00:00
Gabriel Dos Reis
5f52c0e090 name-lookup.h (global_scope_p): New macro.
* name-lookup.h (global_scope_p): New macro.
        * decl.c (pop_binding_level): Use it.  Don't refer directly to
        global_binding_level.
        (suspend_binding_level): Likewise.
        (global_bindings_p): Likewise.
        (print_other_binding_stack): Likewise.
        (print_binding_stack): Likewise.
        (maybe_push_to_top_level): Likewise.
        (pushdecl_namespace_level): Likewise.
        (cxx_init_decl_processing): Likewise.
        (start_decl): Likewise.
        (cp_finish_decl): Likewise.
        (start_function): Likewise.
        (global_binding_level): Remove.

From-SVN: r67221
2003-05-29 11:04:10 +00:00
Richard Sandiford
c8520e562e mips-protos.h (mips_output_load_label): Declare.
* config/mips/mips-protos.h (mips_output_load_label): Declare.
	* config/mips/mips.c (mips_output_load_label): New function.
	(mips_output_conditional_branch): Use it.
	* config/mips/mips.md (jump): And here.

From-SVN: r67220
2003-05-29 08:33:25 +00:00
Michael Meissner
39d85b61e3 Remove myself as m32r/v850 maintainer
From-SVN: r67219
2003-05-29 00:22:36 +00:00
GCC Administrator
b6590efb2f Daily bump.
From-SVN: r67217
2003-05-29 00:16:07 +00:00
Bob Wilson
633e4eb4ae xtensa-protos.h (smalloffset_double_mem_p): Delete.
* config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
        (xtensa_split_operand_pair): New proto.
        * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
        (smalloffset_double_mem_p): Delete.
        (gen_float_relational, printx, print_operand, xtensa_va_arg):
        Fix whitespace.
        (xtensa_split_operand_pair): New.
        (xtensa_dbx_register_number): Fix formatting.
        * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
        * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
        instead of splitting them into single-word moves.  Remove unnecessary
        checks for reload_in_progress and reload_completed.
        (movdi_internal, movdf_internal): Change to post-reload split patterns.
        Add constraints to allow constant operands.
        (movsf_internal): Allow CONST_INT operands.

From-SVN: r67215
2003-05-29 00:08:36 +00:00
Danny Smith
358bdeeec7 Fix ChangeLog whitespace for last commit.
From-SVN: r67214
2003-05-28 21:17:07 +00:00
Danny Smith
02c67fd1bf config.gcc (i[34567]86-*-mingw32*): Add host makefile fragment i386/x-mingw32.
* config.gcc (i[34567]86-*-mingw32*): Add host makefile
        fragment i386/x-mingw32.
	* config/i386/x-mingw32: New file. Make local_includedir
	relative to EXEC_PREFIX.

From-SVN: r67213
2003-05-28 21:06:23 +00:00
Aaron W. LaFramboise
0bcbfabb35 mingw32.h (STANDARD_INCLUDE_DIR): Update.
2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>

	* config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
	(MD_STARTFILE_PREFIX): Define.

From-SVN: r67212
2003-05-28 20:54:19 +00:00
Denis Chertykov
291aac59a5 cselib.c (cselib_invalidate_regno): Abort if hardreg have a VOIDmode.
* cselib.c (cselib_invalidate_regno): Abort if hardreg have a
	VOIDmode.
	* cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
	call of cselib_invalidate_regno.

From-SVN: r67210
2003-05-28 23:18:29 +04:00
DJ Delorie
afc2b62dae Makefile.tpl: Make maybe-check-gcc .PHONY.
* Makefile.tpl: Make maybe-check-gcc .PHONY.
* Makefile.in: Regenerate.

From-SVN: r67209
2003-05-28 15:15:38 -04:00
Daniel Jacobowitz
0d2a303ea9 linux.h (LIB_SPEC): Add missing -lc and correct -lthread to -lpthread.
* config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
	-lthread to -lpthread.

From-SVN: r67208
2003-05-28 18:00:52 +00:00
Gerald Pfeifer
16ac82af48 snapshot-index.html: Refer to .bz2 files instead of .gz files.
* snapshot-index.html: Refer to .bz2 files instead of .gz files.
	Simplify the note on not using unannounced snapshots.

From-SVN: r67207
2003-05-28 15:14:37 +00:00
Eric Botcazou
6bf1ffe18c inclhack.def: Add missing declaration of getpagesize() to unistd.h on Solaris 2.5.1.
* fixinc/inclhack.def: Add missing declaration of getpagesize()
	to unistd.h on Solaris 2.5.1.
	Fix prototype of recv() and send() in sys/socket.h on
	Solaris 2.5.1 and 2.6.
	* fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
	* fixinc/tests/base/sys/socket.h: Add solaris_socket test.
	* fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
	* fixinc/fixincl.x: Regenerate.

From-SVN: r67206
2003-05-28 11:53:34 +00:00
Gerald Pfeifer
7101ac35a4 snapshot-README: Refer to .bz2 files instead of .gz files.
* snapshot-README: Refer to .bz2 files instead of .gz files.
	Add a note on where to find the diff files.
	Simplify the note on not using unannounced snapshots.
	Remove documentation of the gcc_latest_snapshot tag.

From-SVN: r67205
2003-05-28 11:23:36 +00:00
GCC Administrator
50564328ee Daily bump.
From-SVN: r67203
2003-05-28 00:16:06 +00:00
Jason Merrill
066f50a9e7 tree.c (expr_first, [...]): New fns.
* tree.c (expr_first, expr_length): New fns.
        * tree.h: Declare them.

        * tree.c (iterative_hash_expr): Hash commutative expressions
        consistently.

From-SVN: r67201
2003-05-27 18:53:01 -04:00
Brendan Kehoe
f85716e06e locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and make sure the number of digits required after the...
2003-05-26  Brendan Kehoe  <brendan@zen.org>

    * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
    make sure the number of digits required after the decimal-point
    (if any) is exactly the value returned by frac_digits().
    * testsuite/22_locale/money_get/get/char/9.cc: New.
    * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.

From-SVN: r67196
2003-05-27 18:44:26 -04:00
Steve Ellcey
ed0d100f7c os_defines.h: Define _LIBUNWIND_STD_ABI if we are on IA64 HP-UX.
* config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
	on IA64 HP-UX.
	* libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
	_LIBUNWIND_STD_ABI is set.

From-SVN: r67193
2003-05-27 21:45:48 +00:00
Brendan Kehoe
87a7c5a1ef locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and make sure the number of digits required after the...
2003-05-26  Brendan Kehoe  <brendan@zen.org>

    * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
    make sure the number of digits required after the decimal-point
    (if any) is exactly the value returned by frac_digits().

From-SVN: r67192
2003-05-27 17:14:49 -04:00
Jason Merrill
87192773c4 revert change on wrong branch
From-SVN: r67191
2003-05-27 15:59:13 -04:00
Richard Kenner
7a6cdb44fd tree.h (contains_placeholder_p): Now returns bool.
* tree.h (contains_placeholder_p): Now returns bool.
	(CONTAINS_PLACEHOLDER_P): New macro.
	(type_contains_placeholder_p): New function.
	* tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
	(contains_placeholder_p): Now returns bool.
	Rework to use CONTAINS_PLACEHOLDER_P macro.
	(type_contains_placeholder_p): New function.
	* fold-const.c (fold, case COMPONENT_REF): Don't fold if
	type_contains_placeholder_p.
	(fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
	Use CONTAINS_PLACEHOLDER_P macro.
	* builtins.c (fold_builtin): Likewise.
	* calls.c (initialize_argument_information): Likewise.
	* emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
	* explow.c (expr_size): Likewise.
	* expr.c (store_constructor, get_inner_reference): Likewise.
	* function.c (assign_parms): Likewise.
	* stor-layout.c (variable_size): Likewise.

From-SVN: r67189
2003-05-27 14:44:57 -04:00
Jason Merrill
86982c71d1 c-simplify.c (simplify_switch_stmt): A SWITCH_EXPR also gets the source location of its first line.
* c-simplify.c (simplify_switch_stmt): A SWITCH_EXPR also gets the
        source location of its first line.

From-SVN: r67188
2003-05-27 12:09:28 -04:00
Jonathan Wakely
0f35d19264 std_istream.h, [...]: Typo in comment.
2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>

	* include/std/std_istream.h, include/std/std_ostream.h: Typo in comment.

From-SVN: r67187
2003-05-27 14:29:39 +01:00
Gerald Pfeifer
0a1c5051cb gcc_release (build_diffs): Add diagnostics in case we cannot generate a specific diff file.
* gcc_release (build_diffs): Add diagnostics in case we cannot
	generate a specific diff file.

From-SVN: r67186
2003-05-27 13:26:23 +00:00
Michael Koch
98ad580793 2003-05-27 Michael Koch <konqueror@gmx.de>
* java/util/zip/Deflater.java
	(FILTERED): Merged documentation from classpath.
	* java/util/zip/DeflaterOutputStream.java
	(DeflaterOutputStream): Merged documentation and argument validity
	check from classpath.
	(deflate): Merged documentation from classpath.
	(finish): Likewise.
	* java/util/zip/Inflater.java
	(Inflater): Merged class documentation from classpath.
	(zstream): Reordered.
	(is_finished): Reordered.
	(dict_needed): Reordered.
	(Inflater): Reordered, merged documentation from classpath.
	(end): Likewise.
	(finalize): Merged documentation from classpath.
	(finished): Likewise.
	(getAdler): Likewise.
	(getRemaining): Likewise.
	(getTotalIn): Likewise.
	(getTotalOut): Likewise.
	(inflate): Likewise.
	(needsDictionary): Likewise.
	(needsInput): Likewise.
	(reset): Likewise.
	(setDictionary): Likewise.
	(setInput): Likewise.

From-SVN: r67185
2003-05-27 06:34:29 +00:00
Michael Koch
5191f392bb 2003-05-27 Michael Koch <konqueror@gmx.de>
* java/net/URLConnection.java
	(getHeaderFieldInt): Merged with classpath.

From-SVN: r67184
2003-05-27 06:17:57 +00:00
Michael Koch
c414a2c3c9 2003-05-27 Michael Koch <konqueror@gmx.de>
* java/io/PrintStream.java
	(PrintStream): Reformatted.
	(PrintStream): New method, merged from classpath.
	(write): Reformatted.

From-SVN: r67183
2003-05-27 06:04:28 +00:00
Michael Koch
91adbcf731 System.java: Explicitely import needed classes.
2003-05-27  Michael Koch  <konqueror@gmx.de>

	* java/lang/System.java:
	Explicitely import needed classes.

From-SVN: r67182
2003-05-27 06:03:14 +00:00
David Billinghurst
d6a9f13bee re PR fortran/10843 (g77 -ffree-form rejects "GO TO".)
2003-05-27  David Billinghurst (David.Billinghurst@riotinto.com)

	PR fortran/10843
	* g77.dg/ffixed-form-1.f: New test
	* g77.dg/ffixed-form-2.f: New test
	* g77.dg/ffree-form-2.f: New test - XFAIL pending fix
	* g77.dg/ffree-form-3.f: New test

From-SVN: r67181
2003-05-27 05:07:58 +00:00
GCC Administrator
87bd5437e0 Daily bump.
From-SVN: r67179
2003-05-27 00:16:08 +00:00
Andreas Tobler
634a569414 wchar_t-1.c: XFAIL on darwin, no wchar.h available.
2003-05-26  Andreas Tobler <a.tobler@schweiz.ch>

        * gcc.dg/wchar_t-1.c: XFAIL on darwin, no wchar.h available.
        * gcc.dg/wint_t-1.c: Likewise.

From-SVN: r67176
2003-05-26 20:10:20 +02:00
Benjamin Kosnik
002bd6069c re PR libstdc++/9339 (filebuf::pubsetbuf(0, 0) doesn't turn off buffering)
2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/9339
	* include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
	(_M_pback): No array necessary.
	* include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
	unbuffered case, coalesec into ...
	(basic_filebuf::overflow): ...this.
	* testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
	* testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.

From-SVN: r67175
2003-05-26 14:54:42 +00:00
Michael Koch
b91c701d19 NetPermission.java, [...]: New versions from classpath.
2003-05-26  Michael Koch  <konqueror@gmx.de>

	* java/net/NetPermission.java,
	java/net/NetworkInterface.java,
	java/net/PasswordAuthentication.java,
	java/net/SocketPermission.java:
	New versions from classpath.

From-SVN: r67174
2003-05-26 12:58:02 +00:00
GCC Administrator
8729d659a7 Daily bump.
From-SVN: r67172
2003-05-26 00:16:08 +00:00
Gabriel Dos Reis
d576d0438d diagnostic.h (output_verbatim, verbatim): Remove printf attribute.
* diagnostic.h (output_verbatim, verbatim):  Remove  printf
	attribute.

From-SVN: r67169
2003-05-25 20:36:30 +00:00
Gerald Pfeifer
658789374a * doc/contrib.texi (Contributors): Update Kean Johnston.
From-SVN: r67167
2003-05-25 18:48:45 +00:00
Kriang Lerdsuwanakij
b7fc8b576e parser.c (cp_parser_explicit_instantiation): Restore old access before template instantiation.
* parser.c (cp_parser_explicit_instantiation): Restore old
	access before template instantiation.

	* g++.dg/template/access11.C: New test.

From-SVN: r67166
2003-05-25 12:59:22 +00:00