1. 05 Sep, 2016 13 commits
  2. 04 Sep, 2016 9 commits
  3. 03 Sep, 2016 3 commits
  4. 02 Sep, 2016 13 commits
    • avx512f-klogic-2.c: Fix operand calculation order. · 7b826676
      
      gcc/testsuite/
       	* gcc.target/i386/avx512f-klogic-2.c: Fix operand calculation order.
      
      From-SVN: r239966
      Kirill Yukhin committed
    • Add -fdiagnostics-generate-patch · 717ebe91
      gcc/ChangeLog:
      	* common.opt (fdiagnostics-generate-patch): New option.
      	* diagnostic.c: Include "edit-context.h".
      	(diagnostic_initialize): Initialize context->edit_context_ptr.
      	(diagnostic_finish): Delete context->edit_context_ptr.
      	(diagnostic_report_diagnostic): Add fix-it hints from the
      	diagnostic to context->edit_context_ptr, if any.
      	* diagnostic.h (class edit_context): Add forward decl.
      	(struct diagnostic_context): Add field "edit_context_ptr".
      	* doc/invoke.texi (Diagnostic Message Formatting Options): Add
      	-fdiagnostics-generate-patch.
      	(-fdiagnostics-generate-patch): New item.
      	* toplev.c: Include "edit-context.h".
      	(process_options): Set global_dc->edit_context_ptr to a new
      	edit_context if the options need one.
      	(toplev::main): Handle -fdiagnostics-generate-patch by using
      	global_dc->edit_context_ptr.
      
      gcc/testsuite/ChangeLog:
      	* gcc.dg/plugin/diagnostic-test-show-locus-generate-patch.c: New
      	test case.
      	* gcc.dg/plugin/plugin.exp (plugin_test_list): Add
      	diagnostic-test-show-locus-generate-patch.c to the sources
      	for diagnostic_plugin_test_show_locus.c.
      
      From-SVN: r239965
      David Malcolm committed
    • re PR c/65467 ([libgomp] sorry, unimplemented: '_Atomic' with OpenMP) · 9dc5773f
      	PR c/65467
      	* gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
      	map and firstprivate clauses on target construct for _Atomic
      	qualified decls.
      	(gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
      	on target construct for _Atomic qualified decls.
      	* omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
      	decls.
      	* omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
      	_Atomic qualified arguments not mentioned in uniform clause.
      c/
      	* c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
      	flag_openmp.
      	(c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
      	instead of mark_exp_read on low_bound/length expression.
      	(c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
      	c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
      	c_parser_omp_clause_priority, c_parser_omp_clause_hint,
      	c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
      	c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
      	c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
      	c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
      	c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
      	c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
      	c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
      	instead of mark_expr_read.
      	(c_parser_omp_declare_reduction): Reject _Atomic qualified types.
      	* c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
      	LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
      	* c-tree.h (c_omp_clause_copy_ctor): New prototype.
      	* c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
      	array section bases outside of depend clause, for depend clause
      	use convert_lvalue_to_rvalue on the base.
      	(c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
      	linear, aligned, map, to and from clauses.
      	(c_omp_clause_copy_ctor): New function.
      c-family/
      	* c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
      	(c_finish_omp_for): Reject _Atomic qualified iterators.
      testsuite/
      	* gcc.dg/gomp/_Atomic-1.c: New test.
      	* gcc.dg/gomp/_Atomic-2.c: New test.
      	* gcc.dg/gomp/_Atomic-3.c: New test.
      	* gcc.dg/gomp/_Atomic-4.c: New test.
      	* gcc.dg/gomp/_Atomic-5.c: New test.
      
      From-SVN: r239964
      Jakub Jelinek committed
    • Introduce class edit_context · c65236d6
      gcc/ChangeLog:
      	* Makefile.in (OBJS-libcommon): Add edit-context.o.
      	* diagnostic-color.c (color_dict): Add "diff-filename",
      	"diff-hunk", "diff-delete", and "diff-insert".
      	(parse_gcc_colors): Update default value of GCC_COLORS in comment
      	to reflect above changes.
      	* doc/invoke.texi (-fdiagnostics-color): Update description of
      	default GCC_COLORS, and of the supported capabilities.
      	* edit-context.c: New file.
      	* edit-context.h: New file.
      	* input.c (struct fcache): Add field "missing_trailing_newline".
      	(diagnostics_file_cache_forcibly_evict_file): Initialize it to
      	true.
      	(add_file_to_cache_tab): Likewise.
      	(fcache::fcache): Likewise.
      	(get_next_line): Update c->missing_trailing_newline.
      	(location_missing_trailing_newline): New function.
      	* input.h (location_missing_trailing_newline): New decl.
      	* selftest-run-tests.c (selftest::run_tests): Call
      	edit_context_c_tests.
      	* selftest.h (edit_context_c_tests): New decl.
      
      libcpp/ChangeLog:
      	* include/line-map.h (rich_location::seen_impossible_fixit_p): New
      	accessor.
      
      From-SVN: r239963
      David Malcolm committed
    • re PR tree-optimization/77444 (Bogus assignments in cand_value_at) · bad9b288
      	PR tree-optimization/77444
      	* tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
      	as steptype, remove redundant initialization.
      
      Co-Authored-By: Richard Biener <rguenther@suse.de>
      
      From-SVN: r239962
      Jakub Jelinek committed
    • re PR sanitizer/77396 (address sanitizer crashes if all static global variables are optimized) · 94087e88
      	PR sanitizer/77396
      	* sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
      	(sanopt_optimize_walker): Optimize away
      	__asan_before_dynamic_init (...) followed by
      	__asan_after_dynamic_init () without intervening memory loads/stores.
      	* ipa-pure-const.c (special_builtin_state): Handle
      	BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
      	BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
      
      	* decl2.c (do_static_initialization_or_destruction): Only
      	call asan_dynamic_init_call if INITP is true.
      
      	* g++.dg/asan/pr77396.C: New test.
      
      From-SVN: r239961
      Jakub Jelinek committed
    • cfg.c (free_original_copy_tables): Replace second assignment of bb_copy = NULL… · af711c23
      cfg.c (free_original_copy_tables): Replace second assignment of bb_copy = NULL by bb_original = NULL.
      
      2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
      	* cfg.c (free_original_copy_tables): Replace second assignment of
      	bb_copy = NULL by bb_original = NULL.
      
      From-SVN: r239960
      Prathamesh Kulkarni committed
    • re PR other/77421 (Bugs found in GCC with the help of PVS-Studio) · afef6647
      	PR other/77421
      	* config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
      	assignment added in r216794.
      
      From-SVN: r239959
      Jakub Jelinek committed
    • Improvements to typed_splay_tree · 950f6c85
      This patch adds foreach, max and min methods to
      class typed_splay_tree, along with the start of a selftest
      suite.
      
      gcc/ChangeLog:
      	* Makefile.in (OBJS): Add typed-splay-tree.o.
      	* selftest-run-tests.c (selftest::run_tests): Call
      	typed_splay_tree_c_tests.
      	* selftest.h (typed_splay_tree_c_tests): New decl.
      	* typed-splay-tree.c: New file.
      	* typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
      	(typed_splay_tree::max): New method.
      	(typed_splay_tree::min): New method.
      	(typed_splay_tree::foreach): New method.
      	(typed_splay_tree::closure): New struct.
      	(typed_splay_tree::inner_foreach_fn): New function.
      
      From-SVN: r239958
      David Malcolm committed
    • Use setrlimit for testing libstdc++ in cross toolchains · 5a810362
      	* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Check for presence of
      	setrlimit on both native and cross targets.
      	* configure: Regenerate.
      
      From-SVN: r239955
      Maxim Kuvyrkov committed
    • ipa-cp.c (ipcp_store_bits_results): Change option name from -fipa-cp-bit to -fipa-bit-cp. · 15bbb5cc
      2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
      	* ipa-cp.c (ipcp_store_bits_results): Change option name from
      	-fipa-cp-bit to -fipa-bit-cp.
      
      From-SVN: r239954
      Prathamesh Kulkarni committed
    • PR tree-optimization/71831 - __builtin_object_size poor results with no · 05a64756
      PR tree-optimization/71831 - __builtin_object_size poor results with no
      	optimization
      
      gcc/testsuite/ChangeLog:
      
      	PR tree-optimization/71831
      	* gcc.dg/builtin-object-size-16.c: New test.
      	* gcc.dg/builtin-object-size-17.c: New test.
      
      gcc/ChangeLog:
      
      	PR tree-optimization/71831
      	* tree-object-size.h: Return bool instead of the size and add
      	argument for the size.
      	* tree-object-size.c (compute_object_offset): Update signature.
      	(addr_object_size): Same.
      	(compute_builtin_object_size): Return bool instead of the size
      	and add argument for the size.  Handle POINTER_PLUS_EXPR when
      	optimization is disabled.
      	(expr_object_size): Adjust.
      	(plus_stmt_object_size): Adjust.
      	(pass_object_sizes::execute): Adjust.
      	* builtins.c (fold_builtin_object_size): Adjust.
      	* doc/extend.texi (Object Size Checking): Update.
      	* ubsan.c (instrument_object_size): Adjust.
      
      From-SVN: r239953
      Martin Sebor committed
    • Daily bump. · 910f2f3d
      From-SVN: r239952
      GCC Administrator committed
  5. 01 Sep, 2016 2 commits
    • c-ada-spec.c (dump_ada_function_declaration): Increase buffer size to guarantee… · 3d7b83b6
      c-ada-spec.c (dump_ada_function_declaration): Increase buffer size to guarantee it fits the output of the formatted function...
      
      
      gcc/c-family/ChangeLog:
      
      	* c-ada-spec.c (dump_ada_function_declaration): Increase buffer
      	size to guarantee it fits the output of the formatted function
      	regardless of its arguments.
      
      gcc/cp/ChangeLog:
      
      	* mangle.c: Increase buffer size to guarantee it fits the output
      	of the formatted function regardless of its arguments.
      
      gcc/go/ChangeLog:
      
      	* gofrontend/expressions.cc: Increase buffer size to guarantee
      	it fits the output of the formatted function regardless of its
      	arguments.
      
      gcc/java/ChangeLog:
      
      	* decl.c (give_name_to_locals): Increase buffer size to guarantee
      	it fits the output of the formatted function regardless of its
      	arguments.
      	* mangle_name.c (append_unicode_mangled_name): Same.
      
      gcc/ChangeLog:
      
      	* genmatch.c (parser::parse_expr): Increase buffer size to guarantee
      	it fits the output of the formatted function regardless of its
      	arguments.
      	* gcc/genmodes.c (parser::parse_expr): Same.
      	* gimplify.c (gimplify_asm_expr): Same.
      	* passes.c (pass_manager::register_one_dump_file): Same.
      	* print-tree.c (print_node): Same.
      
      From-SVN: r239949
      Martin Sebor committed
    • rs6000: Rename 110 -> VSCR_REGNO · 3b2475ab
      
      	* config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
      
      From-SVN: r239948
      Segher Boessenkool committed