- 27 Jan, 2017 1 commit
-
-
From-SVN: r244960
GCC Administrator committed
-
- 26 Jan, 2017 34 commits
-
-
gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and HAVE_DFmode before using XFmode or DFmode. gcc/ChangeLog: * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and HAVE_DFmode before using XFmode or DFmode. (parse_directive): Avoid using the z length modifier to avoid the ISO C++98 does not support the ‘z’ gnu_printf length modifier. From-SVN: r244957
Martin Sebor committed -
PR middle-end/78703 - fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point gcc/ChangeLog: PR middle-end/78703 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change to accept adjustment as an array. (get_int_range): New function. (struct directive): Make width and prec arrays. (directive::set_width, directive::set_precision): Call get_int_range. (format_integer, format_floating): Handle width and precision ranges. (format_string, parse_directive): Same. gcc/testsuite/ChangeLog: PR middle-end/78703 * gcc.dg/tree-ssa/builtin-snprintf-warn-1.c: Update * gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: Rename... * gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: ...to this. * gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: New test. From-SVN: r244956
Martin Sebor committed -
PR debug/79129 * dwarf2out.c (generate_skeleton_bottom_up): For children with comdat_type_p set, just clone them, but keep the children in the original DIE. * g++.dg/debug/dwarf2/pr79129.C: New test. From-SVN: r244955
Jakub Jelinek committed -
PR debug/78835 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs which have direct callers with -fvar-tracking-assignments enabled in the current TU. (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin inside of type units. * g++.dg/debug/dwarf2/pr78835.C: New test. From-SVN: r244954
Jakub Jelinek committed -
PR middle-end/78703 -fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point gcc/ChangeLog: PR middle-end/78703 * gimple-ssa-sprintf.c (struct result_range): Add likely and unlikely counters. (struct format_result): Replace number_chars, number_chars_min, and number_chars_max with a single member of struct result_range. Remove bounded. (format_result::operator+=): Adjust. (struct fmtresult): Remove bounded. Handle likely and unlikely counters. (fmtresult::adjust_for_width_or_precision): New function. (fmtresult:type_max_digits): New function. (bytes_remaining): Handle likely and unlikely counters. (min_bytes_remaining): Remove. (format_percent): Simplify. (format_integer, format_floating): Set likely and unlikely counters. (get_string_length, format_character, format_string): Same. (format_plain, should_warn_p): New function. (maybe_warn): Call should_warn_p. Update diagnostic messages and handle those for all directives, including plain strings. (format_directive): Handle likely and unlikely counters. Remove unnecessary quoting from diagnostics. Add an informational note. (add_bytes): Remove. (pass_sprintf_length::compute_format_length): Simplify. (try_substitute_return_value): Handle likely and unlikely counters. gcc/testsuite/ChangeLog: PR middle-end/78703 * gcc.dg/format/pr78569.c: Adjust. * gcc.dg/tree-ssa/builtin-snprintf-warn-2.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-2.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-5.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-4.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-6.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-7.c: Same. * gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: Same. * gcc.dg/tree-ssa/builtin-sprintf.c: Same. From-SVN: r244953
Martin Sebor committed -
PR libstdc++/70607 * include/tr1/complex (conj): Remove using-declaration and restore overloads, reverting previous change. From-SVN: r244951
Jonathan Wakely committed -
* testsuite/23_containers/list/operations/78389.cc: Fix for C++11 mode. * testsuite/23_containers/priority_queue/requirements/constructible.cc: Mark as unsupported in C++98 mode. * testsuite/23_containers/queue/requirements/constructible.cc: Likewise. * testsuite/23_containers/stack/requirements/constructible.cc: Likewise. * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode. From-SVN: r244950
Jonathan Wakely committed -
PR c++/68727 * cp-tree.def (OFFSETOF_EXPR): Bump number of operands to 2. * cp-tree.h (finish_offsetof): Add OBJECT_PTR argument. * parser.c (cp_parser_builtin_offsetof): Pass result of build_static_cast of null_pointer_node to finish_offsetof. * semantics.c (finish_offsetof): Add OBJECT_PTR argument, use it for -Winvalid-offsetof pedwarn instead of trying to guess original offsetof type from EXPR. Save OBJECT_PTR as a new second operand to OFFSETOF_EXPR. * pt.c (tsubst_copy_and_build) <case OFFSETOF_EXPR>: Adjust finish_offsetof caller, pass the second operand of OFFSETOF_EXPR as OBJECT_PTR. * g++.dg/other/offsetof8.C: Add expected error. * g++.dg/other/offsetof9.C: New test. From-SVN: r244949
Jakub Jelinek committed -
(check_effective_target_hsa_offloading_selected_nocache): Fix up check_compile invocation. Fix up removal of executable. Drop bogus "2>&1" argument. From-SVN: r244948
Jakub Jelinek committed -
When I updated to Go 1.8, the initsig function moved from signal1_unix.go to signal_unix.go, and lost a gccgo-specific change in the move. Add it back. This would have been caught by the misc/cgo/testcarchive tests in the gc repository, but we don't run those in the gccgo repository. We should fix that, somehow. Reviewed-on: https://go-review.googlesource.com/35839 From-SVN: r244947
Ian Lance Taylor committed -
I typoed the argument passed to getcontext in getTraceback, and the error was hidden by ucontext_arg. This would have been caught by some of the runtime package tests, but we don't run most of them because they rely on `go build`, and the go tool is not available while running the libgo testsuite. We should fix the libgo testsuite, somehow, so that they run. Reviewed-on: https://go-review.googlesource.com/35837 From-SVN: r244946
Ian Lance Taylor committed -
PR libstdc++/79243 * include/bits/c++config (literals::string_view_literals::__7): Add. Only declare versioned namespaces for the relevant C++ dialects. * include/experimental/bits/erase_if.h (fundamentals_v2::__detail): Add versioning macros. * include/experimental/bits/lfts_config.h: (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add. * include/experimental/string_view (fundamentals_v2::__detail): Add versioning macros. (fundamentals_v2::__detail::__identity): Remove. (fundamentals_v2::__detail::__idt): Use common_type instead of __detail::__identity. * include/std/string_view (__detail::__identity, __detail::__idt): Likewise. (literals::string_view_literals): Fix nesting of versioning macros. From-SVN: r244945
Jonathan Wakely committed -
From-SVN: r244944
David Edelsohn committed -
rs6000-c (altivec_overloaded_builtins): Remove bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins gcc/ChangeLog: 2017-01-26 Carl Love <cel@us.ibm.com> * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins From-SVN: r244943
Carl Love committed -
2017-01-26 Vladimir Makarov <vmakarov@redhat.com> PR target/79131 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take endianess for subregs into account. * lra-constraints.c (lra_constraints): Do risky transformations always on the first iteration. * lra-lives.c (check_pseudos_live_through_calls): Add arg last_call_used_reg_set. (process_bb_lives): Define and use last_call_used_reg_set. * lra.c (lra): Always continue after lra_constraints on the first iteration. 2017-01-26 Vladimir Makarov <vmakarov@redhat.com> PR target/79131 * gcc.target/arm/pr79131.c: New. From-SVN: r244942
Vladimir Makarov committed -
gcc/testsuite/ * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long constant. * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto. From-SVN: r244941
Kirill Yukhin committed -
From-SVN: r244940
Uros Bizjak committed -
* ChangeLog: Move my last entry ... * config/ChangeLog: ... here. From-SVN: r244938
Uros Bizjak committed -
From-SVN: r244936
Jason Merrill committed -
* decl2.c (vague_linkage_p): Handle decloned 'tors. * tree.c (decl_linkage): Likewise. From-SVN: r244935
Jason Merrill committed -
gcc/testsuite * gcc.target/aarch64/ldp_vec_64_1.c: Xfail. From-SVN: r244934
Bin Cheng committed -
libstdc++-v3: PR libstdc++/79190 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t)) [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]: Retrieve original pointer value allocated by malloc. * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)): Define, adjusting pointer value allocated by malloc and storing for retrieval by operator delete. gcc/testsuite: PR libstdc++/79190 * g++.dg/cpp1z/aligned-new3.C: Replace operator new so behaviour matches replaced operator delete. From-SVN: r244933
Jonathan Wakely committed -
* config/i386/avx512fintrin.h (_ktest_mask16_u8, _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ... * config/i386/avx512dqintrin.h (_ktest_mask16_u8, _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here. * config/i386/i386-builtin.def (__builtin_ia32_ktestchi, __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F. * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator. (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ. testsuite/ * gcc.target/i386/avx512f-kaddw-1.c: Renamed to ... * gcc.target/i386/avx512dq-kaddw-1.c: ... this. New test. Replace avx512f with avx512dq. * gcc.target/i386/avx512f-ktestw-1.c: Renamed to ... * gcc.target/i386/avx512dq-ktestw-1.c: ... this. New test. Replace avx512f with avx512dq. * gcc.target/i386/avx512f-ktestw-2.c: Renamed to ... * gcc.target/i386/avx512dq-ktestw-2.c: ... this. New test. Replace avx512f with avx512dq. From-SVN: r244929
Jakub Jelinek committed -
PR c/79199 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL for the third operand. * c-c++-common/Wduplicated-branches-13.c: New test. From-SVN: r244928
Marek Polacek committed -
* testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules directive. From-SVN: r244927
Jakub Jelinek committed -
re PR middle-end/79236 (Many libgomp tests fail if configured with --enable-offload-targets=nvptx-none but NVidia HW or libcuda.so.1 unavailable) PR middle-end/79236 * omp-low.c (struct omp_context): Add simt_stmt field. (scan_omp_for): Return omp_context *. (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD context to the _simt_ SIMD stmt. (lower_omp_for): For combined SIMD with sibling _simt_ SIMD, make sure to use the same decls in _looptemp_ clauses as in the sibling. From-SVN: r244924
Jakub Jelinek committed -
re PR middle-end/79212 (internal compiler error: in maybe_lookup_decl_in_outer_ctx, at omp-low.c:4134) 2017-01-26 David Sherwood <david.sherwood@arm.com> gcc/ PR middle-end/79212 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in all contexts. gcc/testsuite/ PR middle-end/79212 * gfortran.dg/gomp/sharing-4.f90: New test. From-SVN: r244922
David Sherwood committed -
PR target/70465 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1); emit fld b; fld a; if possible. * gcc.target/i386/pr70465.c: New test. From-SVN: r244921
Jakub Jelinek committed -
contrib/ * update-copyright.py: Add libhsail-rt to self.default_dirs and call self.add_dir on it. Add Intel Corporation to external authors. gcc/ * brig-builtins.def: Update copyright years. * config/arm/arm_acle_builtins.def: Update copyright years. gcc/brig/ Update copyright years. gcc/testsuite/ * brig.dg/dg.exp: Update copyright years. * lib/brig-dg.exp: Update copyright years. * lib/brig.exp: Update copyright years. libhsail-rt/ Update copyright years. libstdc++-v3/ * libsupc++/eh_atomics.h: Update copyright years. * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years. From-SVN: r244920
Jakub Jelinek committed -
contrib/ * update-copyright.py: Add libhsail-rt to self.default_dirs and call self.add_dir on it. Add Intel Corporation to external authors. gcc/ * brig-builtins.def: Update copyright years. * config/arm/arm_acle_builtins.def: Update copyright years. gcc/brig/ Update copyright years. gcc/testsuite/ * brig.dg/dg.exp: Update copyright years. * lib/brig-dg.exp: Update copyright years. * lib/brig.exp: Update copyright years. libhsail-rt/ Update copyright years. libstdc++-v3/ * libsupc++/eh_atomics.h: Update copyright years. * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years. From-SVN: r244919
Jakub Jelinek committed -
[gcc] 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/79179 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY constraint instead of o for the stxsd instruction. [gcc/testsuite] 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/79179 * gcc.target/powerpc/pr79179.c: New test. From-SVN: r244917
Michael Meissner committed -
2017-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.target/powerpc/vsx-elemrev-4.c: Change expected code generation to accept D-mode memory accesses. From-SVN: r244916
Bill Schmidt committed -
From-SVN: r244915
GCC Administrator committed -
gcc/cp/ChangeLog: * decl.c (grokdeclarator): Fix a typo in a comment. This line, and those below, will be ignored-- M ChangeLog M decl.c From-SVN: r244912
Martin Sebor committed
-
- 25 Jan, 2017 5 commits
-
-
From-SVN: r244911
Martin Sebor committed -
gcc/cp/ChangeLog: PR c++/71290 * decl.c (grokdeclarator): Warn on flexible array members. gcc/testsuite/ChangeLog: PR c++/71290 * g++.dg/ext/flexarray-mangle-2.C: Adjust. * g++.dg/ext/flexarray-mangle.C: Same. * g++.dg/ext/flexarray-subst.C: Same. * g++.dg/ext/flexary10.C: Same. * g++.dg/ext/flexary11.C: Same. * g++.dg/ext/flexary14.C: Same. * g++.dg/ext/flexary16.C: Same. * g++.dg/ext/flexary18.C: Same. * g++.dg/ext/flexary19.C: Same. * g++.dg/ext/flexary7.C: Same. * gcc/testsuite/g++.dg/cpp1z/has-unique-obj-representations1.C: Same. * gcc/testsuite/g++.dg/ubsan/object-size-1.C: Same. * gcc/testsuite/obj-c++.dg/property/at-property-23.mm: Same. From-SVN: r244910
Martin Sebor committed -
re PR c++/78896 ([C++17] Segmentation fault occurs when use variable initialized using structured binding with capture-by-ref lambda) PR c++/78896 * decl.c (cp_finish_decomp): Disallow memberwise decomposition of lambda expressions. * g++.dg/cpp1z/decomp24.C: New test. From-SVN: r244909
Jakub Jelinek committed -
PR c++/77914 * parser.c (cp_parser_lambda_declarator_opt): Pedwarn with OPT_Wpedantic on lambda templates for -std=c++14 and higher. * g++.dg/cpp1y/lambda-generic-77914.C: New test. * g++.dg/cpp1y/lambda-generic-dep.C: Add -pedantic to dg-options, expect a warning. * g++.dg/cpp1y/lambda-generic-x.C: Add -Wpedantic to dg-options, expect warnings. * g++.dg/cpp1y/lambda-generic-mixed.C: Add empty dg-options. * g++.dg/cpp1y/pr59636.C: Likewise. * g++.dg/cpp1y/pr60190.C: Likewise. From-SVN: r244907
Jakub Jelinek committed -
gcc/testsuite * gcc.dg/vect/vect-24.c: Remove xfail on ARM targets. From-SVN: r244905
Bin Cheng committed
-