Commit Graph

53076 Commits

Author SHA1 Message Date
Phil Edwards
5560a945d8 cppopts.texi: Use 'dashMP' instead of '-MP' as a cross- reference name.
2003-09-28  Phil Edwards  <phil@codesourcery.com>

	* doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
	reference name.

From-SVN: r71894
2003-09-29 06:19:39 +00:00
Eric Botcazou
ea0738f236 * g++.dg/opt/unroll1.C: Change unsigned to __SIZE_TYPE__.
From-SVN: r71891
2003-09-29 06:14:59 +00:00
GCC Administrator
e8cadb6970 Daily bump.
From-SVN: r71888
2003-09-29 00:16:07 +00:00
Richard Henderson
436fac170a c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not file and line separately.
* c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
        file and line separately.

f/
        * com.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
        file and line separately.
java/
        * check-init.c (check_init): Save and restore input_location
        instead of file and line separately.
        * decl.c (java_expand_body): Likewise.
        * jcf-write.c (generate_bytecode_insns): Likewise.
        * parse.y (safe_layout_class): Likewise.
        * jcf-parse.c (read_class, parse_class_file): Likewise.
        (java_parse_file): Use %H for warning locator.

From-SVN: r71886
2003-09-28 15:18:33 -07:00
Ulrich Weigand
b2ba71cad8 s390.md ("*adddi3_carry1_cc", [...]): New insns.
* config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
	"*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
	"*subdi3_borrow_cconly"): New insns.
	("*addsi3_sub", "*subsi3_sub"): Remove.
	("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
	("*subsi3_cc"): Fix op_type attribute.

From-SVN: r71885
2003-09-28 19:17:49 +00:00
Richard Henderson
177560b2d0 stmt.c (expand_asm_operands): Take a location_t, instead of individual file and line.
* stmt.c (expand_asm_operands): Take a location_t, instead of
        individual file and line.
        * c-typeck.c (c_expand_asm_operands): Likewise.
        * tree.h (expand_asm_operands): Update decl.
        * c-common.h (c_expand_asm_operands): Likewise.
        * c-semantics (genrtl_asm_stmt): Update call.
cp/
        * typeck.c (c_expand_asm_operands): Take location_t, instead of
        individual file and line.
ada/
        * trans.c (tree_transform): Update call to expand_asm_operands.

From-SVN: r71884
2003-09-28 12:09:53 -07:00
Roger Sayle
37e2180d7a expr.c (java_check_reference): Use the semantics of COND_EXPRs with void-type branches instead of using a...
* expr.c (java_check_reference): Use the semantics of COND_EXPRs
	with void-type branches instead of using a COMPOUND_EXPR.

From-SVN: r71883
2003-09-28 15:07:05 +00:00
Jeff Sturm
9220b1baed decl.c (java_optimize_inline, [...]): Remove.
* decl.c (java_optimize_inline, dump_function): Remove.
* java-tree.h (java_optimize_inline): Remove declaration.
* jcf-parse.c (java_parse_file): Assume flag_unit_at_a_time is set.
* parse.y (source_end_java_method, java_expand_classes):
Likewise.  Remove dead code.

From-SVN: r71882
2003-09-28 13:23:12 +00:00
Philip Blundell
9442862280 arm.c (legitimize_pic_address): Check SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
2003-09-28  Philip Blundell  <philb@gnu.org>

	* config/arm/arm.c (legitimize_pic_address): Check
	SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
	(arm_assemble_integer): Likewise.

From-SVN: r71881
2003-09-28 12:33:10 +00:00
Steven Bosscher
f12b3fc8aa pdp11-protos.h, [...]: Convert to ISO C90 function declarations and definitions.
* config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
	config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
	config/c4x/c4x.h:
	Convert to ISO C90 function declarations and definitions.

From-SVN: r71880
2003-09-28 12:09:07 +00:00
Kriang Lerdsuwanakij
753aaa17f3 friend19.C: Fix typo.
* g++.dg/template/friend19.C: Fix typo.
	* g++.old-deja/g++.other/crash31.C: Adjust expected error.

From-SVN: r71879
2003-09-28 11:42:16 +00:00
Steven Bosscher
51c16b7e8a stormy16.c, [...]: Convert to ISO C90 function declarations and definitions.
* config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
	Convert to ISO C90 function declarations and definitions.

From-SVN: r71878
2003-09-28 09:51:52 +00:00
Richard Sandiford
c54859d3c9 mips.c (mips_constant_info): Add reloc field.
* config/mips/mips.c (mips_constant_info): Add reloc field.
	(mips_classify_constant): Initialize it.  Always set SYMBOL to the
	underlying symbol, not to an unspec.
	(mips_delegitimize_address, print_operand): Clean up accordingly.

From-SVN: r71877
2003-09-28 07:39:30 +00:00
Richard Sandiford
d34053edb7 mips-protos.h (mips16_gp_pseudo_reg): Remove.
* config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
	* config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
	* config/mips/mips.c (mips_reloc_offset_ok_p): New function.
	(mips_classify_constant): Use it.
	(mips_splittable_symbol_p): Add an offset argument.
	(mips_classify_address): Adjust call accordingly.
	(mips_legitimize_symbol): Handle sdata references with LO_SUM rather
	than a relocation unspec.  Update call to mips_splittable_symbol_p.
	Generalize the code that copes with symbols + invalid offsets.
	(print_operand): Allow '%R' to be applied to small data addresses.
	(mips_reloc_string): Remove RELOC_GPREL16.
	(mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
	for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
	relocation operators.
	* config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
	constants accordingly.

From-SVN: r71876
2003-09-28 07:38:14 +00:00
Roger Sayle
c67e6e1492 toplev.c (flag_evaluation_order): New global variable.
* toplev.c (flag_evaluation_order): New global variable.
	* flags.h (flag_evaluation_order): Prototype here.
	* expr.c (expand_operands): If we need to preserve observable
	evaluation order, protect exp1 from clobbering exp0's result.

	* java/lang.c (java_init_options): Set flag_evaluation_order.
	* java/expr.c (force_evaluation_order): Don't attempt to force
	evaluation order of binary operations using save_expr.
	* java/parse.y (java_complete_lhs): No longer need to call
	force_evaluation_order when constructing binary operators.

From-SVN: r71873
2003-09-28 04:56:35 +00:00
Andreas Jaeger
edaf3e0357 c-decl.c (finish_function): Convert definition to ISO C90.
* c-decl.c (finish_function): Convert definition to ISO C90.
	* ifcvt.c (mark_loop_exit_edges): Likewise.
	* ra-rewrite.c (emit_colors): Likewise.

For cp:

	* decl.c (cxx_builtin_type_decls): Convert to ISO C90 function
	definition.
	* init.c (push_base_cleanups): Likewise.
	* decl2.c (finish_file): Likewise.
	* mangle.c (init_mangle): Likewise.
	(dump_substitution_candidates): Likewise.
	* search.c: Likewise.

From-SVN: r71872
2003-09-28 06:37:41 +02:00
Bryce McKinlay
6fb708633d DateFormat.java (format): Throw IllegalArgumentException if j' is not a Number or Date instance.
* java/text/DateFormat.java (format): Throw IllegalArgumentException
	if j' is not a Number or Date instance.
	* java/text/SimpleDateFormat.java (tokens): Make it an ArrayList
	instead of Vector.

From-SVN: r71871
2003-09-28 05:23:29 +01:00
Bryce McKinlay
f6b17867e4 SimpleDateFormat (parse): Revert patch of 2003-09-25.
* java/text/SimpleDateFormat (parse): Revert patch of 2003-09-25.
	Don't call setTimeZone on calendar.

From-SVN: r71870
2003-09-28 04:57:05 +01:00
GCC Administrator
5a36731a8d Daily bump.
From-SVN: r71868
2003-09-28 00:16:09 +00:00
Nathanael Nerode
4bf1dc658b * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
From-SVN: r71866
2003-09-27 22:27:10 +00:00
Nathanael Nerode
75e52d96b8 * config.gcc (arm*-*-uclinux*): Disable fixproto.
From-SVN: r71865
2003-09-27 21:43:18 +00:00
Nathanael Nerode
1e43319cd2 config.gcc (powerpc-*-eabispe*, [...]): Disable fixproto.
* config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
	powerpc-*-eabialtivec*): Disable fixproto.

From-SVN: r71864
2003-09-27 21:40:40 +00:00
Tom Tromey
ed28830a47 * libjava.jacks/jacks.xfail: Updated for new passes.
From-SVN: r71863
2003-09-27 20:22:03 +00:00
Alexandre Petit-Bianco
cd11bdcc47 re PR java/1333 (private field access modifier not implemented correctly)
2003-09-27  Alexandre Petit-Bianco  <apbianco@redhat.com>
	    Bryce McKinlay  <bryce@mckinlay.net.nz>

	PR java/1333:
	* parse.y (not_accessible_field_error): New function.
	(resolve_expression_name): Check field access permissions.
	(resolve_qualified_expression_name): Use
	not_accessible_field_error.
	(resolve_qualified_expression_name): Likewise.

Co-Authored-By: Bryce McKinlay <bryce@mckinlay.net.nz>

From-SVN: r71862
2003-09-27 20:17:21 +00:00
Eric Botcazou
e8226879d0 re PR rtl-optimization/12340 (loop unroller + gcse produces wrong code)
PR optimization/12340
	* loop.h (struct induction): Document the new semantics
	of the 'same' field for bivs.
	* unroll.c (biv_total_increment): Don't count the same
	biv increment several times.
	(loop_iterations) [GENERAL_INDUCT]: Likewise.

From-SVN: r71859
2003-09-27 17:18:25 +00:00
Gabriel Dos Reis
c003e212ea name-lookup.h (get_global_value_if_present): New function.
* name-lookup.h (get_global_value_if_present): New function.
	(is_typename_at_global_scope): Likewise.
	* except.c (do_begin_catch): Use get_global_value_if_present.
	(do_end_catch): Likewise.
	(do_allocate_exception): Likewise.
	(do_free_exception): Likewise.
	(build_throw): Likewise.
	* parser.c (cp_parser_member_declaration): Likewise.
	* rtti.c (throw_bad_cast): Likewise.
	(throw_bad_typeid): Likewise.
	* decl.c (check_tag_decl): Use is_typename_at_global_scope.
	(grokdeclarator): Likewise.
	* cp-tree.h (global_namespace): Move to name-lookup.h
	* call.c (call_builtin_trap): Tidy.

From-SVN: r71858
2003-09-27 16:44:05 +00:00
Kriang Lerdsuwanakij
6398fbfddc Correct PR number.
From-SVN: r71857
2003-09-27 16:40:29 +00:00
Kriang Lerdsuwanakij
9075a30574 re PR c++/11415 (Error message with ::::)
PR c++/11413
	* parser.c (cp_parser_nested_name_specifier_opt): Issue correct
	error message when parser->scope is global_namespace.

From-SVN: r71856
2003-09-27 16:34:28 +00:00
Graham Stott
337f35bbdc * unroll.c(loop_interations)[GT]: Add missing break.
From-SVN: r71854
2003-09-27 15:33:27 +00:00
Michael Koch
d485d933c9 URL.java (getURLStreamHandler): Compile fixes.
2003-09-27  Michael Koch  <konqueror@gmx.de>

	* java/net/URL.java (getURLStreamHandler): Compile fixes.

From-SVN: r71853
2003-09-27 13:09:19 +00:00
Michael Koch
4ada1976c9 URL.java (getURLStreamHandler): Check if we have to use cache before trying to retrieve handler from cache.
2003-09-27  Michael Koch  <konqueror@gmx.de>

	* java/net/URL.java (getURLStreamHandler):
	Check if we have to use cache before trying to retrieve handler from
	cache. Rename facName to clsName to match classpath more. Reformated
	some little pieces.

From-SVN: r71852
2003-09-27 12:38:05 +00:00
R. Kelley Cook
9415397d87 Correct previous ChangeLog entry.
From-SVN: r71851
2003-09-27 04:53:13 +00:00
Kelley Cook
7ec022b20e GNU CC -> GCC
From-SVN: r71850
2003-09-27 04:48:30 +00:00
Ulrich Weigand
33b1669031 2.cc (test_02): Allow either "Son" or "So" as abbreviated name for Sunday in de_DE locale.
* testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
	"Son" or "So" as abbreviated name for Sunday in de_DE locale.
	* testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.

From-SVN: r71849
2003-09-27 03:28:15 +00:00
Gabriel Dos Reis
147135cc00 cp-tree.h, [...]: Remove reference to macros BINDING_SCOPE, BINDING_VALUE and BINDING_TYPE.
* cp-tree.h, name-lookup.h, decl.c, decl2.c: Remove reference to
	macros 	BINDING_SCOPE, BINDING_VALUE and BINDING_TYPE.

From-SVN: r71848
2003-09-27 01:55:13 +00:00
GCC Administrator
07a6b250e7 Daily bump.
From-SVN: r71846
2003-09-27 00:16:06 +00:00
Loren J. Rittle
3c437d1207 objc-act.c (tm_p.h): Tweak order.
* objc/objc-act.c (tm_p.h): Tweak order.
	* objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).

