Commit Graph

50963 Commits

Author SHA1 Message Date
Gabriel Dos Reis
84cc377e7f PC c++/10864
PC c++/10864
	* call.c (op_error): Tidy.
	* error.c (dump_expr): Properly format 'T()' when T is an
	aggregate type.

From-SVN: r68309
2003-06-21 16:43:44 +00:00
Neil Booth
058de654c5 Makefile.in: Update.
* Makefile.in: Update.
	* c-opts.c (c_common_handle_option): Don't return -1.
	* common.opt: New switches.
	* opts.c: Include rtl.h, ggc.h and output.h.
	(find_opt): Only stop searching when input switch compares
	less than the stored switch.  Continue searching if greater.
	(handle_option): No need to handle negative return values.
	(common_handle_option): Handle new switches.
	(set_fast_math_flags, fast_math_flags_set_p): New.
	* toplev.c (set_fast_math_flags, fast_math_flags_set_p):
	Move to opts.c.
	(decode_f_option): Some switches moved to opts.c.
	(parse_options_and_default_flags): No need to cater for negative
	return values.
f:
	* top.c (ffe_handle_option): No need to return -1 any more.

From-SVN: r68307
2003-06-21 15:59:31 +00:00
Michael Koch
6ecaa2701d PlainSocketImpl.java: Reformatted.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/net/PlainSocketImpl.java:
	Reformatted.
	(PlainSocketImpl): Merged class documentaion with classpath.
	(in): Moved.
	(out): Moved.
	(PlainSocketImpl): New empty constructor.
	(finalize): Moved.
	(setOption): Merged documentation from classpath.
	(getOption): Likewise.
	(create): Likewise.
	(connect): Likewise.
	(bind): Likewise.
	(listen): Likewise.
	(accept): Likewise.
	(available): Likewise.
	(close): Likewise.
	(read): Likewise.
	(write): Likewise.
	(getInputStream): Made synchronozed to get sure that only one stream
	object can be created for this socket, merged documentation from
	classpath.
	(getOutputStream): Likewise.

From-SVN: r68305
2003-06-21 14:02:10 +00:00
Michael Koch
5d938b1ac5 PlainSocketImpl.java: Reformatting.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/net/PlainSocketImpl.java:
	Reformatting.
	(static): New implicit method.
	(read): Made package private.
	(write): Likewise.

From-SVN: r68304
2003-06-21 13:24:13 +00:00
Gabriel Dos Reis
dfbeb0610e re PR c++/10915 (a not-useful non-avoidable warning: conversion to a reference to the same type will never use a type conversion operator)
testsuite/
        * g++.old-deja/g++.jason/conversion5.C: Adjust option.
        * g++.old-deja/g++.bugs/900215_01.C: Likewise.

cp/
        PR c++/10915
        * decl.c (grok_op_properties): Warn possible confusing conversion
        only if -Wconversion.

From-SVN: r68303
2003-06-21 13:09:05 +00:00
Michael Koch
6f705fc773 SimpleTimeZone.java: Removed unneeded import, reformatting.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/util/SimpleTimeZone.java:
	Removed unneeded import, reformatting.

From-SVN: r68301
2003-06-21 12:49:39 +00:00
Michael Koch
73c7dd50e8 DateFormat.java, [...]: New versions from classpath.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/text/DateFormat.java,
	java/text/SimpleDateFormat.java,
	java/util/Locale.java:
	New versions from classpath.

From-SVN: r68300
2003-06-21 12:42:26 +00:00
Michael Koch
5ee8128f1b SpinnerModel.java: New file from classpath.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* javax/swing/SpinnerModel.java:
	New file from classpath.
	* javax/swing/border/LineBorder.java,
	javax/swing/border/SoftBevelBorder.java,
	javax/swing/plaf/BorderUIResource.java,
	javax/swing/plaf/basic/BasicBorders.java:
	New versions from classpath.
	* javax/swing/plaf/basic/doc-files/BasicBorders.MenuBarBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.RadioButtonBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneBorder-2.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneDividerBorder-1.png,
	javax/swing/plaf/basic/doc-files/BasicBorders.ToggleButtonBorder-1.png:
	New binary files from classpath.

