platform/upstream/gcc.git
14 years agofunctional (_Index_tuple, [...]): Simplify and speed-up.
Daniel Frey [Fri, 22 Jan 2010 20:50:15 +0000 (20:50 +0000)]
functional (_Index_tuple, [...]): Simplify and speed-up.

2010-01-22  Daniel Frey  <d.frey@gmx.de>

* include/std/functional (_Index_tuple, _Build_index_tuple):
Simplify and speed-up.

From-SVN: r156178

14 years agotree-into-ssa.c (maybe_register_def): If stmt ends the bb, insert the debug stmt...
Jakub Jelinek [Fri, 22 Jan 2010 19:20:51 +0000 (20:20 +0100)]
tree-into-ssa.c (maybe_register_def): If stmt ends the bb, insert the debug stmt on the single non-EH edge from the stmt.

* tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
insert the debug stmt on the single non-EH edge from the stmt.

From-SVN: r156177

14 years agore PR tree-optimization/42833 (sra miscompiles qemu)
Richard Henderson [Fri, 22 Jan 2010 18:52:01 +0000 (10:52 -0800)]
re PR tree-optimization/42833 (sra miscompiles qemu)

PR tree-opt/42833
* tree-sra.c (sra_modify_assign): Delay re-gimplification of
the RHS until after generate_subtree_copies has insertted its
code before the current statement.

From-SVN: r156176

14 years ago* doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
Joern Rennecke [Fri, 22 Jan 2010 17:00:27 +0000 (17:00 +0000)]
* doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.

From-SVN: r156175

14 years agoPR libstdc++/36101, PR libstdc++/42813
Joern Rennecke [Fri, 22 Jan 2010 13:35:38 +0000 (13:35 +0000)]
PR libstdc++/36101, PR libstdc++/42813

PR libstdc++/36101, PR libstdc++/42813
[toplevel]:
* configure.ac (target_configdirs): Substitute.
* Makefile.def: Bootstrap target module libgomp.
Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
* configure, Makefile.in: Regenerate.
libstdc++-v3:
* acinclude.m4: (enable_parallel): Test ${TARGET_CONFIGDIRS} instead of
loking for omp.h .
* configure: Regenerate.

From-SVN: r156172

14 years agofast-math-mgrid-resid.f: Limit to x86, add -msse2.
Michael Matz [Fri, 22 Jan 2010 13:13:18 +0000 (13:13 +0000)]
fast-math-mgrid-resid.f: Limit to x86, add -msse2.

        * gfortran.dg/vect/fast-math-mgrid-resid.f: Limit to x86, add
        -msse2.

From-SVN: r156170

14 years agosystem-linux-armel.ads (Stack_Check_Probes): Set to True.
Eric Botcazou [Fri, 22 Jan 2010 11:55:45 +0000 (11:55 +0000)]
system-linux-armel.ads (Stack_Check_Probes): Set to True.

* system-linux-armel.ads (Stack_Check_Probes): Set to True.
* system-linux-armeb.ads (Stack_Check_Probes): Likewise.

From-SVN: r156169

14 years agoexgettext: Handle the functions and the macro definitions that the arguments are...
Shujing Zhao [Fri, 22 Jan 2010 02:50:44 +0000 (02:50 +0000)]
exgettext: Handle the functions and the macro definitions that the arguments are broken...

2010-01-22  Shujing Zhao  <pearly.zhao@oracle.com>

        * exgettext: Handle the functions and the macro definitions that the
        arguments are broken into more than one line.

From-SVN: r156168

