- 26 Jul, 2017 9 commits
-
-
gcc/testsuite/ PR target/79041 * gcc.target/aarch64/pr79041-2.c: Don't run in ILP32. From-SVN: r250567
Wilco Dijkstra committed -
re PR middle-end/70992 (Infinite recursion between fold_build2_stat_loc and fold_binary_loc w/ -fwrapv) PR middle-end/70992 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero. * gcc.dg/overflow-warn-1.c: Adjust dg-error. * gcc.dg/overflow-warn-2.c: Likewise. * gcc.dg/overflow-warn-3.c: Likewise. * gcc.dg/overflow-warn-4.c: Likewise. * gcc.dg/torture/pr70992-2.c: New test. * gcc.dg/torture/pr70992.c: New test. From-SVN: r250566
Marek Polacek committed -
2017-07-26 Richard Biener <rguenther@suse.de> * gimple-match-head.c (do_valueize): Return OP if valueize returns NULL_TREE. (get_def): New helper to get at the def stmt of a SSA name if valueize allows. * genmatch.c (dt_node::gen_kids_1): Use get_def instead of do_valueize to get at the def stmt. (dt_operand::gen_gimple_expr): Simplify do_valueize calls. * gcc/testsuite/gcc.dg/pr70920-2.c: Adjust for transform already happening in ccp1. * gcc/testsuite/gcc.dg/pr70920-4.c: Likewise. From-SVN: r250565
Richard Biener committed -
Block auto increment on frame pointer references. This is never beneficial since the SFP expands into SP+C or FP+C during register allocation. The generated code for the testcase is now as expected: str x30, [sp, -32]! strb w0, [sp, 31] add x0, sp, 31 bl foo3 ldr x30, [sp], 32 ret gcc/ PR middle-end/46932 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp. gcc/testsuite/ PR middle-end/46932 * gcc.dg/pr46932.c: New testcase. From-SVN: r250564
Wilco Dijkstra committed -
2017-07-26 Martin Liska <mliska@suse.cz> PR sanitize/81186 * function.c (expand_function_start): Make expansion of nonlocal_goto_save_area after parm_birth_insn. 2017-07-26 Martin Liska <mliska@suse.cz> PR sanitize/81186 * gcc.dg/asan/pr81186.c: New test. From-SVN: r250561
Martin Liska committed -
All TARGET_DEFAULT defines set MASK_FPU. There is no need to set it in some CPU target flags enable. gcc/ * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU from all CPU target flags enable members. From-SVN: r250557
Sebastian Huber committed -
2017-07-25 Richard Biener <rguenther@suse.de> * genmatch.c (dt_simplify::gen): Make iterator vars const. (decision_tree::gen): Make 'type' const. (write_predicate): Likewise. From-SVN: r250556
Richard Biener committed -
2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com> * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage. (rs6000_option_override_internal): Likewise. (rs6000_expand_vector_set): Likewise. * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete. (TARGET_UPPER_REGS_SF): Likewise. (TARGET_UPPER_REGS_DI): Likewise. (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}. (TARGET_DIRECT_MOVE_64BIT): Likewise. * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise. (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise. (Splitters for DI constants in Altivec registers): Likewise. * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise. (vsx_set_v4sf_p9): Likewise. (vsx_set_v4sf_p9_zero): Likewise. (vsx_insert_extract_v4sf_p9): Likewise. (vsx_insert_extract_v4sf_p9_2): Likewise. From-SVN: r250555
Michael Meissner committed -
From-SVN: r250554
GCC Administrator committed
-
- 25 Jul, 2017 31 commits
-
-
gcc/ChangeLog: 2017-07-25 Carl Love <cel@us.ibm.com> * doc/extend.texi: Update the built-in documentation file for the existing built-in functions vector signed char vec_cnttz (vector signed char); vector unsigned char vec_cnttz (vector unsigned char); vector signed short vec_cnttz (vector signed short); vector unsigned short vec_cnttz (vector unsigned short); vector signed int vec_cnttz (vector signed int); vector unsigned int vec_cnttz (vector unsigned int); vector signed long long vec_cnttz (vector signed long long); vector unsigned long long vec_cnttz (vector unsigned long long); gcc/testsuite/ChangeLog: 2017-07-25 Carl Love <cel@us.ibm.com> * gcc.target/powerpc/builtins-4-p9-runnable.c: Add test file for vec_cnttz builtins. From-SVN: r250549
Carl Love committed -
Add a new helper routine Type::finish_pointer_types that walks through the pointer type cache and looks for placeholder types that may have been created at some point before conversion of named types, and invokes Type::finish_backend() on said placeholders. This is needed to handle cases where the compiler manufactures a pointer type as part of lowering, then a placeholder is created for it due to a call to Type::backend_type_size(), but there is no explicit reference to the type in user code. Reviewed-on: https://go-review.googlesource.com/51131 From-SVN: r250548
Ian Lance Taylor committed -
PR libstdc++/53984 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment. * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions during construction. * include/std/istream: Adjust comments for formatted input functions and unformatted input functions. * testsuite/27_io/basic_fstream/53984.cc: New. * testsuite/27_io/basic_istream/sentry/char/53984.cc: New. From-SVN: r250545
Jonathan Wakely committed -
* include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode) (ios_base::seek_dir): Remove for C++17. * include/std/streambuf (basic_streambuf::stossc): Remove for C++17. Add deprecated attribute for C++11 and C++14. * testsuite/27_io/types/1.cc: Don't run for C++17 and later. * testsuite/27_io/types/4.cc: New. From-SVN: r250531
Jonathan Wakely committed -
tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory accesses where the use is for the first operand of a... 2017-07-25 Andrew Pinski <apinski@cavium.com> * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory accesses where the use is for the first operand of a BIT_INSERT. From-SVN: r250530
Andrew Pinski committed -
gcc/ PR bootstrap/81521 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS. From-SVN: r250529
Jim Wilson committed -
gcc/ * config/i386/gstabs.h: Delete. * config/i386/openbsd.h, config/i386/t-openbsd: Likewise. From-SVN: r250527
Jim Wilson committed -
i386.c (ix86_decompose_address): Do not check for register RTX when looking at index_reg or base_reg. * config/i386/i386.c (ix86_decompose_address): Do not check for register RTX when looking at index_reg or base_reg. * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx. From-SVN: r250526
Uros Bizjak committed -
* gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace to update EH info here. ada/ * checks.adb (Apply_Divide_Checks): Ensure that operands are not evaluated twice. From-SVN: r250525
Eric Botcazou committed -
* match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2). testsuite: * gcc.dg/tree-ssa/assoc-2.c: Enhance. * gcc.dg/tree-ssa/slsr-4.c: Adjust. From-SVN: r250524
Alexander Monakov committed -
* match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST. testsuite/ * gcc.dg/tree-ssa/assoc-2.c: New testcase. From-SVN: r250523
Alexander Monakov committed -
2017-07-07 Torsten Duwe <duwe@suse.de> c-family/ * c-attribs.c (c_common_attribute_table): Add entry for "patchable_function_entry". lto/ * lto-lang.c (lto_attribute_table): Add entry for "patchable_function_entry". * common.opt: Introduce -fpatchable-function-entry command line option, and its variables function_entry_patch_area_size and function_entry_patch_area_start. * opts.c (common_handle_option): Add -fpatchable_function_entry_ case, including a two-value parser. * target.def (print_patchable_function_entry): New target hook. * targhooks.h (default_print_patchable_function_entry): New function. * targhooks.c (default_print_patchable_function_entry): Likewise. * toplev.c (process_options): Switch off IPA-RA if patchable function entries are being generated. * varasm.c (assemble_start_function): Look at the patchable-function-entry command line switch and current function attributes and maybe generate NOP instructions by calling the print_patchable_function_entry hook. * doc/extend.texi: Document patchable_function_entry attribute. * doc/invoke.texi: Document -fpatchable_function_entry command line option. * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New target hook. * doc/tm.texi: Re-generate. * c-c++-common/patchable_function_entry-default.c: New test. * c-c++-common/patchable_function_entry-decl.c: Likewise. * c-c++-common/patchable_function_entry-definition.c: Likewise. From-SVN: r250521
Torsten Duwe committed -
PR target/81532 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for TARGET_AVX512DQ rather than TARGET_AVX512BW. * gcc.target/i386/pr80833-3.c: New test. * gcc.target/i386/avx512dq-pr81532.c: New test. * gcc.target/i386/avx512bw-pr81532.c: New test. From-SVN: r250520
Jakub Jelinek committed -
2017-07-25 Tamar Christina <tamar.christina@arm.com> * config/arm/parsecpu.awk (all_cores): Remove duplicates. From-SVN: r250519
Tamar Christina committed -
2017-07-25 Richard Biener <rguenther@suse.de> PR tree-optimization/81455 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to not walk in cycles when looking for guards. * gcc.dg/pr81455.c: New testcase. From-SVN: r250518
Richard Biener committed -
2017-07-25 Richard Biener <rguenther@suse.de> PR tree-optimization/81529 * tree-vect-stmts.c (process_use): Disregard live induction PHIs when optimizing backedge uses. * gfortran.dg/pr81529.f90: New testcase. From-SVN: r250517
Richard Biener committed -
* dwarf2asm.c (dw2_asm_output_nstring): Encode double quote character for AIX. * dwarf2out.c (output_macinfo): Copy debug_line_section_label to dl_section_ref. On AIX, append an expression to subtract the size of the section length to dl_section_ref. From-SVN: r250516
David Edelsohn committed -
From-SVN: r250513
Marek Polacek committed -
re PR target/79041 (aarch64 backend emits R_AARCH64_ADR_PREL_PG_HI21 relocation despite -mpc-relative-literal-loads option being used) Fix PR79041 Add missing scan assembler to testcase. gcc/testsuite/ * gcc.target/aarch64/pr79041-2.c: Improve test. From-SVN: r250512
Wilco Dijkstra committed -
From-SVN: r250510
Jakub Jelinek committed -
If config.{build,host,gcc} fails, configure currently silently continues. This then makes it much harder than necessary to notice you made a stupid pasto in config.gcc (and where exactly). * configure.ac: If any of the config.* scripts fail, exit 1. * configure: Regenerate. From-SVN: r250507
Segher Boessenkool committed -
2017-07-25 Richard Biener <rguenther@suse.de> PR tree-optimization/81410 * gcc.dg/vect/pr81410.c: Do not typedef uint64_t. From-SVN: r250506
Richard Biener committed -
2017-07-25 Richard Biener <rguenther@suse.de> PR middle-end/81546 * tree-ssa-operands.c (verify_imm_links): Remove cap on number of immediate uses, be more verbose on errors. From-SVN: r250505
Richard Biener committed -
2017-07-25 Richard Biener <rguenther@suse.de> PR tree-optimization/81510 * tree-vect-loop.c (vect_is_simple_reduction): When the reduction stmt is not inside the loop bail out. * gcc.dg/torture/pr81510.c: New testcase. * gcc.dg/torture/pr81510-2.c: Likewise. From-SVN: r250504
Richard Biener committed -
2017-07-25 Richard Biener <rguenther@suse.de> PR tree-optimization/81303 * tree-vect-loop-manip.c (vect_loop_versioning): Build profitability check against LOOP_VINFO_NITERSM1. From-SVN: r250503
Richard Biener committed -
* domwalk.c (cmp_bb_postorder): Simplify. (sort_bbs_postorder): New function. Use it... (dom_walker::walk): ...here to optimize common cases. From-SVN: r250502
Alexander Monakov committed -
2017-07-25 Martin Liska <mliska@suse.cz> PR ipa/81520 * ipa-visibility.c (function_and_variable_visibility): Make the redirection just on target that do supporting aliasing. Fix GNU coding style. 2017-07-25 Martin Liska <mliska@suse.cz> PR ipa/81520 * gcc.dg/ipa/pr81520.c: New test. From-SVN: r250501
Martin Liska committed -
gcc/ PR libgcc/61152 * config/aarch64/rtems.h: Add GCC Runtime Library Exception. Format changes. * config/arm/rtems.h: Likewise. * config/bfin/rtems.h: Likewise. * config/i386/rtemself.h: Likewise. * config/lm32/rtems.h: Likewise. * config/m32c/rtems.h: Likewise. * config/m68k/rtemself.h: Likewise. * config/microblaze/rtems.h: Likewise. * config/mips/rtems.h: Likewise. * config/moxie/rtems.h: Likewise. * config/nios2/rtems.h: Likewise. * config/powerpcspe/rtems.h: Likewise. * config/rs6000/rtems.h: Likewise. * config/rtems.h: Likewise. * config/sh/rtems.h: Likewise. * config/sh/rtemself.h: Likewise. * config/sparc/rtemself.h: Likewise. From-SVN: r250500
Sebastian Huber committed -
gcc/ PR 81487 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf. * gimple-pretty-print.c (dump_profile, dump_probability): Same. * tree-ssa-structalias.c (alias_get_name): Same. From-SVN: r250499
Georg-Johann Lay committed -
PR c/81364 * c-parser.c (c_parser_else_body): Don't warn about multistatement macro expansion if the body is in { }. (c_parser_while_statement): Likewise. (c_parser_for_statement): Likewise. * Wmultistatement-macros-12.c: New test. From-SVN: r250498
Marek Polacek committed -
PR target/81414 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac instructions if no du chain is found. gcc/testsuite * gcc.target/aarch64/pr81414.C: New. From-SVN: r250496
Bin Cheng committed
-