68852 Commits

Author SHA1 Message Date
Tobias Schlüter
ab21e2722d array.c (gfc_match_array_constructor): Disallow empty array constructor.
fortran/
2005-06-03  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
	Erik Edelmann  <erik.edelmann@iki.fi>

	* array.c (gfc_match_array_constructor): Disallow empty array
	constructor.
testsuite/
2005-06-04  Erik Edelmann  <erik.edelmann@iki.fi>

	* gfortran.dg/array_constructor_3.f90: New test.

From-SVN: r100579
2005-06-04 12:26:57 +02:00
Tobias Schlüter
9a28687dcf * gfortran.dg/ret_pointer_1.f90: Un-XFAIL.
From-SVN: r100578
2005-06-04 12:10:32 +02:00
Richard Sandiford
f26f6b8d5e * MAINTAINERS: Update my email address.
From-SVN: r100577
2005-06-04 06:23:19 +00:00
Jerry DeLisle
323d0f0bf2 intrinsic.texi: Add documentation for command_argument_count...
2005-06-03  Jerry DeLisle <jvdelisle@verizon.net>

	* fortran/intrinsic.texi: Add documentation for
	command_argument_count, conjg, dconjg, count,
	cpu_time, cshift, date_and_time, dble, dfloat.

From-SVN: r100575
2005-06-04 04:31:34 +00:00
Hans-Peter Nilsson
28da59e8c4 * g++.dg/opt/crossjump1.C: Gate -fPIC usage on target fpic.
From-SVN: r100574
2005-06-04 03:24:39 +00:00
Joseph Myers
472d98b46b re PR c/21873 (infinite warning loop on bad array initializer)
PR c/21873
	* c-typeck.c (push_init_level): Don't pop levels without braces if
	implicit == 1.

testsuite:
	* gcc.dg/init-excess-1.c: New test.

From-SVN: r100571
2005-06-04 02:34:47 +01:00
GCC Administrator
ecb83da783 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100569.2
2005-06-04 00:16:26 +00:00
Geoffrey Keating
7fa3585cd4 c-parser.c (c_parser_parms_declarator): Don't use chainon().
* c-parser.c (c_parser_parms_declarator): Don't use chainon().
	(c_parser_expr_list): Don't use chainon().

From-SVN: r100567
2005-06-04 00:06:22 +00:00
Sebastian Pop
789246d71a tree-data-ref.c (compute_self_dependence): New function.
2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>

	* tree-data-ref.c (compute_self_dependence): New function.
	(compute_all_dependences): Use it.

From-SVN: r100565
2005-06-03 23:27:03 +00:00
Mark Mitchell
dad732fa41 re PR c++/21853 (constness of pointer to data member ignored)
PR c++/21853
	* typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
	the pointed-to type for a pointer-to-member.

	PR c++/21853
	* g++.dg/expr/static_cast6.C: New test.

From-SVN: r100560
2005-06-03 23:22:11 +00:00
Geoffrey Keating
d0b73789d3 darwin.h (LINK_SPEC): Pass -syslibroot to linker when -isysroot passed.
* config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
	when -isysroot passed.

From-SVN: r100559
2005-06-03 23:21:19 +00:00
Joseph Myers
d4d1cfd444 re PR c/21879 (Memory management problem)
PR c/21879
	* c-decl.c (start_function): Restore label_context_stack_se and
	label_context_stack_vm  if returning with an error.

From-SVN: r100557
2005-06-03 23:25:13 +01:00
Keith Seitz
fd693ba3cc * gnu/classpath/jdwp/transport/TransportFactory.java: New file.
From-SVN: r100556
2005-06-03 22:21:52 +00:00
Gabriel Dos Reis
7391b66c6a configure.ac: Check declaration for asprintf, needed by libiberty.h.
* configure.ac: Check declaration for asprintf, needed by
        libiberty.h.
        * configure: Regenerate.
        * config.in: Likewise.

