- 06 Oct, 2016 10 commits
-
-
* config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments. Introduce ssesuffix variable. (<mask_codefor><code><mode>3<mask_name>): Ditto. (*<code><mode>3): Ditto. From-SVN: r240834
Uros Bizjak committed -
* postreload.c (reload_cse_simplify): Skip also USE when detecting noop move. From-SVN: r240833
Jan Hubicka committed -
re PR tree-optimization/77855 (wrong code at -O3 on x86_64-linux-gnu (in both 32-bit and 64-bit modes)) 2016-10-06 Richard Biener <rguenther@suse.de> PR tree-optimization/77855 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove instead of removing the current item while iterating over the set which is not safe. * gcc.dg/torture/pr77855.c: New testcase. From-SVN: r240832
Richard Biener committed -
PR target/77759 * config/sparc/sparc.c (classify_data_t): Remove int_regs field. (classify_registers): Don't set it (function_arg_slotno): Don't initialize and test it. Tidy up. Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> From-SVN: r240830
James Clarke committed -
2016-10-06 Richard Biener <rguenther@suse.de> PR tree-optimization/77839 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value lattice transition. * gcc.dg/torture/pr77839.c: New testcase. From-SVN: r240829
Richard Biener committed -
* gcc.c: Set -fprofile-update=atomic when profiling is enabled and -pthread is set. Warn when one combines -pthread and -fprofile-update=single for an app using profiling code. From-SVN: r240828
Martin Liska committed -
PR bootstrap/77788 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert. * gimple-ssa-strength-reduction.c (slsr_process_cast): Initialize a pointer to NULL. (slsr_process_copy): Likewise. * input.c (location_get_source_line): Likewise. * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise. From-SVN: r240827
Martin Liska committed -
There was a bug in the escape analysis that would cause the slice implicitly created to hold varargs parameters to always escape, as well as the appended to slice argument. The intended behavior was that the elements of the appendee and appended to slice would escape to the heap. Alongside of these issues, the varargs slice would also have a chance to be initialized to an invalid memory location if it were stack-allocated. This has been fixed as well. Reviewed-on: https://go-review.googlesource.com/30450 From-SVN: r240826
Ian Lance Taylor committed -
From-SVN: r240824
Marek Polacek committed -
From-SVN: r240823
GCC Administrator committed
-
- 05 Oct, 2016 30 commits
-
-
* cvt.c (ocp_convert): Don't re-copy a TARGET_EXPR in C++17. From-SVN: r240820
Jason Merrill committed -
* call.c (reference_binding): Fix binding to member of temporary. From-SVN: r240819
Jason Merrill committed -
From-SVN: r240818
Jason Merrill committed -
Delete x86 pcommit instruction support, which has been deprecated: https://software.intel.com/en-us/blogs/2016/09/12/deprecate-pcommit-instruction gcc/ * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET, OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions. (ix86_handle_option): Deleted handle of OPT_mpcommit. * config.gcc: Deleted pcommitintrin.h * config/i386/pcommitintrin.h: Deleted file. * config/i386/cpuid.h (bit_PCOMMIT): Deleted. * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit detection. * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define __PCOMMIT__. * config/i386/i386.c (ix86_target_string): Deleted -mpcommit. (PTA_PCOMMIT): Deleted define. (ix86_option_override_internal): Deleted handle of option. (ix86_valid_target_attribute_inner_p): Deleted pcommit. * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted. * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted. * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT. (pcommit): Deleted instruction. * config/i386/i386.opt: Mention -mpcommit deprecation. * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h. gcc/testsuite/ * gcc.target/i386/pcommit-1.c: Deleted. * gcc.target/i386/sse-12.c: Deleted -pcommit option. * gcc.target/i386/sse-13.c: Ditto. * gcc.target/i386/sse-14.c: Ditto. * gcc.target/i386/sse-22.c: Ditto. * gcc.target/i386/sse-23.c: Ditto. * g++.dg/other/i386-2.C: Ditto. From-SVN: r240816
Andrew Senkevich committed -
* gcc.target/i386/pr77833.c: Require int128 effective target. From-SVN: r240815
Uros Bizjak committed -
PR target/77874 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>): Remove wrong assert. (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>: Use <round_constraint> as operand 1 constraint. From-SVN: r240814
Uros Bizjak committed -
2016-10-05 Steven G. Kargl <kargls@gcc.gnu.org> PR fortran/58991 PR fortran/58992 * resolve.c (resolve_assoc_var): Fix CHARACTER type-spec for a selector in ASSOCIATE. (resolve_fl_variable): Skip checks for an ASSOCIATE variable. 2016-10-05 Steven G. Kargl <kargls@gcc.gnu.org> PR fortran/58991 PR fortran/58992 * gfortran.dg/associate_22.f90: New test. From-SVN: r240812
Steven G. Kargl committed -
2016-10-05 Fritz Reese <fritzoreese@gmail.com> Fix ICE due to comparison between UNION components. gcc/fortran/ * interface.c (gfc_compare_types): Don't compare BT_UNION components until we know they're both UNIONs. * interface.c (gfc_compare_union_types): Guard against empty components. gcc/testsuite/gfortran.dg/ * dec_union_9.f90: New testcase. * dec_union_10.f90: New testcase. From-SVN: r240810
Fritz Reese committed -
From-SVN: r240809
Jason Merrill committed -
From-SVN: r240806
Marek Polacek committed -
PR sanitizer/66343 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here. (ubsan_instrument_float_cast): And not here. * c-ubsan.c (ubsan_instrument_return): Don't call initialize_sanitizer_builtins here. * gcc.dg/pch/pr66343-3.c: New test. * gcc.dg/pch/pr66343-3.hs: New file. From-SVN: r240804
Jakub Jelinek committed -
PR sanitizer/66343 * ubsan.c (ubsan_ids): New GTY(()) array. (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids instead of static local counters. * gcc.dg/pch/pr66343-1.c: New test. * gcc.dg/pch/pr66343-1.hs: New file. * gcc.dg/pch/pr66343-2.c: New test. * gcc.dg/pch/pr66343-2.hs: New file. From-SVN: r240803
Jakub Jelinek committed -
From-SVN: r240802
Jason Merrill committed -
2016-10-05 Steve Ellcey <sellcey@caviumnetworks.com> * MAINTAINERS: Update email address after it got reverted. From-SVN: r240801
Steve Ellcey committed -
c-common.c (c_common_truthvalue_conversion): Warn also for suspicious conditional expression in boolean context when... 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious conditional expression in boolean context when only one arm is non-boolean. testsuite: 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-c++-common/Wint-in-bool-context.c: Update test. From-SVN: r240799
Bernd Edlinger committed -
* cp-array-notation.c (create_an_loop): Call finish_init_stmt instead of finish_for_init_stmt. * cp-tree.h (finish_for_init_stmt): Rename to finish_init_stmt. * decl.c (poplevel): Adjust a comment. * init.c (build_vec_init): Call finish_init_stmt instead of finish_for_init_stmt. * name-lookup.c (pushdecl_maybe_friend_1): Adjust a comment. * name-lookup.h (enum scope_kind): Likewise. * parser.c (cp_parser_statement): Update commentary. (cp_parser_init_statement_p): New function. (cp_parser_selection_statement): Parse the optional init-statement. (cp_parser_for): Call finish_init_stmt instead of finish_for_init_stmt. (cp_parser_c_for): Likewise. (cp_convert_range_for): Call finish_init_stmt instead of finish_for_init_stmt. (cp_parser_range_for_member_function): Update commentary. (cp_parser_iteration_statement): (cp_parser_for_init_statement): Rename to cp_parser_init_statement. * pt.c (tsubst_omp_for_iterator): Update commentary. (tsubst_expr): Call finish_init_stmt instead of finish_for_init_stmt. * semantics.c (finish_for_init_stmt): Rename to finish_init_stmt. Update commentary. * g++.dg/cpp1z/init-statement1.C: New test. * g++.dg/cpp1z/init-statement2.C: New test. * g++.dg/cpp1z/init-statement3.C: New test. * g++.dg/cpp1z/init-statement4.C: New test. * g++.dg/cpp1z/init-statement5.C: New test. * g++.dg/cpp1z/init-statement6.C: New test. * g++.dg/cpp1z/init-statement7.C: New test. * g++.dg/cpp1z/init-statement8.C: New test. From-SVN: r240798
Marek Polacek committed -
2016-10-05 Louis Krupp <louis.krupp@zoho.com> PR fortran/67524 * gfortran.dg/pr67524.f90: New test. 2016-10-05 Louis Krupp <louis.krupp@zoho.com> PR fortran/67524 * resolve.c (resolve_symbol): Don't apply default type rules to mixed-entry master created for function entry points. From-SVN: r240797
Louis Krupp committed -
re PR sanitizer/77823 (ICE: in ubsan_encode_value, at ubsan.c:137 with -fsanitize=undefined and vector types) PR sanitizer/77823 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 is not integral. * c-c++-common/ubsan/shift-9.c: New test. From-SVN: r240796
Jakub Jelinek committed -
The test assumes ints are atleast 32 bits wide. For the avr target, ints are 16 bits wide. This leads VRP to conclude that a right shift by 9 followed by an equality comparison to 0x74 can never be true. VRP eliminates the conditional, and the code ends up unconditionally calling __builtin_abort. Fixed the testcase to use __INT32_TYPE__ for targets with less than 32 bit wide integers, wherever the size happens to be significant. gcc/testsuite/ChangeLog 2016-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.dg/torture/pr69941.c: Use __INT32_TYPE__ instead of int if __SIZEOF_INT__ is less than 4 bytes. From-SVN: r240795
Senthil Kumar Selvaraj committed -
2016-10-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/77868 * io/inquire.c (inquire_via_unit): NULL guard the check for internal unit passed into child IO procedure. * gfortran.dg/dtio_15.f90: Fix spaces in dg-do. * gfortran.dg/class_array_20.f03: Likewise. * gfortran.dg/class_array_21.f03: Likewise. * gfortran.dg/finalize_29.f08: Likewise. * gfortran.dg/unlimited_polymorphic_23.f90: Likewise. From-SVN: r240794
Jerry DeLisle committed -
gcc/ChangeLog: PR bootstrap/77819 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro. * config/linux.c (gnu_libc_printf_pointer_format): Remove. * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC] (default_printf_pointer_format): Define function. * targhooks.c (linux_printf_pointer_format): Define new function. * targhooks.h (linux_printf_pointer_format): Declare. (gnu_libc_printf_pointer_format): Remove declaration. From-SVN: r240793
Martin Sebor committed -
From-SVN: r240792
Jakub Jelinek committed -
* fold-const.c (native_encode_real): Fix logic for selecting offset to write to when BYTES_BIG_ENDIAN. From-SVN: r240791
Kyrylo Tkachov committed -
PR libstdc++/70564 * testsuite/20_util/not_fn/1.cc: Fix test. * testsuite/experimental/functional/not_fn.cc: Likewise. From-SVN: r240784
Jonathan Wakely committed -
libcpp/ChangeLog: 2016-10-04 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/77847 * lex.c (search_line_fast): Add a FALLTHROUGH comment to correct compiler error in the version of this function that is conditionally compiled when GCC_VERSION >= 4005 and both __ALTIVEC__ and __BIG_ENDIAN__ symbols are defined. From-SVN: r240783
Kelvin Nilsen committed -
gcc/ * builtins.c (fold_builtin_strchr): Remove function. (fold_builtin_strrchr): Likewise. (fold_builtin2): Remove strchr, index, strrchr, rindex cases. * gimple-fold.c (target_char_cst_p): New function. (gimple_fold_builtin_strchr) Add more foldings. (gimple_fold_builtin): Add index, strrchr, rindex cases. From-SVN: r240782
Wilco Dijkstra committed -
PR libstdc++/70101 * include/bits/stl_queue.h (priority_queue): Fix allocator-extended constructors. * testsuite/23_containers/priority_queue/allocator.cc: New test. From-SVN: r240781
Jonathan Wakely committed -
PR libstdc++/77864 * include/bits/stl_map.h (map::map()): Use nothrow constructibility of comparison function in conditional noexcept. * include/bits/stl_multimap.h (multimap::multimap()): Likewise. * include/bits/stl_multiset.h (multiset::multiset()): Likewise. * include/bits/stl_set.h (set::set()): Likewise. * testsuite/23_containers/map/cons/noexcept_default_construct.cc: New test. * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc: Likewise. * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc: Likewise. * testsuite/23_containers/set/cons/noexcept_default_construct.cc: Likewise. From-SVN: r240780
Jonathan Wakely committed -
* include/bits/node_handle.h (_Node_handle): Remove invalid and unused alias declaration. From-SVN: r240779
Jonathan Wakely committed -
PR libstdc++/70564 * include/experimental/functional (_Not_fn): Remove. (not_fn): Use std::_Not_fn. * include/std/functional (_Not_fn): Add second parameter to disambiguate copying from initialization by not_fn. Define for C++14. (not_fn): Add second argument to initialization. * testsuite/20_util/not_fn/1.cc: Copy call wrapper using direct-initialization. From-SVN: r240778
Jonathan Wakely committed
-