1. 12 Jan, 2015 40 commits
    • * Add TARGET_ATOMIC_ASSIGN_EXPAND_FENV hook for sh. · 801881b0
      From-SVN: r219500
      Kaz Kojima committed
    • libgccjit: detect various kinds of errors relating to params and locals · f6f2b019
      gcc/jit/ChangeLog:
      	* jit-recording.c (class gcc::jit::rvalue_usage_validator): New.
      	(gcc::jit::rvalue_usage_validator::rvalue_usage_validator): New
      	ctor.
      	(gcc::jit::rvalue_usage_validator::visit): New function.
      	(gcc::jit::recording::rvalue::verify_valid_within_stmt): New
      	function.
      	(gcc::jit::recording::rvalue::set_scope): New function.
      	(gcc::jit::recording::function::function): Call set_scope on each
      	param, issuing errors for any params that already have a function.
      	(gcc::jit::recording::block::add_eval): Return the new statement;
      	update the comment given that some error-checking now happens after
      	this returns.
      	(gcc::jit::recording::block::add_assignment): Likewise.
      	(gcc::jit::recording::block::add_assignment_op): Likewise.
      	(gcc::jit::recording::block::add_comment): Likewise.
      	(gcc::jit::recording::block::end_with_conditional): Likewise.
      	(gcc::jit::recording::block::end_with_jump): Likewise.
      	(gcc::jit::recording::block::end_with_return): Likewise.
      	(gcc::jit::recording::block::validate): Add a comment.
      	(gcc::jit::recording::unary_op::visit_children): New function.
      	(gcc::jit::recording::binary_op::visit_children): New function.
      	(gcc::jit::recording::comparison::visit_children): New function.
      	(gcc::jit::recording::cast::visit_children): New function.
      	(gcc::jit::recording::call::visit_children): New function.
      	(gcc::jit::recording::call_through_ptr::visit_children): New function.
      	(gcc::jit::recording::array_access::visit_children): New function.
      	(gcc::jit::recording::access_field_of_lvalue::visit_children): New
      	function.
      	(gcc::jit::recording::access_field_rvalue::visit_children): New
      	function.
      	(gcc::jit::recording::dereference_field_rvalue::visit_children):
      	New function.
      	(gcc::jit::recording::dereference_rvalue::visit_children): New
      	function.
      	(gcc::jit::recording::get_address_of_lvalue::visit_children): New
      	function.
      	* jit-recording.h: Within namespace gcc::jit::recording...
      	(class rvalue_visitor): New.
      	(rvalue::rvalue): Initialize m_scope.
      	(rvalue::get_loc): New accessor.
      	(rvalue::verify_valid_within_stmt): New function.
      	(rvalue::visit_children): New pure virtual function.
      	(rvalue::set_scope): New function.
      	(rvalue::get_scope): New function.
      	(rvalue::dyn_cast_param): New function.
      	(rvalue::m_scope): New field.
      	(param::visit_children): New empty function.
      	(param::dyn_cast_param): New function.
      	(function::get_loc): New function.
      	(block::add_eval): Return the new statement.
      	(block::add_assignment): Likewise.
      	(block::add_assignment_op): Likewise.
      	(block::add_comment): Likewise.
      	(block::end_with_conditional): Likewise.
      	(block::end_with_jump): Likewise.
      	(block::end_with_return): Likewise.
      	(global::visit_children): New function.
      	(memento_of_new_rvalue_from_const<HOST_TYPE>::visit_children):
      	New function.
      	(memento_of_new_string_literal::visit_children): New function.
      	(unary_op::visit_children): New function.
      	(binary_op::visit_children): New function.
      	(comparison::visit_children): New function.
      	(cast::visit_children): New function.
      	(call::visit_children): New function.
      	(call_through_ptr::visit_children): New function.
      	(array_access::visit_children): New function.
      	(access_field_of_lvalue::visit_children): New function.
      	(access_field_rvalue::visit_children): New function.
      	(dereference_field_rvalue::visit_children): New function.
      	(dereference_rvalue::visit_children): New function.
      	(get_address_of_lvalue::visit_children): New function.
      	(local::local): Call set_scope.
      	(local::visit_children): New function.
      	(statement::get_block): Make public.
      	* libgccjit.c (RETURN_VAL_IF_FAIL_PRINTF5): New macro.
      	(RETURN_NULL_IF_FAIL_PRINTF5): New macro.
      	(gcc_jit_context_new_function): Verify that each param has
      	not yet been used for creating another function.
      	(gcc_jit_block_add_eval): After creating the stmt, verify
      	that the rvalue expression tree is valid to use within it.
      	(gcc_jit_block_add_assignment): Likewise for the lvalue and
      	rvalue expression trees.
      	(gcc_jit_block_add_assignment_op): Likewise.
      	(gcc_jit_block_end_with_conditional): Likewise for the boolval
      	expression tree.
      	(gcc_jit_block_end_with_return): Likewise for the rvalue
      	expression tree.
      	(gcc_jit_block_end_with_void_return): Remove return of "void",
      	now that block::end_with_return is now non-void.
      
      gcc/testsuite/ChangeLog:
      	* jit.dg/test-error-local-used-from-other-function.c: New test
      	case.
      	* jit.dg/test-error-param-reuse.c: New test case.
      	* jit.dg/test-error-param-sharing.c: New test case.
      	* jit.dg/test-error-param-used-from-other-function.c: New test
      	case.
      	* jit.dg/test-error-param-used-without-a-function.c: New test
      	case.
      
      From-SVN: r219498
      David Malcolm committed
    • invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses after a funtion name… · 16ba6203
      invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses after a funtion name just to indicate it is a function.
      
      2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
      	after a funtion name just to indicate it is a function.
      	([-fsanitize-undefined-trap-on-error]): Likewise.
      	([-fdbg-cnt=]): Likewise.
      	([-mmemcpy]): Likewise.
      	([-mflush-func]): Likewise.
      	([-msynci]): Likewise.
      
      From-SVN: r219497
      Sandra Loosemore committed
    • re PR libstdc++/64553 (Missing '# ifdef _GLIBCXX_USE_WCHAR_T' in src/c++11/cxx11-shim_facet.cc) · 1b9ad1d9
      	PR libstdc++/64553
      	* src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
      
      From-SVN: r219496
      Jonathan Wakely committed
    • re PR libstdc++/64560 (building libstdc++ with -fno-rtti fails in new cxx11-shim-facets.cc file) · 5e67acc9
      	PR libstdc++/64560
      	* src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
      	for RTTI support.
      
      From-SVN: r219495
      Jonathan Wakely committed
    • invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing example. · 3ae79bfd
      2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
      	example.
      
      From-SVN: r219494
      Sandra Loosemore committed
    • re PR tree-optimization/64563 (ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu) · 737fde1d
      	PR tree-optimization/64563
      	* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
      	instead of != VR_VARYING.
      
      	* gcc.dg/pr64563.c: New test.
      
      From-SVN: r219493
      Jakub Jelinek committed
    • re PR target/64513 (ICE: in maybe_record_trace_start, at dwarf2cfi.c:2231 with -mstack-arg-probe) · 631b8d78
      	PR target/64513
      	* config/i386/i386.c (ix86_expand_prologue): Add
      	REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
      
      	* gcc.target/i386/pr64513.c: New test.
      
      From-SVN: r219492
      Jakub Jelinek committed
    • re PR tree-optimization/64454 (optimize (x%5)%5) · f51286f2
      	PR tree-optimization/64454
      	* tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
      	op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
      	for signed or [0, op1 - 1] for unsigned modulo.
      	(simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
      	even if op1 does not satisfy integer_pow2p.
      
      	* gcc.dg/pr64454.c: New test.
      
      From-SVN: r219491
      Jakub Jelinek committed
    • re PR testsuite/64028 (r211599 caused many vectorizer test failures with -fPIC) · 01991953
      	PR testsuite/64028
      	* gcc.dg/vect/no-section-anchors-vect-31.c: Add dg-add-options
      	bind_pic_locally.
      	* gcc.dg/vect/no-section-anchors-vect-34.c: Likewise.
      	* gcc.dg/vect/no-section-anchors-vect-36.c: Likewise.
      	* gcc.dg/vect/no-section-anchors-vect-64.c: Likewise.
      	* gcc.dg/vect/no-section-anchors-vect-65.c: Likewise.
      	* gcc.dg/vect/no-section-anchors-vect-68.c: Likewise.
      	* gcc.dg/vect/no-section-anchors-vect-69.c: Likewise.
      	* gcc.dg/vect/slp-25.c: Likewise.
      	* gcc.dg/vect/vect-109.c: Likewise.
      	* gcc.dg/vect/vect-13.c: Likewise.
      	* gcc.dg/vect/vect-17.c: Likewise.
      	* gcc.dg/vect/vect-18.c: Likewise.
      	* gcc.dg/vect/vect-19.c: Likewise.
      	* gcc.dg/vect/vect-20.c: Likewise.
      	* gcc.dg/vect/vect-21.c: Likewise.
      	* gcc.dg/vect/vect-22.c: Likewise.
      	* gcc.dg/vect/vect-27.c: Likewise.
      	* gcc.dg/vect/vect-29.c: Likewise.
      	* gcc.dg/vect/vect-2-big-array.c: Likewise.
      	* gcc.dg/vect/vect-2.c: Likewise.
      	* gcc.dg/vect/vect-3.c: Likewise.
      	* gcc.dg/vect/vect-4.c: Likewise.
      	* gcc.dg/vect/vect-5.c: Likewise.
      	* gcc.dg/vect/vect-72.c: Likewise.
      	* gcc.dg/vect/vect-73-big-array.c: Likewise.
      	* gcc.dg/vect/vect-73.c: Likewise.
      	* gcc.dg/vect/vect-77-global.c: Likewise.
      	* gcc.dg/vect/vect-78-global.c: Likewise.
      	* gcc.dg/vect/vect-7.c: Likewise.
      	* gcc.dg/vect/vect-86.c: Likewise.
      	* gcc.dg/vect/vect-align-1.c: Likewise.
      	* gcc.dg/vect/vect-align-3.c: Likewise.
      	* gcc.dg/vect/vect-all-big-array.c: Likewise.
      	* gcc.dg/vect/vect-all.c: Likewise.
      	* gcc.dg/vect/vect-multitypes-1.c: Likewise.
      	* gcc.dg/vect/vect-multitypes-4.c: Likewise.
      	* gcc.dg/vect/vect-peel-3.c: Likewise.
      	* gcc.dg/vect/vect-peel-4.c: Likewise.
      	* gcc.dg/vect/wrapv-vect-7.c: Likewise.
      
      From-SVN: r219490
      Jakub Jelinek committed
    • re PR other/64370 (sreal.c:125:23: error: 'exp2' was not declared in this scope) · aadb701b
      	PR other/64370
      	* sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
      
      From-SVN: r219489
      Jakub Jelinek committed
    • re PR target/64461 (bad assembly generated for Coldfire targets) · 351f1600
             PR target/64461
              * gcc.target/m68k/pr64461.c: New test.
      
      From-SVN: r219488
      Jeff Law committed
    • jit-playback.c: fix missing fclose · 1c35cc2c
      gcc/jit/ChangeLog:
      	* jit-playback.c (gcc::jit::playback::context::read_dump_file):
      	Add missing fclose on error-handling path.
      
      From-SVN: r219487
      David Malcolm committed
    • Add PR marker for last commit · cfd02f69
      From-SVN: r219484
      Jeff Law committed
    • m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE. · 1481bdb1
             * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
             (trunchiqi2, truncsihi2): Similarly.
      
      From-SVN: r219483
      Jeff Law committed
    • h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly rather than calling F. · f698a4b1
             * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
             rather than calling F.
      
      From-SVN: r219481
      Jeff Law committed
    • jit: API change to gcc_jit_context_new_global · 791cfef8
      gcc/jit/ChangeLog:
      	* docs/cp/topics/expressions.rst (Global variables): Add
      	enum gcc_jit_global_kind param to gccjit::context::new_global.
      	* docs/topics/expressions.rst (Global variables): Likewise.
      	Document the new enum.
      	* docs/topics/results.rst (Compilation results): Document
      	globals-handling.
      	* dummy-frontend.c (jit_langhook_write_globals): Call into the
      	playback context's write_global_decls_1 and write_global_decls_2
      	before and after calling symtab->finalize_compilation_unit ().
      	* jit-playback.c: Include "debug.h".
      	(gcc::jit::playback::context::new_global): Add "kind" param and
      	use it to set TREE_PUBLIC, TREE_STATIC and DECL_EXTERNAL on the
      	underlying VAR_DECL.  Call varpool_node::get_create on the
      	VAR_DECL, and add it to m_globals.
      	(gcc::jit::playback::context::write_global_decls_1): New function.
      	(gcc::jit::playback::context::write_global_decls_2): New function.
      	* jit-playback.h (gcc::jit::playback::context::context): Call
      	create on m_globals.
      	(gcc::jit::playback::context::new_global): Add "kind" param.
      	(gcc::jit::playback::context::write_global_decls_1): New function.
      	(gcc::jit::playback::context::write_global_decls_2): New function.
      	(gcc::jit::playback::context::m_globals): New field.
      	* jit-recording.c (gcc::jit::recording::context::context):
      	Initialize m_globals.
      	(gcc::jit::recording::context::new_global): Add param "kind".
      	Add the new global to m_globals.
      	(gcc::jit::recording::context::dump_to_file): Dump the globals.
      	(gcc::jit::recording::global::replay_into): Add field m_kind.
      	(gcc::jit::recording::global::write_to_dump): New override.
      	* jit-recording.h (gcc::jit::recording::context::new_global): Add
      	param "kind".
      	(gcc::jit::recording::context::m_globals): New field.
      	(gcc::jit::recording::global::global): Add param kind.
      	(gcc::jit::recording::global::write_to_dump): New override.
      	(gcc::jit::recording::global::m_kind): New field.
      	* jit-result.c (gcc::jit::result::get_global): New function.
      	* jit-result.h (gcc::jit::result::get_global): New function.
      	* libgccjit++.h (gccjit::context::new_global): Add "kind" param.
      	* libgccjit.c (gcc_jit_context_new_global): Likewise.
      	(gcc_jit_result_get_global): New API entrypoint.
      	* libgccjit.h (gcc_jit_result_get_global): New API entrypoint.
      	(enum gcc_jit_global_kind): New enum.
      	(gcc_jit_context_new_global): API change: add "kind" param.
      	* libgccjit.map (gcc_jit_result_get_global): New symbol.
      
      gcc/testsuite/ChangeLog:
      	* jit.dg/test-array-as-pointer.c (create_code): Update call
      	to gcc_jit_context_new_global by setting "kind" to
      	GCC_JIT_GLOBAL_IMPORTED.
      	* jit.dg/test-error-array-as-pointer.c: Likewise.
      	* jit.dg/test-expressions.c (make_test_of_get_address): Likewise.
      	* jit.dg/test-fuzzer.c (make_random_global): Likewise, but
      	setting kind to GCC_JIT_GLOBAL_EXPORTED.
      	* jit.dg/test-using-global.c (the_global): Rename to...
      	(imported_global): ...this.
      	(create_code): Update to test the three kinds of global.
      	(verify_code): Likewise.
      
      From-SVN: r219480
      David Malcolm committed
    • Avoid undefined behavior in gcc.target/i386/pr64291-1.c · 6c0fcb81
      	PR testsuite/64427
      	* gcc.target/i386/pr64291-1.c: Limit to lp64 tarrget.  Avoid
      	undefined behavior.
      	* gcc.target/i386/pr64291-2.c: Updated.
      
      From-SVN: r219479
      Marc Glisse committed
    • tsan.c (instrument_expr): Use force_gimple_operand. · 020ca950
      2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * tsan.c (instrument_expr): Use force_gimple_operand.
              Use may_be_nonaddressable_p instead of is_gimple_addressable.
      
      From-SVN: r219478
      Bernd Edlinger committed
    • re PR tree-optimization/64530 (Incorrect calculation when assigning to array with -O3) · 62e22fcb
      2015-01-12  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/64530
      	* tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
      	back dr1.
      
      	* gfortran.dg/pr64530.f90: New testcase.
      
      From-SVN: r219474
      Richard Biener committed
    • re PR tree-optimization/64357 (ICE at -Os on x86_64-linux-gnu in… · 2a58c802
      re PR tree-optimization/64357 (ICE at -Os on x86_64-linux-gnu in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:579)
      
      2015-01-12  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/64357
      	* tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
      	latches properly.
      
      	* gcc.dg/torture/pr64357.c: New testcase.
      
      From-SVN: r219473
      Richard Biener committed
    • [ARM] Use Cortex-A17 tuning parameters for Cortex-A12 · 82ac9e41
      	* config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
      	Cortex-A17 tuning parameters.
      	* config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
      
      From-SVN: r219472
      Kyrylo Tkachov committed
    • Fix date in gcc/ChangeLog · 57ceb728
      From-SVN: r219471
      Kyrylo Tkachov committed
    • [ARM] Implement TARGET_SCHED_MACRO_FUSION_PAIR_P · 8b898d4c
      	* config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
      	* config/arm/arm.c (arm_macro_fusion_p): New function.
      	(arm_macro_fusion_pair_p): Likewise.
      	(TARGET_SCHED_MACRO_FUSION_P): Define.
      	(TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
      	(ARM_FUSE_NOTHING): Likewise.
      	(ARM_FUSE_MOVW_MOVT): Likewise.
      	(arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
      	arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
      	arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
      	arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
      	arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
      	arm_cortex_a5_tune): Specify fuseable_ops value.
      
      From-SVN: r219470
      Kyrylo Tkachov committed
    • re PR c++/64547 (A non-const constexpr function is rejected incorrectly) · 49c8bc0c
      	PR c++/64547
      	* constexpr.c (cxx_eval_call_expression): A call to a void
      	function doesn't need to return a value.
      
      From-SVN: r219466
      Jason Merrill committed
    • Add the missing ChangeLog entry · 9a4fbc59
      From-SVN: r219462
      H.J. Lu committed
    • Correct target selector in gcc.target/i386/nop-mcount.c · 0e8f3d95
      	* gcc.target/i386/nop-mcount.c: Properly place {} in target
      	selector.
      
      From-SVN: r219461
      H.J. Lu committed
    • Update Linux/x86-64 linker test for PIE with copy reloc · 7b3592ee
      	PR bootstrap/64561
      	* configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
      	test for PIE with copy reloc.
      	* configure: Regenerated.
      
      From-SVN: r219460
      H.J. Lu committed
    • [ARM][cleanup] Use R0_REGNUM and R1_REGNUM instead of 0 and 1 where appropriate · 03d5d16a
      	* config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
      	in gen_rtx_REG.
      	(arm_tls_descseq_addr): Likewise.
      	(arm_gen_movmemqi): Likewise.
      	(arm_expand_epilogue_apcs_frame): Likewise.
      	(arm_expand_epilogue): Likewise.
      	(arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
      	in gen_rtx_REG.
      
      From-SVN: r219459
      Kyrylo Tkachov committed
    • ggcplug.c: Include gcc-plugin.h after coretypes.h. · c3aeec0a
      2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
      testsuite/
      	* gcc.dg/plugin/ggcplug.c: Include gcc-plugin.h after coretypes.h.
      
      From-SVN: r219458
      Prathamesh Kulkarni committed
    • re PR ipa/64550 (IPA fixes cause ICE in tree-ssa.c:939) · 365536ca
      Fix for PR64550.
      
              PR ipa/64550
      	* ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
      	volatility for correct operands.
      	* gcc.dg/ipa/PR64550.c: New test.
      
      From-SVN: r219457
      Martin Liska committed
    • IPA ICF: handle correctly indirect_calls. · 1c928ddc
      	* ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
      	that a function is not leaf.
      	(sem_function::compare_polymorphic_p): Likewise.
      
      From-SVN: r219456
      Martin Liska committed
    • visium.c: Add includes hashtab.h... · 76478bf9
      2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
      
      	* config/visium/visium.c: Add includes hashtab.h, hash-set.h,
      	machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
              fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
              fold-const.h, tree-check.h.
      
      From-SVN: r219454
      Prathamesh Kulkarni committed
    • re PR ipa/63967 (r217633 caused internal compiler error: in… · 208e5afa
      re PR ipa/63967 (r217633 caused internal compiler error: in estimate_edge_growth, at ipa-inline.h:299)
      
      
      	PR ipa/63967
      	PR ipa/64425
      	* ipa-inline.c (compute_uninlined_call_time,
      	compute_inlined_call_time): Use counts for extra precision when
      	needed possible.
      	(big_speedup_p): Fix formating.
      	(RELATIVE_TIME_BENEFIT_RANGE): Remove.
      	(relative_time_benefit): Remove.
      	(edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
      	merge guessed and read profile paths.
      	(inline_small_functions): Count only !optimize_size functions into
      	initial size; be more lax about sanity check when profile is used;
      	be sure to update inlined function profile when profile is read.
      
      From-SVN: r219452
      Jan Hubicka committed
    • re PR ipa/63470 (internal compiler error: in estimate_edge_growth, at ipa-inline.h:308) · d8d5aef1
      
      
      	PR ipa/63470
      	* ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
      	cost when edge becomes direct.
      	* ipa-prop.c (make_edge_direct): Do not adjust when speculation
      	is resolved or when introducing new speculation.
      	* testsuite/g++.dg/ipa/pr63470.C: New testcase.
      
      From-SVN: r219451
      Jan Hubicka committed
    • Correct ChangeLog entry. · 0d2dd460
      From-SVN: r219450
      Martin Liska committed
    • re PR ipa/64550 (IPA fixes cause ICE in tree-ssa.c:939) · 9f54bf9c
      PR ipa/64550
      
              PR ipa/64551
      	PR ipa/64552
      	* ipa-icf.c (sem_function::equals_private): Use '&&' instead of
      	'||' to fix typo issue.
      
      	* gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
      	accept and return NULL.
      
      From-SVN: r219449
      Chen Gang committed
    • cgraph_edge refactoring. · 90988f77
      	* cgraph.c (cgraph_edge::remove_callee): Move function to header
      	file for being inlined.
      	(cgraph_set_edge_callee): Delete.
      	(cgraph_edge::redirect_callee): Move function to header file
      	for being inlined.
      	(cgraph_edge::make_direct): Use new function.
      	(cgraph_edge::dump_edge_flags): New function created from
      	static dump_edge_flags function.
      	(cgraph_node::dump): Use new function.
      	(cgraph_edge::verify_count_and_frequency): New function created
      	from verify_edge_count_and_frequency.
      	(cgraph_edge::verify_corresponds_to_fndecl): New function created
      	from verify_edge_corresponds_to_fndecl.
      	(verify_edge_corresponds_to_fndecl): Delete.
      	(cgraph_node::verify_node): Use new function.
      	* cgraph.h (cgraph_edge::set_callee): New function.
      	(cgraph_edge::dump_edge_flags): Likewise.
      	(cgraph_edge::verify_corresponds_to_fndecl): Likewise.
      
      From-SVN: r219448
      Martin Liska committed
    • check_GNU_style.sh: Support patches coming from stdin. · 6e7bdfac
      2015-01-12  Yury Gribov  <y.gribov@samsung.com>
      
      	* check_GNU_style.sh: Support patches coming from stdin.
      	Check that spaces are converted to tabs.
      	Make double-space-after-dot check more precice.
      
      From-SVN: r219447
      Yury Gribov committed