2013-03-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/56786
	* io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
	when checking for EOF. Use error return mechanism when EOF detected.
	Do not return false unless parse_err_msg and parse_err_msg_size have
	been set. Use hit_eof.
	(nml_get_obj_data): Likewise use the correct error mechanism.
	* io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
	mode.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197290 138bc75d-0d04-0410-961f-82ee72b054a4
2013-03-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/56786
	* gfortran.dg/namelist_81.f90:  New test.


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197295 138bc75d-0d04-0410-961f-82ee72b054a4
2013-04-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56500
	* symbol.c (gfc_set_default_type): Build class container for
	IMPLICIT CLASS.

2013-04-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56500
	* gfortran.dg/implicit_class_1.f90: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197306 138bc75d-0d04-0410-961f-82ee72b054a4
	PR middle-end/56798
	* cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197307 138bc75d-0d04-0410-961f-82ee72b054a4
2013-04-01  Wei Mi  <wmi@google.com>

        * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
        Truncate operand 2 using %b asm operand modifier.
        (*<shift_insn><mode>3_mask): Ditto.
        (*<rotate_insn><mode>3_mask): Ditto.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197308 138bc75d-0d04-0410-961f-82ee72b054a4
2013-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

	* cp-tree.h (DECL_UNBOUND_CLASS_TEMPLATE_P): Remove.
	(DECL_FUNCTION_TEMPLATE_P): Adjust.

	* cxx-pretty-print.c (pp_cxx_nested_name_specifier,
	pp_cxx_qualified_id): Use get_containing_scope.
	* parser.c (cp_parser_class_head): Likewise.
	* pt.c (push_template_decl_real): Likewise.

	* decl2.c (import_export_decl): Use DECL_TEMPLOID_INSTANTIATION.
	* pt.c (unify): Use CP_INTEGRAL_TYPE_P.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197309 138bc75d-0d04-0410-961f-82ee72b054a4
	Implement N2439 (ref-qualifiers for 'this')
	* cp-tree.h (FUNCTION_REF_QUALIFIED): New.
	(FUNCTION_RVALUE_QUALIFIED): New.
	(FUNCTION_OR_METHOD_TYPE_CHECK): New.
	(cpp0x_warn_str): Add CPP0X_REF_QUALIFIER.
	(cp_ref_qualifier): New enum.
	(cp_declarator): Add ref_qualifier.
	* parser.c (cp_parser_ref_qualifier_seq_opt): New.
	(cp_parser_direct_declarator): Use it.
	(make_call_declarator): Adjust.
	(cp_parser_lambda_declarator_opt): Adjust.
	* call.c (add_function_candidate): Handle ref-qualifier overload
	resolution semantics.
	(standard_conversion): Adjust.
	* class.c (add_method, same_signature_p): Compare ref-qualifiers.
	* decl.c (grokdeclarator): Handle ref-qualifiers.
	(grokfndecl): Check for invalid ref-qualifiers.
	(static_fn_type, revert_static_member_fn): Adjust.
	* decl2.c (build_memfn_type): Handle ref-qualifiers.
	(check_classfn): Check them.
	(cp_reconstruct_complex_type): Retain them.
	* error.c (dump_ref_qualifier): New.
	(dump_type_suffix, dump_function_decl): Use it.
	(maybe_warn_cpp0x): Handle CPP0X_REF_QUALIFIER.
	* pt.c (tsubst, tsubst_function_type): Instantiate ref-quals.
	(unify): Retain them.
	* tree.c (cp_check_qualified_type): New.
	(cp_build_qualified_type_real): Keep exception spec and ref-qual.
	(build_ref_qualified_type): New.
	(strip_typedefs, build_exception_variant): Keep ref-qualifier.
	(cp_build_type_attribute_variant): Keep ref-qualifier.
	* typeck.c (merge_types): Keep ref-qualifier.
	(structural_comptypes): Compare ref-qualifier.
	(type_memfn_rqual): New.
	(apply_memfn_quals): Take ref-qual argument.
	* typeck2.c (build_m_component_ref): Check ref-qualifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197315 138bc75d-0d04-0410-961f-82ee72b054a4
	* cxx-pretty-print.h (pp_cxx_cv_qualifiers): New.
	* class.c (same_signature_p): Use type_memfn_quals.
	* cp-tree.h (TYPE_RAISES_EXCEPTIONS): Use
	FUNCTION_OR_METHOD_TYPE_CHECK.
	* error.c (dump_type_suffix): Add padding before cv-qualifiers.
	* pt.c (unify): Use static_fn_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197316 138bc75d-0d04-0410-961f-82ee72b054a4
	* call.c (add_function_candidate): Take the address of 'this' here.
	(build_over_call): And here.
	(build_new_method_call_1, build_op_call_1): Not here.
	(build_user_type_conversion_1): Or here.
	(add_candidates): Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197317 138bc75d-0d04-0410-961f-82ee72b054a4
2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/56660
	* io/list_read.c (nml_read_obj): Do not reset the read error flag
	inside nml_read_obj. If the read error flag is found set just exit.
	Fix some whitespace on comments.
	(nml_read_obj_data): Reset the read error flag before the first call
	to nml_read_object.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197321 138bc75d-0d04-0410-961f-82ee72b054a4
2013-04-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/56660
	* gfortran.dg/namelist_82.f90:  New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197322 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/56794
	* parser.c (cp_parser_range_for): Don't try to do auto deduction
	in a template if the type of the range is incomplete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197324 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/56793
	* typeck.c (finish_class_member_access_expr): Handle enum scope.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197325 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/56772
	* init.c (build_new): Don't try to process an array initializer
	at template definition time.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197326 138bc75d-0d04-0410-961f-82ee72b054a4
	* semantics.c (maybe_constant_value): Check
	instantiation_dependent_expression_p.
	* pt.c (build_non_dependent_expr): Don't check it here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197327 138bc75d-0d04-0410-961f-82ee72b054a4
	* doc/xml/manual/appendix_contributing.xml: Remove broken link and
	defer to general documentation on contributing to GCC.
	* doc/html/*: Regenerate.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197338 138bc75d-0d04-0410-961f-82ee72b054a4
	* reorg.c (get_branch_condition): Deal with conditional returns.
	(fill_simple_delay_slots): Remove dead code dealing with jumps.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197340 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
	scalar move.
	* config/aarch64/aarch64.c
	(aarch64_simd_scalar_immediate_valid_for_move): New.
	* config/aarch64/aarch64-protos.h
	(aarch64_simd_scalar_immediate_valid_for_move): New.
	* config/aarch64/constraints.md (Dh, Dq): New.
	* config/aarch64/iterators.md (hq): New.


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