From-SVN: r68299
2003-06-21 12:02:11 +00:00
Jan Hubicka
70642ee3e6 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
From-SVN: r68298
2003-06-21 11:51:36 +00:00
Kazu Hirata
025299027b h8300-protos.h: Add a prototype for same_cmp_preceding_p.
* config/h8300/h8300-protos.h: Add a prototype for
	same_cmp_preceding_p.
	* config/h8300/h8300.c (same_cmp_preceding): New.
	* config/h8300/h8300.md: Extend peephole2's that transform
	compare:SI into shorter sequences so that they can deal with
	signed comparisons.

From-SVN: r68296
2003-06-21 11:32:54 +00:00
Michael Koch
2d0c9050c3 LogRecord.java, [...]: New files from classpath.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/util/logging/LogRecord.java,
	java/util/logging/Logger.java,
	java/util/logging/SocketHandler.java,
	java/util/logging/SimpleFormatter.java,
	java/util/logging/Formatter.java,
	java/util/logging/ErrorManager.java,
	java/util/logging/Handler.java,
	java/util/logging/FileHandler.java,
	java/util/logging/LogManager.java,
	java/util/logging/Level.java,
	java/util/logging/ConsoleHandler.java,
	java/util/logging/StreamHandler.java,
	java/util/logging/LoggingPermission.java,
	java/util/logging/Filter.java,
	java/util/logging/MemoryHandler.java,
	java/util/logging/XMLFormatter.java:
	New files from classpath.

From-SVN: r68295
2003-06-21 10:31:55 +00:00
Gerald Pfeifer
c18cd64247 contrib.texi (Contributors): Use Windows instead of Win32.
* doc/contrib.texi (Contributors): Use Windows instead of Win32.

	Update Andreas Jaeger's entry.

	Merge the two entries of Kaveh Ghazi, David Edelsohn, and
	Loren J. Rittle.

From-SVN: r68293
2003-06-21 08:26:29 +00:00
Nathanael Nerode
5e7537cf99 * mkconfig.sh: Add multiple inclusion guards to generated headers.
From-SVN: r68292
2003-06-21 05:20:05 +00:00
GCC Administrator
87b60e6481 Daily bump.
From-SVN: r68290
2003-06-21 00:16:09 +00:00
Doug Gregor
8dbe14becf Testsuite corrections
From-SVN: r68288
2003-06-20 23:40:11 +00:00
Neil Booth
e01cc6dc62 c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
* c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
	* common.opt: Add remaining -W options and -g.
	* diagnostic.c (warnings_are_errors): Remove.
	* flags.h: Make most warning flags boolean.
	* opts.c (common_handle_option): Handle remaining -W options, and -g.
	Move many warning flags from toplev.c, making them boolean.
	* toplev.c: Remove many warning flags.
	(decode_W_option): Remove.
	(decode_g_option): Make extern.  Error on unknown switch.
	(lang_independent_W_options): Use warn_dummy.
	(independent_decode_option): Just handle -f switches now.
	* toplev.h (decode_g_option): New.

From-SVN: r68287
2003-06-20 22:56:36 +00:00
Doug Gregor
bdb0f0f5d2 fix basic_string::replace for integral types
From-SVN: r68286
2003-06-20 22:12:18 +00:00
Aldy Hernandez
49a2166f17 rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for vectors.
2003-06-20  Aldy Hernandez  <aldyh@redhat.com>

	PR/11092
	* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
	vectors.

From-SVN: r68284
2003-06-20 20:16:24 +00:00
Aldy Hernandez
1a3f10e265 rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for vectors.
2003-06-20  Aldy Hernandez  <aldyh@redhat.com>

	PR/11092
	* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
	vectors.