From-SVN: r100555
2005-06-03 21:13:59 +00:00
Diego Novillo
441e96b5bc tree-ssa-dom.c (record_edge_info): Use last_basic_block to allocate info array.
* tree-ssa-dom.c (record_edge_info): Use last_basic_block to
	allocate info array.
	* tree-vrp.c (extract_range_from_unary_expr): Set resulting
	range to varying in cast expressions that change
	TYPE_PRECISION.

testsuite/ChangeLog

	* gcc.dg/tree-ssa/vrp14.c: New test.

From-SVN: r100554
2005-06-03 17:07:11 -04:00
Keith Seitz
658a82f8ed ITransport.java: New file.
* gnu/classpath/jdwp/transport/ITransport.java: New file.
        * gnu/classpath/jdwp/transport/SocketTransport.java: New file.

From-SVN: r100553
2005-06-03 20:56:09 +00:00
Eric Christopher
25e3d99dc2 mips.opt: Add RejectNegative to divide-breaks and divide-traps.
2005-06-03  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.opt: Add RejectNegative to divide-breaks and
        divide-traps.

From-SVN: r100552
2005-06-03 19:07:39 +00:00
Jan Hubicka
3809e99053 basic-block.h (remove_predictions_associated_with_edge): Declare.
* basic-block.h (remove_predictions_associated_with_edge): Declare.
	* cfg.c (remove_edge): Use it.
	* predict.c (remove_predictions_associated_with_edge): New function.

From-SVN: r100551
2005-06-03 19:03:29 +00:00
Pat Haugen
7c9ac5c035 rs6000.c (rs6000_conditional_register_usage): Clear call_realy_used_regs[r2] when ABI_AIX.
2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>

        * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
        Clear call_realy_used_regs[r2] when ABI_AIX.

From-SVN: r100549
2005-06-03 13:18:04 -04:00
Paolo Carlini
4fd20a8f82 re PR libstdc++/21770 (rebinding allocator::value type vs. container::value_type)
2005-06-03  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/21770
	* include/bits/stl_deque.h: Add concept-check. In class _Deque_base
	rebind _Alloc to  _Tp_alloc_type, change _Deque_impl to inherit from
	the latter and add _M_get_Tp_allocator() which returns it. Use
	everywhere _M_get_Tp_allocator() instead of get_allocator().
	* include/bits/deque.tcc: Likewise, use _M_get_Tp_allocator().
	* include/bits/stl_list.h: Add concept-check. In class _List_base
	rebind _Alloc to _Tp_alloc_type and add _M_get_Tp_allocator(), which
	returns the allocator (of type _Node_alloc_type) converted to
	_Tp_alloc_type. Use everywhere _M_get_Tp_allocator() instead of
	get_allocator().
	* include/bits/list.tcc: Likewise, use _M_get_Tp_allocator().
	* include/bits/stl_vector.h: Add concept-check. In class _Vector_base
	rebind _Alloc to _Tp_alloc_type, change _Vector_impl to inherit from
	the latter and add _M_get_Tp_allocator() which returns it. Use
	everywhere _M_get_Tp_allocator() instead of get_allocator().
	* include/bits/vector.tcc: Likewise, use _M_get_Tp_allocator().
	* include/bits/stl_map.h: Add concept-check. Rebind _Alloc to
	_Pair_alloc_type and use it for _Rb_tree.
	* include/bits/stl_multimap.h: Likewise.
	* include/bits/stl_multiset.h: Add concept-check. Rebind _Alloc to
	_Key_alloc_type and use it for _Rb_tree.
	* include/bits/stl_set.h: Likewise.
	* include/bits/basic_string.h: Rebind _Alloc to _CharT_alloc_type and
	use it for the allocator typedefs.
	* testsuite/21_strings/basic_string/1.cc: New.
	* testsuite/23_containers/deque/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/deque/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/deque/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/list/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/list/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/list/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/map/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/map/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/map/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/multimap/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/multimap/explicit_instantiation/1.cc: .. here.
	* testsuite/23_containers/multimap/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/multiset/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/multiset/explicit_instantiation/1.cc: .. here.
	* testsuite/23_containers/multiset/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/set/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/set/explicit_instantiation/1.cc: .. here.
	* testsuite/23_containers/set/explicit_instantiation/3.cc: New.
	* testsuite/23_containers/vector/explicit_instantiation.cc: Move to...
	* testsuite/23_containers/vector/explicit_instantiation/1.cc: ... here.
	* testsuite/23_containers/vector/explicit_instantiation/3.cc: New.

