Merge remote-tracking branch 'gnu/master' into 5.0.0
Merge remote-tracking branch 'gnu/master' into 5.0.0
Merge remote-tracking branch 'gnu/master' into 5.0.0
2014-10-06  Rong Xu  <xur@google.com>

	* gcc/Makefile.in: Fix dependence.
	* gcc/gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
        indirect call topn profiler.
	* gcc/gcov-io.h: Ditto.
	* libgcc/Makefile.in: Ditto.
	* libgcc/libgcov-driver.c (gcov_sort_n_vals): New utility function.
	(gcov_sort_icall_topn_counter): Ditto.
	(gcov_sort_topn_counter_arrays): Ditto.
	(dump_one_gcov): Sort indirect_call topn counters.
	* libgcc/libgcov-merge.c (__gcov_merge_icall_topn): New merge
        function.
	* libgcc/libgcov-profiler.c (__gcov_topn_value_profiler_body): New
        utility function.
	(__gcov_indirect_call_topn_profiler): New profiler function.
	* libgcc/libgcov-util.c (__gcov_icall_topn_counter_op): New.
	* libgcc/libgcov.h: New decls.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215962 138bc75d-0d04-0410-961f-82ee72b054a4
2014-10-06  Rong Xu  <xur@google.com>

	* gcc/params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
	* gcc/tree-profile.c: (params.h): New include.
        (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
        and __gcov_indirect_call_topn_counters for
        indirect_call_topn_profile.
	(gimple_init_edge_profiler): New decls for 
        __gcov_indirect_call_topn_profiler.
	(gimple_gen_ic_profiler): Generate the correct profiler call.
	(gimple_gen_ic_func_profiler): Fix format.
	* gcc/value-prof.c (params.h): New include.
        (dump_histogram_value): Hanlde indirect_call_topn counters.
	(stream_in_histogram_value): Ditto.
	(gimple_indirect_call_to_profile): Use indirect_call_topn
        profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
	(gimple_find_values_to_profile): Hanlde indirect_call_topn
        counters.
	* gcc/value-prof.h (enum hist_type): Histrogram type for
        indirect_call_topn counters.
	* gcc/profile.c (instrument_values): Instrument
        indirect_call_topn counters.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215963 138bc75d-0d04-0410-961f-82ee72b054a4
	* c-convert.c (convert): Use error_operand_p.
	* c-typeck.c (require_complete_type): Likewise.
	(really_atomic_lvalue): Likewise.
	(digest_init): Likewise.
	(handle_omp_array_sections_1): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215964 138bc75d-0d04-0410-961f-82ee72b054a4
	* lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
	and -ftrapping-math.
	* lto-wrapper.c (merge_and_complain): Likewise.
	(run_gcc): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215966 138bc75d-0d04-0410-961f-82ee72b054a4
	* g++.dg/lto/pr63270.h: New test.
	* g++.dg/lto/pr63270_0.C (int main): Implementation replaced with
	include.
	* g++.dg/lto/pr63270_2.C: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215967 138bc75d-0d04-0410-961f-82ee72b054a4
	* cgraph.h (cgraph_node::get_fun): Declare.
	* cgraph.c (cgraph_node::get_fun): New method.
	* ipa-inline.c (can_inline_edge_p): Use it.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215968 138bc75d-0d04-0410-961f-82ee72b054a4
	* jvgenmain.c (main): Provide declarations for JvRunMain{,Name}.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215969 138bc75d-0d04-0410-961f-82ee72b054a4
Use long long instead of long in adx intrinsics.

2014-10-02  Ilya Tocar  <ilya.tocar@intel.com>

         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
         type.
         (_addcarry_u64): Ditto.
         (_addcarryx_u64): Ditto.



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

2014-10-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR fortran/44054
	PR fortran/54687
	* gfortran.h (gfc_warning_cmdline): Add overload that takes an
	option.
	(gfc_error_cmdline): Declare.
	* error.c (gfc_warning_cmdline): New overload that takes an option.
	(gfc_error_cmdline): New.
	* lang.opt (Wmissing-include-dirs): New.
	* scanner.c (add_path_to_list): Use the new functions.
	(load_file): Likewise.
	* options.c (gfc_init_options): Wmissing-include-dirs is enabled
	by default in Fortran.
	(gfc_handle_option): Accept automatically handled options.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215974 138bc75d-0d04-0410-961f-82ee72b054a4
Update the ChangeLog for r215962 and r215963.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215976 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc.dg/guality/pr41616-1.c: Use -fgnu89-inline.
	* gcc.dg/iftrap-1.c: Fix implicit declarations.
	* gcc.target/powerpc/pr26350.c: Likewise.
	* gcc.target/powerpc/altivec-consts.c: Likewise.
	* gcc.target/powerpc/altivec-varargs-1.c: Likewise.
	* gcc.target/powerpc/le-altivec-consts.c: Likewise.
	* gcc.target/powerpc/ppc-vector-memcpy.c: Likewise.
	* gcc.target/powerpc/ppc-vector-memset.c: Likewise.
	* gcc.target/powerpc/pr47862.c: Likewise.
	* gcc.target/powerpc/pr48053-1.c: Likewise.
	* gcc.target/powerpc/pr53487.c: Likewise.
	* gcc.dg/vect/pr48765.c: Fix implicit declarations and defaulting
	to int.
	* gcc.target/powerpc/20050603-1.c: Fix defaulting to int.
	* gcc.target/powerpc/altivec-2.c: Likewise.
	* gcc.target/powerpc/pr47755-2.c: Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215978 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c/59717
	* c-decl.c (header_for_builtin_fn): New function.
	(implicitly_declare): Suggest which header to include.

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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215979 138bc75d-0d04-0410-961f-82ee72b054a4
	* dwarf2out.c: Remove current_function_has_inlines.
	(gen_subprogram_die): Same.
	(gen_inlined_subroutine_die): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215980 138bc75d-0d04-0410-961f-82ee72b054a4
	* lib/target-supports.exp (check_effective_target_fd_truncate):
	Include <string.h>.


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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215982 138bc75d-0d04-0410-961f-82ee72b054a4
2014-10-07  Iain Sandoe  <iain@codesourcery.com>

	    PR target/61387
	    * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215983 138bc75d-0d04-0410-961f-82ee72b054a4
2014-10-07  François Dumont  <fdumont@gcc.gnu.org>

	* testsuite/util/testsuite_counter_type.h
	(counter_type::operator<(const counter_type&)): Update
	less_compare_count.
	* testsuite/25_algorithms/make_heap/complexity.cc: New.
	* testsuite/25_algorithms/pop_heap/complexity.cc: New.
	* testsuite/25_algorithms/push_heap/complexity.cc: New.
	* testsuite/25_algorithms/sort_heap/complexity.cc: New.


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