[[Split portion of a mixed commit.]]

From-SVN: r68283.2
2003-06-20 20:16:17 +00:00
Kelley Cook
e819ee4487 * opts.sh: Tweak awk script for portability.
From-SVN: r68282
2003-06-20 20:07:51 +00:00
Mark Mitchell
ae4a71552f re PR c++/10888 (inlining failure for allocate in ~vector())
PR c++/10888
	* tree-inline.c (expand_call_inline): Do not warn about failing to
	inline functions declared in system headers.
	* doc/invoke.texi (-Winline): Expand on documentation.

	PR c++/10888
	* g++.dg/warn/Winline-3.C: New test.

From-SVN: r68281
2003-06-20 19:55:29 +00:00
Richard Henderson
4739b00e52 alpha.c (alpha_file_start): Disable file_start_file_directive for ELF and not MDEBUG.
* config/alpha/alpha.c (alpha_file_start): Disable
        file_start_file_directive for ELF and not MDEBUG.

From-SVN: r68280
2003-06-20 12:37:17 -07:00
J"orn Rennecke
9218882a10 * sh.h (ROUND_TYPE_ALIGN): Remove.
From-SVN: r68279
2003-06-20 20:28:13 +01:00
Mark Mitchell
3348ded5b7 target-supports.exp (check_alias_available): Make the test program acceptable to the Solaris assembler.
* lib/target-supports.exp (check_alias_available): Make the test
	program acceptable to the Solaris assembler.

From-SVN: r68277
2003-06-20 19:11:07 +00:00
Mark Mitchell
66d418e657 re PR c++/10749 (triple nested template classes in namespace need to qualify ns)
PR c++/10749
	* parser.c (cp_parser_class_head): See through dependent names
	when parsing a class-head.

	PR c++/10749
	* g++.dg/template/memclass2.C: New test.

From-SVN: r68276
2003-06-20 18:55:47 +00:00
Richard Henderson
a3424f5c1e hooks.c (hook_int_void_no_regs): Rename from hook_reg_class_void_no_regs; change return type.
* hooks.c (hook_int_void_no_regs): Rename from
        hook_reg_class_void_no_regs; change return type.
        * hooks.h: Update.
        * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
        * target.h (branch_target_register_class): Change return type to int.
        Add documentation.
        * config/sh/sh.c (sh_target_reg_class): Change return type.
        * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.

From-SVN: r68275
2003-06-20 10:30:05 -07:00
Andreas Tobler
3a9476696c c-format.c: Change _Bool to bool reverting part of the last patch.
2003-06-20  Andreas Tobler <toa@pop.agri.ch>

	* c-format.c: Change _Bool to bool reverting part of the last
	patch.

From-SVN: r68273
2003-06-20 18:36:09 +02:00
Mark Mitchell
a3237033a1 gcc-dg.exp (dg-xfail-if): Do not process conditional xfail data for non-matching targets.
* lib/gcc-dg.exp (dg-xfail-if): Do not process conditional xfail
	data for non-matching targets.
	* gcc.c-torture/compile/simd-5.c: Fix typo in conditional xfail.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r68272
2003-06-20 16:10:13 +00:00
Mark Mitchell
68361a0396 re PR c++/10845 (template member function (getting a nested template as parameter) cannot be called anymore if another unrelated template member function is defined.)
PR c++/10845
	* pt.c (try_class_unification): Correct handling of member class
	templates.

	* semantics.c (genrtl_finish_function): Adjust
	expand_function_end call.

From-SVN: r68269
2003-06-20 15:44:25 +00:00
Benjamin Kosnik
f5a6463ed6 testsuite_performance.h (resource_counter): Don't use mallinfo at the moment.
2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/testsuite_performance.h (resource_counter): Don't use
	mallinfo at the moment.