14 years agoDaily bump.
GCC Administrator [Fri, 22 Jan 2010 00:16:46 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r156164

14 years agore PR fortran/42736 (Wrong-code with allocatable or pointer components in elemental...
Paul Thomas [Thu, 21 Jan 2010 20:38:51 +0000 (20:38 +0000)]
re PR fortran/42736 (Wrong-code with allocatable or pointer components in elemental functions)

2010-01-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/42736
* trans-stmt.c (gfc_conv_elemental_dependencies): If temporary
is required, turn any trailing array elements after a range
into ranges so that offsets can be calculated.

2010-01-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/42736
* gfortran.dg/dependency_25.f90 : New test.

From-SVN: r156161

14 years agore PR tree-optimization/42585 (SRA is not good for structure copies with one replacem...
Martin Jambor [Thu, 21 Jan 2010 16:18:06 +0000 (17:18 +0100)]
re PR tree-optimization/42585 (SRA is not good for structure copies with one replacement any more)

2010-01-21  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/42585
* tree-sra.c (struct access): New field grp_total_scalarization.
(dump_access): Dump the new field.
(should_scalarize_away_bitmap): New variable.
(cannot_scalarize_away_bitmap): Likewise.
(sra_initialize): Allocate new bitmaps.
(sra_deinitialize): Free new bitmaps.
(create_access_1): New function.
(create_access): Parts moved to create_access_1.
(type_consists_of_records_p): New function.
(completely_scalarize_record): Likewise.
(build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
(build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
(sort_and_splice_var_accesses): Hint groups with a total_scalarization
access.
(analyze_all_variable_accesses): Completely scalarize small eligible
records.

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

From-SVN: r156156

14 years agotree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
Martin Jambor [Thu, 21 Jan 2010 16:04:12 +0000 (17:04 +0100)]
tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.

2010-01-21  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.

From-SVN: r156155

14 years agogcc.c (process_command): Move lang_specific_driver before setting cc_libexec_prefix.
Andrew Haley [Thu, 21 Jan 2010 15:29:30 +0000 (15:29 +0000)]
gcc.c (process_command): Move lang_specific_driver before setting cc_libexec_prefix.

2010-01-21  Andrew Haley  <aph@redhat.com>

        * gcc.c (process_command): Move lang_specific_driver before
        setting cc_libexec_prefix.

From-SVN: r156154

14 years agore PR middle-end/19988 (pessimizes fp multiply-add/subtract combo)
Richard Guenther [Thu, 21 Jan 2010 12:15:40 +0000 (12:15 +0000)]
re PR middle-end/19988 (pessimizes fp multiply-add/subtract combo)

2010-01-21  Richard Guenther  <rguenther@suse.de>

PR middle-end/19988
* fold-const.c (negate_expr_p): Pretend only negative
real constants are easily negatable.

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

From-SVN: r156152

14 years agoMAINTAINERS (CPU Port Maintainers): Add myself for avr port.
Eric B. Weddington [Thu, 21 Jan 2010 05:51:35 +0000 (05:51 +0000)]
MAINTAINERS (CPU Port Maintainers): Add myself for avr port.

2010-01-20  Eric B. Weddington  <eric.weddington@atmel.com>

* MAINTAINERS (CPU Port Maintainers): Add myself for avr port.

From-SVN: r156107

14 years agotree.h (TYPE_TRANSPARENT_UNION): Replace with ...
Janis Johnson [Thu, 21 Jan 2010 05:49:35 +0000 (05:49 +0000)]
tree.h (TYPE_TRANSPARENT_UNION): Replace with ...

* tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
(TYPE_TRANSPARENT_AGGR): this, for union and record.
* calls.c (initialize argument_information): Handle it.
* c-common.c (handle_transparent_union_attribute): Use new name.
* c-decl.c (finish_struct): Ditto.
* c-typeck.c (type_lists_compatible_p): Ditto.
(convert_for_assignment): Use new name and also handle record.
* function.c (aggregate_value_p): Handle it.
(pass_by_reference): Ditto.
(assign_parm_data_types): Ditto.
* print-tree.c (print_node): Ditto.
* lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
* lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
* tree.c (first_field): New fn.

gcc/cp/
* mangle.c (write_type): Mangle transparent record as member type.
* semantics.c (begin_class_definition): Recognize decimal classes
and set TYPE_TRANSPARENT_AGGR.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r156106

14 years agore PR target/42818 (Static C++ linking breakage "undefined reference to ___real__Znwj...
Dave Korn [Thu, 21 Jan 2010 04:56:38 +0000 (04:56 +0000)]
re PR target/42818 (Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o))

PR target/42818
* config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
even when linking statically, for now.

From-SVN: r156105

14 years agoMAINTAINERS: Adjust my details.
Dave Korn [Thu, 21 Jan 2010 04:34:02 +0000 (04:34 +0000)]
MAINTAINERS: Adjust my details.

* MAINTAINERS: Adjust my details.

From-SVN: r156104

14 years agore PR c++/42338 ([c++0x] ICE on decltype usage with templates)
Jason Merrill [Thu, 21 Jan 2010 01:58:53 +0000 (20:58 -0500)]
re PR c++/42338 ([c++0x] ICE on decltype usage with templates)

PR c++/42338
* mangle.c (write_expression): Handle tree codes that have extra
arguments in the middle-end.
* cp-demangle.c (d_print_comp): Fix array index printing.

From-SVN: r156103

14 years agore PR other/42715 (output_operand: invalid expression as operand)
Alexandre Oliva [Thu, 21 Jan 2010 00:42:02 +0000 (00:42 +0000)]
re PR other/42715 (output_operand: invalid expression as operand)

PR debug/42715
* var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
without a cselib val.
(count_uses): Accept MO_VAL_SET with no val on stores.
(add_stores): Likewise.

* gcc.dg/pr42715.c: New.

From-SVN: r156102

14 years agovar-tracking.c (check_value_val): Add a compile time assertion.
Jakub Jelinek [Thu, 21 Jan 2010 00:39:57 +0000 (01:39 +0100)]
var-tracking.c (check_value_val): Add a compile time assertion.

* var-tracking.c (check_value_val): Add a compile time assertion.
(dv_is_decl_p): Simplify.
(dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
gcc_assert if ENABLE_CHECKING.

From-SVN: r156101

14 years agoDaily bump.
GCC Administrator [Thu, 21 Jan 2010 00:16:45 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r156100

14 years agore PR libstdc++/42201 ([C++0x] std::vector<std::unique_future<T>>::push_back fails)
Jonathan Wakely [Thu, 21 Jan 2010 00:01:47 +0000 (00:01 +0000)]
re PR libstdc++/42201 ([C++0x] std::vector<std::unique_future<T>>::push_back fails)

2010-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/42201
* include/std/future: Update to latest WP.
* src/functexcept.cc (__throw_future_error): Use make_error_code.
* testsuite/30_threads/async/any.cc: New.
* testsuite/30_threads/async/async.cc: New.
* testsuite/30_threads/async/sync.cc: New.
* testsuite/30_threads/packaged_task/cons/alloc.cc: New.
* testsuite/30_threads/packaged_task/cons/assign_neg.cc: Adjust.
* testsuite/30_threads/packaged_task/cons/copy_neg.cc: Adjust.
* testsuite/30_threads/packaged_task/members/get_future.cc: Adjust.
* testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
* testsuite/30_threads/packaged_task/members/invoke.cc: Adjust.
* testsuite/30_threads/packaged_task/members/invoke2.cc: Adjust.
* testsuite/30_threads/packaged_task/members/invoke3.cc: Adjust.
* testsuite/30_threads/packaged_task/members/invoke4.cc: Adjust.
* testsuite/30_threads/packaged_task/members/reset.cc: Adjust.
* testsuite/30_threads/packaged_task/members/reset2.cc: Adjust.
* testsuite/30_threads/shared_future/cons/assign_neg.cc: Remove.
* testsuite/30_threads/shared_future/cons/default_neg.cc: Remove.
* testsuite/30_threads/shared_future/cons/default.cc: New.
* testsuite/30_threads/shared_future/cons/assign.cc: New.
* testsuite/30_threads/shared_future/cons/copy.cc: Adjust.
* testsuite/30_threads/shared_future/cons/move.cc: Adjust.
* testsuite/30_threads/shared_future/cons/move_assign.cc: New.
* testsuite/30_threads/shared_future/members/is_ready.cc: Remove.
* testsuite/30_threads/shared_future/members/has_value.cc: Remove.
* testsuite/30_threads/shared_future/members/has_exception.cc: Remove.
* testsuite/30_threads/shared_future/members/valid.cc: New.
* testsuite/30_threads/unique_future/cons/default_neg.cc: Remove.
* testsuite/30_threads/unique_future/cons/default.cc: New.
* testsuite/30_threads/unique_future/cons/move_assign.cc: New.
* testsuite/30_threads/unique_future/cons/assign_neg.cc: Adjust.
* testsuite/30_threads/unique_future/cons/copy_neg.cc: Adjust.
* testsuite/30_threads/unique_future/cons/move.cc: Adjust.
* testsuite/30_threads/unique_future/requirements/
        explicit_instantiation.cc: Adjust.
* testsuite/30_threads/unique_future/members/is_ready.cc: Remove.
* testsuite/30_threads/unique_future/members/has_value.cc: Remove.
* testsuite/30_threads/unique_future/members/has_exception.cc: Remove.
* testsuite/30_threads/unique_future/members/valid.cc: New.
* testsuite/30_threads/unique_future/members/get.cc: Adjust.
* testsuite/30_threads/unique_future/members/get2.cc: Adjust.
* testsuite/30_threads/unique_future/members/wait.cc: Adjust.
* testsuite/30_threads/unique_future/members/wait_for.cc: Adjust.
* testsuite/30_threads/unique_future/members/wait_until.cc: Adjust.
* testsuite/30_threads/headers/future/types_std_c++0x.cc: Adjust.
* testsuite/30_threads/promise/cons/alloc.cc: New.
* testsuite/30_threads/promise/cons/assign_neg.cc: Adjust.
* testsuite/30_threads/promise/cons/copy_neg.cc: Adjust.
* testsuite/30_threads/promise/cons/move.cc: Adjust.
* testsuite/30_threads/promise/cons/move_assign.cc: Adjust.
* testsuite/30_threads/promise/members/get_future.cc: Adjust.
* testsuite/30_threads/promise/members/set_value.cc: Adjust.
* testsuite/30_threads/promise/members/set_exception.cc: Adjust.
* testsuite/30_threads/promise/members/set_exception2.cc: Adjust.
* testsuite/30_threads/promise/members/set_value2.cc: Adjust.
* testsuite/30_threads/promise/members/set_value3.cc: Adjust.
* testsuite/30_threads/promise/members/swap.cc: Adjust.

From-SVN: r156097

14 years agore PR c++/42038 (ICE: tree check: expected class 'type', have 'exceptional' (error_ma...
Paolo Carlini [Wed, 20 Jan 2010 23:12:25 +0000 (23:12 +0000)]
re PR c++/42038 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p)

/cp
2010-01-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42038
* except.c (expand_start_catch_block): Deal correctly with
do_begin_catch returning error_mark_node.

/testsuite
2010-01-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42038
* g++.dg/parse/crash55.C: New.

From-SVN: r156094

14 years agore PR debug/42782 (VTA missed location: parameter via stack)
Alexandre Oliva [Wed, 20 Jan 2010 22:57:20 +0000 (22:57 +0000)]
re PR debug/42782 (VTA missed location: parameter via stack)

PR debug/42782
* var-tracking.c: Include tree-flow.h.
(mem_dies_at_call): New.
(dataflow_set_preserve_mem_locs): Use it.
(dataflow_set_remove_mem_locs): Likewise.
(dump_var): Renamed from dump_variable.  Adjust all callers.
(dump_var_slot): Renamed from dump_variable_slot.  Likewise.
* Makefile.in (var-tracking.o): Adjust deps.

* gcc.dg/guality/pr42782.c: New.

From-SVN: r156092

14 years ago* doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
Joern Rennecke [Wed, 20 Jan 2010 22:21:27 +0000 (22:21 +0000)]
* doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.

From-SVN: r156091

14 years ago* g++.dg/parse/fn-typedef1.C: Add dg-do run.
Jason Merrill [Wed, 20 Jan 2010 22:15:00 +0000 (17:15 -0500)]
* g++.dg/parse/fn-typedef1.C: Add dg-do run.

From-SVN: r156089

14 years agore PR c++/41788 (-Wpacked option changes the layout of packed non-POD structs)
Jason Merrill [Wed, 20 Jan 2010 22:14:51 +0000 (17:14 -0500)]
re PR c++/41788 (-Wpacked option changes the layout of packed non-POD structs)

PR c++/41788
* class.c (layout_class_type): Set packed_maybe_necessary for packed
non-PODs.

From-SVN: r156088

14 years agore PR c++/41920 ([C++0x] Invalid 'unused parameter' warning for parameters used in...
Jason Merrill [Wed, 20 Jan 2010 21:30:28 +0000 (16:30 -0500)]
re PR c++/41920 ([C++0x] Invalid 'unused parameter' warning for parameters used in lambdas)

PR c++/41920
* semantics.c (build_lambda_object): Call mark_used on captured
variables.

From-SVN: r156085

14 years agore PR c++/40750 (Side-effect of member function call not produced in certain circumst...
Jason Merrill [Wed, 20 Jan 2010 21:30:20 +0000 (16:30 -0500)]
re PR c++/40750 (Side-effect of member function call not produced in certain circumstances)

PR c++/40750
* decl.c (grokdeclarator): Clear type_quals for a member function
declared using a typedef.  Don't complain about adding cv-quals
to a function typedef in C++0x mode.

From-SVN: r156084

14 years agoTestsuite cleanups for moxie.
Anthony Green [Wed, 20 Jan 2010 14:17:00 +0000 (14:17 +0000)]
Testsuite cleanups for moxie.

From-SVN: r156081

14 years ago* zh_CN.po: Update.
Joseph Myers [Wed, 20 Jan 2010 13:15:55 +0000 (13:15 +0000)]
* zh_CN.po: Update.

From-SVN: r156080

14 years agore PR tree-optimization/42717 (ice: verify_ssa failed)
Richard Guenther [Wed, 20 Jan 2010 12:30:15 +0000 (12:30 +0000)]
re PR tree-optimization/42717 (ice: verify_ssa failed)

2010-01-20  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/42717
* tree-ssa-dce.c (get_live_post_dom): Remove.
(forward_edge_to_pdom): Take an arbitrary edge to copy
degenerate PHI args from.
(remove_dead_stmt): Use the first post-dominator even if it
does not contain live statements as redirection destination.

* gcc.c-torture/compile/pr42717.c: New testcase.

From-SVN: r156076

14 years agore PR libstdc++/21769 (per-file control over PCH inclusion)
Janis Johnson [Wed, 20 Jan 2010 11:57:44 +0000 (11:57 +0000)]
re PR libstdc++/21769 (per-file control over PCH inclusion)

2010-01-20  Janis Johnson  <janis187@us.ibm.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/21769
* testsuite/lib/dg-options.exp (add_options_for_no_pch): Add.
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
Use it.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r156075

14 years agotree-inline.c (estimate_num_insns): Handle EH builtins.
Richard Guenther [Wed, 20 Jan 2010 11:47:39 +0000 (11:47 +0000)]
tree-inline.c (estimate_num_insns): Handle EH builtins.

2010-01-20  Richard Guenther  <rguenther@suse.de>

* tree-inline.c (estimate_num_insns): Handle EH builtins.

From-SVN: r156073

14 years agosel-sched.c (create_speculation_check): Remove set but not used variable twin.
Jakub Jelinek [Wed, 20 Jan 2010 11:30:05 +0000 (12:30 +0100)]
sel-sched.c (create_speculation_check): Remove set but not used variable twin.

* sel-sched.c (create_speculation_check): Remove set but not used
variable twin.
(try_transformation_cache): Remove set but not used variable ds.
(calculate_privileged_insns): Remove set but not used variables
cur_insn and min_spec_insn.
(find_best_expr): Remove set but not used variable avail_n.
* tree-predcom.c (base_names_in_chain_on): Remove set but not used
variable e.
* cgraphunit.c (assemble_thunk): Remove set but not used variable
false_label.
* haifa-sched.c (remove_notes): Remove set but not used variable prev.
* graphite-clast-to-gimple.c (gloog): Remove set but not used variable
new_scop_exit_edge.

* decl.c (create_array_type_for_decl): Remove set but not used
variable error_msg.  Remove break stmts after return stmts.

From-SVN: r156072

14 years agore PR bootstrap/42786 (Athlon SSE3 and Fx processors not supported by configure)
Felyza Wishbringer [Wed, 20 Jan 2010 11:27:49 +0000 (11:27 +0000)]
re PR bootstrap/42786 (Athlon SSE3 and Fx processors not supported by configure)

PR bootstrap/42786
* config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
cpu types.  Add support for *-sse3 cpu types.
(x86_64-*-*): Ditto.

From-SVN: r156071

14 years agore PR middle-end/42803 (c++ compilation hang)
Jakub Jelinek [Wed, 20 Jan 2010 11:08:24 +0000 (12:08 +0100)]
re PR middle-end/42803 (c++ compilation hang)

PR middle-end/42803
* varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
argument, call initializer_constant_valid_p_1 instead of
initializer_constant_valid_p, pass CACHE to it, return NULL
immediately if first call returns NULL.
(initializer_constant_valid_p_1): New function.
(initializer_constant_valid_p): Use it.

* g++.dg/parse/limits-initializer1.C: New test.

From-SVN: r156069

14 years ago* jvspec.c (lang_specific_driver): Constify two variables named "p".
Joern Rennecke [Wed, 20 Jan 2010 10:35:38 +0000 (10:35 +0000)]
* jvspec.c (lang_specific_driver): Constify two variables named "p".

From-SVN: r156068

14 years ago* tree.def (PLACEHOLDER_EXPR): Fix comment.
Thomas Quinot [Wed, 20 Jan 2010 09:47:41 +0000 (09:47 +0000)]
* tree.def (PLACEHOLDER_EXPR): Fix comment.

From-SVN: r156067

14 years agojcf-parse.c (set_source_filename): Constify variable "dot".
Joern Rennecke [Wed, 20 Jan 2010 09:35:05 +0000 (09:35 +0000)]
jcf-parse.c (set_source_filename): Constify variable "dot".

* jcf-parse.c (set_source_filename): Constify variable "dot".
(load_class): Constify variable "separator".
Use get_identifier_with_length.

From-SVN: r156066

14 years ago* lang.c (java_post_options): Constify variable "dot".
Joern Rennecke [Wed, 20 Jan 2010 08:17:00 +0000 (08:17 +0000)]
* lang.c (java_post_options): Constify variable "dot".

From-SVN: r156064

14 years agodwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead of MOD...
Jakub Jelinek [Wed, 20 Jan 2010 08:13:50 +0000 (09:13 +0100)]
dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead of MOD...

* dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
(loc_list_from_tree): Don't handle unsigned division.  Handle
signed modulo using DW_OP_{over,over,div,mul,minus}.
* unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
modulo instead of signed.

* gcc.dg/cleanup-13.c: Expect DW_OP_mod to do unsigned modulo instead
of signed, add a few new tests.

From-SVN: r156063

14 years agore PR bootstrap/42812 (--enable-build-with-cxx bootstrap fails on fortran/resolve...
Joern Rennecke [Wed, 20 Jan 2010 07:52:18 +0000 (07:52 +0000)]
re PR bootstrap/42812 (--enable-build-with-cxx bootstrap fails on fortran/resolve.c:gfc_resolve)

PR bootstrap/42812
* gfortran.h  (struct gfc_namespace) <resolved>: Change to signed
bitfield of width 2.

From-SVN: r156062

14 years agoh8300.c (F): Add "in_epilogue" flag.
DJ Delorie [Wed, 20 Jan 2010 05:58:59 +0000 (00:58 -0500)]
h8300.c (F): Add "in_epilogue" flag.

* config/h8300/h8300.c (F): Add "in_epilogue" flag.
(Fpa): Pass it
(h8300_emit_stack_adjustment): Propogate it.
(push): Pass it.
(h8300_expand_prologue): Likewise.
(h8300_expand_epilogue): Likewise.

From-SVN: r156056

14 years agomodule.c (mio_f2k_derived): Use enumerator as initializer of enum variable.
Joern Rennecke [Wed, 20 Jan 2010 05:39:12 +0000 (05:39 +0000)]
module.c (mio_f2k_derived): Use enumerator as initializer of enum variable.

* module.c (mio_f2k_derived): Use enumerator as initializer of
enum variable.

From-SVN: r156055

14 years agoDaily bump.
GCC Administrator [Wed, 20 Jan 2010 00:16:53 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r156053

14 years agore PR fortran/42804 (ICE with -fcheck=bounds and type bound procedure call on array...
Janus Weil [Tue, 19 Jan 2010 22:21:35 +0000 (23:21 +0100)]
re PR fortran/42804 (ICE with -fcheck=bounds and type bound procedure call on array element)

gcc/fortran/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42804
* resolve.c (extract_compcall_passed_object): Set locus for
passed-object argument.
(extract_ppc_passed_object): Set locus and correctly remove PPC
reference.

gcc/testsuite/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42804
* gfortran.dg/proc_ptr_comp_pass_6.f90: New test.
* gfortran.dg/typebound_call_12.f03: New test.

From-SVN: r156049

14 years agore PR fortran/42783 (Bogus Array bounds violation with optional array argument)
Paul Thomas [Tue, 19 Jan 2010 19:46:59 +0000 (19:46 +0000)]
re PR fortran/42783 (Bogus Array bounds violation with optional array argument)

2010-01-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/42783
* trans-decl.c (add_argument_checking): Do not use the backend
decl directly to test for the presence of an optional dummy
argument.  Use gfc_conv_expr_present, remembering to set the
symbol referenced.

PR fortran/42772
* trans-decl.c (gfc_generate_function_code): Small white space
changes. If 'recurcheckvar' is NULL do not try to reset it.

2010-01-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/42783
* gfortran.dg/bounds_check_15.f90 : New test.

From-SVN: r156046

14 years ago2010-01-19 Matthias Klose <doko@ubuntu.com>
Matthias Klose [Tue, 19 Jan 2010 16:42:47 +0000 (16:42 +0000)]
2010-01-19  Matthias Klose  <doko@ubuntu.com>

        * Regenerate .class files.
        * classpath/lib/java/security/VMSecureRandom*.class: Remove.

From-SVN: r156044

14 years agore PR tree-optimization/41783 (r151561 (PRE fix) regresses zeusmp)
Michael Matz [Tue, 19 Jan 2010 16:05:57 +0000 (16:05 +0000)]
re PR tree-optimization/41783 (r151561 (PRE fix) regresses zeusmp)

PR tree-optimization/41783
* tree-data-ref.c (toplevel): Include flags.h.
(dump_data_dependence_relation):  Also dump the inputs if the
result will be unknown.
(split_constant_offset_1): Look through some conversions.
* tree-predcom.c (determine_roots_comp): Restart a new chain if
the offset from last element is too large.
(ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
(reassociate_to_the_same_stmt): Handle vector registers.
* tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
(e.g. conversions).
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
wide_prolog_niters argument, emit widening instructions.
(vect_do_peeling_for_alignment): Adjust caller, use widened
variant of the iteration cound.
* Makefile.in (tree-data-ref.o): Add $(FLAGS_H).

testsuite/
* gfortran.dg/vect/fast-math-mgrid-resid.f: New.

From-SVN: r156043

14 years agoFix target/38697
Ramana Radhakrishnan [Tue, 19 Jan 2010 14:21:14 +0000 (14:21 +0000)]
Fix target/38697

2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       PR target/38697
       * config/arm/neon-testgen.m (emit_automatics): New parameter
features. Adjust for Fixed_return_reg feature.
(test_intrinsic): Call emit_automatics with new feature.
       * config/arm/neon.ml: Update copyright years.
(features): New Fixed_return_reg feature.
(ops): Update feature for Vget_low.

2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/38697.
* gcc.target/arm/neon/vget_lowf32.c: Regenerate.
* gcc.target/arm/neon/vget_lowp16.c: Likewise.
* gcc.target/arm/neon/vget_lowp8.c:  Likewise.
* gcc.target/arm/neon/vget_lows16.c: Likewise.
* gcc.target/arm/neon/vget_lows32.c: Likewise.
* gcc.target/arm/neon/vget_lows64.c: Likewise.
* gcc.target/arm/neon/vget_lows8.c: Likewise.
* gcc.target/arm/neon/vget_lowu16.c: Likewise.
* gcc.target/arm/neon/vget_lowu32.c: Likewise.
* gcc.target/arm/neon/vget_lowu64.c: Likewise.
* gcc.target/arm/neon/vget_lowu8.c: Likewise.

From-SVN: r156042

14 years agore PR fortran/42545 (type extension: parent component has wrong accessibility)
Janus Weil [Tue, 19 Jan 2010 13:45:07 +0000 (14:45 +0100)]
re PR fortran/42545 (type extension: parent component has wrong accessibility)

gcc/fortran/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42545
* resolve.c (resolve_fl_derived): Set the accessibility of the parent
component for extended types.
* symbol.c (gfc_find_component): Remove a wrongly-worded error message
and take care of parent component accessibility.

gcc/testsuite/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42545
* gfortran.dg/extends_6.f03: Modified an error message.
* gfortran.dg/extends_10.f03: New test.
* gfortran.dg/private_type_6.f03: Modified an error message.
* gfortran.dg/structure_constructor_8.f03: Ditto.

From-SVN: r156040

14 years agore PR tree-optimization/42719 ("-fcompare-debug failure" with "-O2 -ftracer")
Jakub Jelinek [Tue, 19 Jan 2010 12:39:42 +0000 (13:39 +0100)]
re PR tree-optimization/42719 ("-fcompare-debug failure" with "-O2 -ftracer")

PR tree-optimization/42719
* tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
stmt uses.

* gcc.dg/pr42719.c: New test.

From-SVN: r156038

14 years agore PR debug/42728 ("-fcompare-debug failure (length)" at -O1)
Jakub Jelinek [Tue, 19 Jan 2010 12:38:25 +0000 (13:38 +0100)]
re PR debug/42728 ("-fcompare-debug failure (length)" at -O1)

PR debug/42728
* fwprop.c (all_uses_available_at): Return false if def_set dest
is a REG that is used in def_insn.

* gcc.dg/pr42728.c: New test.

From-SVN: r156037

14 years agore PR libstdc++/42712 (search_n/iterator.cc times out in parallel-mode)
Johannes Singler [Tue, 19 Jan 2010 11:18:03 +0000 (11:18 +0000)]
re PR libstdc++/42712 (search_n/iterator.cc times out in parallel-mode)

2010-01-19  Johannes Singler  <singler@kit.edu>

        PR libstdc++/42712
        * include/parallel/settings.h (_Settings): Add search_minimal_n.
        * include/parallel/algo.h (__search_switch):
        Add serial fallback for too small inputs.
        (__search_n_switch): Likewise.  Call serial fallback on higher level
        to gain special treatment for __count 0 or 1.
        * testsuite/25_algorithms/search_n/iterator.cc:
        Reenable full test depth for parallel mode.

From-SVN: r156036

14 years agotarget.h (struct gcc_target): Change type of last argument to secondary_reload_info *.
Joern Rennecke [Tue, 19 Jan 2010 08:22:22 +0000 (08:22 +0000)]
target.h (struct gcc_target): Change type of last argument to secondary_reload_info *.

* target.h (struct gcc_target) <secondary_reload>: Change type
of last argument to secondary_reload_info *.

From-SVN: r156035

14 years agotm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
Joern Rennecke [Tue, 19 Jan 2010 05:46:27 +0000 (05:46 +0000)]
tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.

* doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.

(TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
Add argument names.

(TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.

From-SVN: r156034

14 years agoExpect 20040204-1 to pass on moxie.
Anthony Green [Tue, 19 Jan 2010 05:34:19 +0000 (05:34 +0000)]
Expect 20040204-1 to pass on moxie.

From-SVN: r156033

14 years agoFix asm-3.c test for moxie.
Anthony Green [Tue, 19 Jan 2010 05:19:26 +0000 (05:19 +0000)]
Fix asm-3.c test for moxie.

From-SVN: r156032

14 years agoDaily bump.
GCC Administrator [Tue, 19 Jan 2010 00:17:29 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r156030

14 years agoRevert fix of PR c++/
Dodji Seketeli [Mon, 18 Jan 2010 23:14:01 +0000 (23:14 +0000)]
Revert fix of PR c++/

gcc/cp/ChangeLog:
* error.c (dump_template_parms, count_non_default_template_args):
Revert fix of PR c++/42634.

gcc/testsuite/ChangeLog:
* g++.dg/template/error45.C: reverted as part of reverting the
fix of PR c++/42634.

From-SVN: r156026

14 years agoMakefile.am (GJDOC_EX): Use find -name pattern -prune -o.
Andreas Tobler [Mon, 18 Jan 2010 21:32:40 +0000 (22:32 +0100)]
Makefile.am (GJDOC_EX): Use find -name pattern -prune -o.

2010-01-18  Andreas Tobler  <andreast@fgznet.ch>

* tools/Makefile.am (GJDOC_EX): Use find -name pattern -prune -o.
* tools/Makefile.in: Regenerate.

From-SVN: r156023

14 years agore PR c++/42634 (ICE with -g -O2 -std=c++0x in copy_fn_p, at cp/decl.c:9973)
Dodji Seketeli [Mon, 18 Jan 2010 21:18:49 +0000 (21:18 +0000)]
re PR c++/42634 (ICE with -g -O2 -std=c++0x   in copy_fn_p, at cp/decl.c:9973)

Fix PR c++/42634

gcc/cp/ChangeLog:
    PR c++/42634
    * error.c (dump_template_parms): Use innermost template
    arguments before calling count_non_default_template_args.
    (count_non_default_template_args): We are being called with
    template innermost arguments now. There is no need to ensure
    that again.

gcc/testsuite/ChangeLog:
    PR c++/42634
    * g++.dg/template/error45.C: New test.

From-SVN: r156022

14 years agore PR c++/42766 (tree check fail in build_expr_type_conversion)
Dodji Seketeli [Mon, 18 Jan 2010 19:11:24 +0000 (19:11 +0000)]
re PR c++/42766 (tree check fail in build_expr_type_conversion)

Fix PR c++/42766

gcc/cp/ChangeLog:
PR c++/42766
* cvt.c (build_expr_type_conversion): Look through OVERLOAD.

gcc/testsuite/ChangeLog:
PR c++/42766
* g++.dg/conversion/op6.C: New test.

From-SVN: r156020

14 years ago* gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
Eric Botcazou [Mon, 18 Jan 2010 17:55:03 +0000 (17:55 +0000)]
* gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.

From-SVN: r156018

14 years agore PR target/42774 (ICE in get_aligned_mem, at config/alpha/alpha.c:1484)
Uros Bizjak [Mon, 18 Jan 2010 17:46:17 +0000 (18:46 +0100)]
re PR target/42774 (ICE in get_aligned_mem, at config/alpha/alpha.c:1484)

PR target/42774
* config/alpha/predicates.md (aligned_memory_operand): Return 0 for
memory references with unaligned offsets.  Remove CQImode handling.
(unaligned_memory_operand): Return 1 for memory references with
unaligned offsets.  Remove CQImode handling.

testsuite/ChangeLog:

PR target/42774
* gcc.target/alpha/pr42774.c: New test.

From-SVN: r156017

14 years agore PR ada/42068 (ICE in function_and_variable_visibility)
Jan Hubicka [Mon, 18 Jan 2010 17:19:13 +0000 (17:19 +0000)]
re PR ada/42068 (ICE in function_and_variable_visibility)

PR middle-end/42068
* gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
unit local variables.

From-SVN: r156016

14 years agore PR ada/42068 (ICE in function_and_variable_visibility)
Jan Hubicka [Mon, 18 Jan 2010 15:42:05 +0000 (16:42 +0100)]
re PR ada/42068 (ICE in function_and_variable_visibility)

PR middle-end/42068
(create_var_decl_1): Do not set COMMON flag for unit local variables.

From-SVN: r156010

14 years ago* zh_CN.po: Update.
Joseph Myers [Mon, 18 Jan 2010 13:28:09 +0000 (13:28 +0000)]
* zh_CN.po: Update.

From-SVN: r156009

14 years agore PR middle-end/39954 (Revision 146817 caused unaligned access in gcc.dg/torture...
Richard Guenther [Mon, 18 Jan 2010 12:59:50 +0000 (12:59 +0000)]
re PR middle-end/39954 (Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c)

2010-01-18  Richard Guenther  <rguenther@suse.de>

PR middle-end/39954
* cfgexpand.c (expand_call_stmt): TER pointer arguments in
builtin calls.

From-SVN: r156008

14 years agofunctional (_Bind<_Functor(_Bound_args...)>:: operator()): "Pass" _Result to __call*.
Daniel Frey [Mon, 18 Jan 2010 10:41:30 +0000 (10:41 +0000)]
functional (_Bind<_Functor(_Bound_args...)>:: operator()): "Pass" _Result to __call*.

2010-01-18  Daniel Frey  <d.frey@gmx.de>

* include/std/functional (_Bind<_Functor(_Bound_args...)>::
operator()): "Pass" _Result to __call*.
(_Bind<_Functor(_Bound_args...)>::__call*): Adjust, simplify.

From-SVN: r156007

14 years agore PR tree-optimization/42781 (ICE in pt_solutions_same_restrict_base, at tree-ssa...
Richard Guenther [Mon, 18 Jan 2010 09:57:11 +0000 (09:57 +0000)]
re PR tree-optimization/42781 (ICE in pt_solutions_same_restrict_base, at tree-ssa-structalias.c:5072)

2010-01-18  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/42781
* tree-ssa-structalias.c (find_what_var_points_to): Skip
restrict processing only if the original variable was
artificial.

* gfortran.fortran-torture/compile/pr42781.f90: New testcase.

From-SVN: r156006

14 years ago* MAINTAINERS: reindented my entry with tabs instead of spaces.
Thierry Lafage [Mon, 18 Jan 2010 09:33:39 +0000 (10:33 +0100)]
* MAINTAINERS: reindented my entry with tabs instead of spaces.

From-SVN: r156004

14 years agobase.h (__unary_negate): Correct comment.
Johannes Singler [Mon, 18 Jan 2010 08:44:45 +0000 (08:44 +0000)]
base.h (__unary_negate): Correct comment.

2010-01-18  Johannes Singler  <singler@kit.edu>

        * include/parallel/base.h (__unary_negate): Correct comment.

From-SVN: r156003

14 years agotoplev.c (default_get_pch_validity): Rename argument to "sz".
Joern Rennecke [Mon, 18 Jan 2010 05:46:19 +0000 (05:46 +0000)]
toplev.c (default_get_pch_validity): Rename argument to "sz".

* toplev.c (default_get_pch_validity): Rename argument to "sz".
* doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.

From-SVN: r156002

14 years agotm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to find number of popped...
Joern Rennecke [Mon, 18 Jan 2010 02:47:16 +0000 (02:47 +0000)]
tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to find number of popped argument bytes.

* doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
find number of popped argument bytes.

(TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
Fix the text that describes the return value for invalid insns.

(TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.

(TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
Clarify what 'cost of the -dependence' is.  Fix quoting.

From-SVN: r155999

14 years agoDaily bump.
GCC Administrator [Mon, 18 Jan 2010 00:16:40 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155997

14 years agoMakefile.in: Fix typo in arm*-*-linux-gnueabi.
Laurent GUERBY [Sun, 17 Jan 2010 20:45:50 +0000 (20:45 +0000)]
Makefile.in: Fix typo in arm*-*-linux-gnueabi.

2010-01-17  Laurent GUERBY  <laurent@guerby.net>

* gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.

From-SVN: r155993

14 years agodwarf2out.c (mem_loc_descriptor): Don't ICE on {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
Jakub Jelinek [Sun, 17 Jan 2010 20:43:15 +0000 (21:43 +0100)]
dwarf2out.c (mem_loc_descriptor): Don't ICE on {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.

* dwarf2out.c (mem_loc_descriptor): Don't ICE on
{S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.

From-SVN: r155992

14 years agore PR middle-end/42248 (compat test struct-by-value-17 fails execution with -O1 ...
Richard Guenther [Sun, 17 Jan 2010 17:00:47 +0000 (17:00 +0000)]
re PR middle-end/42248 (compat test struct-by-value-17 fails execution with -O1 -fschedule-insns)

2010-01-17  Richard Guenther  <rguenther@suse.de>

PR middle-end/42248
* function.c (split_complex_args): Take a VEC to modify.
(assign_parms_augmented_arg_list): Build a VEC instead of
a chain of PARM_DECLs.
(assign_parms_unsplit_complex): Take a VEC of arguments.
Do not fixup unmodified parms.
(assign_parms): Deal with the VEC.
(gimplify_parameters): Likewise.

* gcc.c-torture/execute/pr42248.c: New testcase.

From-SVN: r155984

14 years agotree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI node existence check.
Richard Guenther [Sun, 17 Jan 2010 16:22:17 +0000 (16:22 +0000)]
tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI node existence check.

2010-01-17  Richard Guenther  <rguenther@suse.de>

* tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
node existence check.
* tree-vect-loop.c (vect_analyze_loop_form): Likewise.
* tree-cfgcleanup.c (merge_phi_nodes): Likewise.
* tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
* tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
(gimple_execute_on_growing_pred): Likewise.

From-SVN: r155983

14 years agore PR tree-optimization/42773 (ICE with g++ from 4.4.3 20100112 (prerelease))
Richard Guenther [Sun, 17 Jan 2010 15:58:08 +0000 (15:58 +0000)]
re PR tree-optimization/42773 (ICE with g++ from 4.4.3 20100112 (prerelease))

2010-01-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/42773
* tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
(compute_antic_aux): Likewise.
(compute_partial_antic_aux): Likewise.

* g++.dg/torture/pr42773.C: New testcase.

From-SVN: r155982

14 years ago* doc/tm.texi (TARGET_OPTION_PRINT): Fix argument list.
Joern Rennecke [Sun, 17 Jan 2010 15:26:16 +0000 (15:26 +0000)]
* doc/tm.texi (TARGET_OPTION_PRINT): Fix argument list.

From-SVN: r155980

14 years agore PR fortran/42677 (Bogus Error: Ambiguous interfaces '...' in intrinsic assignment...
Janus Weil [Sun, 17 Jan 2010 13:33:11 +0000 (14:33 +0100)]
re PR fortran/42677 (Bogus Error: Ambiguous interfaces '...' in intrinsic assignment operator)

gcc/fortran/
2010-01-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42677
* gfortran.h (symbol_attribute): Remove 'ambiguous_interfaces'.
* interface.c (check_interface1): Move a warning message here from
resolve_fl_procedure.
(check_sym_interfaces): Removed 'attr.ambiguous_interfaces'.
* module.c (read_module): Remove call to gfc_check_interfaces, since
this comes too early here.
* resolve.c (resolve_fl_procedure): Move warning message to
check_interface1.

gcc/testsuite/
2010-01-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42677
* gfortran.dg/interface_assignment_5.f90: New test.

From-SVN: r155979

14 years agofunctional (_Bind<_Functor(_Bound_args...)>::__call): Rename const version to __call_...
Paolo Carlini [Sun, 17 Jan 2010 13:29:41 +0000 (13:29 +0000)]
functional (_Bind<_Functor(_Bound_args...)>::__call): Rename const version to __call_c and remove _Sfinae template parameter.

2010-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/functional (_Bind<_Functor(_Bound_args...)>::__call):
Rename const version to __call_c and remove _Sfinae template
parameter.
(_Bind<_Functor(_Bound_args...)>::operator()): Adjust.

* include/std/functional: Pass everywhere temporary tuple<_Args...>
arguments by rvalue reference.

* testsuite/20_util/bind/cv_quals.cc: New.

* testsuite/20_util/bind/ref2.cc: Add missing test variables.

From-SVN: r155978

14 years ago* sv.po: Update.
Joseph Myers [Sun, 17 Jan 2010 12:56:37 +0000 (12:56 +0000)]
* sv.po: Update.

From-SVN: r155977

14 years agoRevert PR c++/42697
Dodji Seketeli [Sun, 17 Jan 2010 10:38:10 +0000 (10:38 +0000)]
Revert PR c++/42697

     The commit is reverted as this was not a regression.
     It's rather going to be stagged for 4.6.

From-SVN: r155976

14 years agore PR c++/42697 (ice-on-legal-code: template class template function local objects)
Dodji Seketeli [Sun, 17 Jan 2010 10:24:16 +0000 (10:24 +0000)]
re PR c++/42697 (ice-on-legal-code: template class template function local objects)

Fix PR c++/42697

gcc/cp/ChangeLog:
PR c++/42697
*pt.c (tsubst_decl): Get the arguments of a specialization from
the specialization template, not from the most general template.

gcc/testsuite/ChangeLog:
PR c++/42697
* g++.dg/template/crash94.C: New test.

From-SVN: r155975

14 years agore PR debug/42767 (ICE in mem_loc_descriptor)
Jie Zhang [Sun, 17 Jan 2010 10:19:22 +0000 (10:19 +0000)]
re PR debug/42767 (ICE in mem_loc_descriptor)

PR debug/42767
* dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
and US_TRUNCATE.

testsuite/
PR debug/42767
* gcc.dg/debug/pr42767.c: New.

From-SVN: r155974

14 years ago(TARGET_BUILTIN_RECIPROCAL): Fix argument types.
Joern Rennecke [Sun, 17 Jan 2010 08:12:27 +0000 (08:12 +0000)]
(TARGET_BUILTIN_RECIPROCAL): Fix argument types.

Rename argument tm_fn to md_fn.

From-SVN: r155973

14 years agotm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of appearance.
Joern Rennecke [Sun, 17 Jan 2010 08:04:52 +0000 (08:04 +0000)]
tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of appearance.

* doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
appearance.

(TARGET_LEGITIMATE_ADDRESS_P): Add return type.
Fix markup for strict argument.

(TARGET_SCHED_REORDER2): Fix argument types.

(TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
(TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.

(TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
(TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.

(TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
Add argument name.

(TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
(TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
(TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
(TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
(TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.

(TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.

(TARGET_SCHED_GEN_SPEC_CHECK): Fix name.

(TARGET_ASM_RELOC_RW_MASK): Add return type.
(TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.

(TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.

(TARGET_ASM_FILE_START): Put @findex before paragraph start.
Use prototype.

(TARGET_ASM_NAMED_SECTION): Fix argument list.

(TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
(TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.

(TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.

(TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.

(TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
referring to it.  Fix language.

(TARGET_HAVE_CTORS_DTORS): Use @deftypevr.

(TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.

(TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.

(TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.

(TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
'@var{stream}.  Remove stray 'and'.

(TARGET_ARM_EABI_UNWINDER): Use @deftypevr.

(TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.

(TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.

(TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.

(TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
Fix description of return value.
Rename argument "sz" to "len."

(TARGET_CXX_GUARD_MASK_BIT): Add missing article.
Clarify meaning of 'true' return value.

(TARGET_SHIFT_TRUNCATION_MASK): Fix return type.

(TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
rep_mode versus mode_rep.

(TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.

(TARGET_BUILTIN_DECL): Fix name.

(TARGET_COMMUTATIVE_P): Fix type of first argument.

(TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.

(TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.

(TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.

(TARGET_RELAXED_ORDERING): Use @deftypevr.

(TARGET_GET_DRAP_RTX): Note that this is a hook.
Clarify language.

From-SVN: r155972

14 years agoDaily bump.
GCC Administrator [Sun, 17 Jan 2010 00:16:48 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155970

14 years agore PR c++/42761 (std::bind doesn't work for simple class types)
Jason Merrill [Sat, 16 Jan 2010 15:23:19 +0000 (10:23 -0500)]
re PR c++/42761 (std::bind doesn't work for simple class types)

PR c++/42761
* semantics.c (finish_decltype_type): Within a template, treat
unresolved CALL_EXPR as dependent.

From-SVN: r155966

14 years agoFix PR 35942: remove -lstdc++ from libtool postdeps for CXX.
Ralf Wildenhues [Sat, 16 Jan 2010 14:46:57 +0000 (14:46 +0000)]
Fix PR 35942: remove -lstdc++ from libtool postdeps for CXX.

libstdc++-v3/:
PR libstdc++/35942
* configure.ac: Remove -lstdc++ from libtool's postdeps_CXX.
* configure: Regenerate.

From-SVN: r155965

14 years agore PR target/42664 (ICE on compilation of polyhedron benchmarks with -mfma4)
Harsha Jagasia [Sat, 16 Jan 2010 14:46:19 +0000 (14:46 +0000)]
re PR target/42664 (ICE on compilation of polyhedron benchmarks with -mfma4)

Fix PR42664.

2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>

PR target/42664
* config/i386/i386.c (ix86_fixup_binary_operands):
Revert FMA4 fixup of operands.

From-SVN: r155964

14 years agoAvoid tr '\n', for Solaris /usr/bin/tr.
Ralf Wildenhues [Sat, 16 Jan 2010 14:42:32 +0000 (14:42 +0000)]
Avoid tr '\n', for Solaris /usr/bin/tr.

contrib/
* check_warning_flags.sh: Use \012 instead of \n with tr.

gcc/:
PR gcc/42525
* Makefile.in (write_entries_to_file, install-plugin):
Use \012 instead of \n with tr.

libjava/:
* Makefile.am (write_entries_to_file): Use \012 instead of \n
with tr.
* scripts/makemake.tcl: Likewise.
* sources.am: Regenerate.
* Makefile.in: Regenerate.

From-SVN: r155963

14 years agoconfigure.ac (HAVE_AS_REF): New C macro.
Richard Sandiford [Sat, 16 Jan 2010 12:14:09 +0000 (12:14 +0000)]
configure.ac (HAVE_AS_REF): New C macro.

gcc/
* configure.ac (HAVE_AS_REF): New C macro.
* configure: Regenerate.
* config.in: Likewise.
* collect2.c (main): Only postpone SCAN_DWEH to the second pass
if HAVE_AS_REF.
* config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
if HAVE_AS_REF.

From-SVN: r155961

14 years agore PR middle-end/42760 (ICE in convert_move)
Jakub Jelinek [Sat, 16 Jan 2010 09:45:53 +0000 (10:45 +0100)]
re PR middle-end/42760 (ICE in convert_move)

PR middle-end/42760
* g++.dg/torture/pr42760.C: New test.

From-SVN: r155960

14 years agotm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
Joern Rennecke [Sat, 16 Jan 2010 02:39:40 +0000 (02:39 +0000)]
tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.

* doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.

(TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.

(TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.

(TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.

(TARGET_IN_SMALL_DATA_P): Fix argument type.

(TARGET_BINDS_LOCAL_P): Fix argument type.

(TARGET_ASM_FILE_END): Use prototype.

(TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.

(TARGET_DWARF_CALLING_CONVENTION): Fix argument type.

(TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.

(TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.

(TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
(TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.

(TARGET_PCH_VALID_P): Put 'const char *' in braces.
(TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.

(TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
(TARGET_ADDR_SPACE_SUBSET_P): Likewise.
(TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
(TARGET_ADDR_SPACE_CONVERT): Likewise.

(TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.

(TARGET_MACHINE_DEPENDENT_REORG: Use prototype.

(TARGET_INIT_BUILTINS): Use prototype.

(TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
Put 'const char *' in braces.  Fix parameter types.
(TARGET_INVALID_CONVERSION): Fix parameter types.
(TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
(TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.

(TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
Fix argument type.

(TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.

(TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.

From-SVN: r155957