* config/msp430/msp430.c (is_wakeup_func): New function.  Returns
	true if the current function has the wakeup attribute.
	(msp430_start_function): Note if the function has the wakeup
	attribute.
	(msp430_attribute_table): Add wakeup attribute.
	(msp430_expand_epilogue): Add support for wakeup functions.
	* config/msp430/msp430.md (disable_interrupts): Emit a NOP after
	the DINT instruction.
	* doc/extend.texi: Document the wakeup attribute.


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

	PR tree-optimization/58296
	PR tree-optimization/41488
	* tree-scalar-evolution.c: Include necessary header files.
	(simplify_peeled_chrec): New function.
	(analyze_evolution_in_loop): New static variable.
	Call simplify_peeled_chrec.
	* tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
	(add_old_iv_candidates): Don't add candidate for peeled IV.
	* tree-affine.h (aff_combination_zero_p): New function.

	PR tree-optimization/58296
	PR tree-optimization/41488
	* gcc.dg/tree-ssa/scev-7.c: New test.
	* gcc.dg/pr41488.c: New test.
	* g++.dg/pr59445.C: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205959 138bc75d-0d04-0410-961f-82ee72b054a4
Update HImode imul cost for Silvermont

2013-12-13  Yuri Rumyantsev  <ysrumyan@gmail.com>

	* config/i386/i386.c (slm_cost): Fix imul cost for HI.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205962 138bc75d-0d04-0410-961f-82ee72b054a4
	PR tree-optimization/45685
	* tree-ssa-phiopt.c (neg_replacement): New function.
	(tree_ssa_phiopt_worker): Call it.

	PR tree-optimization/45685
	* gcc.dg/tree-ssa/pr45685.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205963 138bc75d-0d04-0410-961f-82ee72b054a4
2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>

	* config/arc/arc.h (BITS_PER_UNIT): Removed.
	* config/bfin/bfin.h (BITS_PER_UNIT): Removed.
	* config/lm32/lm32.h (BITS_PER_UNIT): Removed.
	* config/m32c/m32c.h (BITS_PER_UNIT): Removed.
	* config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
	* config/picochip/picochip.h (BITS_PER_UNIT): Removed.
	* config/spu/spu.h (BITS_PER_UNIT): Removed.
	* defaults.h (BITS_PER_UNIT): Removed.
	* config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
	* doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
	(MAX_BITSIZE_MODE_ANY_INT): Updated.
	* doc/tm.texi (BITS_PER_UNIT): Removed.
	* doc/tm.texi.in (BITS_PER_UNIT): Removed.
	* genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
	(create_modes): Added code to set bits_per_unit and
	max_bitsize_mode_any_int.
	(emit_max_int): Changed code generation.
	* mkconfig.sh: Added insn-modes.h.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205964 138bc75d-0d04-0410-961f-82ee72b054a4
Enabled Usage of _Cilk_spawn and _Cilk_sync in Cilk Runtime (libcilkrts).
+2013-12-13  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       * Makefile.am (GENERAL_FLAGS): Removed undefining of Cilk keywords.
+       * Makefile.in: Reconfigure.
+       * runtime/symbol_test.c: Added a #define to clear out _Cilk_for.
+



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205965 138bc75d-0d04-0410-961f-82ee72b054a4
	PR tree-optimization/59149
	* calls.c (flags_from_decl_or_type): Fail on non decl or type.
	* trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
	if no type or decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205967 138bc75d-0d04-0410-961f-82ee72b054a4
2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>

	* genmodes.c (emit_max_int): Fixed missing parens.
	


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205970 138bc75d-0d04-0410-961f-82ee72b054a4
2013-12-13  Vladimir Makarov  <vmakarov@redhat.com>

	* ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
	* ira.c: Ditto.
	* lra-int.h (lra_init_equiv): New prototype.
	* lra-constraints.c (lra_init_equiv, update_equiv): New functions.
	(loc_equivalence_callback): Use the 3rd arg.
	(lra_constraints): Update equivalences.  Pass curr_insn to
	simplify_replace_fn_rtx.
	* lra.c (lra): Call lra_init_equiv.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205974 138bc75d-0d04-0410-961f-82ee72b054a4
	* configure.ac: Add user-friendly check for native x86_64-linux
	multilibs.
	* configure: Regenerate.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205975 138bc75d-0d04-0410-961f-82ee72b054a4
Fix g++.dg/cilk-plus/cilk-plus.exp

        * g++.dg/cilk-plus/cilk-plus.exp: Properly set ld_library_path.
        Use TEST_EXTRA_LIBS instead of ALWAYS_CFLAGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205976 138bc75d-0d04-0410-961f-82ee72b054a4
* config/msp430/msp430.md (movqi): replace general_operand with
msp_general_operand and nonimmediate_operand with
msp_nonimmediate_operand to allow volatile operands.
(movhi): Likewise.
(movpsi): Likewise.
(addpsi3): Likewise.
(addhi3): Likewise.
(addhi3_cy): Likewise.
(addchi4_cy): Likewise.
(xor<mode>3): Likewise.
(ome_cmpl<mode>2): Likewise.
(extendqihi2): Likewise.
(zero_extendqihi2): Likewise.
(zero_extendhipsi2): Likewise.
(truncpsihi2): Likewise.
(srai_1): Likewise.


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205980 138bc75d-0d04-0410-961f-82ee72b054a4
* config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205981 138bc75d-0d04-0410-961f-82ee72b054a4
Fix REG_PARM_STACK_SPACE usage in expand_call

2013-12-14  Tom de Vries  <tom@codesourcery.com>

	* calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.

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

	PR fortran/59450
	* module.c (mio_expr): Handle type-bound function expressions.


2013-12-14  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/59450
	* gfortran.dg/typebound_proc_31.f90: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205983 138bc75d-0d04-0410-961f-82ee72b054a4
	PR sanitizer/59503
	* internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
	expand_binop with correct optab depending on code.
testsuite/
	* c-c++-common/ubsan/pr59503.c: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205984 138bc75d-0d04-0410-961f-82ee72b054a4
More tests for ubsan.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205985 138bc75d-0d04-0410-961f-82ee72b054a4
	* var-tracking.c (add_stores): Fix oversight in latest commit.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205986 138bc75d-0d04-0410-961f-82ee72b054a4
* g++.dg/cilk-plus/cilk-plus.exp: Fix last change.


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