From-SVN: r68268
2003-06-20 15:26:23 +00:00
John David Anglin
b5adda7307 som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to strip name encoding.
* som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
	strip name encoding.

From-SVN: r68267
2003-06-20 14:08:35 +00:00
Rainer Orth
807ca3d4c4 re PR driver/9362 (solaris 'as' dies when fed .s and "-gstabs")
* configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
	* configure: Regenerate.
	Fixes PR driver/9362.

From-SVN: r68266
2003-06-20 13:59:31 +00:00
Richard Kenner
cc550dce3b * config/alpha/alpha.c (alpha_file_start): Fix typo.
From-SVN: r68264
2003-06-20 09:24:55 -04:00
Rainer Orth
9e21232cfb mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg to ASM_OUTPUT_SOURCE_LINE.
* config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
	to ASM_OUTPUT_SOURCE_LINE.

From-SVN: r68262
2003-06-20 12:16:26 +00:00
Michael Koch
319d764525 2003-06-20 Michael Koch <konqueror@gmx.de>
* java/io/ObjectStreamField.java
	(unshared): new member variable.
	(ObjectStreamField): New constructor.
	(isUnshared): New method.

From-SVN: r68261
2003-06-20 12:13:19 +00:00
Michael Koch
f8b7363eed 2003-06-20 Michael Koch <konqueror@gmx.de>
* java/net/URLStreamHandler.java
	(hostsEqual): Rewritten.

From-SVN: r68260
2003-06-20 12:07:22 +00:00
Michael Koch
c52c9fec50 MappedByteFileBuffer.java, [...]: Removed
2003-06-20  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/MappedByteFileBuffer.java,
	gnu/java/nio/natMappedByteFileBuffer.cc:
	Removed
	* java/nio/MappedByteBufferImpl.java:
	New file.
	* gnu/java/nio/FileChannelImpl.java:
	Use MappedByteBufferImpl instead of MappedByteFileBuffer.
	* Makefile.am
	(ordinary_java_source_files): Removed
	gnu/java/nio/MappedByteFileBuffer.java and added
	java/nio/MappedByteBufferImpl.java.
	(nat_source_files): Removed gnu/java/nio/natMappedByteFileBuffer.cc
	* Makefile.in: Regenerated.

From-SVN: r68259
2003-06-20 12:01:54 +00:00
Daniel Egger
27a3e49454 install.texi (Building): Correct and improve statement about parallel builds.
* doc/install.texi (Building): Correct and improve statement
	about parallel builds.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

From-SVN: r68257
2003-06-20 11:18:03 +00:00
Andreas Jaeger
a742c759f9 c-common.c: Change _Bool to bool reverting part of the last patch.
* c-common.c: Change _Bool to bool reverting part of the last
	patch.

From-SVN: r68256
2003-06-20 12:00:22 +02:00
Nathan Sidwell
1f9cc6db1b tree.h (expand_function_end): Remove all parameters.
* tree.h (expand_function_end): Remove all parameters.
	* function.c (expand_function_end): Remove all parameters.
	Use input_location. Never expand_end_bindings.
	* c-decl.c (c_expand_body_1): Adjust expand_function_end call.
	* coverage.c (create_coverage): Likewise.

	* ada/utils.c (end_subprog_body): Adjust expand_function_end
	call.

	* cp/semantics.c (genrtl_finish_function): Adjust
	expand_function_end call.

	* f/com.c (finish_function): Adjust expand_function_end call.

	* java/class.c (push_class): Use a location_t to save place.
	(emit_register_classes): Set input_location. Adjust
	expand_function_end call.
	* java/resource.c (write_resource_constructor): Likewise.
	* java/decl.c (end_java_method): Adjust expand_function_end call.
	* java/parse.y (source_end_java_method): Likewise.

	* treelang/treetree.c (tree_code_create_function_wrapup): Adjust
	expand_function_end call.