From-SVN: r100546
2005-06-03 17:07:48 +00:00
Mark Mitchell
7e45bd18da re PR c++/21336 (Internal compiler error when using custom new operators)
PR c++/21336
	* cp-tree.h (grok_op_properties): Remove friendp parameter.
	* decl.c (grokfndecl): Adjust call.
	(grok_op_properties): Determine the class of which the function is
	a member by looking at its DECL_CONTEXT, not current_class_type.
	* pt.c (tsubst_decl): Adjust call to grok_op_properties.

	PR c++/21336
	* g++.dg/template/new2.C: New test.

From-SVN: r100541
2005-06-03 16:16:46 +00:00
Josh Conner
83cd747fd9 ppc-vector-memcpy.c (foo): Use non-zero values for all entries in initializer.
* gcc.dg/ppc-vector-memcpy.c (foo): Use non-zero values for
        all entries in initializer.

From-SVN: r100540
2005-06-03 16:07:29 +00:00
Richard Guenther
548e34cdb7 re PR middle-end/21858 (ICE in compare_values, at tree-vrp.c:301)
2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>

	PR middle-end/21858
	* fold-const.c (fold_binary): Fix type mismatches in folding
	of comparisons.

	* gcc.dg/pr21858.c: New testcase.

From-SVN: r100539
2005-06-03 15:15:46 +00:00
Kazu Hirata
ff5c4582e0 cgraph.c, [...]: Fix comment typos.
* cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
	typos.

From-SVN: r100538
2005-06-03 13:41:39 +00:00
Joseph Myers
88fbbf4b49 * collect2.c (maybe_unlink): Use unlink_if_ordinary.
From-SVN: r100537
2005-06-03 11:48:06 +01:00
Bernd Schmidt
badea87de4 Revert my previous patch.
From-SVN: r100536
2005-06-03 09:55:28 +00:00
Paolo Bonzini
b956116ebf re PR testsuite/21292 (gen-vect-11b.c and gen-vect-11c.c fail)
2005-06-03  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/21292

	* lib/target-supports.exp (check_effective_target_vect_cmdline_needed):
	New.
	* gcc.dg/tree-ssa/gen-vect-11.c, gcc.dg/tree-ssa/gen-vect-11a.c,
	gcc.dg/tree-ssa/gen-vect-11b.c, gcc.dg/tree-ssa/gen-vect-11c.c,
	gcc.dg/tree-ssa/gen-vect-2.c, gcc.dg/tree-ssa/gen-vect-25.c,
	gcc.dg/tree-ssa/gen-vect-26.c, gcc.dg/tree-ssa/gen-vect-28.c,
	gcc.dg/tree-ssa/gen-vect-32.c: Require it.

From-SVN: r100535
2005-06-03 08:09:47 +00:00
Nick Clifton
8db33fd786 Fix typo in ASM_SEPC
From-SVN: r100534
2005-06-03 08:09:26 +00:00
Tom Tromey
4267db9877 re PR java/21722 (gcj miscompiles accesses to static final vars with indirect dispatch)
PR java/21722:
	* class.c (build_static_field_ref): Don't fold constant fields if
	current class is from a .class file and we're using indirect
	dispatch.

From-SVN: r100533
2005-06-03 04:06:19 +00:00
Kazu Hirata
50e5241d1f re PR tree-optimization/21849 (wrong use of sbitmap in tree-ssa-copy.c)
PR tree-optimization/21849
	* tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.

