/gcc/cp
2013-06-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57419
	* decl2.c (mark_used): Add overload taking a tsubst_flags_t too.
	* semantics.c (finish_qualified_id_expr): Use it.
	* cp-tree.h: Update.

/gcc/testsuite
2013-06-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57419
	* g++.dg/cpp0x/sfinae46.C: New.
	* g++.dg/cpp0x/defaulted13.C: Adjust.
	* g++.dg/cpp0x/defaulted2.C: Likewise.
	* g++.dg/cpp0x/defaulted26.C: Likewise.
	* g++.dg/cpp0x/defaulted3.C: Likewise.
	* g++.dg/cpp0x/error1.C: Likewise.
	* g++.dg/cpp0x/implicit1.C: Likewise.
	* g++.dg/cpp0x/implicit11.C: Likewise.
	* g++.dg/cpp0x/inh-ctor13.C: Likewise.
	* g++.dg/cpp0x/initlist47.C: Likewise.
	* g++.dg/cpp0x/initlist9.C: Likewise.
	* g++.dg/cpp0x/lambda/lambda-errloc.C: Likewise.
	* g++.dg/cpp0x/lambda/lambda-errloc2.C: Likewise.
	* g++.dg/cpp0x/nsdmi-local.C: Likewise.
	* g++.dg/cpp0x/union4.C: Likewise.
	* g++.dg/template/crash108.C: Likewise.
	* g++.dg/template/crash41.C: Likewise.
	* g++.old-deja/g++.jason/local.C: Likewise.
	* g++.old-deja/g++.law/visibility3.C: Likewise.

/libstdc++-v3
2013-06-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57419
	* testsuite/20_util/default_delete/48631_neg.cc: Adjust.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199626 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>

       PR c/57474
       * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
       array to NULL_TREE if they are unused.  Also added a check for the
       field to be NULL before its fields are used in future.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199627 138bc75d-0d04-0410-961f-82ee72b054a4
Fixed a bug in expansion of array notations in if-statement conditions.
2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>

       * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
       condition of the if-statement matches the rank of else-block and then-
       block when array notations are used.
       * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
       expression after the entire function body is parsed.
       (c_parser_expr_no_commas): Delayed creating array notation expressions
       to the end of function parsing.
       * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
       whole if-statement instead of just the condition.
       (expand_array_notation_exprs): Added MODIFY_EXPR case.


2013-06-03  Balaji V. Iyer  <balaji.v.iyer@intel.com>

       * c-c++-common/cilk-plus/AN/if_test_errors.c (main): New testcase.
       * c-c++-common/cilk-plus/AN/rank_mismatch.c: Added a '-w' option to
       dg-option and an header comment.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199628 138bc75d-0d04-0410-961f-82ee72b054a4
	* class.c (mark_type_abi_tags): New.
	(check_abi_tags): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199629 138bc75d-0d04-0410-961f-82ee72b054a4
correct changelog date

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199630 138bc75d-0d04-0410-961f-82ee72b054a4
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199633 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-04  Jan Hubicka  <jh@suse.cz>

        PR middle-end/57500
        * cgraphunit.c (cgraph_process_same_body_aliases): Create
        non-VAR_DECL node if it does not exist yet.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199634 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-03  Manfred Schwarb  <manfred99@gmx.ch>

        * gfortran.dg/bounds_check_7.f90: Remove "! {".
        * gfortran.dg/coarray_poly_3.f90: Remove inactive, broken dg-*.
        * gfortran.dg/default_initialization_5.f90: Update dg-do.
        * gfortran.dg/g77/f77-edit-s-out.f: Fix broken dg-output.
        * gfortran.dg/g77/f77-edit-t-out.f: Fix broken dg-output.
        * gfortran.dg/g77/f77-edit-x-out.f: Fix broken dg-output.
        * gfortran.dg/init_flag_11.f90: Fix broken dg-options.
        * gfortran.dg/io_real_boz_3.f90: Add comment regarding dg-do run.
        * gfortran.dg/io_real_boz_4.f90: Ditto.
        * gfortran.dg/io_real_boz_5.f90: Ditto.
        * gfortran.dg/namelist_print_1.f: Fix broken dg-output.
        * gfortran.dg/read_x_eor.f90: Fix broken dg-output.
        * gfortran.dg/repeat_1.f90: Improve dg-output pattern.
        * gfortran.dg/spread_bounds_1.f90: Fix broken dg-output.
        * gfortran.dg/transpose_2.f90: Fix dg-output.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199636 138bc75d-0d04-0410-961f-82ee72b054a4
	* expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
	out the processing order as in store_bit_field_1.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199637 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* rtl.def: Add extra fourth optional field to define_cond_exec.
	* gensupport.c (process_one_cond_exec): Process attributes from
	define_cond_exec.
	* doc/md.texi: Document fourth field in define_cond_exec.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199640 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/37336
        * trans.h (gfc_build_final_call): Remove prototype.
        (gfc_add_finalizer_call): Add prototype.
        * trans-array.c (gfc_trans_dealloc_allocated): Support
        * finalization.
        (structure_alloc_comps): Update caller.
        (gfc_trans_deferred_array): Call finalizer.
        * trans-array.h (gfc_trans_dealloc_allocated): Update prototype.
        * trans-decl.c (gfc_trans_deferred_vars): Don't
        * deallocate/finalize
        variables of the main program.
        * trans-expr.c (gfc_conv_procedure_call): Support finalization.
        * trans-openmp.c (gfc_omp_clause_dtor,
        gfc_trans_omp_array_reduction): Update calls.
        * trans-stmt.c (gfc_trans_deallocate): Avoid double deallocation
        of alloc components.
        * trans.c (gfc_add_finalizer_call): New function.
        (gfc_deallocate_with_status,
        gfc_deallocate_scalar_with_status): Call it
        (gfc_build_final_call): Fix handling of scalar coarrays,
        move up in the file and make static.