From-SVN: r71844
2003-09-26 23:28:55 +00:00
Loren J. Rittle
b3aac96589 * objc/objc-act.c (tm_p.h): Tweak order.
From-SVN: r71843
2003-09-26 22:45:29 +00:00
Nathanael Nerode
63e002bd63 config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*): Include t-slibgcc-elf-ver and t-linux in tmake_file.
* config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
	Include t-slibgcc-elf-ver and t-linux in tmake_file.

From-SVN: r71842
2003-09-26 22:13:33 +00:00
Michael Koch
fc40b902f4 re PR java/12426 (gcj allows access to private members from superclass)
2003-09-27  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/SelectionKeyImpl.java
	(ch): Make package-private again. Jikes found this bug.
	Jeff Sturm submitted PR12426 for this to bugzilla
	to fix this bug in gcj.

From-SVN: r71841
2003-09-26 22:02:05 +00:00
Nathanael Nerode
488c4e944e config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*): Disable fixproto.
* config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
	Disable fixproto.

From-SVN: r71838
2003-09-26 21:07:56 +00:00
Nathanael Nerode
0a66cee8c4 config.gcc (i960-*-coff*, [...]): Disable fixproto.
* config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
	Disable fixproto.

From-SVN: r71837
2003-09-26 21:01:02 +00:00
Nathanael Nerode
96f8d04ec0 config.gcc (i[34567]86-*-solaris2*, [...]): Disable fixproto.
* config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
	sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.