From-SVN: r100531
2005-06-03 02:55:20 +00:00
Richard Henderson
87e48010be * gcc.dg/sync-2.c: Use -march=i486 for i386.
From-SVN: r100530
2005-06-02 19:35:59 -07:00
Richard Henderson
2b725155ec Makefile.in (tree-vect-generic.o): New.
* Makefile.in (tree-vect-generic.o): New.
        (OBJS-common, GTFILES, s-gtype): Add it.
        * tree-complex.c (build_replicated_const, vector_inner_type,
        vector_last_type, vector_last_nunits, build_word_mode_vector_type,
        elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
        do_negate, expand_vector_piecewise, expand_vector_parallel,
        expand_vector_addition, expand_vector_operation,
        type_for_widest_vector_mode, expand_vector_operations_1,
        gate_expand_vector_operations, expand_vector_operations,
        pass_lower_vector_ssa): Move to tree-vect-generic.c.
        (tree_lower_complex): Rename from tree_lower_operations.
        (pass_lower_complex): Rename from pass_pre_expand.
        * tree-vect-generic.c: New file.
        * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
        (pass_lower_vector): New.
        * tree-optimize.c (init_tree_optimization_passes): Update to match.

From-SVN: r100529
2005-06-02 19:11:05 -07:00
Richard Henderson
aeb556659b modulo-sched.c (doloop_register_get): Protect against doloop_end not defined.
* modulo-sched.c (doloop_register_get): Protect against
        doloop_end not defined.

From-SVN: r100528
2005-06-02 19:00:00 -07:00
Jim Blandy
ba4853f8a5 config.sub: Add cases for the Renesas m32c.
* config.sub: Add cases for the Renesas m32c.  (This patch has been
accepted into the master sources.)

From-SVN: r100527
2005-06-02 20:16:32 -04:00
GCC Administrator
de77dfe314 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100525.2
2005-06-03 00:16:23 +00:00
Kazu Hirata
5546ac9012 sh.c (general_movsrc_operand, [...]): Move to ...
* config/sh/sh.c (general_movsrc_operand,
	general_movdst_operand, arith_reg_operand, arith_reg_dest,
	logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
	fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
	xor_operand, cmp_operand, logical_operand, and_operand,
	fpscr_operand, fpul_operand, symbol_ref_operand,
	commutative_float_operator, noncommutative_float_operator,
	unary_float_operator, binary_float_operator,
	binary_logical_operator, equality_comparison_operator,
	greater_comparison_operator, less_comparison_operator,
	shift_operator, logical_operator, target_reg_operand,
	target_operand, mextr_bit_offset, extend_reg_operand,
	trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
	general_extend_operand, ua_address_operand,
	cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
	sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
	shift_count_reg_operand, shift_count_operand,
	unaligned_load_operand): Move to ...
	* config/sh/predicates.md: ... here.
	* config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
	Remove.

From-SVN: r100523
2005-06-02 23:28:53 +00:00
Andrew Pinski
e0d161cf09 trans.c (gnat_gimplify_expr): Call recompute_tree_invarant_for_addr_expr when...
2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * trans.c (gnat_gimplify_expr): Call
        recompute_tree_invarant_for_addr_expr when we change
        the operand of the ADDR_EXPR.

From-SVN: r100522
2005-06-02 16:00:06 -07:00
Andrew Pinski
d1604bc560 tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp.
2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree.c (build_common_builtin_nodes): Fix the return type on
        __builtin_memcmp.

From-SVN: r100520
2005-06-02 15:57:43 -07:00
Richard Guenther
d5dc1717fa tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>

	* tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
	(find_interesting_uses_address): Use build_fold_addr_expr instead.
	(strip_offset_1): Likewise.
	(tree_to_aff_combination): Likewise.