From-SVN: r68255
2003-06-20 09:08:23 +00:00
Matthias Klose
bbdfb3e821 configure.host: Set try_cpu to target_cpu for existing baseline files.
2003-06-20  Matthias Klose  <doko@debian.org>

        * configure.host: Set try_cpu to target_cpu for existing
        baseline files.

From-SVN: r68254
2003-06-20 08:10:54 +00:00
Nick Clifton
4bc730184b (ARM Built-in Functions): New node.
(ARM Built-in Functions): New node.  Document ARM builtin functions for iWMMXt
support.

From-SVN: r68252
2003-06-20 08:08:20 +00:00
Eric Botcazou
8f2afc2131 install.texi (--with-gnu-as): Mention SPARC/Solaris and SPARC64/Solaris as platforms where --with-gnu-as...
* doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
	SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
	(--with-as): Add @anchor.
	(--with-gnu-ld): Fix typo.
	(--with-ld): Add @uref to --with-as.

From-SVN: r68249
2003-06-20 08:00:02 +00:00
Zack Weinberg
a2c4f8e065 tm.texi: Uniformly use @defmac for macros, rather than @table items.
* doc/tm.texi: Uniformly use @defmac for macros, rather than
	@table items.  Minor formatting and editorial corrections.

From-SVN: r68248
2003-06-20 06:41:12 +00:00
Mark Mitchell
00cf3e31fd re PR c++/10939 (ICE with templated code)
PR c++/10939
	* pt.c (tsubst_decl): Do not try to substitute into non-dependent
	functions.
	(value_dependent_expression_p): Correct logic for FUNCTION_DECLs.

	PR c++/10939
	* g++.dg/template/func1.C: New test.

From-SVN: r68244
2003-06-20 05:52:43 +00:00
Neil Booth
e2b9853b29 * line-map.c, line-map.h: Convert to ISO prototypes.
From-SVN: r68242
2003-06-20 05:51:13 +00:00
Mark Mitchell
f139561cce re PR c++/9649 (ICE in finish_member_declaration at cp/semantics.c:1850 when redeclaring a static member variable)
PR c++/9649
	* cp-tree.h (pushdecl_class_level): Change prototype.
	(push_class_level_binding): Likewise.
	* decl.c (add_binding): Reject duplicate static data members.
	(pushdecl_class_level): Return a value indicating whether or not
	the binding was valid.
	(push_class_level_binding): Likewise.
	* semantics.c (finish_member_declaration): Don't keep invalid
	declarations.

	PR c++/9649
	* g++.dg/template/static4.C: New test.
	* g++.old-deja/g++.other/anon7.C: Remove spurious error messages.

From-SVN: r68240
2003-06-20 02:40:37 +00:00
Mark Mitchell
170b020fe4 re PR middle-end/11041 (ICE: const myclass &x = *x; (when operator*() defined))
PR c++/11041
	* call.c (initialize_reference): Do not use cp_finish_decl to emit
	temporary variables.
	* cp-tree.h (static_aggregates): Declare.
	(pushdecl_top_level_and_finish): Likewise.
	* decl.c (pushdecl_top_level_1): New function.
	(pushdecl_top_level): Use it.
	(pushdecl_top_level_and_finish): New function.
	(initialize_local_var): Remove redundant code.
	(cp_finish_decl): Remove support for RESULT_DECLs.  Don't check
	building_stmt_tree.
	* decl.h (static_aggregates): Remove.
	* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
	* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
	(tinfo_base_init): Likewise.

	PR c++/11041
	* g++.dg/init/ref7.C: New test.

From-SVN: r68236
2003-06-20 00:48:44 +00:00
Matt Austern
7a1d37e910 Fix for PR c++/11228, infinite loop for new int[n]().
From-SVN: r68235
2003-06-20 00:33:58 +00:00
GCC Administrator
3a95fe8f33 Daily bump.
From-SVN: r68232
2003-06-20 00:16:07 +00:00