1. 11 May, 2015 18 commits
  2. 10 May, 2015 12 commits
  3. 09 May, 2015 10 commits
    • re PR tree-optimization/64454 (optimize (x%5)%5) · 441898b2
      2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR tree-optimization/64454
      gcc/
      	* tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
      	Rewrite.
      gcc/testsuite/
      	* gcc.dg/tree-ssa/vrp97.c: New file.
      	* gcc.dg/vect/slp-perm-7.c: Update.
      
      From-SVN: r222970
      Marc Glisse committed
    • re PR bootstrap/66085 (Revision r222934 breaks bootstrap on darwin.) · a31765ef
      	PR bootstrap/66085
      	* decl2.c (note_mangling_alias): Declare arguments as unused.
      
      From-SVN: r222969
      Aldy Hernandez committed
    • Fix fortran/65894 elemental procedures wrong-code · 14aeb3cd
      gcc/fortran/
      2015-05-09  Mikael Morin  <mikael@gcc.gnu.org>
      
      	PR fortran/65894
      	* trans-array.h (gfc_scalar_elemental_arg_saved_as_reference):
      	New prototype.
      	* trans-array.c (gfc_scalar_elemental_arg_saved_as_reference):
      	New function.
      	(gfc_add_loop_ss_code): Use gfc_scalar_elemental_arg_saved_as_reference
      	as conditional.
      	(gfc_walk_elemental_function_args): Set the dummy_arg field.
      	* trans.h (gfc_ss_info): New subfield dummy_arg.
      	* trans-expr.c (gfc_conv_procedure_call): Revert the change
      	of revision 222361.
      	(gfc_conv_expr): Use gfc_scalar_elemental_arg_saved_as_reference
      	as conditional.
      
      gcc/testsuite/
      2015-05-09  Andre Vehreschild  <vehre@gmx.de>
      
      	PR fortran/65894
      	* gfortran.dg/elemental_subroutine_11.f90: New test.
      
      From-SVN: r222968
      Mikael Morin committed
    • utils.c (gnat_write_global_declarations): Use type_decl method instead of… · 1f0e2688
      utils.c (gnat_write_global_declarations): Use type_decl method instead of global_decl for TYPE_DECLs.
      
      	* gcc-interface/utils.c (gnat_write_global_declarations): Use type_decl
      	method instead of global_decl for TYPE_DECLs.
      
      From-SVN: r222967
      Eric Botcazou committed
    • openacc.h (__GOACC_NOTHROW): Fix noexcept syntax. · 1be0899d
      	* openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
      
      	* testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
      	_Complex.
      
      From-SVN: r222966
      Jason Merrill committed
    • std_c++0x_neg.cc: Add -std=c++98. · f8356d52
      	* testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
      	* testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: Likewise.
      	* testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
      	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust expected errors.
      	* testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:  Likewise.
      	* testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/check_allocate_max_size.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/check_deallocate_null.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
      	* testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
      	* testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
      	* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: Add -std=c++98.
      	* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Add -std=c++98.
      	* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Add -std=c++98.
      	* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Add -std=c++98 -fno-show-column.
      	* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: Add -std=c++98.
      	* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Add -std=c++98.
      	* testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
      	* testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
      
      From-SVN: r222965
      Jason Merrill committed
    • Makefile.am (AM_CXXFLAGS): Add -std=gnu++98. · 6cd9cb89
      	* src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
      	* src/c++98/Makefile.in: Regenerate.
      	* src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
      	* src/Makefile.in: Regenerate.
      
      From-SVN: r222964
      Jason Merrill committed
    • memcmp-1.c: Fix narrowing. · 045a58e4
      gcc/testsuite/
      	* c-c++-common/asan/memcmp-1.c: Fix narrowing.
      	* c-c++-common/asan/no-asan-stack.c: Fix narrowing.
      	* c-c++-common/torture/vector-shift1.c: Fix narrowing.
      	* c-c++-common/torture/vshuf-2.inc: Fix narrowing.
      	* g++.dg/torture/pr33572.C: Compile with -std=c++98.
      
      From-SVN: r222963
      Jason Merrill committed
    • c.opt (Wc++11-compat): Make primary. · 765189ff
      gcc/c-family/
      	* c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
      	* c-opts.c: Adjust.
      gcc/cp/
      	* cp-gimplify.c, parser.c: Adjust.
      
      From-SVN: r222962
      Jason Merrill committed
    • lex.c (lex_string): Add -Wc++11-compat warning. · fe191308
      libcpp/
      	* lex.c (lex_string): Add -Wc++11-compat warning.
      	* include/cpplib.h: Add CPP_W_CXX11_COMPAT.
      	(struct cpp_options): Add cpp_warn_cxx11_compat.
      	* init.c (cpp_create_reader): Initialize it.
      gcc/c-family/
      	* c.opt (Wc++0x-compat): Set it.
      
      From-SVN: r222961
      Jason Merrill committed