aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-02-11PR libstdc++/89023 fix test that fails when <omp.h> not availableJonathan Wakely4-3/+64
Instead of a single test that only checks whether <regex> can be included in Parallel Mode, add tests for each of C++11/C++14/C++17 that check whether <bits/extc++.h> is compatible with _GLIBCXX_PARALLEL. This increases the coverage to (almost) all headers. If <omp.h> is not available then the tests will trivially pass, because we don't care about compatibility with _GLIBCXX_PARALLEL in that case. PR libstdc++/89023 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test. * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test. * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test. * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove. From-SVN: r268769
2019-02-11Restore .init_array etc. detection on 64-bit SolarisRainer Orth3-15/+21
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with Solaris ld. * configure: Regenerate. From-SVN: r268768
2019-02-11Add AMD GCN maintainersAndrew Stubbs2-2/+7
2019-02-11 Andrew Stubbs <ams@codesourcery.com> * MAINTAINERS (amdgcn port): Add myself and Julian Brown. (Write After Approval): Remove myself and Julian. From-SVN: r268767
2019-02-11re PR bootstrap/88714 (bootstrap comparison failure on armv7l since r265398)Jakub Jelinek2-4/+10
PR bootstrap/88714 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint instead of r. From-SVN: r268766
2019-02-11function.c (assign_parm_setup_block): Use the stored size...Hans-Peter Nilsson2-1/+8
* function.c (assign_parm_setup_block): Use the stored size, not the passed size, when allocating stack-space, also for a parameter with alignment larger than MAX_SUPPORTED_STACK_ALIGNMENT. From-SVN: r268763
2019-02-11Construct ipa_reduced_postorder always for overwritable (PR ipa/89009).Martin Liska9-12/+41
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-11 Martin Liska <mliska@suse.cz> PR ipa/89009 * g++.dg/ipa/pr89009.C: New test. From-SVN: r268762
2019-02-11[NDS32] Add memory mode in call pattern.Chung-Ju Wu2-4/+9
gcc/ * config/nds32/nds32.md (call_internal, call_value_internal, sibcall_internal, sibcall_value_internal): Use SImode for mem rtx. From-SVN: r268761
2019-02-11cris.c (cris_preferred_minimum_alignment): Fix name typo.Hans-Peter Nilsson2-3/+8
* config/cris/cris.c (cris_preferred_minimum_alignment): Fix name typo. From-SVN: r268760
2019-02-10i386: Fix a typo in comments for for "Yd"H.J. Lu2-1/+6
config/i386/constraints.md has (define_register_constraint "Yd" "TARGET_AVX512DQ ? ALL_SSE_REGS : TARGET_SSE4_1 ? SSE_REGS : NO_REGS" "@internal Any EVEX encodable SSE register (@code{%xmm0-%xmm31}) for AVX512DQ target or any SSE register for SSE4_1 target.") Comments for "Yd" should mention AVX512DQ, not AVX512BW. * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ in comments From-SVN: r268759
2019-02-11Daily bump.GCC Administrator1-1/+1
From-SVN: r268758
2019-02-10libphobos: Merge upstream druntime 2f764ab6Iain Buclaw12-59/+598
Fixes hashing of complex reals, enabling testing of rt.util.typeinfo and core.internal.hash. Reviewed-on: https://github.com/dlang/druntime/pull/6837 libphobos/ChangeLog: * Makefile.in: Rebuild. * configure: Rebuild. * libdruntime/Makefile.am: Test rt.util.typeinfo and core.internal.convert. * libdruntime/Makefile.in: Rebuild. * src/Makefile.in: Rebuild. * testsuite/Makefile.in: Rebuild. * testsuite/libphobos.hash/test_hash.d: Update test. From-SVN: r268755
2019-02-10libphobos: Apply core.internal.hash updates from druntimeIain Buclaw50-1368/+2630
Backported from upstream druntime 2.084 Reviewed-on: https://github.com/dlang/druntime/pull/2469 libphobos/ChangeLog: * libdruntime/Makefile.am (DRUNTIME_DSOURCES): Remove rt/util/hash.d * libdruntime/Makefile.in: Rebuild. * testsuite/libphobos.aa/aa.exp: New file. * testsuite/libphobos.aa/test_aa.d: New test. * testsuite/libphobos.hash/hash.exp: New file. * testsuite/libphobos.hash/test_hash.d: New test. From-SVN: r268754
2019-02-10re PR fortran/71723 ([F08] ICE on invalid pointer initialization)Thomas Koenig2-2/+2
2019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/71723 * expr.c (gfc_check_assign): Add argument is_init_expr. If we are looking at an init expression, issue error if the target is not a TARGET and we are not looking at a procedure pointer. * gfortran.h (gfc_check_assign): Add optional argument is_init_expr. 2019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/71723 * gfortran.dg/pointer_init_2.f90: Adjust error messages. * gfortran.dg/pointer_init_6.f90: Likewise. * gfortran.dg/pointer_init_9.f90: New test. From-SVN: r268749
2019-02-10re PR fortran/71723 ([F08] ICE on invalid pointer initialization)Thomas Koenig7-11/+65
2019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/71237 * expr.c (gfc_check_assign): Add argument is_init_expr. If we are looking at an init expression, issue error if the target is not a TARGET and we are not looking at a procedure pointer. * gfortran.h (gfc_check_assign): Add optional argument is_init_expr. 2019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/71237 * gfortran.dg/pointer_init_2.f90: Adjust error messages. * gfortran.dg/pointer_init_6.f90: Likewise. * gfortran.dg/pointer_init_9.f90: New test. From-SVN: r268748
2019-02-10re PR fortran/67679 (-Wunitialized reports on compiler-generated variables)Thomas Koenig2-0/+33
2019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/67679 * gfortran.dg/warn_undefined_1.f90: New test. From-SVN: r268747
2019-02-10libphobos: Merge phobos upstream 6c9fb28b0Iain Buclaw2-6/+29
Fixes a thread deadlock that occurs in the test runner if libcurl is missing. Library fix for https://gcc.gnu.org/PR88654 Reviewed-on: https://github.com/dlang/phobos/pull/6824 From-SVN: r268746
2019-02-10[NDS32] Set default --with-nds32-lib correctly.Chung-Ju Wu2-7/+17
gcc/ * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly. From-SVN: r268744
2019-02-10re PR tree-optimization/89268 (r268689 caused FAIL: gcc.dg/vect/pr79887.c)Jakub Jelinek4-1/+20
PR tree-optimization/89268 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only if preds is non-NULL. * gcc.dg/vect/pr89268.c: New test. From-SVN: r268743
2019-02-10re PR lto/89272 (r268728 caused FAIL: g++.dg/lto/pr65316 cp_lto_pr65316_0.o ↵Jan Hubicka2-1/+10
assemble) PR lto/89272 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for polymorphic types. From-SVN: r268742
2019-02-10[NDS32] Add 'trap' pattern for __builtin_trap ().Monk Chiang2-0/+12
gcc/ * config/nds32/nds32.md (trap): New pattern. From-SVN: r268741
2019-02-10d/dmd: Merge upstream dmd 39edbe17eIain Buclaw5-2/+49
Backported fix from upstream dmd 2.079 for an internal compiler error that occurred during semantic analysis on a recursive field initializer. Fixes https://gcc.gnu.org/PR88989 Reviewed-on: https://github.com/dlang/dmd/pull/9284 From-SVN: r268740
2019-02-10[NDS32] Refine register dwarf span.Monk Chiang2-4/+7
gcc/ * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register dwarf span. From-SVN: r268739
2019-02-10[NDS32] Have nds32_spilt_doubleword to split POST_INC.Chung-Ju Wu2-18/+37
gcc/ * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support to split POST_INC. From-SVN: r268738
2019-02-10Don't XPASS gnat.dg/lto19.adbRainer Orth2-1/+4
* gnat.dg/lto19.adb: Remove dg-excess-errors. From-SVN: r268737
2019-02-10[libbacktrace] Add btest_ltoTom de Vries4-27/+83
Add libbacktrace test-case using -flto. 2019-02-10 Tom de Vries <tdevries@suse.de> * Makefile.am (BUILDTESTS): Add btest_lto. * Makefile.in: Regenerate. * btest.c (test1, f2, f3, test3, f22, f23): Declare with __attribute__((noclone)). From-SVN: r268736
2019-02-10Daily bump.GCC Administrator1-1/+1
From-SVN: r268735
2019-02-09ipa-visibility.c (localize_node): Also do not localize ↵Jan Hubicka2-1/+7
LDPR_PREVAILING_DEF_IRONLY_EXP. * ipa-visibility.c (localize_node): Also do not localize LDPR_PREVAILING_DEF_IRONLY_EXP. From-SVN: r268732
2019-02-09Fix PR number.Jan Hubicka1-1/+1
From-SVN: r268729
2019-02-09re PR lto/87089 (tree check: expected class 'type', have 'declaration' ↵Jan Hubicka2-1/+8
(namespace_decl) in type_with_linkage_p, at ipa-utils.h) PR lto/87809 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P instead of type_with_linkage. From-SVN: r268728
2019-02-09re PR ipa/88755 (ICE in compute_fn_summary, at ipa-fnsummary.c:2513 since ↵Jan Hubicka2-4/+11
r267601) PR ipa/88755 * params.def (uninlined-function-insns, uninlined-function-time, uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper bound so we don't get overflows. From-SVN: r268727
2019-02-09re PR fortran/89077 (ICE using * as len specifier for character parameter)Harald Anlauf4-5/+51
2019-02-09 Harald Anlauf <anlauf@gmx.de> PR fortran/89077 * resolve.c (gfc_resolve_substring_charlen): Check substring length for constantness prior to general calculation of length. PR fortran/89077 * gfortran.dg/substr_simplify.f90: New test. From-SVN: r268726
2019-02-09rs6000-string.c (expand_compare_loop, [...]): Insert REG_BR_PROB notes in ↵Aaron Sawdey2-1/+9
inline expansion of memcmp/strncmp. 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com> * config/rs6000/rs6000-string.c (expand_compare_loop, expand_block_compare): Insert REG_BR_PROB notes in inline expansion of memcmp/strncmp. From-SVN: r268724
2019-02-09re PR ipa/88711 (scan-ipa-dump inline "Inlined tp_sum/)Jan Hubicka2-2/+7
PR ipa/88711 * gfortran.dg/pr79966.f90: Xfail everwyhere. From-SVN: r268723
2019-02-09re PR fortran/89200 (Erroneous copying of a derived type with a ↵Paul Thomas4-0/+40
deferred-length character array component) 2019-02-09 Paul Thomas <pault@gcc.gnu.org> PR fortran/89200 * trans-array.c (gfc_trans_create_temp_array): Set the 'span' field for derived types. 2019-02-09 Paul Thomas <pault@gcc.gnu.org> PR fortran/89200 * gfortran.dg/array_reference_2.f90 : New test. From-SVN: r268721
2019-02-09re PR middle-end/89246 (LTO produces references to cloned symbols which the ↵Jakub Jelinek5-21/+72
compiler failed to clone) 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: r268718
2019-02-09Add noexcept to filesystem::path query functionsJonathan Wakely3-21/+35
In the standard these member functions are specified in terms of the potentially-throwing path decompositions functions, but we implement them without constructing any new paths or doing anything else that can throw. PR libstdc++/71044 * include/bits/fs_path.h (path::has_root_name) (path::has_root_directory, path::has_root_path) (path::has_relative_path, path::has_parent_path) (path::has_filename, path::has_stem, path::has_extension) (path::is_absolute, path::is_relative, path::_M_find_extension): Add noexcept. * src/c++17/fs_path.cc (path::has_root_name) (path::has_root_directory, path::has_root_path) (path::has_relative_path, path::has_parent_path) (path::has_filename, path::_M_find_extension): Add noexcept. From-SVN: r268713
2019-02-09Daily bump.GCC Administrator1-1/+1
From-SVN: r268712
2019-02-09[RS6000] Correct save_reg_pAlan Modra2-8/+24
Fixes lack of r30 save/restore on // -m32 -fpic -ftls-model=initial-exec __thread char* p; char** f1 (void) { return &p; } and // -m32 -fpic -msecure-plt extern int foo (int); int f1 (int x) { return foo (x); } These are both caused by save_reg_p returning false when the pic offset table reg (r30 for ABI_V4) was used, due to the logic not exactly matching that in rs6000_emit_prologue to set up r30. I also noticed that save_reg_p isn't following the comment regarding calls_eh_return (since svn 267049, git 0edf78b1b2a0), and the comment needs tweaking too. For why the revised comment is correct, grep for saves_all_registers in lra.c, and yes, we do want to save the pic offset table reg for eh_return. PR target/88343 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return case. Match logic in rs6000_emit_prologue emitting pic_offset_table setup. From-SVN: r268708
2019-02-08re PR tree-optimization/88739 (Big-endian union bug)Jakub Jelinek2-0/+64
PR tree-optimization/88739 * gcc.c-torture/execute/pr88739.c: New test. From-SVN: r268706
2019-02-08re PR middle-end/88560 (armv8_2-fp16-move-1.c and related regressions after ↵Vladimir Makarov2-20/+29
r266385) 2019-02-08 Vladimir Makarov <vmakarov@redhat.com> PR middle-end/88560 * lra-constraints.c (process_alt_operands): Don't increase reject for memory when offset memory is required. From-SVN: r268705
2019-02-08re PR testsuite/89258 (verify_gimple failed in gimple test pr80887 for ↵Jozef Lawrynowicz2-0/+6
16-bit target) 2019-02-08 Jozef Lawrynowicz <jozef.l@mittosystems.com> PR testsuite/89258 * gcc.dg/tree-ssa/pr80887.c: Require int32plus. From-SVN: r268704
2019-02-08S/390: Implement vector copysign.Robin Dapp5-0/+146
This patch implements the vector copysign operation using vector select and a signbit mask. gcc/ChangeLog: 2019-02-08 Robin Dapp <rdapp@linux.ibm.com> * config/s390/vector.md: Implement vector copysign. gcc/testsuite/ChangeLog: 2019-02-08 Robin Dapp <rdapp@linux.ibm.com> * gcc.target/s390/vector/vec-copysign-execute.c: New test. * gcc.target/s390/vector/vec-copysign.c: New test. From-SVN: r268697
2019-02-08expr.c: Correct indentations in expand_constructorH.J. Lu2-6/+10
* expr.c (expand_constructor): Correct indentations. From-SVN: r268696
2019-02-08re PR tree-optimization/89247 (ICE in expand_LOOP_VECTORIZED, at ↵Richard Biener5-6/+61
internal-fn.c:2409) 2019-02-08 Richard Biener <rguenther@suse.de> PR tree-optimization/89247 * tree-if-conv.c: Include tree-cfgcleanup.h. (version_loop_for_if_conversion): Record LOOP_VECTORIZED call. (tree_if_conversion): Pass through predicate vector. (pass_if_conversion::execute): Do CFG cleanup and SSA update inline, see if any if-converted loops we refrece in LOOP_VECTORIZED calls vanished and fixup. * tree-if-conv.h (tree_if_conversion): Adjust prototype. * gcc.dg/torture/pr89247.c: New testcase. From-SVN: r268689
2019-02-08S/390: Introduce jdd constraintIlya Leoshkevich4-0/+44
Implementation of section anchors in S/390 back-end added in r266741 broke jump labels in S/390 Linux kernel [1]. Currently jump labels pass global variable addresses to .quad directive in inline assembly using "X" constraint. In the past this used to produce regular symbol references, however, after r266741 we sometimes get values like (plus (reg) (const_int)), where (reg) points to a section anchor. Strictly speaking, this is still correct, since "X" accepts anything. Thus, now we need another way to support jump labels. The existing "i" constraint cannot be used, since with -fPIC it must not accept non-local symbols, however, jump labels do require that, e.g. __tracepoint_xdp_exception from kernel proper might be referenced from kernel modules. The existing "ZL" constraint cannot be used for the same reason. The existing "b" constraint cannot be used because of the way expand_asm_stmt works. It deduces whether the constraint allows regs, subregs or mems, and processes asm operands differently based on that. "b" is supposed to accept values like (mem (symbol_ref)), and there appears to be no way to explain to expand_asm_stmt that for "b" mem's address must not be in a register. This patch introduces the new machine-specific constraint named "jdd" - "j" prefix is already used for constants, and "d" stands for "data". It accepts anything that fits into the data section, whether or not this might require a relocation, that is, anything that passes CONSTANT_P check. [1] https://lkml.org/lkml/2019/1/23/346 gcc/ChangeLog: 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com> * config/s390/constraints.md (jdd): New constraint. gcc/testsuite/ChangeLog: 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com> * gcc.target/s390/jump-label.c: New test. From-SVN: r268688
2019-02-08re PR testsuite/89250 (gcc.dg/vect/vect-24.c XPASSes)Richard Biener2-1/+8
2019-02-08 Richard Biener <rguenther@suse.de> PR testsuite/89250 * gcc.dg/vect/vect-24.c: Remove XFAIL on vect_condition targets. From-SVN: r268680
2019-02-08trans.c (gnat_to_gnu): Minor tweak.Eric Botcazou3-21/+42
* gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak. * gcc-interface/utils.c (convert): Do not pad when doing an unchecked conversion here. Use TREE_CONSTANT throughout the function. (unchecked_convert): Also pad if the source is a CONSTRUCTOR and the destination is a more aligned array type or a larger aggregate type, but not between original and packable versions of a type. From-SVN: r268679
2019-02-08i386: Use OI/TImode in *mov[ot]i_internal_avx with AVX512VLH.J. Lu2-4/+13
OImode and TImode moves must be done in XImode to access upper 16 vector registers without AVX512VL. With AVX512VL, we can access upper 16 vector registers in OImode and TImode. PR target/89229 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for upper 16 vector registers without TARGET_AVX512VL. (*movti_internal): Likewise. From-SVN: r268678
2019-02-08utils.c (max_size): Be prepared for an operand with VOID_TYPE.Eric Botcazou2-4/+16
* gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an operand with VOID_TYPE. From-SVN: r268675
2019-02-08trans.c (elaborate_all_entities): Do not elaborate the entities of a package ↵Eric Botcazou2-1/+7
renaming another one. * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the entities of a package renaming another one. From-SVN: r268674