1. 04 Mar, 2019 5 commits
    • re PR tree-optimization/89437 (incorrect result for sinl (atanl (x))) · 5f054b17
      Fix PR89437
      
      Fix PR89437. Fix the sinatan-1.c testcase to not run without
      a C99 target system.  Use nextafterl for long double initialization.
      
      Fix an issue with sinl (atanl (sqrtl (LDBL_MAX)) returning 0.0
      instead of 1.0 by using x < sqrtl (LDBL_MAX) in match.pd.
      
          gcc/
      	PR tree-optimization/89437
      	* match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
      
          testsuite/
      	PR tree-optimization/89437
      	* gcc.dg/sinatan-1.c: Fix testcase.
      
      From-SVN: r269364
      Wilco Dijkstra committed
    • re PR tree-optimization/89572 (ICE in dyn_cast<gcond*, gimple>(gimple*) /… · 19d4e4d6
      re PR tree-optimization/89572 (ICE in dyn_cast<gcond*, gimple>(gimple*) / get_loop_exit_condition(loop const*))
      
      2019-03-04  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/89572
      	* tree-scalar-evolution.c: (get_loop_exit_condition): Use
      	safe_dyn_cast.
      
      	* gcc.dg/torture/pr89572.c: New testcase.
      
      From-SVN: r269363
      Richard Biener committed
    • Implement polymorphic_allocator<byte> for C++20 (P0339R6) · 0e318273
      	* include/std/memory_resource (polymorphic_allocator): Add default
      	template argument for C++20.
      	(polymorphic_allocator::allocate_bytes)
      	(polymorphic_allocator::deallocate_bytes)
      	(polymorphic_allocator::allocate_object)
      	(polymorphic_allocator::deallocate_object)
      	(polymorphic_allocator::new_object)
      	(polymorphic_allocator::delete_object): New member functions for
      	C++20.
      	* testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
      	test.
      
      From-SVN: r269362
      Jonathan Wakely committed
    • re PR tree-optimization/89487 (ICE in expand_expr_addr_expr_1, at expr.c:7993) · c4450491
      	PR tree-optimization/89487
      	* tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
      	(create_rdg_vertices): Compute has_nonaddressable_dataref_p.
      	(distribute_loop): Don't do runtime alias check if there is non-
      	addressable data reference.
      	* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
      	is a register variable.
      
      	* gcc/testsuite/gcc.dg/tree-ssa/pr89487.c: New test.
      
      From-SVN: r269361
      Bin Cheng committed
    • Daily bump. · 19deb343
      From-SVN: r269360
      GCC Administrator committed
  2. 03 Mar, 2019 4 commits
  3. 02 Mar, 2019 7 commits
    • PR d/89177 - Fix unaligned access in std.digest.murmurhash · b08c40f4
      libphobos/ChangeLog:
      
      2019-02-24  Johannes Pfau  <johannespfau@gmail.com>
      
      	* src/std/digest/murmurhash.d: PR d/89177: Backport from upstream.
      	Fixes unaligned data access (PR d/89177).
      
      From-SVN: r269343
      Johannes Pfau committed
    • re PR fortran/89516 (ICE in gfc_calculate_transfer_sizes at gcc/fortran/check.c:5506) · 4716603b
      2019-03-02  Harald Anlauf  <anlauf@gmx.de>
      
      	PR fortran/89516
      	* check.c (gfc_calculate_transfer_sizes): Correct checks for cases
      	where storage size of elements of MOLD is 0.
      
      	PR fortran/89516
      	* gfortran.dg/pr89492.f90: Adjust testcase.
      	* gfortran.dg/transfer_check_5.f90: New test.
      
      From-SVN: r269341
      Harald Anlauf committed
    • re PR c++/71446 (Incorrect overload resolution when using designated initializers) · 574eaf0f
      	PR c++/71446
      	* cp-tree.h (CONSTRUCTOR_IS_DESIGNATED_INIT): Define.
      	* parser.c (cp_parser_braced_list): Adjust cp_parser_initializer_list
      	caller, set CONSTRUCTOR_IS_DESIGNATED_INIT.
      	(cp_parser_initializer_list): Add designated parameter, set *designated
      	to a bool whether any designators were parsed.
      	* decl.c (reshape_init): Copy over CONSTRUCTOR_IS_DESIGNATED_INIT if
      	needed.
      	* pt.c (tsubst_copy_and_build): Likewise.
      	* call.c (implicit_conversion): If CONSTRUCTOR_IS_DESIGNATED_INIT,
      	don't call build_list_conv, nor build_complex_conv, nor attempt to
      	convert a single element initializer to scalar.
      
      	* g++.dg/cpp2a/desig10.C: New test.
      	* g++.dg/cpp2a/desig11.C: New test.
      	* g++.dg/ext/desig4.C: Expect 4 new errors.
      
      From-SVN: r269340
      Jakub Jelinek committed
    • re PR target/89506 (ICE: in decompose, at rtl.h:2266 with -Og -g) · 73ba6c71
      	PR target/89506
      	* config/arm/arm.md (cmpsi2_addneg): Use
      	trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
      	If operands[2] is 0 or INT_MIN, force use of subs.
      	(*compare_scc splitter): Use gen_int_mode.
      	(*negscc): Likewise.
      	* config/arm/thumb2.md (*thumb2_negscc): Likewise.
      
      	* gcc.dg/pr89506.c: New test.
      
      From-SVN: r269339
      Jakub Jelinek committed
    • re PR go/89406 (Go testing leaves many temporary directories in /tmp around) · 64ef1e96
      	PR go/89406
          go/internal/gccgoimporter: remove temporary directories in test
          
          Backport of https://golang.org/cl/164862.
          
          Updates https://gcc.gnu.org/PR89406
          
          Reviewed-on: https://go-review.googlesource.com/c/164863
      
      From-SVN: r269338
      Ian Lance Taylor committed
    • RISC-V: Generalize -march support, add ELF attribute support. · 8e966210
      	Kito Cheng  <kito.cheng@gmail.com>
      	Monk Chiang  <sh.chiang04@gmail.com>
      
      	gcc/
      	* common/config/riscv/riscv-common.c: Include sstream.
      	(riscv_subset_list::to_string): New.
      	(riscv_arch_str): Likewise.
      	* config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
      	* config.in: Regen.
      	* config/riscv/riscv-protos.h (riscv_arch_str): New.
      	* config/riscv/riscv.c (INCLUDE_STRING): Defined.
      	(riscv_emit_attribute): New.
      	(riscv_file_start): Emit attribute if needed.
      	(riscv_option_override): Init riscv_emit_attribute_p.
      	* config/riscv/riscv.opt (mriscv-attribute): New option.
      	* configure.ac (riscv*-*-*): Check binutils is supporting ELF
      	* configure: Regen.
      	* doc/install.texi: Document --with-riscv-attribute.
      	* doc/invoke.texi: Document -mriscv-attribute.
      
      	* common/config/riscv/riscv-common.c:
      	Include config/riscv/riscv-protos.h.
      	(INCLUDE_STRING): Defined.
      	(RISCV_DONT_CARE_VERSION): Defined.
      	(riscv_subset_t): Declare.
      	(riscv_subset_t::riscv_subset_t): New.
      	(riscv_subset_list): Declare.
      	(riscv_subset_list::riscv_subset_list): New.
      	(riscv_subset_list::~riscv_subset_list): Likewise.
      	(riscv_subset_list::parsing_subset_version): Likewise.
      	(riscv_subset_list::parse_std_ext): Likewise.
      	(riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
      	(riscv_subset_list::add): Likewise.
      	(riscv_subset_list::lookup): Likewise.
      	(riscv_subset_list::xlen): Likewise.
      	(riscv_subset_list::parse): Likewise.
      	(riscv_supported_std_ext): Likewise.
      	(current_subset_list): Likewise.
      	(riscv_parse_arch_string): Using riscv_subset_list::parse to
      	parse.
      
      	gcc/testsuite/
      	* gcc.target/riscv/attribute-1.c: New.
      	* gcc.target/riscv/attribute-2.c: Likewise.
      	* gcc.target/riscv/attribute-3.c: Likewise.
      	* gcc.target/riscv/attribute-4.c: Likewise.
      	* gcc.target/riscv/attribute-5.c: Likewise.
      	* gcc.target/riscv/attribute-6.c: Likewise.
      	* gcc.target/riscv/attribute-7.c: Likewise.
      	* gcc.target/riscv/attribute-8.c: Likewise.
      	* gcc.target/riscv/attribute-9.c: Likewise.
      
      	* gcc.target/riscv/arch-1.c: New.
      	* gcc.target/riscv/arch-2.c: Likewise.
      	* gcc.target/riscv/arch-3.c: Likewise.
      	* gcc.target/riscv/arch-4.c: Likewise.
      
      Co-Authored-By: Monk Chiang <sh.chiang04@gmail.com>
      
      From-SVN: r269337
      Kito Cheng committed
    • Daily bump. · fe373287
      From-SVN: r269336
      GCC Administrator committed
  4. 01 Mar, 2019 24 commits