1. 15 May, 2015 15 commits
  2. 14 May, 2015 10 commits
  3. 13 May, 2015 15 commits
    • sjlj.m4: New file. · 9b92a9f3
      config/
      	* sjlj.m4: New file.
      libgcc/
      	* configure.ac: Include config/sjlj.m4.
      	Remove manual SJLJ check, add GCC_CHECK_SJLJ_EXCEPTIONS and adjust.
      	* config.in: Regenerate.
      	* configure: Likewise.
      	* config.host: Replace enable_sjlj_exceptions by ac_cv_sjlj_exceptions.
      libjava/
      	* configure.ac: Include config/sjlj.m4.
      	Remove manual SJLJ check, add GCC_CHECK_SJLJ_EXCEPTIONS and adjust.
      	* include/config.h.in: Regenerate.
      	* configure: Likewise.
      	* exception.cc: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__.
      	* stacktrace.cc: Likewise.
      	* include/default-signal.h: Likewise.
      	* sysdep/i386/backtrace.h: Likewise.
      libobjc/
      	* configure.ac: Remove manual SJLJ check.
      	* config.h.in: Regenerate.
      	* configure: Likewise.
      	* exception.c: Replace SJLJ_EXCEPTIONS by __USING_SJLJ_EXCEPTIONS__.
      libstdc++-v3/
      	* acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
      	* configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
      	* config.h.in: Regenerate.
      	* configure: Likewise.
      	* libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
      	__USING_SJLJ_EXCEPTIONS__.
      	* libsupc++/eh_throw.cc: Likewise.
      	* libsupc++/eh_ptr.cc: Likewise.
      	* doc/html/manual/appendix_porting.html: Remove
      	GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
      	* doc/xml/manual/build_hacking.xml: Likewise.
      	* doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
      	* doc/xml/manual/configure.xml: Likewise.
      
      From-SVN: r223181
      Eric Botcazou committed
    • re PR rtl-optimization/30967 (Extra sign/zero extend with word comparison result) · 7893307b
      	PR rtl-optimization/30967
      	* config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
      	destination mode for the cost of scc patterns.
      
      From-SVN: r223174
      Segher Boessenkool committed
    • i386.md (*mul<mode>3_1): Merge with *mulhi3_1 using SWIM248 mode iterator. · 1c08a677
      	* config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
      	using SWIM248 mode iterator.
      	(*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
      	(*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
      	for operand[2] constraint.
      	(*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
      
      From-SVN: r223173
      Uros Bizjak committed
    • re PR middle-end/66133 (Wrong-code with noreturn #pragma omp task body) · b37dddbc
      	PR middle-end/66133
      	* omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
      	make sure it is never noreturn, even when the task body does not
      	return.
      	(lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
      	right before GIMPLE_OMP_RETURN.
      	(make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
      	for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
      	GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
      
      	* testsuite/libgomp.c/pr66133.c: New test.
      
      From-SVN: r223171
      Jakub Jelinek committed
    • shared_ptr_base.h (__shared_count(unique_ptr&&)): Check for nullptr (LWG 2415). · 098aac94
      	* include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
      	for nullptr (LWG 2415).
      	* testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
      	construction from empty unique_ptr.
      	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
      	* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
      
      From-SVN: r223170
      Jonathan Wakely committed
    • [tree-ssa-math-opts] Expand pow (x, CONST) using square roots when possible · b7dce216
      	* params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
      	* tree-ssa-math-opts.c: Include params.h
      	(pow_synth_sqrt_info): New struct.
      	(representable_as_half_series_p): New function.
      	(get_fn_chain): Likewise.
      	(print_nested_fn): Likewise.
      	(dump_fractional_sqrt_sequence): Likewise.
      	(dump_integer_part): Likewise.
      	(expand_pow_as_sqrts): Likewise.
      	(gimple_expand_builtin_pow): Use above to attempt to expand
      	pow as series of square roots.  Removed now unused variables.
      
      	* gcc.target/aarch64/pow-sqrt-synth-1.c: New test.
      	* gcc.dg/pow-sqrt.x: New file.
      	* gcc.dg/pow-sqrt-1.c: New test.
      	* gcc.dg/pow-sqrt-2.c: Likewise.
      	* gcc.dg/pow-sqrt-3.c: Likewise.
      
      From-SVN: r223167
      Kyrylo Tkachov committed
    • alpha.c (alpha_emit_set_long_const): Remove c1 argument. · da80c6b8
      	* config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
      	(alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
      	Remove *p0 and *p1 arguments.  Rewrite function.
      	(alpha_legitimate_constant_p): Update call to alpha_extract_integer.
      	(alpha_split_const_mov): Update calls to alpha_extract_integer and
      	alpha_emit_set_long_const.
      	(alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
      	(alpha_output_mi_thunk_osf): Ditto.
      	* config/alpha/alpha.md (movti): Do not check operands[1]
      	for CONST_DOUBLE.
      
      From-SVN: r223166
      Uros Bizjak committed
    • re PR tree-optimization/66129 (FAIL: gcc.dg/vect/vect-strided-*c execution test) · 1ece8d4c
      2015-05-13  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/66129
      	* tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
      	commutative.
      	(vect_schedule_slp_instance): Fix typo.
      
      From-SVN: r223164
      Richard Biener committed
    • libcpp/input.c: Add a way to visualize the linemaps (-fdump-internal-locations) · ba4ad400
      gcc/ChangeLog:
      	* common.opt (fdump-internal-locations): New option.
      	* input.c: Include diagnostic-core.h.
      	(get_end_location): New function.
      	(write_digit): New function.
      	(write_digit_row): New function.
      	(dump_location_range): New function.
      	(dump_labelled_location_range): New function.
      	(dump_location_info): New function.
      	* input.h (dump_location_info): New prototype.
      	* toplev.c (compile_file): Handle flag_dump_locations.
      
      libcpp/ChangeLog:
      	* include/line-map.h (source_location): Add a reference to
      	location-example.txt to the descriptive comment.
      	* location-example.txt: New file.
      
      From-SVN: r223163
      David Malcolm committed
    • stl_raw_storage_iter.h (raw_storage_iterator::base()): Define (LWG 2454). · 49d50b6b
      	* include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
      	Define (LWG 2454).
      	* testsuite/20_util/raw_storage_iterator/base.cc: New.
      
      From-SVN: r223162
      Jonathan Wakely committed
    • future (packaged_task(allocator_arg_t, const A&, F&&): Remove explicit (LWG 2407). · e6508eaf
      	* include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
      	Remove explicit (LWG 2407).
      
      From-SVN: r223161
      Jonathan Wakely committed
    • basic_string.h (basic_string::basic_string()): Make noexcept conditional on allocator (LWG 2455). · bcb896ab
      	* include/bits/basic_string.h (basic_string::basic_string()): Make
      	noexcept conditional on allocator (LWG 2455).
      
      From-SVN: r223160
      Jonathan Wakely committed
    • tuple (apply): Handle pointers to member (LWG 2418). · ac68f97c
      	* include/experimental/tuple (apply): Handle pointers to member (LWG
      	2418).
      	* include/std/functional (_Mem_fn_base): Make constructors constexpr.
      	(_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
      	* testsuite/experimental/tuple/apply.cc: Test pointer to member.
      
      From-SVN: r223158
      Jonathan Wakely committed
    • gimple-expr.h (is_gimple_constant): Reorder. · 681a3d86
      	* gimple-expr.h (is_gimple_constant): Reorder.
      	* tree-ssa-propagate.c (before_dom_children): Use inline accessor.
      
      From-SVN: r223156
      Eric Botcazou committed