aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-10segher feedback to change one condition testibm/bz139777Kelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247838 138bc75d-0d04-0410-961f-82ee72b054a4
2017-05-05correct a test caseKelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247649 138bc75d-0d04-0410-961f-82ee72b054a4
2017-05-04no regressions on genoaKelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247621 138bc75d-0d04-0410-961f-82ee72b054a4
2017-05-04use special handling to resolve __builtin_cmpbKelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247617 138bc75d-0d04-0410-961f-82ee72b054a4
2017-05-03still tinkeringKelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247560 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-28prepare for public reviewKelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247393 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-26progressKelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247279 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21Use this branch to work on IBM internal bugzilla 139777.Kelvin Nilsen
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz139777@247068 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21 PR c++/80179 - ICE with initialized flexible array member.Jason Merrill
* constexpr.c (verify_ctor_sanity): Handle flexible array members. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247067 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.Uros Bizjak
Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern. (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern. (UNSPEC_NOREX_MEM): Remove definition. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247066 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21 * gcc.target/i386/pr79804.c: Add additional dg-error directive.Uros Bizjak
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247065 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21PR libstdc++/80316 make promise::set_value throw no_state errorJonathan Wakely
PR libstdc++/80316 * include/std/future (_State_baseV2::_Setter::operator()): Remove _S_check calls that are done after the pointer to the shared state is already dereferenced. (_State_baseV2::_Setter<_Res, void>): Define specialization for void as partial specialization so it can be defined within the definition of _State_baseV2. (_State_baseV2::__setter): Call _S_check. (_State_baseV2::__setter(promise<void>*)): Add overload for use by promise<void>::set_value and promise<void>::set_value_at_thread_exit. (promise<T>, promise<T&>, promise<void>): Make _State a friend. (_State_baseV2::_Setter<void, void>): Remove explicit specialization. (promise<void>::set_value, promise<void>::set_value_at_thread_exit): Use new __setter overload. * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test. * testsuite/30_threads/promise/members/set_exception.cc: Test promise<T&> and promise<void> specializations. * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. Test for no_state error condition. * testsuite/30_threads/promise/members/set_value2.cc: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247064 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21Avoid deprecated warnings about std::auto_ptr in library headersJonathan Wakely
* include/backward/auto_ptr.h: Ignore deprecated warnings from use of auto_ptr. * include/bits/shared_ptr.h: Likewise. * include/bits/shared_ptr_base.h: Likewise. * include/bits/unique_ptr.h: Likewise. * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error lineno. * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise. * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise. * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247063 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-212017-04-21 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/79547 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp, bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p without any constraints. * gcc.dg/tree-ssa/strlen-2.c: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247062 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-212017-04-21 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/78847 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR. * g++.dg/tree-ssa/pr78847.C: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247061 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21 * es.po, fr.po: Update.Joseph Myers
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247059 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21libiberty: Limit demangler maximum d_print_comp recursion call depth.Mark Wielaard
The fix for PR demangler/70909 and 67264 (endless demangler recursion) catches when a demangle_component is printed in a cycle. But that doesn't protect the call stack blowing up from non-cyclic nested types printed recursively through d_print_comp. This can happen by a (very) long mangled string that simply creates a very deep pointer or qualifier chain. Limit the recursive d_print_comp call depth for a d_print_info to 1K nested types. libiberty/ChangeLog: * cp-demangle.c (MAX_RECURSION_COUNT): New constant. (struct d_print_info): Add recursion field. (d_print_init): Initialize recursion. (d_print_comp): Check and update d_print_info recursion depth. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247056 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21libiberty: Always return NULL if d_add_substitution fails.Mark Wielaard
d_add_substitution can fail for various reasons, like when the subs array is full. If d_add_substitution fails d_substitution should return NULL early and not try to continue. Every other call of d_add_substitution is handled in the same way. libiberty/ChangeLog: * cp-demangle.c (d_substitution): Return NULL if d_add_substitution fails. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247055 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21libiberty: Don't update and remove did_subs field from demangler structs.Mark Wielaard
The d_info field did_subs was used for estimating the string output size. It was no longer used when the malloc-less callback interface was introduced in 2007 (svn r121305). But the field was still updated. When backtracking was introduced in 2013 (svn r205292) did_subs was also added to the d_info_checkpoint struct. But except for updating the field it was still not used. Since it is never used just stop updating the field and remove it from the two structs. libiberty/ChangeLog: * cp-demangle.h (struct d_info): Remove did_subs field. * cp-demangle.c (struct d_info_checkpoint): Likewise. (d_template_param): Don't update did_subs. (d_substitution): Likewise. (d_checkpoint): Don't assign did_subs. (d_backtrack): Likewise. (cplus_demangle_init_info): Don't initialize did_subs. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247054 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-212017-04-21 Richard Biener <rguenther@suse.de>Richard Biener
* tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO. (build_distinct_type_copy): Likewise. (build_variant_type_copy): Likewise. * tree.c (build_qualified_type): Pass down mem-stat info. (build_distinct_type_copy): Likewise. (build_variant_type_copy): Likewise. cp/ * cp-tree.h (copy_decl): Annotate with CXX_MEM_STAT_INFO. (copy_type): Likewise. * lex.c (copy_decl): Pass down mem-stat info. (copy_type): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247053 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21 PR c/80468Jakub Jelinek
* c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not enabled, set specs->type to integer_type_node. * gcc.dg/pr80468.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247052 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21Add test-case (PR tree-optimization/66278).Martin Liska
2017-04-21 Martin Liska <mliska@suse.cz> PR tree-optimization/66278 * gcc.dg/vect/pr66278.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247051 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-212017-04-21 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/80237 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument, defaulted to NULL. (phi_translate_1): Also allow a leader in AVAIL_OUT of pred for a simplified result. * gcc.dg/tree-ssa/tailcall-9.c: New testcase. * gcc.dg/tree-ssa/ldist-pr45948.c: Remove undefined behavior, adjust expected optimizations. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247049 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-212016-04-21 Richard Biener <rguenther@suse.de>Richard Biener
* tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require sth as strict as a simple_iv but a chrec without symbols and an operand defined in the loop we are peeling (and not some subloop). (propagate_constants_for_unrolling): Propagate all constants. * gcc.dg/vect/no-scevccp-outer-13.c: Adjust to prevent unrolling of inner loops. * gcc.dg/vect/no-scevccp-outer-7.c: Likewise. * gcc.dg/vect/vect-104.c: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247048 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21 PR tree-optimization/80426Eric Botcazou
* gcc.c-torture/execute/20170429-1.c: Rename into... * gcc.c-torture/execute/20170419-1.c: ...this. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247046 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-21Daily bump.GCC Administrator
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247045 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 PR target/79804Uros Bizjak
* config/i386/i386.c (print_reg): Remove assert for disalowed regno values, call output_operand_lossage instead. testsuite/ChangeLog: PR target/79804 * gcc.target/i386/pr79804.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247037 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 PR target/78090Uros Bizjak
* config/i386/constraints.md (Yc): New register constraint. * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed): Use Yc constraint for alternative 2 of operand 0. Remove preferred_for_speed attribute. testsuite/ChangeLog: PR target/78090 * gcc.target/i386/conversion-2.c: Remove obsolete test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247036 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 * g++/opt/pr80436.C: XFAIL on AIX.David Edelsohn
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247034 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20PR c++/80473 allow suppressing notes about over-aligned newJonathan Wakely
gcc/cp: PR c++/80473 * init.c (build_new_1): Suppress notes about over-aligned new when the warning is suppressed. gcc/testsuite: PR c++/80473 * g++.dg/diagnostic/pr80473.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247033 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20omp-low: fix lastprivate/linear lowering for SIMTAlexander Monakov
gcc/ * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and lastprivate clauses in SIMT case. libgomp/ * testsuite/libgomp.c/target-36.c: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247029 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 * c.opt (Wextra-semi): New C++ warning flag.Volker Reichelt
* doc/invoke.texi (-Wextra-semi): Document new warning option. * parser.c (cp_parser_member_declaration): Add warning with fixit information for extra semicolon after in-class function definition. * g++.dg/warn/Wextra-semi.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247028 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-202017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>Edward Smith-Rowland
PR libstdc++/68397 std::tr1::expint fails ... long double arguments. * include/tr1/exp_integral.tcc: Increase iteration limits. * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/ pr68397.cc: New test. * testsuite/special_functions/14_expint/pr68397.cc: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247027 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-202017-04-20 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/57796 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters as N scalar stores. (vect_model_load_cost): Cost gathers as N scalar loads. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247026 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-202017-04-20 Richard Biener <rguenther@suse.de>Richard Biener
* ggc-page.c (ggc_allocated_p): Rename to ... (safe_lookup_page_table_entry): ... this and return the lookup result. (gt_ggc_m_S): Use safe_lookup_page_table_entry. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247025 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-202017-04-20 Richard Biener <rguenther@suse.de>Richard Biener
PR tree-optimization/80453 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members. * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs from the conditions. (vn_phi_eq): Pass them down. (vn_phi_lookup): Record them. (vn_phi_insert): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247024 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20MIPS: Prevent buffer overrun in uninitialised variable fixMatthew Fortune
gcc/ * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix uninitialized variable warning to avoid buffer overrun. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247022 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20PR79862 check macro for type aliases that depend on <stdint.h>Jonathan Wakely
PR libstdc++/79862 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t) (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t, (atomic_uint32_t, atomic_int64_t, atomic_uint64_t) (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t) (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t) (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t) (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t) (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t) (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't define. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247021 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 * crontab: Enable snapshots from gcc-7-branch.Jakub Jelinek
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247020 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20doc: mention handling of {0} in -Wmissing-field-initializers (PR 71250)Alexander Monakov
PR other/71250 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning is suppressed for '{ 0 }' in C. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247018 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 * BASE-VER: Set to 8.0.0.Jakub Jelinek
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247017 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20[ARM] Fix type for .init_array.* and .fini_array.* sectionsThomas Preud'homme
2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default priority .init_array and .fini_array section with SECTION_NOTYPE flag. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247015 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20 PR middle-end/80423Jakub Jelinek
* tree.h (build_array_type): Add typeless_storage default argument. * tree.c (type_cache_hasher::equal): Also compare TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs. (build_array_type): Add typeless_storage argument, set TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to recursive call. (build_nonshared_array_type): Adjust build_array_type_1 caller. (build_array_type): Likewise. Add typeless_storage argument. c-family/ * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. cp/ * tree.c (build_cplus_array_type): Call build_array_type with the intended TYPE_TYPELESS_STORAGE flag value, instead of calling build_array_type and modifying later TYPE_TYPELESS_STORAGE on the shared type. testsuite/ * g++.dg/other/pr80423.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247014 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20Skip pr80170.c for non-ptr32plus targetsSenthil Kumar Selvaraj
The testcase uses 32 bit or bigger pointer offsets, and that triggers an ptrofftype_p assert in tree.c. gcc/testsuite 2017-04-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.dg/pr80170.c: Require ptr32plus. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247011 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-20Daily bump.GCC Administrator
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247010 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-19 PR tree-optimization/80426Eric Botcazou
* tree-vrp.c (extract_range_from_binary_expr_1): For an additive operation on symbolic operands, also compute the overflow for the invariant part when the operation degenerates into a negation. PR tree-optimization/80426 * gcc.c-torture/execute/20170419-1.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247007 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-192017-04-19 Thomas Koenig <tkoenig@gcc.gnu.org>Thomas Koenig
Tobias Burnus <tobias.burnus@physik.fu-berlin.de> PR bootstrap/77661 * Makefile.def: Don't pass --enable-maintainer-mode on to an in-tree build MPC. * Makefile.in: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247006 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-19Rationalise ABI links in libstdc++ manualJonathan Wakely
* doc/xml/manual/abi.xml: Rephrase one of the references to the Itanium C++ ABI. * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement. * doc/html/*: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247003 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-19 PR debug/80461Jakub Jelinek
* dwarf2out.c (modified_type_die, gen_type_die_with_usage): Check for t with zero TYPE_QUALS_NO_ADDR_SPACE. * g++.dg/debug/pr80461.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247002 138bc75d-0d04-0410-961f-82ee72b054a4
2017-04-19 PR c++/80459Jakub Jelinek
* c-c++-common/opaque-vector.c (SIZEOF_MAXINT): Define. (f): Don't test long double vectors if __SIZEOF_LONG_DOUBLE__ is not power of 2, or is more than 16 or more than SIZEOF_MAXINT. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@247001 138bc75d-0d04-0410-961f-82ee72b054a4