- 12 Apr, 2019 14 commits
-
-
r269586 changed the format of some warning messages. Each switch in the warning message is now surrounded by single quotes. This commit updates the regex's in arm.exp dejagnu files to match the new format and remove the extra 20+ FAILs on excess errors that are introduced on certain variations (e.g. arm-eabi-aem/-marm/-march=armv7-a/-mfpu=vfpv3-d16/-mfloat-abi=softfp). Regtested arm.exp with cross-compiler arm-none-eabi gcc/testsuite/ChangeLog: 2019-04-12 Matthew Malcomson <matthew.malcomson@arm.com> * g++.target/arm/arm.exp: Change format of default prune regex. * gcc.target/arm/arm.exp: Change format of default prune regex. From-SVN: r270316
Matthew Malcomson committed -
2019-04-12 Martin Liska <mliska@suse.cz> PR middle-end/89970 * multiple_target.c (create_dispatcher_calls): Wrap ifunc in error message. (separate_attrs): Handle multiple 'default's. (expand_target_clones): Rework error handling code. 2019-04-12 Martin Liska <mliska@suse.cz> PR middle-end/89970 * gcc.target/i386/mvc15.c: New test. * gcc.target/i386/mvc3.c: Quote target in error pattern. * gcc.target/i386/mvc4.c: Remove duplicit 'default'. From-SVN: r270314
Martin Liska committed -
re PR target/87532 (bad results from vec_extract(unsigned char, foo) dependent upon function inline) gcc/ChangeLog: 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/87532 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner mode of vector rather than mode of destination for move instruction. * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var): Use QI inner mode with V16QI vector mode. gcc/testsuite/ChangeLog: 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/87532 * gcc.target/powerpc/fold-vec-extract-char.p8.c: Adjust expected instruction counts. * gcc.target/powerpc/fold-vec-extract-int.p8.c: Likewise. * gcc.target/powerpc/fold-vec-extract-short.p8.c: Likewise. From-SVN: r270313
Kelvin Nilsen committed -
From-SVN: r270309
Jakub Jelinek committed -
PR target/52726 * config/tilepro/tilepro.c (tilepro_print_operand): Use just "invalid %%t operand" in output_operand_lossage message. From-SVN: r270308
Jakub Jelinek committed -
From-SVN: r270307
Jonathan Wakely committed -
arch13 introduced instructions to perform vector element-wise byte swaps on the way from or to memory. For a byte swap between vector registers the vector permute instruction is required which needs a permute pattern to be loaded into a vector register first. With the current implementation there is a potential problem when the decision for the reg-reg variant is made very late. This patch is supposed to fix that. With the patch the required permute pattern is generated already in the expander and attached to the bswap pattern as USE operand. The predicate in the insn_and_split pattern accepts it although the permute constant as such is not a valid constant. For the reg-reg variant only the vector register constraint is used for the permute constant forcing LRA to a) push the constant into literal pool and b) load the literal pool constant into a vector register. gcc/ChangeLog: 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com> * config/s390/predicates.md (permute_pattern_operand): New predicate. * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE operand for the permute pattern. ("*vec_perm<mode>"): New insn definition. ("bswap<mode>"): Generate the permute pattern operand in the expander and perform the operand reloads for pre arch13 level already. ("*bswap<mode>_emu"): Rename to ... ("*bswap<mode>"): ... this. And make the splitter vxe2 only. * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"): Add the USE operand for the permute pattern. ("*vec_set_bswap_vec<mode>"): Likewise. From-SVN: r270306
Andreas Krebbel committed -
PR c/89946 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p and gcc_unreachable if it fails, just call tree_to_uhwi which verifies that too. Test TREE_CHAIN instead of list_length > 1. Start warning message with a lower-case letter. Formatting fixes. c-family/ * c-attribs.c (handle_patchable_function_entry_attribute): Add function comment. Warn if arguments of the attribute are not positive integer constants. testsuite/ * c-c++-common/pr89946.c: New test. From-SVN: r270305
Jakub Jelinek committed -
PR rtl-optimization/90026 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no successors, look for BARRIERs inside of the whole BB_FOOTER chain rather than just at the start of it. If e->src BB_FOOTER is not NULL in cfglayout mode, use emit_barrier_after_bb. * g++.dg/opt/pr90026.C: New test. From-SVN: r270304
Jakub Jelinek committed -
The removal of the check programs in libphobos means that all tests will now be compiled one at a time, causing a notable slowdown in comparison with the previous method of testing. libphobos/ChangeLog: 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org> * testsuite/Makefile.am: * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu. (RUNTEST): Remove variable. (RUNTESTDEFAULTFLAGS, check_p_subno, check_p_numbers0, check_p_numbers1, check_p_numbers2, check_p_numbers3, check_p_numbers4, check_p_numbers5, check_p_numbers6, check_p_numbers, check_p_subdirs, check_DEJAGNU_libphobos_targets): New variables. (site.exp, %/site.exp, check-DEJAGNU, check-am, clean-local): New rules written so that all the *.exp files are ran parallelized. (CLEANFILES): Add *.exe, *.o, and site.exp. * testsuite/Makefile.in: Regenerate. From-SVN: r270303
Iain Buclaw committed -
Fixes multilib handling when running the libphobos testsuite. libphobos/ChangeLog: 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org> PR d/89255 * configure.ac (ENABLE_SHARED, ENABLE_STATIC): Remove conditionals. * configure: Regenerate. * d_rules.am (%.t.lo, %.t.o): Remove rules. (unittest_static_LINK, unittest_LINK, libgdruntime_t_la_LINK, libgphobos_t_la_LINK): Remove variables. * libdruntime/Makefile.am (DRUNTIME_TEST_LOBJECTS, DRUNTIME_TEST_OBJECTS, check_PROGRAMS, check_LTLIBRARIES, unittest_static_SOURCES, unittest_static_LIBTOOLFLAGS, unittest_static_LDFLAGS, unittest_static_LDADD, EXTRA_unittest_static_DEPENDENCIES, libgdruntime_t_la_SOURCES, libgdruntime_t_la_LIBTOOLFLAGS, libgdruntime_t_la_LDFLAGS, libgdruntime_t_la_LIBADD, EXTRA_libgdruntime_t_la_DEPENDENCIES, unittest_SOURCES, unittest_LIBTOOLFLAGS, unittest_LDFLAGS, unittest_LDADD): Remove variables. (clean-local): Remove rule. * libdruntime/Makefile.in: Regenerate. * src/Makefile.am (PHOBOS_TEST_LOBJECTS, PHOBOS_TEST_OBJECTS, check_PROGRAMS, check_LTLIBRARIES, unittest_static_SOURCES, unittest_static_LIBTOOLFLAGS, unittest_static_LDFLAGS, unittest_static_LDADD, EXTRA_unittest_static_DEPENDENCIES, libgdruntime_t_la_SOURCES, libgdruntime_t_la_LIBTOOLFLAGS, libgdruntime_t_la_LDFLAGS, libgdruntime_t_la_LIBADD, EXTRA_libgdruntime_t_la_DEPENDENCIES, unittest_SOURCES, unittest_LIBTOOLFLAGS, unittest_LDFLAGS, unittest_LDADD): Remove variables. (clean-local): Remove rule. * src/Makefile.in: Regenerate. * testsuite/lib/libphobos.exp (libphobos_test_name): New global. (libphobos_init): Set libphobos_test_name. (libphobos-dg-test): Override name if libphobos_test_name is set. (filter_libphobos_unittests): New proc. * testsuite/libphobos.aa/aa.exp: Don't load libphobos-dg.exp. * testsuite/libphobos.cycles/cycles.exp: Set libphobos_test_name. * testsuite/libphobos.druntime/druntime.exp: New file. * testsuite/libphobos.druntime_shared/druntime_shared.exp: New file. * testsuite/libphobos.phobos/phobos.exp: New file. * testsuite/libphobos.phobos_shared/phobos_shared.exp: New file. * testsuite/libphobos.shared/shared.exp: Use dg-runtest to run tests. * testsuite/libphobos.hash/hash.exp: Don't load libphobos-dg.exp * testsuite/libphobos.init_fini/init_fini.exp: Likewise. * testsuite/libphobos.thread/thread.exp: Likewise. * testsuite/libphobos.typeinfo/typeinfo.exp: Likewise. * testsuite/libphobos.unittests/unittests.exp: Remove. * testsuite/test_runner.d: Remove. * testsuite/testsuite_flags.in: Add phobos to --gdcpaths. From-SVN: r270302
Iain Buclaw committed -
Currently, the druntime and phobos unittests are compiled as a separate check program, then ran by the libphobos.unittest/unittest.exp script. As PR d/89255 notes, this process lacks proper multilib handling. As a first step, a new internal option that instructs the compiler to put the reference to all unittest functions in another symbol has been added. This will allow each module to be compiled separately as a standalone program using dg-runtest without running into collisions in the D runtime module registry. gcc/d/ChangeLog: 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org> * d-tree.h (DECL_IN_UNITTEST_CONDITION_P): Define. * decl.cc (DeclVisitor): Add in_version_unittest_ field. (DeclVisitor::visit(ConditionalDeclaration)): New override. (DeclVisitor::visit(FuncDeclaration)): Set DECL_IN_UNITTEST_CONDITION_P. * lang.opt (-fbuilding-libphobos-tests): Add option. * modules.cc (current_testing_module): New static variable. (build_module_tree): Generate second moduleinfo symbol to hold reference to unittests if flag_building_libphobos_tests. (register_module_decl): Check DECL_IN_UNITTEST_CONDITION_P to decide which moduleinfo the decl should be registered against. From-SVN: r270301
Iain Buclaw committed -
Adds new virtual isVersionCondition, this is so that in the code generation pass, a ConditionDeclaration's condition can be identified without requiring a Visitor function. Reviewed-on: https://github.com/dlang/dmd/pull/9591 From-SVN: r270300
Iain Buclaw committed -
From-SVN: r270299
GCC Administrator committed
-
- 11 Apr, 2019 18 commits
-
-
Backports ports committed to upstream phobos since the last sync. Reviewed-on: https://github.com/dlang/phobos/pull/6947 From-SVN: r270296
Iain Buclaw committed -
Backports extern(C) bindings committed to upstream druntime since the last sync. Reviewed-on: https://github.com/dlang/druntime/pull/2552 From-SVN: r270295
Iain Buclaw committed -
Fixes ICE when accessing empty array in CTFE. Reviewed-on: https://github.com/dlang/dmd/pull/9563 From-SVN: r270294
Iain Buclaw committed -
This also replaces calls to __TBB_ASSERT so that there are two macro definitions provided by c++config - __PSTL_ASSERT(_Condition) __PSTL_ASSERT_MSG(_Condition, _Message) * include/bits/c++config: Add definition for __PSTL_ASSERT. Add definition for __PSTL_ASSERT_MSG. * include/pstl/algorithm_impl.h: Replace use of assert(). * include/pstl/numeric_impl.h: Replace use of assert(). * include/pstl/parallel_backend_tbb.h: Replace use of assert(). Replace use of __TBB_ASSERT(). * include/pstl/parallel_backend_utils.h: Replace use of assert(). From-SVN: r270293
Thomas Rodgers committed -
2019-04-11 Thomas Koenig <tkoenig@gcc.gnu.org> PR translation/89939 * frontend-passes.c (B_ERROR): Delete macro. (C_ERROR): Delete macro. (B_ERROR_1): New macro. (C_ERROR_1): New macro. (C_ERROR_2): New macro. (inline_matmul_assign): Use new macros. (call_external_blas): Likewise. From-SVN: r270292
Thomas Koenig committed -
The epiphany-elf target aligns structs to 8 bytes, which causes the static_assert(alignof(_Chunk) == 1) to fail. Instead of requiring _Chunks to be positionable at any alignment, ensure new buffers are aligned to alignof(_Chunk). Because the buffer size is a power of two, we know that both the buffer size and sizeof(_Chunk) are multiples of alignof(_Chunk). So is p is aligned to alignof(_Chunk) then so is (p + size - sizeof(_Chunk)). So just ensure the new buffer is aligned to at least alignof(_Chunk), which should already be true because the caller requests at least alignof(max_align_t). PR libstdc++/90046 * src/c++17/memory_resource.cc (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if needed to allow placing a _Chunk at the end of the buffer. (monotonic_buffer_resource::_M_new_buffer): Remove static_assert. From-SVN: r270291
Jonathan Wakely committed -
2018-04-11 Steve Ellcey <sellcey@marvell.com> PR rtl-optimization/87763 * gcc.target/aarch64/combine_bfxil.c: Change some bfxil checks to bfi. From-SVN: r270289
Steve Ellcey committed -
2018-04-11 Steve Ellcey <sellcey@marvell.com> PR rtl-optimization/87763 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt): New Instruction. From-SVN: r270288
Steve Ellcey committed -
When suggesting to rewrite the unsafe (with respect to multiple evaluation of arguments) macro definition: ... #define max(a,b) ((a) > (b) ? (a) : (b)) ... into the safe macro definition: ... #define maxint(a,b) \ ({int _a = (a), _b = (b); _a > _b ? _a : _b; }) ... mention the variable shadowing problem for: ... #define maxint3(a, b, c) \ ({int _a = (a), _b = (b), _c = (c); maxint (maxint (_a, _b), _c); }) ... 2019-04-11 Tom de Vries <tdevries@suse.de> * doc/extend.texi (@node Statement Exprs): Note variable shadowing at max macro using statement expression. From-SVN: r270287
Tom de Vries committed -
PR translation/90035 * parser.h (struct cp_parser): Add type_definition_forbidden_message_arg member. * parser.c (cp_debug_parser): Print it. (cp_parser_check_type_definition): Pass parser->type_definition_forbidden_message_arg as second argument to error. (cp_parser_has_attribute_expression, cp_parser_sizeof_operand): Set parser->type_definition_forbidden_message_arg and use G_() with %qs for parser->type_definition_forbidden_message instead of building untranslatable message using concat. From-SVN: r270286
Jakub Jelinek committed -
* xcoffout.h (xcoff_private_rodata_section_name): Declare. * xcoffout.c (xcoff_private_rodata_section_name): Define. * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create read_only_private_data_section using xcoff_private_rodata_section_name. (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name. From-SVN: r270284
David Edelsohn committed -
2019-04-11 Christophe Lyon <christophe.lyon@linaro.org> PR target/90016 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'. From-SVN: r270280
Christophe Lyon committed -
re PR rtl-optimization/89965 (wrong code with -O -mtune=nano-x2 -fcaller-saves -fexpensive-optimizations -fno-tree-dce -fno-tree-ter) PR rtl-optimization/89965 * dce.c (sp_based_mem_offset): New function. (find_call_stack_args): Use sp_based_mem_offset. From-SVN: r270278
Jakub Jelinek committed -
* doc/invoke.texi (Optimize Options): Clarify -flive-patching docs. From-SVN: r270276
Jonathan Wakely committed -
2019-04-11 Richard Biener <rguenther@suse.de> PR tree-optimization/90020 * tree-ssa-sccvn.c (vn_reference_may_trap): New function. * tree-ssa-sccvn.h (vn_reference_may_trap): Declare. * tree-ssa-pre.c (compute_avail): Use it to not put possibly trapping references after a call that might not return into EXP_GEN. * gcse.c (compute_hash_table_work): Do not elide marking a block containing a call if the call might not return. * gcc.dg/torture/pr90020.c: New testcase. From-SVN: r270275
Richard Biener committed -
2019-04-11 Richard Biener <rguenther@suse.de> PR tree-optimization/90018 * tree-vect-data-refs.c (vect_preserves_scalar_order_p): Test both SLP and interleaving variants. * gcc.dg/vect/pr90018.c: New testcase. From-SVN: r270273
Richard Biener committed -
This patch adds the pipeline description and the CPU model number for arch13. From-SVN: r270272
Robin Dapp committed -
From-SVN: r270271
GCC Administrator committed
-
- 10 Apr, 2019 8 commits
-
-
2018-04-10 Steve Ellcey <sellcey@marvell.com> PR rtl-optimization/87763 * gcc.target/aarch64/combine_bfxil.c: Change some bfxil checks to bfi. * gcc.target/aarch64/combine_bfi_2.c: New test. From-SVN: r270267
Steve Ellcey committed -
2018-04-10 Steve Ellcey <sellcey@marvell.com> PR rtl-optimization/87763 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p): New prototype. * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p): New function. * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift): New instruction. (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto. (*aarch64_bfi<GPI:mode>4_noand): Ditto. (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto. (*aarch64_bfi<GPI:mode>4_noshift): Ditto. From-SVN: r270266
Steve Ellcey committed -
* doc/xml/faq.xml: Add information about emergency EH pool. * doc/xml/manual/debug.xml: Update list of memory debugging tools. Move outdated information on mt_allocator to a separate section. * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW doesn't affect the default allocator. From-SVN: r270264
Jonathan Wakely committed -
* doc/invoke.texi (Optimize Options): Change "Nevertheless" to "Although" in -fipa-icf documentation. From-SVN: r270260
Jonathan Wakely committed -
* testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix typo. From-SVN: r270259
Jonathan Wakely committed -
Fix a stack exhaustion bug in libiberty's demangler when decoding a pathalogically constructed mangled name. PR 89394 * cp-demangle.c (cplus_demangle_fill_name): Reject negative lengths. (d_count_templates_scopes): Replace num_templates and num_scopes parameters with a struct d_print_info pointer parameter. Adjust body of the function accordingly. Add recursion counter and check that the recursion limit is not reached. (d_print_init): Pass dpi parameter to d_count_templates_scopes. Reset recursion counter afterwards, unless the recursion limit was reached. From-SVN: r270258
Nick Clifton committed -
This copies the wording from the -O options to clearly state what happens if more than one -g option is used. * doc/invoke.texi (Debugging Options): Explicitly state the semantics of using multiple -g options. From-SVN: r270257
Jonathan Wakely committed -
2019-04-10 Martin Liska <mliska@suse.cz> PR gcov-profile/89959 * doc/gcov.texi: Make documentation of -x option more precise. From-SVN: r270251
Martin Liska committed
-