Commit Graph

84322 Commits

Author SHA1 Message Date
Douglas Gregor
4552f5a2c8 re PR c++/33601 (ICE with pointers to members using "const C" as the class identifier)
2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/33601
	* tree.c (build_offset_type): Build canonical type based on the
	TYPE_MAIN_VARIANT of the base type.

2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	* g++.dg/other/pr33601.C: New.

From-SVN: r129659
2007-10-26 19:34:03 +00:00
Tobias Burnus
84f2b1d168 mk-kinds-h.sh: Add "LANG=C".
2007-10-26  Tobias Burnus  <burnus@net-b.de>

       * mk-kinds-h.sh: Add "LANG=C".

From-SVN: r129658
2007-10-26 21:01:42 +02:00
Paolo Carlini
07021f8c63 re PR c++/31988 (new operator should not permit default first parameter)
cp/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31988
	* decl2.c (coerce_new_type): Do not allow a default argument for
	the first parameter.

testsuite/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31988
	* g++.dg/init/new25.C: New.

From-SVN: r129657
2007-10-26 18:32:41 +00:00
Douglas Gregor
2b536806af re PR c++/33839 (ICE with decltype)
2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/33839
	* parser.c (cp_parser_decltype): Return ERROR_MARK_NODE if we
	don't see the leading '('. Only lookup names if we get an
	IDENTIFIER_NODE.

2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	* g++.dg/cpp0x/pr33839.C: New.

From-SVN: r129656
2007-10-26 17:53:56 +00:00
Benjamin Kosnik
3f28024c07 unordered_map: Fix for parallel mode.
2007-10-26  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/unordered_map: Fix for parallel mode.
	* include/std/unordered_set: Same.

From-SVN: r129654
2007-10-26 14:38:12 +00:00
Daniel Jacobowitz
90a1c3cea3 reorg.c (emit_delay_sequence): Move insn locator from the first insn to the sequence.
* reorg.c (emit_delay_sequence): Move insn locator from the
	first insn to the sequence.

From-SVN: r129651
2007-10-26 12:19:34 +00:00
Jakub Jelinek
0f1e332126 re PR c++/33744 (function-style cast and '>' not allowed in template argument)
PR c++/33744
	* parser.c (cp_parser_parenthesized_expression_list): Set
	greater_than_is_operator_p to true in between the parens.

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

From-SVN: r129648
2007-10-26 13:57:46 +02:00
Paolo Carlini
9b70c6b078 re PR c++/31747 (ICE combining static and extern)
cp/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31747
	* decl.c (grokdeclarator): In case of conflicting specifiers
	just return error_mark_node.

testsuite/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31747
	* g++.dg/parse/crash39.C: New.

From-SVN: r129647
2007-10-26 09:57:12 +00:00
Uros Bizjak
0f095169ae ivopts-1.C: Remove xfail on the search for "&x\\\[5\\\]" pattern.
* g++.dg/tree-ssa/ivopts-1.C: Remove xfail on the search for
	"&x\\\[5\\\]" pattern.  Search for "offset: 0x0f+fc" insetad of
	"offset: -4B".

From-SVN: r129646
2007-10-26 10:33:39 +02:00
Ollie Wild
3459ca230e expr.c (cxx_expand_expr): Removed.
gcc/cp/
	* expr.c (cxx_expand_expr): Removed.
	* cp-tree.h (exx_expand_expr): Removed.
	* cp-objcp-common.h (LANK_HOOKS_EXPAND_EXPR): Replace cxx_expand_expr
	with c_expand_expr.

From-SVN: r129645
2007-10-26 08:19:14 +00:00
Samuel Tardieu
eb80272af1 ipa-pure-const.c (check_decl): Return immediately when pure_const_state has been set to IPA_NEITHER.
* ipa-pure-const.c (check_decl): Return immediately when
        pure_const_state has been set to IPA_NEITHER.

From-SVN: r129644
2007-10-26 09:08:05 +02:00
GCC Administrator
70c0cfc9e5 Daily bump.
From-SVN: r129642
2007-10-26 00:17:11 +00:00
David Daney
ccbf3d066f * g++.dg/tree-ssa/copyprop-1.C: Remove xfail.
From-SVN: r129639
2007-10-26 00:06:51 +00:00
Paolo Carlini
6735e374b2 re PR c++/33843 (Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id)
2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33843
	* cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with BIT_NOT_EXPR.

2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33843
	* g++.dg/template/error32.C: New.

From-SVN: r129637
2007-10-25 23:42:49 +00:00
Francois-Xavier Coudert
1fa6df85b1 libgfortran.h (GFC_REAL_*_HUGE, [...]): Remove.
* libgfortran.h (GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS,
	GFC_REAL_*_RADIX): Remove.
	* mk-kinds-h.sh: Define GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS and
	GFC_REAL_*_RADIX. Don't define GFC_REAL_LARGEST_FORMAT and
	GFC_REAL_LARGEST.

From-SVN: r129636
2007-10-25 23:32:07 +00:00
Francois-Xavier Coudert
691307546e re PR fortran/29784 ([doc] No I/O conversion of logical/integer)
PR fortran/29784
	* gfortran.texi: Document that there is no logical/integer
	conversion performed during I/O operations.

From-SVN: r129635
2007-10-25 23:27:12 +00:00
Doug Evans
7ac6e35e01 Update my email address.
From-SVN: r129633
2007-10-25 21:07:12 +00:00
Jakub Jelinek
98a5fa9468 re PR libgomp/33275 (Transient libgomp.fortran/omp_parse3.f90 -O0 failure)
PR libgomp/33275
	* testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
	Make x and y integers rather than (implicit) reals.  Add private (j)
	clause to the last omp parallel.

From-SVN: r129631
2007-10-25 22:25:12 +02:00
Andreas Tobler
ef99c95ece Makefile.am (parallel_headers): Remove timing.h.
2007-10-25  Andreas Tobler  <a.tobler@schweiz.org>

	* include/Makefile.am (parallel_headers): Remove timing.h.
	* include/Makefile.in: Regenerate.

From-SVN: r129630
2007-10-25 22:22:40 +02:00
Johannes Singler
740936e08e multiway_merge.h: Removed Timing<inactive_tag>
2007-10-25  Johannes Singler  <singler@ira.uka.de>

      * include/parallel/multiway_merge.h: Removed Timing<inactive_tag>
      * include/parallel/random_shuffle.h: Same
      * include/parallel/set_operations.h: Same
      * include/parallel/tree.h: Same
      * include/parallel/multiway_mergesort.h: Same
      * include/parallel/timing.h: Removed completely

From-SVN: r129629
2007-10-25 17:07:56 +00:00
Ira Rosen
8d358a4aae re PR tree-optimization/33833 (ICE in build2_stat, at tree.c:3110 at -O3, tree-vectorizer)
PR tree-optimization/33833
	* tree-vect-analyze.c (vect_analyze_data_refs): Use POINTER_PLUS_EXPR
	and convert init to sizetype in inner_base construction.

From-SVN: r129628
2007-10-25 16:41:45 +00:00
David Daney
7f1d67caa7 * gcc.dg/tree-ssa/20040204-1.c: Un-xfail for mips*-*-*.
From-SVN: r129627
2007-10-25 16:11:27 +00:00
Richard Guenther
cfff829fc6 tree-flow.h (mem_sym_stats): Remove.
2007-10-25  Richard Guenther  <rguenther@suse.de>

	* tree-flow.h (mem_sym_stats): Remove.
	(dump_mem_sym_stats_for_var): Declare.
	* tree-dfa.c (dump_variable): Call dump_mem_sym_stats_for_var.
	(mem_sym_stats): Move ...
	* tree-ssa-alias.c (mem_sym_stats): ... here and make it static.
	(mem_sym_score): Rename from ...
	(pscore): ... this.  Remove.
	(dump_mem_sym_stats_for_var): New function.  Dump the score, but
	not the frequencies.
	(compare_mp_info_entries): Make sort stable by disambiguating
	on DECL_UID.

From-SVN: r129625
2007-10-25 12:38:38 +00:00
Paolo Carlini
1fcd0a2c50 stl_algo.h (__lg<>(_Size)): Slightly tweak.
2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algo.h (__lg<>(_Size)): Slightly tweak.
	(__lg(int), __lg(long), __lg(long long)): Add, overloads
	exploiting __builtin_clz*.

From-SVN: r129624
2007-10-25 10:11:58 +00:00
Ira Rosen
0bf2cf8907 re PR tree-optimization/33866 (ICE in vect_get_vec_def_for_stmt_copy, at tree-vect-transform.c:1937)
PR tree-optimization/33866
	* tree-vect-transform.c (vectorizable_store): Check operands of all the
	stmts in the group of strided accesses. Get def stmt type for each store
	in the group and pass it to vect_get_vec_def_for_stmt_copy ().

From-SVN: r129623
2007-10-25 07:25:55 +00:00
Uros Bizjak
e2520c41ed constraints.md (Y0): Rename register constraint to Yz.
* config/i386/constraints.md (Y0): Rename register constraint to Yz.
        (Yt): Rename register constraint to Y2.
        * config/i386/sse.md: Use renamed register constraints.
        * config/i386/mmx.md: Ditto.
        * config/i386/i386.md: Ditto.

        * config/i386/i386.md (*dummy_extendsfdf2): Fix operand 1 constraint.

From-SVN: r129622
2007-10-25 07:41:37 +02:00
Ben Elliston
acc48927fa MAINTAINERS (mercury): Remove entry.
* MAINTAINERS (mercury): Remove entry.
	(Write After Approval): Add Fergus Henderson <fjh@cs.mu.oz.au>.

From-SVN: r129621
2007-10-25 11:19:52 +10:00
Chao-ying Fu
9a9f6b5266 dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.
* dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or
	DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.

From-SVN: r129620
2007-10-25 01:02:35 +00:00
GCC Administrator
7790f79410 Daily bump.
From-SVN: r129618
2007-10-25 00:17:27 +00:00
Samuel Tardieu
8d66f74218 ipa-struct-reorg.c (replace_field_acc): Make it clear to the compiler that wr.wrap and wr.domain are initialized in any...
2007-10-24  Samuel Tardieu  <sam@rfc1149.net>
            Olga Golovanevsky <olga@il.ibm.com>

	* ipa-struct-reorg.c (replace_field_acc): Make it clear to
	the compiler that wr.wrap and wr.domain are initialized in
	any case.

2007-10-24  Samuel Tardieu  <sam@rfc1149.net>

	* ipa-struct-reorg.c (sum_counts): Use HOST_WIDEST_PRINT_DEC
	to print gcov_type values.

Co-Authored-By: Olga Golovanevsky <olga@il.ibm.com>

From-SVN: r129615
2007-10-24 21:49:27 +00:00
Eric B. Weddington
1de59a139b avr.h: Do not include progmem_section definition when building with IN_TARGET_LIBS.
* config/avr/avr.h: Do not include progmem_section definition when
	building with IN_TARGET_LIBS.

From-SVN: r129614
2007-10-25 01:00:41 +04:00
Uros Bizjak
1e88911415 Forgot one file from my previous commit.
From-SVN: r129613
2007-10-24 22:57:14 +02:00
Uros Bizjak
1e204b2bf1 pr11001-*.c: Remove -m32 from compile flags.
* gcc.target/i386/pr11001-*.c: Remove -m32 from compile flags.
        Add -w to compile flags to suppress "call-clobbered register" warnings
        and remove dg-warning directives.

From-SVN: r129612
2007-10-24 22:55:28 +02:00
Uros Bizjak
6580453213 sms-2.c: Cleanup sms dump file.
* gcc.dg/sms-2.c: Cleanup sms dump file.
        * gcc.dg/tree-prof/tracer-1.c: Cleanup tracer dump file after the
        profile-use step.

From-SVN: r129611
2007-10-24 22:23:35 +02:00
Jason Merrill
7179604fa7 comment typo
From-SVN: r129610
2007-10-24 15:58:57 -04:00
David Daney
876fa8ec87 * gcc.dg/tree-ssa/update-threading.c: Remove xfail.
From-SVN: r129608
2007-10-24 18:02:34 +00:00
Richard Sandiford
a35de34276 re PR target/33755 (Gcc 4.2.2 broken for mips linux kernel builds)
gcc/
	PR target/33755
	* config/mips/mips.c (mips_lo_sum_offset): New structure.
	(mips_hash_base, mips_lo_sum_offset_hash, mips_lo_sum_offset_eq)
	(mips_lo_sum_offset_lookup, mips_record_lo_sum)
	(mips_orphaned_high_part_p: New functions.
	(mips_avoid_hazard): Don't check INSN_P here.
	(mips_avoid_hazards): Rename to...
	(mips_reorg_process_insns): ...this.  Cope with
	!TARGET_EXPLICIT_RELOCS.  Delete orphaned high-part relocations,
	or turn them into nops.
	(mips_reorg): Remove TARGET_EXPLICIT_RELOCS check from calls to
	dbr_schedule and mips_avoid_hazards/mips_reorg_process_insns.
	(mips_set_mips16_mode): Don't set flag_delayed_branch here.
	(mips_override_options): Set flag_delayed_branch to 0.

gcc/testsuite/
	PR target/33755
	* gcc.target/mips/pr33755.c: New test.

From-SVN: r129606
2007-10-24 17:52:16 +00:00
Richard Sandiford
a1c6b246b5 mips.h (MOVE_MAX): Use UNITS_PER_WORD and describe MIPS-specific implementation details.
gcc/
	* config/mips/mips.h (MOVE_MAX): Use UNITS_PER_WORD and describe
	MIPS-specific implementation details.
	(MIPS_MAX_MOVE_BYTES_PER_LOOP_ITER): New macro.
	(MIPS_MAX_MOVE_BYTES_STRAIGHT): Likewise.
	(MOVE_RATIO): Define to MIPS_MAX_MOVE_BYTES_STRAIGHT / UNITS_PER_WORD
	for targets with movmemsi.
	(MOVE_BY_PIECES_P): Define.
	* config/mips/mips.c (MAX_MOVE_REGS, MAX_MOVE_BYTES): Delete.
	(mips_block_move_loop): Add a bytes_per_iter argument.
	(mips_expand_block_move): Use MIPS_MAX_MOVE_BYTES_STRAIGHT.
	Update call to mips_block_move_loop.

From-SVN: r129605
2007-10-24 17:46:39 +00:00
Paolo Carlini
32e520abfc array (_M_instance): Align naturally.
2007-10-24  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1_impl/array (_M_instance): Align naturally.
	* testsuite/ext/array_allocator/1.cc: Use ext/vstring,
	more solid than our current basic_string vs alignment.
	* testsuite/ext/array_allocator/2.cc: Likewise.
	* testsuite/ext/array_allocator/3.cc: Likewise.

From-SVN: r129604
2007-10-24 15:21:22 +00:00
Jason Merrill
510359760e comment typo
From-SVN: r129603
2007-10-24 10:58:49 -04:00
Michael Matz
e56f915286 re PR debug/33868 (Gross memory usage of var-tracking)
PR debug/33868
        * var-tracking.c (variable_union): Don't break after one loop
        * iteration
        but only when a difference is found.
        (dump_variable): Also print DECL_UID.

From-SVN: r129602
2007-10-24 12:54:24 +00:00
Olga Golovanevsky
32154c8905 Fogot to commit ipa-struct-reorg.c ipa-struct-reorg.h.
From-SVN: r129601
2007-10-24 12:48:41 +00:00
Olga Golovanevsky
e1dc98b235 ipa-type-escape.h: Expose function is_array_access_through_pointer_and_index.
2007-10-24  Olga Golovanevsky  <olga@il.ibm.com>

      * ipa-type-escape.h: Expose function
      is_array_access_through_pointer_and_index.
      * ipa-type-escape.c
      (is_array_access_through_pointer_and_index):
      Add three new parameters. Add support of
      POINTER_PLUS_EXPR tree code.

2007-10-24  Olga Golovanevsky  <olga@il.ibm.com>

      * ipa-struct-reorg.c, ipa-struct-reorg.h: New files.
      * tree-pass.h: Add pass_ipa_struct_reorg.
      * common.opt: Add ipa-struct-reorg flag.
      * Makefile.in: Add ipa-strcut-reorg.o compilation.
      * passes.c: Add pass pass_ipa_struct_reorg.
      * params.h:  Add STRUCT_REORG_COLD_STRUCT_RATIO.
      * params.def: Add PARAM_STRUCT_REORG_COLD_STRUCT_RATIO.

From-SVN: r129600
2007-10-24 10:36:30 +00:00
Ira Rosen
712f117220 re PR tree-optimization/33804 (ICE in vect_transform_stmt, at tree-vect-transform.c:6131 with -ftree-vectorize)
PR tree-optimization/33804
	* tree-vect-transform.c (vectorizable_operation): Remove the
	checks that the vectorization is worthwhile from the transformation
	phase.

From-SVN: r129599
2007-10-24 09:35:00 +00:00
Ira Rosen
20e545c381 tree-vect-analyze.c (vect_build_slp_tree): Return false if vectype cannot be determined for the scalar type.
* tree-vect-analyze.c (vect_build_slp_tree): Return false if
	vectype cannot be determined for the scalar type.
	(vect_analyze_slp_instance): Likewise.
	* tree-vect-transform.c (vect_model_reduction_cost): Change the
	return type to bool. Return false if vectype cannot be determined 
	for the scalar type.
	(vect_get_constant_vectors): Return false if vectype cannot be
	determined for the scalar type.
	(get_initial_def_for_induction, vect_get_vec_def_for_operand,
	get_initial_def_for_reduction, vect_create_epilog_for_reduction,
	vectorizable_reduction): Likewise.

From-SVN: r129598
2007-10-24 07:51:09 +00:00
Jason Merrill
6f4fd5362d PR c++/25950 (DR 391)
PR c++/25950 (DR 391)
        * call.c (struct conversion): Remove check_copy_constructor_p.
        (reference_binding): Always bind a reference directly to a
        compatible class rvalue.  Pass down LOOKUP_NO_TEMP_BIND during
        temporary creation.
        (check_constructor_callable): Remove.
        (convert_like_real): Don't call it.
        (initialize_reference): Don't call check_constructor_callable.
        (standard_conversion): Check LOOKUP_NO_CONVERSION instead of
        LOOKUP_CONSTRUCTOR_CALLABLE.  Don't require a temporary for base
        conversions if LOOKUP_NO_TEMP_BIND.
        (implicit_conversion): Pass through LOOKUP_NO_TEMP_BIND.
        (build_user_type_conversion_1): Pass through LOOKUP_NO_TEMP_BIND for
        second conversion.
        * cp-tree.h (LOOKUP_CONSTRUCTOR_CALLABLE): Remove.

From-SVN: r129596
2007-10-23 23:45:37 -04:00
Jerry DeLisle
d72702e2cb re PR fortran/33849 (Fix misleading error message "GENERIC non-INTRINSIC procedure not allowed as an actual argument")
2007-10-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR forrtran/33849
	gfortran.dg/generic_actual_arg.f90: Fix dg-error message.

From-SVN: r129595
2007-10-24 03:39:03 +00:00
GCC Administrator
6a8204bbe1 Daily bump.
From-SVN: r129593
2007-10-24 00:17:28 +00:00
Craig Rodrigues
b2449d40f0 config.gcc: For a FreeBSD target...
* config.gcc: For a FreeBSD target, parse the value of ${target}
	to determine the value of FBSD_MAJOR, instead of adding an
	explicit check for every possible FreeBSD major version.

From-SVN: r129590
2007-10-23 23:53:31 +00:00
Uros Bizjak
881ef7be46 re PR rtl-optimization/33846 (ICE in trunc_int_for_mode, at explow.c:55)
PR rtl-optimization/33846
        * combine.c (simplify_shift_const_1) [NOT]: Skip vector modes.

testsuite/ChangeLog:

        PR rtl-optimization/33846
        * gcc.dg/vect/pr33846.c: New testcase.

From-SVN: r129589
2007-10-23 22:15:04 +02:00