2013-06-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/37336
        * gfortran.dg/finalize_12.f90: New.
        * gfortran.dg/alloc_comp_basics_1.f90: Add BLOCK for
        end of scope finalization.
        * gfortran.dg/alloc_comp_constructor_1.f90: Ditto.
        * gfortran.dg/allocatable_scalar_9.f90: Ditto.
        * gfortran.dg/auto_dealloc_2.f90: Ditto.
        * gfortran.dg/class_19.f03: Ditto.
        * gfortran.dg/coarray_lib_alloc_1.f90: Ditto.
        * gfortran.dg/coarray_lib_alloc_2.f90: Ditto.
        * gfortran.dg/extends_14.f03: Ditto.
        * gfortran.dg/move_alloc_4.f90: Ditto.
        * gfortran.dg/typebound_proc_27.f03: Ditto.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199643 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/rs6000/rs6000.c (output_toc): Correct little-endian float
	constant output.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199646 138bc75d-0d04-0410-961f-82ee72b054a4
2013-06-04  Catherine Moore  <clm@codesourcery.com>

        * config/mips/mips.opt (meva): New.
        * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS):
        Define __mips_eva.
        (ASM_SPEC): Handle -meva.
        * doc/invoke.texi (meva):  Document.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199649 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/rs6000/ibm-ldouble.c: Enable for little-endian.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199650 138bc75d-0d04-0410-961f-82ee72b054a4
AArch64 - Improve MOVI handling (1/5)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199652 138bc75d-0d04-0410-961f-82ee72b054a4
AArch64 - Improve MOVI handling (2/5)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199653 138bc75d-0d04-0410-961f-82ee72b054a4
AArch64 - Improve MOVI handling (3/5)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199656 138bc75d-0d04-0410-961f-82ee72b054a4
AArch64 - Improve MOVI handling (4/5)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199657 138bc75d-0d04-0410-961f-82ee72b054a4
AArch64 - Improve MOVI handling (5/5)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199658 138bc75d-0d04-0410-961f-82ee72b054a4
Fix Cilk Plus tests for simulators.
2013-06-04  Balaji V. Iyer  <balaji.v.iyer@intel.com>

        * c-c++-common/cilk-plus/AN/array_test1.c (main): Replaced argc, argv
        parameters with void.
        (main2): Removed argc parameter.
        * c-c++-common/cilk-plus/AN/array_test2.c (main2): Likewise.
        (main): Replaced argc, argv parameters with void.
        * c-c++-common/cilk-plus/AN/array_test_ND.c (main): Likewise.
        (main2): Removed argc parameter.
        * c-c++-common/cilk-plus/AN/builtin_fn_custom.c (main): Replaced argc
        argv parameters with void.  Added __asm volatile to avoid optimization
        on argc, if necessary.
        * c-c++-common/cilk-plus/AN/builtin_fn_mutating (main): Likewise.
        * c-c++-common/cilk-plus/AN/builtin_func_double.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/builtin_func_double2.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/conditional.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/exec-once.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/exec-once2.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/fn_ptr.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/gather-scatter-errors.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/gather_scatter.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/misc.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/parser_errors.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/parser_errors2.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/parser_errors3.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/parser_errors4.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/rank_mismatch2.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/sec_implicit_ex.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/sec_reduce_return.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/test_builtin_return.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/vla.c (main): Likewise.
        * c-c++-common/cilk-plus/AN/comma-exp.c (main): Replaced argc, argv
        parameters with void.
        (main2): Removed argc parameter.
        * c-c++-common/cilk-plus/AN/if_test.c (main2): Likewise.
        (main): Replaced argc, argv parameters with void.
        * c-c++-common/cilk-plus/AN/fp_triplet_values (main2): Replace argc,
        argv parameters with void.  Also renamed this function as main, and
        delete the existing main.
        * c-c++-common/cilk-plus/AN/sec_implicit.c (main2): Likewise.
        * c-c++-common/cilk-plus/AN/sec_implicit2.c (main2): Likewise.
        * c-c++-common/cilk-plus/AN/sec_reduce_max_min_ind.c (main2): Likewise.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199661 138bc75d-0d04-0410-961f-82ee72b054a4