From-SVN: r100519
2005-06-02 22:05:13 +00:00
DJ Delorie
4e9cd9d8aa convert.c (convert_to_pointer): Avoid recursion if no conversion is needed.
* convert.c (convert_to_pointer): Avoid recursion if no conversion
is needed.

From-SVN: r100518
2005-06-02 18:02:59 -04:00
Richard Guenther
1c1205fb0b tree-chrec.c (chrec_fold_plus_1): Ensure we build binary operations with the correct types.
2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>

	* tree-chrec.c (chrec_fold_plus_1): Ensure we build
	binary operations with the correct types.
	* tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
	for all computation.

From-SVN: r100517
2005-06-02 21:55:52 +00:00
Kazu Hirata
8ab5f5c9fa tree-vrp.c, [...]: Fix comment typos.
* tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
	config/rs6000/rs6000.md: Fix comment typos.  Follow splling
	conventions.
	* doc/install.texi: Fix a typo.

From-SVN: r100516
2005-06-02 21:54:42 +00:00
Geoffrey Keating
bc0f348e10 Index: ChangeLog
2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>

	* config/rs6000/rs6000.md (sync_boolcshort_internal): New.
	* config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
	be complemented for big-endian.  Mask for AND must be rotated,
	not shifted.  Handle short operands with NOT on the memory
	operation.

Index: testsuite/ChangeLog
2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>

	* lib/target-supports.exp
	(check_effective_target_sync_char_short): New.
	* gcc.dg/sync-2.c: New.

From-SVN: r100515
2005-06-02 21:45:57 +00:00
Jan Hubicka
e2089d725e cgraphunit.c (cgraph_function_and_variable_visibility): Extern inline functions are not local.
* cgraphunit.c (cgraph_function_and_variable_visibility): Extern
	inline functions are not local.

From-SVN: r100514
2005-06-02 20:33:04 +00:00
Kazu Hirata
84c76d40cb gimplify.c (gimplify_ctx): Change the type of case_labels to VEC from VARRAY.
* gimplify.c (gimplify_ctx): Change the type of case_labels to
	VEC from VARRAY.
	(gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
	of case_labels.

From-SVN: r100513
2005-06-02 20:21:54 +00:00
Richard Guenther
984dfd8c52 c-typeck.c (build_indirect_ref): Build INDIRECT_REF with correct type.
2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>

	* c-typeck.c (build_indirect_ref): Build INDIRECT_REF
	with correct type.

	* gcc.dg/wtypequal.c: New testcase.

From-SVN: r100512
2005-06-02 20:09:01 +00:00
Nathan Sidwell
c449e20709 * method.c (synthesize_method): Add addtional arg to warning call.
From-SVN: r100511
2005-06-02 20:02:26 +00:00
Ulrich Weigand
d24959df23 s390.c (s390_add_execute): Do not handle out-of-pool execute templates.
* config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
	execute templates.
	(s390_dump_pool): Likewise.
	(s390_mainpool_start, s390_mainpool_finish): Likewise.
	(s390_chunkify_start): Likewise.
	(s390_dump_execute): Remove.
	(s390_reorg): Handle out-of-pool execute templates.

From-SVN: r100510
2005-06-02 19:57:24 +00:00
Aldy Hernandez
79dd769c9c configure.in: Set noconfigdirs for ms1.
* configure.in: Set noconfigdirs for ms1.

        * configure: Regenerate.

Co-Authored-By: Michael Snyder <msnyder@redhat.com>
Co-Authored-By: Stan Cox <scox@redhat.com>

From-SVN: r100509
2005-06-02 19:54:19 +00:00
Adrian Straetling
d9dfec3ffa optabs.c: (expand_bool_compare_and_swap): Emit barrier after unconditional jump.
2005-06-02  Adrian Straetling  <straetling@de.ibm.com>

	* optabs.c: (expand_bool_compare_and_swap): Emit barrier after
	  unconditional jump.

From-SVN: r100508
2005-06-02 19:46:38 +00:00