From-SVN: r71836
2003-09-26 20:57:28 +00:00
Nathanael Nerode
a6e98532bc * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
From-SVN: r71835
2003-09-26 20:46:47 +00:00
Loren J. Rittle
9e2f83d247 i386.h (ix86_return_in_memory): Revert my last patch.
* config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
	* objc/objc-act.c (tm_p.h): Include.

From-SVN: r71834
2003-09-26 20:26:00 +00:00
Brad Spencer
2d07c3f562 10132-1.cc: Explicitly qualify exceptions.
2003-09-26  Brad Spencer  <spencer@infointeractive.com>

	* testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
	Explicitly qualify exceptions.
	* testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
	* testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
	* testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
	* testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.

From-SVN: r71832
2003-09-26 20:20:55 +00:00
Michael Koch
6634a0e914 RMIClassLoader.java: Reformatted file, no functional code changes.
2003-09-26  Michael Koch  <konqueror@gmx.de>

	* java/rmi/server/RMIClassLoader.java:
	Reformatted file, no functional code changes.

From-SVN: r71831
2003-09-26 20:03:28 +00:00
Michael Koch
fc56f7acc1 [multiple changes]
2003-09-26  Sascha Brawer  <brawer@dandelis.ch>

	* java/awt/image/SinglePixelPackedSampleModel.java (createDataBuffer):
	Save space for some pixels at the buffer end.  Added Javadoc.

2003-09-26  Tom Tromey  <tromey@redhat.com>

	* java/io/ObjectOutputStream.java (writeFields): Fixed
	indentation.
	(putFields): Likewise.

From-SVN: r71829
2003-09-26 19:59:56 +00:00
Per Bothner
8aa43dd09b dbxout.c (dbxout_typedefs): Output typedefs in forward order.
* dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
	No longer any need to reverse by recursion.

From-SVN: r71828
2003-09-26 12:38:27 -07:00
Roger Sayle
073089a7e0 re PR rtl-optimization/11741 (internal compiler error at gcse.c:5318)
PR optimization/11741
	* gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
	appropriate set to match that in hash_scan_insn.  Fall back to
	the original copy method, if we can't validate changing insn.
	(pre_delete): Only delete instructions that have a single_set,
	instead of aborting when we encounter an PARALLEL insn with more
	then one SET.

	* gcc.dg/20030926-1.c: New test case.

From-SVN: r71827
2003-09-26 18:23:33 +00:00