This project is mirrored from git://gcc.gnu.org/git/gcc.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
- 22 Feb, 2019 2 commits
-
-
GCC Administrator authored
From-SVN: r269116
-
GCC Administrator authored
From-SVN: r269084
-
- 21 Feb, 2019 1 commit
-
-
GCC Administrator authored
From-SVN: r269061
-
- 20 Feb, 2019 1 commit
-
-
GCC Administrator authored
From-SVN: r269030
-
- 19 Feb, 2019 3 commits
-
-
Uros Bizjak authored
* unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare regno instead of index to DWARF_ZERO_REG. From-SVN: r269022
-
Jakub Jelinek authored
PR middle-end/89303 * g++.dg/torture/pr89303.C: Move everything from std namespace to my namespace. From-SVN: r269011
-
GCC Administrator authored
From-SVN: r269001
-
- 18 Feb, 2019 1 commit
-
-
GCC Administrator authored
From-SVN: r268976
-
- 17 Feb, 2019 1 commit
-
-
GCC Administrator authored
From-SVN: r268966
-
- 16 Feb, 2019 2 commits
-
-
Eric Botcazou authored
* c-c++-common/patchable_function_entry-decl.c: Add -fno-pie on SPARC. * c-c++-common/patchable_function_entry-default.c: Likewise. * c-c++-common/patchable_function_entry-definition.c: Likewise. From-SVN: r268959
-
GCC Administrator authored
From-SVN: r268954
-
- 15 Feb, 2019 5 commits
-
-
Eric Botcazou authored
From-SVN: r268935
-
Eric Botcazou authored
* c-c++-common/patchable_function_entry-decl.c: Do not run on Visium. * c-c++-common/patchable_function_entry-default.c: Likewise. * c-c++-common/patchable_function_entry-definition.c: Likewise. * gcc.dg/tree-ssa/pr84859.c: Add -ftree-cselim switch. From-SVN: r268933
-
Richard Biener authored
PR tree-optimization/89278 * tree-loop-distribution.c: Include tree-eh.h. (generate_memset_builtin, generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow on builtin->size before passing it to force_gimple_operand_gsi. * gcc.dg/pr89278.c: New test. Co-Authored-By:Jakub Jelinek <jakub@redhat.com> From-SVN: r268928
-
Jakub Jelinek authored
PR other/89342 * optc-save-gen.awk: Handle optimize_fast like optimize_size or optimize_debug. * opth-gen.awk: Likewise. * gcc.dg/pr89342.c: New test. From-SVN: r268925
-
GCC Administrator authored
From-SVN: r268919
-
- 14 Feb, 2019 21 commits
-
-
David Malcolm authored
PR c++/89036 reports an ICE due to this assertion failing 1136 /* A class should never have more than one destructor. */ 1137 gcc_assert (!current_fns || via_using || !DECL_DESTRUCTOR_P (method)); on this template with a pair of dtors, with mutually exclusive "requires" clauses: template<typename T> struct Y { ~Y() requires(true) = default; ~Y() requires(false) {} }; Nathan introduced this assertion as part of: ca9219bf18c68a001d62ecb981bc9176b0feaf12 (aka r251340): 2017-08-24 Nathan Sidwell <nathan@acm.org> Conversion operators kept on single overload set which, amongst other changes to add_method had this: /* A class should never have more than one destructor. */ - if (current_fns && DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (method)) - return false; + gcc_assert (!current_fns || !DECL_DESTRUCTOR_P (method)); The following patch drops the assertion. gcc/cp/ChangeLog: 2019-02-13 David Malcolm <dmalcolm@redhat.com> Backport of r268847 from trunk. PR c++/89036 * class.c (add_method): Drop destructor assertion. gcc/testsuite/ChangeLog: 2019-02-13 David Malcolm <dmalcolm@redhat.com> Backport of r268847 from trunk. PR c++/89036 * g++.dg/concepts/pr89036.C: New test. From-SVN: r268916 -
David Malcolm authored
PR c++/88795 reports an ICE building a function_type for a deduction guide when the substitution into the function signature fails, due to an error_mark_node being returned from tsubst_arg_types but not being checked for. This error_mark_node gets used as the TYPE_ARG_TYPES, leading to ICEs in various places that assume this is a TREE_LIST. This patch checks the result of tsubst_arg_types and propagates the failure if it returns error_mark_node. It also adds an assertion to build_function_type, to fail faster if passed in error_mark_node. gcc/cp/ChangeLog: Backport of r267957 from trunk. 2019-01-15 David Malcolm <dmalcolm@redhat.com> PR c++/88795 * pt.c (build_deduction_guide): Bail out if tsubst_arg_types fails. gcc/testsuite/ChangeLog: Backport of r267957 from trunk. 2019-01-15 David Malcolm <dmalcolm@redhat.com> PR c++/88795 * g++.dg/template/pr88795.C: New test. gcc/ChangeLog: Backport of r267957 from trunk. 2019-01-15 David Malcolm <dmalcolm@redhat.com> PR c++/88795 * tree.c (build_function_type): Assert that arg_types is not error_mark_node. From-SVN: r268915
-
Jakub Jelinek authored
PR rtl-optimization/89354 * combine.c (make_extraction): Punt if extraction_mode is narrower than len bits. * gcc.dg/pr89354.c: New test. From-SVN: r268914
-
David Malcolm authored
"make selftest-valgrind" shows: 187 bytes in 1 blocks are definitely lost in loss record 567 of 669 at 0x4A081D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x1F08260: xcalloc (xmalloc.c:162) by 0xB24F32: init_emit() (emit-rtl.c:5843) by 0xC10080: prepare_function_start() (function.c:4803) by 0xC10254: init_function_start(tree_node*) (function.c:4877) by 0x1CDF92A: selftest::test_expansion_to_rtl() (function-tests.c:595) by 0x1CE007C: selftest::function_tests_c_tests() (function-tests.c:676) by 0x1E010E7: selftest::run_tests() (selftest-run-tests.c:98) by 0x1062D1E: toplev::run_self_tests() (toplev.c:2225) by 0x1062F40: toplev::main(int, char**) (toplev.c:2303) by 0x1E5B90A: main (main.c:39) The allocation in question is: crtl->emit.regno_pointer_align = XCNEWVEC (unsigned char, crtl->emit.regno_pointer_align_length); This patch fixes this leak (and makes the output of "make selftest-valgrind" clean) by calling free_after_compilation at the end of the selftest in question. gcc/ChangeLog: Backport of r263339 from trunk. 2018-08-06 David Malcolm <dmalcolm@redhat.com> * function-tests.c (selftest::test_expansion_to_rtl): Call free_after_compilation. From-SVN: r268912 -
David Malcolm authored
gcc/ChangeLog: Backport of r263295 from trunk. 2018-08-03 David Malcolm <dmalcolm@redhat.com> * doc/gcov.texi (-x): Remove duplicate "to". * doc/invoke.texi (-Wnoexcept-type): Remove duplicate "calls". (-Wif-not-aligned): Remove duplicate "is". (-flto): Remove duplicate "the". (MicroBlaze Options): In examples of "-mcpu=cpu-type", remove duplicate "v5.00.b". (MSP430 Options): Remove duplicate "and" from the description of "-mgprel-sec=regexp". (x86 Options): Remove duplicate copies of "vmldLog102" and vmlsLog104 from description of "-mveclibabi=type". From-SVN: r268911
-
David Malcolm authored
We were rather sloppy about handling the ownership of prefixes for pretty_printer, and this lead to a memory leak for any time a diagnostic_show_locus call emits multiple line spans. This showed up in "make selftest-valgrind" as: 3,976 bytes in 28 blocks are definitely lost in loss record 632 of 669 at 0x4A0645D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x1F08227: xmalloc (xmalloc.c:147) by 0x1F083E6: xvasprintf (xvasprintf.c:58) by 0x1E7EC7D: build_message_string(char const*, ...) (diagnostic.c:78) by 0x1E7F438: diagnostic_get_location_text(diagnostic_context*, expanded_location) (diagnostic.c:328) by 0x1E7FD54: default_diagnostic_start_span_fn(diagnostic_context*, expanded_location) (diagnostic.c:626) by 0x1EB3508: selftest::test_diagnostic_context::start_span_cb(diagnostic_context*, expanded_location) (selftest-diagnostic.c:57) by 0x1E89215: diagnostic_show_locus(diagnostic_context*, rich_location*, diagnostic_t) (diagnostic-show-locus.c:1992) by 0x1E8ECAD: selftest::test_fixit_insert_containing_newline_2(selftest::line_table_case const&) (diagnostic-show-locus.c:3044) by 0x1EB0606: selftest::for_each_line_table_case(void (*)(selftest::line_table_case const&)) (input.c:3525) by 0x1E8F3F5: selftest::diagnostic_show_locus_c_tests() (diagnostic-show-locus.c:3164) by 0x1E010BF: selftest::run_tests() (selftest-run-tests.c:88) 4,004 bytes in 28 blocks are definitely lost in loss record 633 of 669 at 0x4A0645D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x1F08227: xmalloc (xmalloc.c:147) by 0x1F083E6: xvasprintf (xvasprintf.c:58) by 0x1E7EC7D: build_message_string(char const*, ...) (diagnostic.c:78) by 0x1E7F438: diagnostic_get_location_text(diagnostic_context*, expanded_location) (diagnostic.c:328) by 0x1E7FD54: default_diagnostic_start_span_fn(diagnostic_context*, expanded_location) (diagnostic.c:626) by 0x1EB3508: selftest::test_diagnostic_context::start_span_cb(diagnostic_context*, expanded_location) (selftest-diagnostic.c:57) by 0x1E89215: diagnostic_show_locus(diagnostic_context*, rich_location*, diagnostic_t) (diagnostic-show-locus.c:1992) by 0x1E8B373: selftest::test_diagnostic_show_locus_fixit_lines(selftest::line_table_case const&) (diagnostic-show-locus.c:2500) by 0x1EB0606: selftest::for_each_line_table_case(void (*)(selftest::line_table_case const&)) (input.c:3525) by 0x1E8F3B9: selftest::diagnostic_show_locus_c_tests() (diagnostic-show-locus.c:3159) by 0x1E010BF: selftest::run_tests() (selftest-run-tests.c:88) This patch fixes the leaks by ensuring that the pretty_printer "owns" the prefix if it's non-NULL, freeing it in the dtor and in pp_set_prefix. gcc/cp/ChangeLog: Backport of r263275 from trunk. 2018-08-02 David Malcolm <dmalcolm@redhat.com> * error.c (cxx_print_error_function): Duplicate "file" before passing it to pp_set_prefix. (cp_print_error_function): Use pp_take_prefix when saving the existing prefix. gcc/ChangeLog: Backport of r263275 from trunk. 2018-08-02 David Malcolm <dmalcolm@redhat.com> * diagnostic-show-locus.c (diagnostic_show_locus): Use pp_take_prefix when saving the existing prefix. * diagnostic.c (diagnostic_append_note): Likewise. * langhooks.c (lhd_print_error_function): Likewise. * pretty-print.c (pp_set_prefix): Drop the "const" from "prefix" param's type. Free the existing prefix. (pp_take_prefix): New function. (pretty_printer::pretty_printer): Drop the prefix parameter. Rename the length parameter to match the comment. (pretty_printer::~pretty_printer): Free the prefix. * pretty-print.h (pretty_printer::pretty_printer): Drop the prefix parameter. (struct pretty_printer): Drop the "const" from "prefix" field's type and clarify memory management. (pp_set_prefix): Drop the "const" from the 2nd param. (pp_take_prefix): New decl. From-SVN: r268910
-
David Malcolm authored
PR c++/86329 reports that the C++ frontend can offer bogus suggestions like: #include <string> int compare() { return __n1 - __n2; } suggested.cc: In function 'int compare()': suggested.cc:5:10: error: '__n1' was not declared in this scope return __n1 - __n2; ^~~~ suggested.cc:5:10: note: suggested alternative: '._61' return __n1 - __n2; ^~~~ ._61 suggested.cc:5:17: error: '__n2' was not declared in this scope return __n1 - __n2; ^~~~ suggested.cc:5:17: note: suggested alternative: '._72' return __n1 - __n2; ^~~~ ._72 The dot-prefixed names are an implementation detail of how we implement anonymous enums found in the header files, generated via anon_aggrname_format in make_anon_name. This patch uses anon_aggrname_p to filter them out when considering which names to suggest. gcc/cp/ChangeLog: Backport of r262199 from trunk. 2018-06-27 David Malcolm <dmalcolm@redhat.com> PR c++/86329 * name-lookup.c (consider_binding_level): Filter out names that match anon_aggrname_p. gcc/testsuite/ChangeLog: Backport of r262199 from trunk. 2018-06-27 David Malcolm <dmalcolm@redhat.com> PR c++/86329 * g++.dg/lookup/pr86329.C: New test. From-SVN: r268909 -
David Malcolm authored
gcc/cp/ChangeLog: Backport of r259720 from trunk. 2018-04-27 David Malcolm <dmalcolm@redhat.com> PR c++/85515 * name-lookup.c (consider_binding_level): Skip compiler-generated variables. * search.c (lookup_field_fuzzy_info::fuzzy_lookup_field): Flatten nested if statements into a series of rejection tests. Reject lambda-ignored entities as suggestions. gcc/testsuite/ChangeLog: Backport of r259720 from trunk. 2018-04-27 David Malcolm <dmalcolm@redhat.com> PR c++/85515 * g++.dg/pr85515-1.C: New test. * g++.dg/pr85515-2.C: New test. From-SVN: r268908
-
Segher Boessenkool authored
Backport from trunk 2018-08-31 Segher Boessenkool <segher@kernel.crashing.org> PR target/86684 PR target/87149 * config/rs6000/rs6000.md (lround<mode>di2): Gate on TARGET_FPRND. From-SVN: r268890
-
Segher Boessenkool authored
backport: re PR target/88892 (Double-to-float conversion uses wrong rounding mode when followed by memcpy) Backport from trunk 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org> PR target/88892 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register operands. From-SVN: r268889
-
Segher Boessenkool authored
Backport from trunk 2018-07-26 Segher Boessenkool <segher@kernel.crashing.org> PR rtl-optimization/85805 * combine.c (reg_nonzero_bits_for_combine): Only use the last set value for hard registers if that was written in the same mode. From-SVN: r268888
-
Martin Liska authored
2019-02-14 Martin Liska <mliska@suse.cz> Backport from mainline 2019-02-14 Martin Liska <mliska@suse.cz> PR rtl-optimization/89242 * dce.c (delete_unmarked_insns): Call free_dominance_info we process a transformation. 2019-02-14 Martin Liska <mliska@suse.cz> Backport from mainline 2019-02-14 Martin Liska <mliska@suse.cz> PR rtl-optimization/89242 * g++.dg/pr89242.C: New test. From-SVN: r268876
-
Jonathan Wakely authored
* testsuite/20_util/enable_shared_from_this/89303.cc: New test. From-SVN: r268874
-
Martin Liska authored
2019-02-14 Martin Liska <mliska@suse.cz> Backport from mainline 2019-02-13 Martin Liska <mliska@suse.cz> PR lto/88858 * cfgrtl.c (remove_barriers_from_footer): New function. (try_redirect_by_replacing_jump): Use it. (cfg_layout_redirect_edge_and_branch): Likewise. From-SVN: r268872
-
Martin Liska authored
2019-02-14 Martin Liska <mliska@suse.cz> Backport from mainline 2019-02-11 Martin Liska <mliska@suse.cz> PR ipa/89009 * ipa-cp.c (build_toporder_info): Remove usage of a param. * ipa-inline.c (inline_small_functions): Likewise. * ipa-pure-const.c (propagate_pure_const): Likewise. (propagate_nothrow): Likewise. * ipa-reference.c (propagate): Likewise. * ipa-utils.c (struct searchc_env): Remove unused field. (searchc): Always search across AVAIL_INTERPOSABLE. (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as the only called IPA pure const can properly not propagate across interposable boundary. * ipa-utils.h (ipa_reduced_postorder): Remove param. 2019-02-14 Martin Liska <mliska@suse.cz> Backport from mainline 2019-02-11 Martin Liska <mliska@suse.cz> PR ipa/89009 * g++.dg/ipa/pr89009.C: New test. From-SVN: r268871
-
Jakub Jelinek authored
PR tree-optimization/89314 * fold-const.c (fold_binary_loc): Cast strlen argument to const char * before dereferencing it. Formatting fixes. * gcc.dg/pr89314.c: New test. From-SVN: r268870
-
Jakub Jelinek authored
Backported from mainline 2019-02-13 Jakub Jelinek <jakub@redhat.com> PR middle-end/89303 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var into pt->vars_contains_escaped_heap instead of setting pt->vars_contains_escaped_heap to it. 2019-02-13 Jonathan Wakely <jwakely@redhat.com> Jakub Jelinek <jakub@redhat.com> PR middle-end/89303 * g++.dg/torture/pr89303.C: New test. From-SVN: r268866
-
Jakub Jelinek authored
backport: re PR middle-end/89281 (gcc/optabs.c:3901:30: runtime error: shift exponent 32 is too large for 32-bit type 'int') Backported from mainline 2019-02-13 Jakub Jelinek <jakub@redhat.com> PR middle-end/89281 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of INTVAL (size), compare it to GET_MODE_MASK instead of 1 << GET_MODE_BITSIZE. From-SVN: r268865
-
Jakub Jelinek authored
Backported from mainline 2019-02-13 Jakub Jelinek <jakub@redhat.com> PR target/89290 * config/i386/predicates.md (x86_64_immediate_operand): Allow TLS UNSPECs offsetted by signed 32-bit CONST_INT even with -mcmodel=large. * gcc.target/i386/pr89290.c: New test. From-SVN: r268864
-
Jakub Jelinek authored
backport: re PR middle-end/89246 (LTO produces references to cloned symbols which the compiler failed to clone) Backported from mainline 2019-02-09 Jakub Jelinek <jakub@redhat.com> PR middle-end/89246 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen): If !node->definition and TYPE_ARG_TYPES is non-NULL, use TYPE_ARG_TYPES instead of DECL_ARGUMENTS. * gcc.dg/gomp/pr89246-1.c: New test. * gcc.dg/gomp/pr89246-2.c: New test. From-SVN: r268863
-
GCC Administrator authored
From-SVN: r268858
-
- 13 Feb, 2019 3 commits
-
-
Bill Schmidt authored
backport: rs6000.c (rs6000_gimple_fold_builtin): Shift-right and shift-left vector built-ins need to include a TRUNC_MOD_EXPR... [gcc] 2019-02-13 Bill Schmidt <wschmidt@linux.ibm.com> Backport from mainline 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com> * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right and shift-left vector built-ins need to include a TRUNC_MOD_EXPR for correct semantics. [gcc/testsuite] 2019-02-13 Bill Schmidt <wschmidt@linux.ibm.com> Backport from mainline 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com> * gcc.target/powerpc/vec-sld-modulo.c: New. * gcc.target/powerpc/vec-srad-modulo.c: New. * gcc.target/powerpc/vec-srd-modulo.c: New. 2018-01-12 Bill Schmidt <wschmidt@linux.ibm.com> * gcc.target/powerpc/vec-sld-modulo.c: Require p8vector_hw. * gcc.target/powerpc/vec-srad-modulo.c: Likewise. * gcc.target/powerpc/vec-srd-modulo.c: Likewise. From-SVN: r268852
-
Richard Biener authored
2019-02-13 Richard Biener <rguenther@suse.de> Backport from mainline 2019-01-08 Richard Biener <rguenther@suse.de> PR tree-optimization/86554 * tree-ssa-sccvn.c (visit_nary_op): When value-numbering to expressions with different overflow behavior make sure there's an available expression on the path. * gcc.dg/torture/pr86554-1.c: New testcase. * gcc.dg/torture/pr86554-2.c: Likewise. From-SVN: r268846
-
Martin Liska authored
2019-02-13 Martin Liska <mliska@suse.cz> PR lto/89260 * lto-streamer.h (LTO_minor_version): Bump version due to r268698. From-SVN: r268840
-