1 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
3 * tree-ssa-threadbackward.c: Include tree-inline.h
4 (profitable_jump_thread_path): Use estimate_num_insns to estimate
5 size of copied block; for cold paths reduce duplication.
6 (find_jump_threads_backwards): Remove redundant tests.
7 (pass_thread_jumps::gate): Enable for -Os.
9 2016-08-07 Jakub Jelinek <jakub@redhat.com>
12 * stor-layout.c (layout_decl): Fix up formatting.
13 (relayout_decl): Allow DECL to be FIELD_DECL.
15 2016-08-07 Alan Modra <amodra@gmail.com>
17 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
19 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21 * data-streamer-in.c (streamer_read_wide_int): New.
22 (streamer_read_widest_int): Renamed function.
23 * data-streamer-out.c (streamer_write_wide_int): New
24 (streamer_write_widest_int): Renamed function.
25 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
27 (input_cfg): Call renamed function.
28 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
30 (output_cfg): Call renamed function.
31 * data-streamer.h: Add declarations.
33 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35 * tree-ssa-ccp.c (extend_mask): New param sgn.
36 Remove ORing with wi::mask.
37 (get_default_value): Adjust call to extend_mask to pass sign.
38 (evaluate_stmt): Likewise.
40 2016-08-06 Jakub Jelinek <jakub@redhat.com>
42 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
45 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
47 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
48 transform if operand's type is pointer to function or method.
50 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
52 PR tree-optimization/18046
53 * tree-ssa-threadedge.c: Include cfganal.h.
54 (simplify_control_statement_condition): If simplifying a
55 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
56 with the dominating ASSERT_EXPR before handing it off to VRP.
57 Mention that a CASE_LABEL_EXPR may be returned.
58 (thread_around_empty_blocks): Adjust to handle
59 simplify_control_statement_condition() returning a
61 (thread_through_normal_block): Likewise.
62 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
63 a switch statement by trying to determine which case label
66 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
68 PR rtl-optimization/69847
69 * lra-constraints.c (process_invariant_for_inheritance): Save
70 pattern instead of src.
71 (remove_inheritance_pseudos): Use the pattern. Add assert.
73 2016-08-05 David Malcolm <dmalcolm@redhat.com>
75 * input.c (string_concat::string_concat): New constructor.
76 (string_concat_db::string_concat_db): New constructor.
77 (string_concat_db::record_string_concatenation): New method.
78 (string_concat_db::get_string_concatenation): New method.
79 (string_concat_db::get_key_loc): New method.
80 (class auto_cpp_string_vec): New class.
81 (get_substring_ranges_for_loc): New function.
82 (get_source_range_for_substring): New function.
83 (get_num_source_ranges_for_substring): New function.
84 (class selftest::lexer_test_options): New class.
85 (struct selftest::lexer_test): New struct.
86 (class selftest::ebcdic_execution_charset): New class.
87 (selftest::ebcdic_execution_charset::s_singleton): New variable.
88 (selftest::lexer_test::lexer_test): New constructor.
89 (selftest::lexer_test::~lexer_test): New destructor.
90 (selftest::lexer_test::get_token): New method.
91 (selftest::assert_char_at_range): New function.
92 (ASSERT_CHAR_AT_RANGE): New macro.
93 (selftest::assert_num_substring_ranges): New function.
94 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
95 (selftest::assert_has_no_substring_ranges): New function.
96 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
97 (selftest::test_lexer_string_locations_simple): New function.
98 (selftest::test_lexer_string_locations_ebcdic): New function.
99 (selftest::test_lexer_string_locations_hex): New function.
100 (selftest::test_lexer_string_locations_oct): New function.
101 (selftest::test_lexer_string_locations_letter_escape_1): New function.
102 (selftest::test_lexer_string_locations_letter_escape_2): New function.
103 (selftest::test_lexer_string_locations_ucn4): New function.
104 (selftest::test_lexer_string_locations_ucn8): New function.
105 (selftest::uint32_from_big_endian): New function.
106 (selftest::test_lexer_string_locations_wide_string): New function.
107 (selftest::uint16_from_big_endian): New function.
108 (selftest::test_lexer_string_locations_string16): New function.
109 (selftest::test_lexer_string_locations_string32): New function.
110 (selftest::test_lexer_string_locations_u8): New function.
111 (selftest::test_lexer_string_locations_utf8_source): New function.
112 (selftest::test_lexer_string_locations_concatenation_1): New
114 (selftest::test_lexer_string_locations_concatenation_2): New
116 (selftest::test_lexer_string_locations_concatenation_3): New
118 (selftest::test_lexer_string_locations_macro): New function.
119 (selftest::test_lexer_string_locations_stringified_macro_argument):
121 (selftest::test_lexer_string_locations_non_string): New function.
122 (selftest::test_lexer_string_locations_long_line): New function.
123 (selftest::test_lexer_char_constants): New function.
124 (selftest::input_c_tests): Call the new test functions once per
125 case within the line_table test matrix.
126 * input.h (struct string_concat): New struct.
127 (struct location_hash): New struct.
128 (class string_concat_db): New class.
129 * substring-locations.h: New header.
131 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
133 PR tree-optimization/72810
134 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
135 the type of the case labels when truncating.
137 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
140 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
141 (aarch64_fp16_ptr_type_node): Likewise.
142 * config/aarch64/aarch64-simd-builtins.c
143 (aarch64_fp16_ptr_type_node): Define.
144 (aarch64_init_fp16_types): New, refactored out of...
145 (aarch64_init_builtins): ...here, update to call
146 aarch64_init_fp16_types.
147 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
149 (aapcs_vfp_sub_candidate): Likewise.
151 2016-08-05 Martin Liska <mliska@suse.cz>
153 Joshua Cranmer <Pidgeot18@gmail.com>
155 * gcov.c (line_t::has_block): New function.
156 (enum loop_type): New enum.
157 (handle_cycle): New function.
160 (get_cycles_count): Likewise.
161 (accumulate_line_counts): Use new loop detection algorithm.
163 2016-08-05 Martin Liska <mliska@suse.cz>
165 * gcov.c (output_intermediate_file): Rename
166 function_info::line_next to next_file_fn.
167 (process_file): Likewise.
168 (read_graph_file): Likewise.
169 (accumulate_line_counts): Likewise.
170 (output_lines): Likewise.
172 2016-08-05 Richard Biener <rguenther@suse.de>
174 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
175 restriction on threading to a loop header.
177 2016-08-05 Richard Biener <rguenther@suse.de>
179 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
180 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
181 adjust loop info accordingly.
183 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
185 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
186 before folding call to __builtin_constant_p with parameters to false.
188 2016-08-05 Alan Modra <amodra@gmail.com>
190 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
191 code accidentally committed 2016-05-02 providing class when given
194 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
196 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
197 the case label ranges that partially overlap with OP's value
200 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
203 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
204 Cast builtin function result to __mmask16 instead of __mmask8.
205 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
206 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
207 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
209 2016-08-04 David Malcolm <dmalcolm@redhat.com>
211 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
212 (ASSERT_TRUE_AT): New macro.
213 (ASSERT_FALSE): Reimplement in terms of...
214 (ASSERT_FALSE_AT): New macro.
215 (ASSERT_STREQ_AT): Fix typo in comment.
217 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
219 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
220 labels are exhaustive, designate the label with the widest
221 range to be the default label.
223 2016-08-04 Andrew Pinski <apinski@cavium.com>
225 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
226 (thunderx_tunings): Use thunderx_vector_cost instead of
229 2016-08-04 Martin Liska <mliska@suse.cz>
231 * gcov.c (main): Fix GNU coding style.
232 (output_intermediate_file): Likewise.
233 (process_file): Likewise.
234 (generate_results): Likewise.
235 (release_structures): Likewise.
236 (create_file_names): Likewise.
237 (find_source): Likewise.
238 (read_graph_file): Likewise.
239 (find_exception_blocks): Likewise.
240 (canonicalize_name): Likewise.
241 (make_gcov_file_name): Likewise.
242 (mangle_name): Likewise.
243 (accumulate_line_counts): Likewise.
244 (output_branch_count): Likewise.
245 (read_line): Likewise.
247 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
249 PR rtl-optimization/71779
250 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
251 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
252 or if it was truncated.
254 PR rtl-optimization/70903
255 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
257 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
259 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
260 accessing SSA_NAME_PTR_INFO.
262 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
265 * common/config/avr/avr-common.c (avr_option_optimization_table)
266 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
268 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
271 * config/avr/avr.md: New pattern to work around do_store_flag
272 generating shift instructions for bit extractions.
274 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
276 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
278 (add_equivalence): Likewise.
279 (get_value_range): Allocate value range with vrp_value_range_pool.
280 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
281 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
283 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
285 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
286 the default for the rs6000 port.
288 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
291 * calls.c (special_function_p): Remove special handling of
292 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
293 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
294 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
296 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
299 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
300 Don't stop on regular insns.
302 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
304 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
305 size to DImode boundary.
306 (nvptx_propagate): Likewise.
308 2016-08-03 Alan Modra <amodra@gmail.com>
310 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
311 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
312 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
313 from -mefficient-unaligned-vector. Note that this affects fp too.
315 2016-08-03 Alan Modra <amodra@gmail.com>
317 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
320 2016-08-03 Alan Modra <amodra@gmail.com>
322 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
323 to a reg. Localize vars.
325 2016-08-03 Alan Modra <amodra@gmail.com>
327 * config/rs6000/rs6000.opt: Remove negatives from help strings
330 2016-08-03 Alan Modra <amodra@gmail.com>
332 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
333 Delete duplicated code.
335 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
338 * lra-spills.c (regno_in_use_p): New.
339 (lra_final_code_change): Use it.
341 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
343 PR rtl-optimization/69847
344 * lra-int.h (struct lra-reg): Use restore_rtx instead of
347 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
349 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
350 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
351 * lra-spills.c (lra_final_code_change): Don't delete insn when the
352 next insn is USE with the same reg as the current insn source.
353 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
355 (lra_constraints_init): Call initiate_invariants.
356 (lra_constraints_finish): Call finish_invariants.
357 (struct invariant, invariant_t, invariant_ptr_t): New.
358 (const_invariant_ptr_t, invariants, invariants_pool): New.
359 (invariant_table, invariant_hash, invariant_eq_p): New.
360 (insert_invariant, initiate_invariants, finish_invariants): New.
361 (clear_invariants, invalid_invariant_regs): New.
362 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
363 instead of restore_regno.
364 (invariant_p, process_invariant_for_inheritance): New.
365 (inherit_in_ebb): Implement invariant inheritance.
366 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
367 (remove_inheritance_pseudos): Implement undoing invariant
369 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
370 instead of restore_regno.
371 * lra-assigns.c (regno_live_length): New.
372 (reload_pseudo_compare_func): Use regno_live_length.
373 (assign_by_spills): Use restore_rtx instead of restore_regno.
374 (lra_assign): Ditto. Initiate regno_live_length.
376 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
378 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
379 __builtin_aarch64_fmindf.
381 2016-08-02 Bin Cheng <bin.cheng@arm.com>
383 PR tree-optimization/34114
384 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
385 information for more control IVs.
387 2016-08-02 Bin Cheng <bin.cheng@arm.com>
389 PR tree-optimization/34114
390 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
391 PLUS_EXPR case. Handle SSA_NAME case.
393 2016-08-02 Tamar Christina <tamar.christina@arm.com>
395 * config/aarch64/aarch64-simd-builtins.def
396 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
397 (__builtin_aarch64_fmaxdf): Likewise.
398 (__builtin_aarch64_smin_nandf): Likewise.
399 (__builtin_aarch64_smax_nandf): Likewise.
400 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
401 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
402 (<fmaxmin><mode>3): ...this.
403 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
404 (vminnm_f64): Likewise.
405 (vmin_f64): Likewise.
406 (vmax_f64): Likewise.
407 * config/aarch64/iterators.md (FMAXMIN): Merge with...
408 (FMAXMIN_UNS): ...this.
409 (fmaxmin): Merged with
410 (fmaxmin_op): ...this...
411 (maxmin_uns_op): ...in to this.
413 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
415 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
416 Add support for vec_extract on vector float, vector int, vector
417 short, and vector char vector types.
418 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
419 vector float, vector int, vector short, and vector char
420 optimizations on 64-bit ISA 2.07 systems for both constant and
421 variable element numbers.
422 (rs6000_split_vec_extract_var): Likewise.
423 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
424 Altivec registers on ISA 2.07 and above.
425 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
426 which never was matched due to the split occuring before register
427 allocation (and the code would not have worked on little endian
428 systems if it did match). Allow extracts to go to the Altivec
429 registers if ISA 2.07 (power8). Change from using "" around the
430 C++ code to using {}'s.
431 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
432 vec_extracts when the vector is in memory.
433 (vsx_extract_v4sf_var): New insn to optimize vector float
434 vec_extracts when the element number is variable on 64-bit ISA
436 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
437 for 64-bit ISA 2.07 as well as ISA 3.0.
438 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
439 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
440 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
441 optimize vector int, vector short, and vector char vec_extracts
442 when the vector is in memory.
443 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
444 optimize vector int, vector short, and vector char vec_extracts
445 when the element number is variable.
447 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
450 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
451 does not overlap with other symbol flags.
453 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
455 * config/aarch64/aarch64.h (aarch64_frame):
456 Remove padding0 and hardfp_offset. Add locals_offset,
457 initial_adjust, callee_adjust, callee_offset and final_adjust.
458 * config/aarch64/aarch64.c (aarch64_layout_frame):
459 Remove unused padding0 and hardfp_offset initializations.
460 Choose frame layout and set frame variables accordingly.
461 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
462 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
463 (aarch64_pop_regs): Likewise.
464 (aarch64_expand_prologue): Remove all decision code, just emit
465 prolog according to frame variables.
466 (aarch64_expand_epilogue): Remove all decision code, just emit
467 epilog according to frame variables.
468 (aarch64_initial_elimination_offset): Use offset to local/arg area.
470 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
473 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
474 fix_debug_reg_uses after changing source register mode to
475 V1TImode if source register is undefined.
477 2015-08-01 Alan Hayward <alan.hayward@arm.com>
479 PR tree-optimization/71818
480 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
481 with non invariant evolutions
483 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
486 * config/avr/avr.md (length) [branch]: Correct insn length
487 attribute for forward branches.
489 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
491 * doc/extend.texi (AVR Built-in Functions): Document
493 * config/avr/builtins.def (NOPS): New.
494 * config/avr/avr.c (avr_expand_nops): New static function.
495 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
497 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
499 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
500 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
503 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
505 * config/aarch64/aarch64.c (vulcan_tunings): Update
506 vulcan L1 cache_line_size.
508 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
510 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
511 function that takes a vector memory address, a hard register, an
512 element number and a temporary base register, and recreates an
513 address that points to the appropriate element within the vector.
514 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
515 (rs6000_split_vec_extract_var): Add support for the target of a
516 vec_extract with variable element number being a scalar memory
518 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
520 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
521 vsx_extract_<mode>_load insn with a new insn that optimizes
522 storing either element to a memory location, using scratch
523 registers to pick apart the vector and reconstruct the address.
524 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
525 (vsx_extract_<mode>_store): Rework alternatives to more correctly
526 support Altivec registers. Add support for ISA 3.0 Altivec d-form
528 (vsx_extract_<mode>_var): Add support for extracting a variable
529 element number from memory.
531 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
533 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
534 when testing for compares against constants of the form 0xabab.
536 2016-07-29 Bin Cheng <bin.cheng@arm.com>
538 PR tree-optimization/57558
539 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
541 (vect_loop_versioning): Support versioning with niter assumptions.
542 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
543 (vect_get_loop_niters): New parameter. Reimplement to support
544 assumptions in loop niter info.
545 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
546 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
547 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
548 Support loop versioning for niters.
549 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
550 (vect_free_loop_info_assumptions): New function.
551 (vectorize_loops): Free loop niter info for loops with flag
552 LOOP_F_ASSUMPTIONS set if vectorization failed.
553 * tree-vectorizer.h (struct _loop_vec_info): New field
554 num_iters_assumptions.
555 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
556 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
557 (LOOP_REQUIRES_VERSIONING): New macro.
558 (vect_free_loop_info_assumptions): New decl.
560 2016-07-29 Bin Cheng <bin.cheng@arm.com>
562 * cfgloop.h (struct loop): New field constraints.
563 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
564 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
566 * cfgloop.c (alloc_loop): Initialize new field.
567 * cfgloopmanip.c (copy_loop_info): Copy constraints.
568 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
569 Adjust niter analysis wrto loop constraints.
570 * doc/loop.texi (@node Number of iterations): Add description for loop
573 2016-07-29 Marek Polacek <polacek@redhat.com>
576 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
577 (ix86_expand_round_builtin): Likewise.
579 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
580 Georg-Johann Lay <avr@gjlay.de>
582 PR rtl-optimization/71976
583 * combine.c (get_last_value): Return 0 if the argument for which
584 the function is called has a wider mode than the recorded value.
586 2016-07-29 Marek Polacek <polacek@redhat.com>
589 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
590 (altivec_expand_st_builtin): Likewise.
592 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
594 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
595 introduced in r238381.
597 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
600 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
601 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
603 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
605 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
607 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
608 Add support for vec_extract of vector double or vector long having
609 a variable element number on 64-bit ISA 2.07 systems or newer.
610 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
612 (rs6000_split_vec_extract_var): New function to split a
613 vec_extract built-in function with variable element number.
614 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
616 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
617 (UNSPEC_VSX_EXTRACT): Likewise.
618 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
619 direct move instructions to be generated on 64-bit ISA 2.07
620 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
622 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
623 arguments for vec_extract variable element.
624 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
625 vec_extract with variable element on V2DFmode and V2DImode
627 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
628 -mupper-regs-df requirement, since it isn't needed.
629 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
630 do direct moves on 64-bit systems, which allows optimization of
631 vec_extract on 64-bit ISA 2.07 systems and newer.
633 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
634 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
636 * config/aarch64/aarch64.md
637 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
639 (<optab>qihi2_aarch64): Likewise, and split into two.
640 (extendqihi2_aarch64): New.
641 (zero_extendqihi2_aarch64): New.
642 * config/aarch64/iterators.md (ldrxt): Remove.
643 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
646 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
650 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
652 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
653 (aarch64_push_reg): New function to push 1 or 2 registers.
654 (aarch64_pop_reg): New function to pop 1 or 2 registers.
655 (aarch64_expand_prologue): Use aarch64_push_regs.
656 (aarch64_expand_epilogue): Use aarch64_pop_regs.
658 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
660 PR tree-optimization/71734
661 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
662 attribute instead of REF_LOOP and use it.
663 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
664 set it for Loops having non-zero safelen attribute.
665 (ref_indep_loop_p): Pass zero as initial value for safelen.
667 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
671 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
672 call using chkp_gimple_call_builtin_p.
673 (chkp_copy_bounds_for_assign): Likewise.
675 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
677 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
678 * config/arm/arm-protos.h (struct tune_params): Likewise.
679 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
680 (cortex_a9_sched_adjust_cost): Likewise.
681 (fa726te_sched_adjust_cost): Likewise.
682 (arm_adjust_cost): Likewise.
683 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
684 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
685 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
686 * config/i386/i386.c (ix86_adjust_cost): Likewise.
687 * config/ia64/ia64.c: Likewise.
688 * config/m68k/m68k.c: Likewise.
689 * config/mep/mep.c (mep_adjust_cost): Likewise.
690 * config/microblaze/microblaze.c (microblaze_adjust_cost):
692 * config/mips/mips.c (mips_adjust_cost): Likewise.
693 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
695 * config/pa/pa.c (pa_adjust_cost): Likewise.
696 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
697 (rs6000_debug_adjust_cost): Likewise.
698 * config/sh/sh.c (sh_adjust_cost): Likewise.
699 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
700 (hypersparc_adjust_cost): Likewise.
701 (sparc_adjust_cost): Likewise.
702 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
703 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
704 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
706 * config/visium/visium.c (visium_adjust_cost): Likewise.
707 * doc/tm.texi: Regenerate.
708 * haifa-sched.c (dep_cost_1): Adjust.
709 * target.def: Merge adjust_cost and adjust_cost_2.
711 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
713 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
715 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
717 * store-motion.c (struct st_expr): Make pattern_regs a vector.
718 (extract_mentioned_regs): Append to a vector instead of
719 returning a rtx_expr_list.
720 (st_expr_entry): Adjust.
721 (free_st_expr_entry): Likewise.
722 (store_ops_ok): Likewise.
723 (store_killed_in_insn): Likewise.
724 (find_moveable_store): Likewise.
726 2016-07-28 Martin Liska <mliska@suse.cz>
728 PR gcov-profile/68025
729 * tree-profile.c (tree_profiling): Respect
730 no_profile_instrument_function attribute.
731 * doc/extend.texi: Document no_profile_instrument_function
734 2016-07-28 Martin Liska <mliska@suse.cz>
736 PR rtl-optimization/70944
737 * combine.c (make_compound_operation):
738 Do not allow make_compound_operation for vector mode
740 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
743 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
744 before calling get_ops.
746 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
748 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
749 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
750 (BITS_PER_UNIT_LOG): Remove.
751 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
752 * expr.c (expand_assignment): Likewise.
753 * stor-layout.c (initialize_sizetypes): Likewise.
755 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
757 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
758 signature of rs6000_expand_vector_extract so that the element
759 number is a RTX instead of a constant integer.
760 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
762 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
763 (altivec_expand_vec_ext_builtin): Likewise.
764 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
765 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
768 2016-07-27 David Malcolm <dmalcolm@redhat.com>
770 * input.c (get_pure_location): Move here from tree.c.
771 (make_location): Likewise. Add header comment.
772 (selftest::test_accessing_ordinary_linemaps): Verify
773 pure_location_p, make_location, get_location_from_adhoc_loc and
775 * input.h (get_pure_location): Move declaration here from tree.h.
776 (get_finish): Likewise for inline function.
777 (make_location): Likewise for declaration.
778 * tree.c (get_pure_location): Move to input.c.
779 (make_location): Likewise.
780 * tree.h (get_pure_location): Move declaration to tree.h.
781 (get_finish): Likewise for inline function.
782 (make_location): Likewise for declaration.
784 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
787 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
789 2016-07-27 David Malcolm <dmalcolm@redhat.com>
791 * system.h (STATIC_ASSERT): Use static_assert if building
794 2016-07-27 Richard Biener <rguenther@suse.de>
796 PR tree-optimization/72517
797 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
798 Revert change to not compute read-read dependences.
800 2016-07-27 Richard Biener <rguenther@suse.de>
802 * predict.c (set_even_probabilities): Make nedges unsigned.
804 2016-07-27 Martin Liska <mliska@suse.cz>
806 * predict.c (set_even_probabilities): Handle unlikely edges.
807 (combine_predictions_for_bb): Likewise.
809 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
812 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
813 __float128 support when we don't have hardware support, so that
814 the IEEE built-in functions like isgreater, first call __unordkf3
815 to make sure neither operand is a NaN, and if both operands are
816 ordered, do the normal comparison.
818 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
820 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
822 (extract_code_and_val_from_cond_with_ops): Verify that name is
823 either cond_op0 or cond_op1.
825 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
827 PR tree-optimization/18046
828 * genmodes.c (emit_mode_size_inline): Emit an assert that
829 verifies that mode is a valid array index.
830 (emit_mode_nuinits_inline): Likewise.
831 (emit_mode_inner_inline): Likewise.
832 (emit_mode_unit_size_inline): Likewise.
833 (emit_mode_unit_precision_inline): Likewise.
834 * tree-vrp.c: Include params.h.
835 (find_switch_asserts): Register edge assertions for the default
836 label which correspond to the anti-ranges of each case label.
837 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
838 * doc/invoke.texi: Document it.
840 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
842 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
843 and unnecessary call to gimple_bb.
845 2016-07-26 Richard Biener <rguenther@suse.de>
847 PR rtl-optimization/71984
848 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
851 2016-07-26 Richard Biener <rguenther@suse.de>
854 * expmed.c (extract_bit_field_1): Constrain the vector mode
855 with element size matching the extraction mode size when
856 choosing a better vector mode to do the extraction from.
858 2016-07-26 Richard Biener <rguenther@suse.de>
859 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
862 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
865 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
867 * tree-ssa-structalias.c (struct scc_info): Change types of
868 members to auto_sbitmap and auto_vec.
869 (scc_info::scc_info): New constructor.
870 (scc_info::~scc_info): New destructor.
871 (init_scc_info): Remove.
872 (free_scc_info): Remove.
873 (find_indirect_cycles): Adjust.
874 (perform_var_substitution): Likewise.
875 (free_var_substitution_info): Likewise.
877 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
879 * tree-outof-ssa.c (struct elim_graph): Change type of members
880 to auto_vec and auto_sbitmap.
881 (elim_graph::elim_graph): New constructor.
882 (delete_elim_graph): Remove.
883 (expand_phi_nodes): Adjust.
885 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
887 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
888 (new_elim_graph): Adjust.
889 (clear_elim_graph): Likewise.
890 (delete_elim_graph): Likewise.
891 (elim_graph_size): Likewise.
892 (elim_graph_add_node): Likewise.
893 (elim_graph_add_edge): Likewise.
894 (elim_graph_remove_succ_edge): Likewise.
895 (eliminate_name): Likewise.
896 (eliminate_build): Likewise.
897 (elim_forward): Likewise.
898 (elim_unvisited_predecessor): Likewise.
899 (elim_backward): Likewise.
900 (elim_create): Likewise.
901 (eliminate_phi): Likewise.
902 (expand_phi_nodes): Likewise.
904 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
906 * bt-load.c (compute_out): Use auto_sbitmap class.
907 (link_btr_uses): Likewise.
908 * cfganal.c (mark_dfs_back_edges): Likewise.
909 (post_order_compute): Likewise.
910 (inverted_post_order_compute): Likewise.
911 (pre_and_rev_post_order_compute_fn): Likewise.
912 (single_pred_before_succ_order): Likewise.
913 * cfgexpand.c (pass_expand::execute): Likewise.
914 * cfgloop.c (verify_loop_structure): Likewise.
915 * cfgloopmanip.c (fix_bb_placements): Likewise.
916 (remove_path): Likewise.
917 (update_dominators_in_loop): Likewise.
918 * cfgrtl.c (break_superblocks): Likewise.
919 * ddg.c (check_sccs): Likewise.
920 (create_ddg_all_sccs): Likewise.
921 * df-core.c (df_worklist_dataflow): Likewise.
922 * dse.c (dse_step3): Likewise.
923 * except.c (eh_region_outermost): Likewise.
924 * function.c (thread_prologue_and_epilogue_insns): Likewise.
925 * gcse.c (prune_expressions): Likewise.
926 (prune_insertions_deletions): Likewise.
927 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
928 * graph.c (draw_cfg_nodes_no_loops): Likewise.
929 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
930 * lcm.c (compute_earliest): Likewise.
931 (compute_farthest): Likewise.
932 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
933 (unroll_loop_runtime_iterations): Likewise.
934 (unroll_loop_stupid): Likewise.
935 * lower-subreg.c (decompose_multiword_subregs): Likewise.
936 * lra-lives.c: Likewise.
937 * lra.c (lra): Likewise.
938 * modulo-sched.c (schedule_reg_moves): Likewise.
939 (optimize_sc): Likewise.
940 (get_sched_window): Likewise.
941 (sms_schedule_by_order): Likewise.
942 (check_nodes_order): Likewise.
943 (order_nodes_of_sccs): Likewise.
944 (order_nodes_in_scc): Likewise.
945 * recog.c (split_all_insns): Likewise.
946 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
947 * reload1.c (reload): Likewise.
948 * sched-rgn.c (haifa_find_rgns): Likewise.
949 (split_edges): Likewise.
950 (compute_trg_info): Likewise.
951 * sel-sched.c (init_seqno): Likewise.
952 * store-motion.c (remove_reachable_equiv_notes): Likewise.
953 * tree-into-ssa.c (update_ssa): Likewise.
954 * tree-ssa-live.c (live_worklist): Likewise.
955 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
956 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
958 (try_peel_loop): Likewise.
959 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
961 * tree-ssa-pre.c (compute_antic): Likewise.
962 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
963 * tree-stdarg.c (reachable_at_most_once): Likewise.
964 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
965 * var-tracking.c (vt_find_locations): Likewise.
967 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
969 * sbitmap.h (auto_sbitmap): New class.
971 2016-07-26 Alan Modra <amodra@gmail.com>
974 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
977 2016-07-25 David Malcolm <dmalcolm@redhat.com>
979 * input.c (selftest::temp_source_file::temp_source_file): Fix
980 missing "%s" in fprintf.
982 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
985 * cselib.c (cselib_process_insn): Invalidate argument slots for
988 2016-07-25 Jiong Wang <jiong.wang@arm.com>
990 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
991 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
992 vmulxh_lane_f16, vmulxh_laneq_f16): New.
994 2016-07-25 Jiong Wang <jiong.wang@arm.com>
996 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
997 * config/aarch64/aarch64.md (fma, fnma): Support HF.
998 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
1000 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1002 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1003 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
1005 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
1006 (add<mode>3): Likewise.
1007 (sub<mode>3): Likewise.
1008 (mul<mode>3): Likewise.
1009 (div<mode>3): Likewise.
1010 (*div<mode>3): Likewise.
1011 (<fmaxmin><mode>3): Extend to HF.
1012 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
1013 (fabd<mode>3): Likewise.
1014 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
1015 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
1016 (aarch64_fmulx<mode>): Likewise.
1017 (aarch64_fac<optab><mode>): Likewise.
1018 (aarch64_frecps<mode>): Likewise.
1019 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
1020 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
1021 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
1022 (VSDQ_HSDI): Support HI.
1023 (fcvt_target, FCVT_TARGET): Likewise.
1024 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
1025 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
1026 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
1027 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
1028 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
1029 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
1030 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
1033 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1035 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
1036 * config/aarch64/aarch64-builtins.c (hi_UP): New.
1037 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1038 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
1040 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
1041 (aarch64_cm<optab><mode>): Likewise.
1042 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
1043 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
1044 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
1045 (sqrt<mode>2): Likewise.
1046 (*sqrt<mode>2): Likewise.
1047 (abs<mode>2): Likewise.
1048 (<optab><mode>hf2): New pattern for HF mode.
1049 (<optab>hihf2): Likewise.
1050 * config/aarch64/arm_neon.h: Include arm_fp16.h.
1051 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
1052 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
1054 * config/aarch64/arm_fp16.h: New file.
1055 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
1056 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
1057 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
1058 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
1059 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
1060 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
1061 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
1062 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
1063 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
1064 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
1065 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
1066 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
1069 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1071 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
1072 reduc_smin_scal_): Use VDQIF_F16.
1073 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
1074 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
1076 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
1077 * config/aarch64/iterators.md (VDQIF_F16): New.
1078 (vp): Support HF modes.
1079 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
1080 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
1082 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1084 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
1085 "*aarch64_mulx_elt_from_dup<mode>".
1086 (*aarch64_mul3_elt<mode>): Update schedule type.
1087 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
1088 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
1089 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
1090 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
1091 (f, fp): Support HF modes.
1092 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
1093 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
1094 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
1095 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
1096 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
1097 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
1099 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1101 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1102 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
1104 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
1107 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1109 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1110 * config/aarch64/aarch64-simd.md
1111 (aarch64_rsqrts<mode>): Extend to HF modes.
1112 (fabd<mode>3): Likewise.
1113 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
1114 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
1115 (aarch64_<maxmin_uns>p<mode>): Likewise.
1116 (<su><maxmin><mode>3): Likewise.
1117 (<maxmin_uns><mode>3): Likewise.
1118 (<fmaxmin><mode>3): Likewise.
1119 (aarch64_faddp<mode>): Likewise.
1120 (aarch64_fmulx<mode>): Likewise.
1121 (aarch64_frecps<mode>): Likewise.
1122 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
1123 (add<mode>3): Extend to HF modes.
1124 (sub<mode>3): Likewise.
1125 (mul<mode>3): Likewise.
1126 (div<mode>3): Likewise.
1127 (*div<mode>3): Likewise.
1128 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
1130 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
1131 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
1132 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
1133 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
1134 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
1135 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
1136 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
1137 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
1138 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
1139 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
1140 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
1141 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
1142 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
1143 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
1145 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1147 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
1148 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
1149 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
1150 (neg<mode>2): Likewise.
1151 (abs<mode>2): Likewise.
1152 (<frint_pattern><mode>2): Likewise.
1153 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
1154 (<optab><VDQF:mode><fcvt_target>2): Likewise.
1155 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
1156 (ftrunc<VDQF:mode>2): Likewise.
1157 (<optab><fcvt_target><VDQF:mode>2): Likewise.
1158 (sqrt<mode>2): Likewise.
1159 (*sqrt<mode>2): Likewise.
1160 (aarch64_frecpe<mode>): Likewise.
1161 (aarch64_cm<optab><mode>): Likewise.
1162 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
1164 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
1165 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
1167 * config/aarch64/arm_neon.h (vdup_n_f16): New.
1168 (vdupq_n_f16): Likewise.
1169 (vld1_dup_f16): Use vdup_n_f16.
1170 (vld1q_dup_f16): Use vdupq_n_f16.
1171 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
1172 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
1173 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
1174 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
1175 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
1176 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
1177 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
1178 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
1179 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
1180 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
1181 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
1182 vsqrt_f16, vsqrtq_f16): New.
1184 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1186 * config/aarch64/aarch64-simd.md
1187 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
1188 (aarch64_ext<mode>): Likewise.
1189 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
1190 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
1191 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
1193 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
1195 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
1196 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
1197 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
1198 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
1199 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
1200 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
1201 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
1203 (vmov_n_f16): Reimplement using vdup_n_f16.
1204 (vmovq_n_f16): Reimplement using vdupq_n_f16..
1206 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1208 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
1209 "frame_related_p". Generate CFA annotation when it's necessary.
1210 (aarch64_expand_prologue): Use aarch64_add_constant.
1211 (aarch64_expand_epilogue): Likewise.
1212 (aarch64_output_mi_thunk): Pass "false" when calling
1213 aarch64_add_constant.
1215 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1217 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
1220 2016-07-25 Jiong Wang <jiong.wang@arm.com>
1222 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
1223 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
1224 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
1225 (aarch64_build_constant): Delete.
1227 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
1230 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
1232 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1233 flag_toplevel_reorder.
1235 2016-07-25 Richard Biener <rguenther@suse.de>
1237 * cgraph.c (cgraph_node::verify_node): Compare against builtin
1238 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
1239 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
1240 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
1241 (streamer_get_builtin_tree): Likewise.
1242 (streamer_write_builtin): Likewise.
1243 * lto-streamer.h (LTO_builtin_decl): Remove.
1244 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
1245 (lto_input_scc): Remove LTO_builtin_decl handling.
1246 (lto_input_tree_1): Liekwise.
1247 * lto-streamer-out.c (lto_output_tree_1): Remove special
1248 handling of builtins.
1249 (DFS::DFS): Likewise.
1250 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
1251 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
1253 (streamer_write_builtin): Remove.
1255 2016-07-25 Martin Liska <mliska@suse.cz>
1257 * lto-cgraph.c (input_symtab): Don't call get_working_sets
1258 if flag_auto_profile is set to true.
1260 2016-07-25 Martin Liska <mliska@suse.cz>
1262 PR gcov-profile/71868
1263 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
1264 have a function with multiple latches, count them all.
1266 2016-07-25 Martin Liska <mliska@suse.cz>
1268 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
1270 2016-07-25 Martin Liska <mliska@suse.cz>
1272 PR tree-optimization/71987
1273 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
1274 just for SSA_NAMEs. Fix GNU coding style.
1276 2016-07-25 Martin Liska <mliska@suse.cz>
1278 PR gcov-profile/64874
1279 * gcov-io.h: Update command about file format.
1280 * gcov-iov.c (main): Adapt the numbering scheme.
1282 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
1285 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
1286 whose result is used in PHI.
1287 (final_range_test_p): Likewise.
1288 (maybe_optimize_range_tests): Likewise.
1290 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1292 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1293 Reformat two multi-line strings.
1295 2016-07-22 Martin Sebor <msebor@redhat.com>
1297 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
1299 2016-07-22 Martin Sebor <msebor@redhat.com>
1302 * doc/extend.texi (Compound Literals): Correct and clarify.
1303 (Cast to Union): Same.
1305 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
1307 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1308 comments to explain why certain error messages make mention of
1309 undocumented options.
1310 (rs6000_invalid_builtin): Change error messages to replace mention
1311 of undocumented options with mention of the -mcpu=power9 option
1312 that enables those undocumented options.
1313 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
1314 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
1315 definition of this macro to correct an existing error.
1316 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
1317 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
1318 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
1319 descriptions of built-in functions so that they depend on
1320 -mcpu=power9 instead of on the corresponding undocumented flags.
1321 * doc/invoke.texi (Option Summary): Remove all mention of newly
1323 (IBM RS/6000 and PowerPC Options): Likewise.
1324 * doc/md.texi (Constraints for Particuliar Machines): Remove all
1325 mention of newly undocumented flags.
1327 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
1329 * ipa-cp.c (determine_versionability): Do not create constprop clones,
1330 when target_clones attribute is set.
1332 2016-07-22 Bin Cheng <bin.cheng@arm.com>
1334 * common.opt (funsafe-loop-optimizations): Mark ignore.
1335 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
1336 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
1338 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
1339 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
1341 2016-07-22 Bin Cheng <bin.cheng@arm.com>
1343 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1345 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1347 (number_of_iterations_exit): Warn missed loop optimization for
1348 possible infinite loops.
1350 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
1353 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
1354 when to emit a ".machine" pseudo-op.
1356 2016-07-22 Martin Liska <mliska@suse.cz>
1358 PR gcov-profile/69028
1359 PR gcov-profile/62047
1360 * coverage.c (coverage_compute_lineno_checksum): Do not
1361 calculate checksum for fns w/o xloc.file.
1362 (coverage_compute_profile_id): Likewise.
1364 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
1366 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
1367 (avr_secondary_reload): ...and implementation.
1368 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
1369 * config/avr/avr.md (reload_in<mode>): Remove insns.
1370 (adjust_len) [lpm]: Remove insn attribute value.
1371 * config/avr/predicates.md (flash_operand): Remove insn predicate.
1373 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1376 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
1378 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
1379 * calls.c (special_function_p): Remove the special handling of the
1380 "__builtin_" prefix.
1382 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1385 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
1386 if STMT may be an alloca call.
1387 (gimple_alloca_call_p, alloca_call_p): Return only true for the
1388 builtin alloca call.
1389 * calls.h (gimple_maybe_alloca_call_p): New function.
1390 * tree-inline.c (inline_forbidden_p_stmt): Use
1391 gimple_maybe_alloca_call_p here.
1393 2016-07-21 David Malcolm <dmalcolm@redhat.com>
1395 * spellcheck-tree.c (best_macro_match::best_macro_match):
1396 Explictly specify the template arguments when invoking the base
1397 class constructor, to help older C++ compilers.
1399 2016-07-21 Jakub Jelinek <jakub@redhat.com>
1402 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
1403 before builtin_decl_implicit.
1405 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
1407 * optabs.c (emit_condiitonal_move): Short circuit for identical
1410 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
1412 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
1413 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
1414 (noce_conversion_profitable_p): New.
1415 (noce_try_store_flag_constants): Use it.
1416 (noce_try_addcc): Likewise.
1417 (noce_try_store_flag_mask): Likewise.
1418 (noce_try_cmove): Likewise.
1419 (noce_try_cmove_arith): Likewise.
1420 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
1422 (noce_convert_multiple_sets): Move cost model to here, from...
1423 (bb_ok_for_noce_convert_multiple_sets) ...here.
1424 (noce_process_if_block): Update calls for above changes.
1425 (noce_find_if_block): Record new noce_if_info parameters.
1427 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
1429 * target.def (max_noce_ifcvt_seq_cost): New.
1430 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
1431 * doc/tm.texi: Regenerate.
1432 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
1433 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
1434 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
1435 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
1436 * doc/invoke.texi: Document new params.
1438 2016-07-21 Richard Biener <rguenther@suse.de>
1440 PR tree-optimization/71947
1441 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
1442 ranges have useful limit_vr information.
1444 2016-07-21 Richard Biener <rguenther@suse.de>
1446 * function-tests.c (build_trivial_generic_function): Set
1447 BLOCK_SUPERCONTEXT of DECL_INITIAL.
1448 * omp-low.c (create_omp_child_function): Likewise.
1449 (grid_expand_target_grid_body): Likewise.
1450 * cgraphunit.c (init_lowered_empty_function): Likewise.
1451 (cgraph_node::expand_thunk): Likewise.
1452 * tree-parloops.c (create_loop_fn): Likewise.
1453 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
1455 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1457 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
1460 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
1462 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
1463 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
1464 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
1465 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
1466 values for insn attribute.
1467 * config/avr/avr.c (avr_out_insert_notbit): New function.
1468 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
1469 ADJUST_LEN_INSV_NOTBIT_0/_7.
1470 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
1472 2016-07-21 Bin Cheng <bin.cheng@arm.com>
1474 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
1475 (chrec_convert_1, chrec_convert): Ditto.
1476 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
1477 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
1478 * tree-vrp.c (adjust_range_with_scev): Ditto.
1479 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
1480 (scev_var_range_cant_overflow): New function.
1481 (scev_probably_wraps_p): New parameter. Call above function.
1482 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
1484 2016-07-21 Bin Cheng <bin.cheng@arm.com>
1486 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
1487 by removing computation of may_be_zero.
1489 2016-07-21 Jakub Jelinek <jakub@redhat.com>
1491 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
1493 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
1495 Improving concepts performance and diagnostics.
1496 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
1497 for constraint satisfaction and subsumption.
1498 * timevar.h (auto_timevar): New constructor that matches the push/pop
1499 pattern of usage in pt.c.
1501 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
1503 * hwint.h (HOST_WIDE_INT_0): New define.
1504 (HOST_WIDE_INT_0U): Ditto.
1505 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
1506 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
1507 * simplify-rtx.c: Ditto.
1508 * tree-object-size.c: Ditto.
1510 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1512 * config/s390/s390.c (s390_encode_section_info): Remove mode size
1515 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
1517 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
1518 * combine.c: Use HOST_WIDE_INT_M1U instead of
1519 ~(unsigned HOST_WIDE_INT) 0.
1520 * double-int.h: Ditto.
1522 * dwarf2asm.c:Ditto.
1524 * genmodes.c: Ditto.
1526 * read-rtl.c: Ditto.
1527 * tree-ssa-loop-ivopts.c: Ditto.
1528 * tree-ssa-loop-prefetch.c: Ditto.
1529 * tree-vect-generic.c: Ditto.
1530 * tree-vect-patterns.c: Ditto.
1533 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1535 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
1536 constant addresses outside [0,0xc0] into a register.
1537 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
1538 cases where the base address register is unused after.
1539 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
1540 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
1541 (avr_out_store_psi_reg_disp_tiny): Same.
1543 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1545 Implement attribute progmem on reduced Tiny cores by adding
1546 flash offset 0x4000 to respective symbols.
1549 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
1550 documentation how it works on reduced Tiny cores.
1551 (AVR Named Address Spaces): No support for reduced Tiny.
1552 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
1553 (avr_address_tiny_pm_p): New static function.
1554 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
1555 if the address is in progmem.
1556 (avr_assemble_integer): Same.
1557 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
1558 for symbol_ref in progmem.
1559 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
1560 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
1561 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
1563 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
1565 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
1566 * configure: Regenerate.
1567 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
1568 (USE_THIN_ARCHIVES): New variable.
1569 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
1570 this archive as a thin archive.
1572 2016-07-20 David Malcolm <dmalcolm@redhat.com>
1574 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
1575 same location as last time, don't skip if we have fix-it hints.
1576 Clarify the skipping logic by converting it from one "if" clause
1577 to repeated "if" clauses.
1578 * spellcheck-tree.c: Include "cpplib.h".
1579 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
1580 (best_macro_match::best_macro_match): New constructor.
1581 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
1582 Move here from c/c-decl.c.
1583 (class best_macro_match): Move here from c/c-decl.c, converting
1584 from a typedef to a subclass, gaining a ctor.
1586 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1588 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
1589 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
1591 (avr_addr_space_diagnose_usage): ...and implementation.
1592 (avr_addr_space_supported_p): New function.
1593 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
1594 report bad address space usage if that space is supported.
1595 (avr_insert_attributes): Same. No more complain about unsupported
1597 * config/avr/avr-c.c (tm_p.h): Include it.
1598 (avr_cpu_cpp_builtins): Only define addr-space related built-in
1599 macro if avr_addr_space_supported_p.
1601 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
1603 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1604 flag_toplevel_reorder.
1606 2016-07-20 David Malcolm <dmalcolm@redhat.com>
1608 * gcc-rich-location.c
1609 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
1611 * gcc-rich-location.h
1612 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
1614 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1616 * target.def (addr_space): Add new diagnose_usage to hook vector.
1617 * targhooks.c (default_addr_space_diagnose_usage): Add default
1618 implementation and...
1619 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
1620 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
1621 is some address space, call targetm.addr_space.diagnose_usage.
1622 * doc/tm.texi.in (Named Address Spaces): Add anchor for
1623 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
1624 * doc/tm.texi: Regenerate.
1626 2016-07-20 Martin Liska <mliska@suse.cz>
1629 * graphite-isl-ast-to-gimple.c (later_of_the_two):
1630 Properly handly PHI stmts.
1632 2016-07-20 Bin Cheng <bin.cheng@arm.com>
1634 PR tree-optimization/71503
1635 PR tree-optimization/71683
1636 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1639 2016-07-20 Martin Liska <mliska@suse.cz>
1641 * doc/invoke.texi (-fipa-ra): Document when the option is
1642 disabled. Fix a typo.
1644 2016-07-20 Martin Liska <mliska@suse.cz>
1646 * Makefile.in: Include fibonacci_heap.c
1647 * fibonacci_heap.c: New file.
1648 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1649 (fibonacci_heap::union_with): Fix deletion of the second heap.
1650 * selftest-run-tests.c (selftest::run_tests): Incorporate
1651 fibonacci heap tests.
1652 * selftest.h: Declare fibonacci_heap_c_tests.
1654 2016-07-20 Martin Liska <mliska@suse.cz>
1656 * selftest-run-tests.c (selftest::run_tests): New function.
1657 * selftest.h (sreal_c_tests): Declare.
1658 * sreal.c (sreal_verify_basics): New function.
1659 (verify_aritmetics): Likewise.
1660 (sreal_verify_arithmetics): Likewise.
1661 (verify_shifting): Likewise.
1662 (sreal_verify_shifting): Likewise.
1663 (void sreal_c_tests): Likewise.
1665 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1667 PR rtl-optimization/71916
1668 * cfgrtl.c (contains_no_active_insn_p): Return false also for
1669 bb which have a single succ fake edge.
1671 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1674 * dwarf2out.c (gen_subprogram_die): Only call
1675 gen_unspecified_parameters_die while dumping early dwarf.
1677 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1680 * gimple-fold.c (fold_builtin_memory_op): Use
1681 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1683 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
1685 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1686 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1687 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1688 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1692 * double-int.c: Ditto.
1694 * dwarf2out.c: Ditto.
1697 * fold-const.c: Ditto.
1698 * function.c: Ditto.
1700 * genmodes.c: Ditto.
1704 * loop-doloop.c: Ditto.
1705 * loop-invariant.c: Ditto.
1712 * simplify-rtx.c: Ditto.
1713 * stor-layout.c: Ditto.
1715 * tree-ssa-loop-ivopts.c: Ditto.
1716 * tree-vect-generic.c: Ditto.
1717 * tree-vect-patterns.c: Ditto.
1722 * wide-int-print.cc: Ditto.
1723 * wide-int.cc: Ditto.
1724 * wide-int.h: Ditto.
1726 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1728 * selftest.c (selftest::assert_streq): Handle NULL values of
1729 val_actual and val_expected.
1731 2016-07-19 Martin Jambor <mjambor@suse.cz>
1734 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1735 rather than cgraph_create_node to get a call graph node.
1737 2016-07-19 Richard Biener <rguenther@suse.de>
1739 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1740 handle all tcc_constant bases and valueize SSA names.
1741 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1744 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1746 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1747 the flags of the exit block and bb2, not just the entry block.
1749 2016-07-19 Richard Biener <rguenther@suse.de>
1751 PR tree-optimization/71901
1752 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1753 align member, group stuff with the bitfield.
1754 (vn_ref_op_align_unit): New inline.
1755 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1756 record element alignment and operand 3 unchanged.
1757 (ao_ref_init_from_vn_reference): Adjust.
1758 (valueize_refs_1): Likewise.
1759 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1761 2016-07-19 Richard Biener <rguenther@suse.de>
1763 PR tree-optimization/71908
1764 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1765 symbolic constants in a more reliable way.
1767 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
1769 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1771 (vect_update_inits_of_drs): Likewise.
1772 (vect_create_cond_for_alias_checks): Likewise.
1773 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1775 2016-07-19 Richard Biener <rguenther@suse.de>
1778 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1779 with an abstract origin that is not an inlined function outer
1780 scope add a self-reference as abstract origin.
1781 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1783 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1786 * config/rs6000/rs6000.c (rs6000_function_value): Fix
1787 unintentional System V.4 structure return breakage for structures
1788 with a single floating point element.
1790 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1792 PR tree-optimization/71734
1793 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1794 contains REF, use it to check safelen, assume that safelen value
1795 must be greater 1, fix style.
1796 (ref_indep_loop_p_2): Add REF_LOOP argument.
1797 (ref_indep_loop_p): Pass LOOP as additional argument to
1800 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1802 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1803 allocation in the prologue.
1804 * explow.c (get_dynamic_stack_base): New function to return an address
1805 expression for the dynamic stack base.
1806 (get_dynamic_stack_size): New function to do the required dynamic stack
1807 space size calculations.
1808 (allocate_dynamic_stack_space): Use new functions.
1809 (align_dynamic_address): Move some code from
1810 allocate_dynamic_stack_space to new function.
1811 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1813 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1815 * config/s390/s390.c (s390_encode_section_info): Always set
1816 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1819 2016-07-18 Richard Biener <rguenther@suse.de>
1821 PR tree-optimization/71893
1822 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1823 for sizetype cast added by array_ref_element_size.
1824 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1826 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1828 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1829 register parameters. Remove code to initialize argument pointer
1830 on TARGET_64BIT. Optimize call to _mcount when it can be reached
1831 using a pc-relative branch. Cleanup conditional code.
1832 * config/pa/pa.md (call_mcount): New expander.
1833 (call_mcount_nonpic): New insn.
1834 (call_mcount_pic): New insn and split.
1835 (call_mcount_pic_post_reload): New insn.
1836 (call_mcount_64bit): New insn and split.
1837 (call_mcount_64bit_post_reload): New insn.
1839 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
1841 * config/avr/predicates.md (const_m255_to_m1_operand): New.
1842 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1843 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1844 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1845 (*usum_widenqihi3, *udiff_widenqihi3)
1846 (*addhi3_zero_extend.const): New combiner insns.
1847 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1848 just 1 bit is affected.
1849 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1850 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1852 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1854 * omp-low.c (lower_omp_target): Mark data clauses with
1855 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1856 zero-length subarrays.
1858 2016-07-15 Richard Biener <rguenther@suse.de>
1860 PR tree-optimization/71881
1861 * tree-loop-distribution.c (destroy_loop): Remove blocks in
1862 reverse DOM order to make debug temp generation happy.
1864 2016-07-15 Richard Biener <rguenther@suse.de>
1866 PR tree-optimization/71887
1867 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1868 verify it is not zero for division / modulo handling.
1869 (value_replacement): Adjust.
1871 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
1872 Julian Brown <julian@codesourcery.com>
1874 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1875 * config/aarch64/aarch64-cost-tables.h
1876 (vulcan_extra_costs): New variable.
1877 * config/aarch64/aarch64.c
1878 (vulcan_addrcost_table): Likewise.
1879 (vulcan_regmove_cost): Likewise.
1880 (vulcan_vector_cost): Likewise.
1881 (vulcan_branch_cost): Likewise.
1882 (vulcan_tunings): Likewise.
1884 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
1886 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1887 (output_in_order): Loop over undefined variables too. Output them
1888 via assemble_undefined_decl. Skip variables that correspond to hard
1889 registers or have value-exprs.
1890 * varpool.c (symbol_table::output_variables): Handle undefined
1891 variables together with defined ones.
1893 2016-07-15 Richard Biener <rguenther@suse.de>
1895 * tree-ssa-pre.c (get_representative_for): Make sure to return
1896 the value number of SSA names.
1897 (phi_translate_1): get_representative_for cannot return NULL.
1898 (do_pre_regular_insertion): Remove redundant call to
1899 fully_constant_expression.
1900 (do_pre_partial_partial_insertion): Likewise.
1902 2016-07-15 Bin Cheng <bin.cheng@arm.com>
1904 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1905 (derive_simple_iv_with_niters): New function.
1906 (simple_iv): Rewrite using simple_iv_with_niters.
1907 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1908 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1910 (number_of_iterations_exit): Rewrite using above function.
1911 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1914 2016-07-15 Richard Biener <rguenther@suse.de>
1916 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1919 2016-07-14 Jakub Jelinek <jakub@redhat.com>
1921 PR tree-optimization/71872
1922 * tree-data-ref.c (get_references_in_stmt): Ignore references
1923 with is_gimple_constant get_base_address.
1925 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1927 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1928 (TARGET_HAVE_LDACQD): New macro.
1929 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1930 than TARGET_HAVE_LDACQ.
1931 (arm_load_acquire_exclusivedi): Likewise.
1932 (arm_store_release_exclusivedi): Likewise.
1934 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1936 PR rtl-optimization/71878
1937 * lra-constraints.c (match_reload): Pass information about other
1938 output operands. Create new unique register value if matching input
1939 operand shares same register value as output operand being considered.
1940 (curr_insn_transform): Record output operands already processed.
1942 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1945 PR tree-optimization/70923
1946 * tree-vect-patterns.c: Include mult-synthesis.h.
1947 (target_supports_mult_synth_alg): New function.
1948 (synth_lshift_by_additions): Likewise.
1949 (apply_binop_and_append_stmt): Likewise.
1950 (vect_synth_mult_by_constant): Likewise.
1951 (target_has_vecop_for_code): Likewise.
1952 (vect_recog_mult_pattern): Use above functions to synthesize vector
1953 multiplication by integer constants.
1955 2016-07-14 Alan Modra <amodra@gmail.com>
1957 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1958 gpr alternatives. Correct '*' placement on Y,r alternative.
1959 Add '*' on operand 1 of r,r alternative.
1961 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1963 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1964 * expmed.h: ... Here.
1966 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
1968 * gimple.h (stmt_can_terminate_bb_p): New function.
1969 * tree-cfg.c (need_fake_edge_p): Rename to ...
1970 (stmt_can_terminate_bb_p): ... this; return true if stmt can
1971 throw external; handle const and pure calls.
1972 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1974 2016-07-14 Richard Biener <rguenther@suse.de>
1976 PR tree-optimization/71866
1977 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1978 (do_hoist_insertion): Avoid endless recursion when we
1979 didn't insert anything because we managed to simplify
1980 things down to a constant or SSA name.
1981 (fully_constant_expression): Re-write in terms of ...
1982 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
1983 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1984 vn_nary_build_or_lookup_1.
1985 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1986 (vn_nary_build_or_lookup): ... this which now wraps it.
1988 2016-07-14 Alan Modra <amodra@gmail.com>
1991 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1992 with p9_vector override before power9-dform override.
1994 2016-07-13 Andi Kleen <ak@linux.intel.com>
1996 * value-prof.c (gimple_value_profile_transformations): Don't run
1997 when auto_profile is on.
1999 2016-07-13 Andi Kleen <ak@linux.intel.com>
2001 * auto-profile.c (update_inlined_ind_target,
2002 afdo_indirect_call): Print information to dump file.
2004 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
2006 * genrecog.c (special_predicate_operand_p): New function.
2007 (predicate_name): Move function.
2008 (validate_pattern): Don't warn about missing mode for all
2009 define_special_predicate predicates.
2011 2016-07-13 Bin Cheng <bin.cheng@arm.com>
2013 * tree-vect-data-refs.c (vect_no_alias_p): New function.
2014 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
2015 resolve alias checks which are known at compilation time.
2016 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
2017 alias checks are resolved. Move dump info for too many runtime
2018 alias checks to here...
2019 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
2021 2016-07-13 Richard Biener <rguenther@suse.de>
2023 PR tree-optimization/24574
2024 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
2025 position and add shift, rotate, divison and modulo support
2027 (value_replacement): Pass in argument position to absorbing_element_p.
2029 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
2032 * ipa-inline-transform.c (inline_call): Support
2033 instrumented thunks.
2035 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2037 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
2038 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
2040 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
2041 Baseline. Make initial alternative TARGET_32BIT only.
2042 (udivsi3): Likewise.
2043 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
2044 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
2047 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2049 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
2050 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
2051 availability with TARGET_HAVE_MOVT.
2052 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
2053 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
2054 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
2056 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
2057 extra instruction if MOVW is available. Use a cost variable
2058 incremented by COSTS_N_INSNS (1) when the condition match rather than
2059 returning an arithmetic expression based on COSTS_N_INSNS. Make
2060 constant with bottom half word zero cost 2 instruction if MOVW is
2062 * config/arm/arm.md (define_attr "arch"): Add v8mb.
2063 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
2064 target is ARMv8-M Baseline.
2065 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
2066 (arm_movtas_ze): Likewise.
2067 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
2068 alternative for constants satisfying j constraint.
2069 (thumb1_movsi_insn): Likewise.
2070 (movsi splitter for K alternative): Tighten condition to not trigger
2071 if movt is available and j constraint is satisfied.
2072 (Pe immediate splitter): Likewise.
2073 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
2074 constant fitting in an halfword to use MOVW.
2075 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
2078 2016-07-13 Richard Biener <rguenther@suse.de>
2081 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
2082 gimplifying the LHS. Make sure to gimplify a returning twice
2083 call LHS without using SSA names.
2085 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2087 * tree-data-ref.c (find_data_references_in_stmt): Remove
2088 unnecessary call to vec::release.
2089 (graphite_find_data_references_in_stmt): Likewise.
2090 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
2091 * tree-vect-stmts.c (vectorizable_condition): Likewise.
2093 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2095 * cfgexpand.c (expand_used_vars): Make the type of a local
2097 * genmatch.c (lower_for): Likewise.
2098 * haifa-sched.c (haifa_sched_init): Likewise.
2099 (add_to_speculative_block): Likewise.
2100 (create_check_block_twin): Likewise.
2101 * predict.c (handle_missing_profiles): Likewise.
2102 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
2103 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
2104 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
2106 (maybe_lower_iteration_bound): Likewise.
2107 * tree-ssa-sccvn.c (DFS): Likewise.
2108 * tree-stdarg.c (reachable_at_most_once): Likewise.
2109 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
2110 (vectorizable_store): Likewise.
2112 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2114 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
2115 (sccvn_dom_walker): make cond_stack an auto_vec.
2117 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2119 * ree.c (struct ext_state): Make type of members auto_vec.
2120 (find_and_remove_re): Adjust.
2122 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2124 * cfgexpand.c (struct stack_vars_data): Make type of fields
2126 (expand_used_vars): Adjust.
2128 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2130 * ipa.c (record_cdtor_fn): Adjust.
2131 (build_cdtor_fns): Likewise.
2132 (ipa_cdtor_merge): Make static_ctors and static_dtors local
2135 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2137 * genextract.c (struct accum_extract): Add constructor and make
2141 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2143 * tree.c (struct free_lang_data_d): Add constructor and change
2144 types of members to ones that automatically manage resources.
2145 (fld_worklist_push): Adjust.
2146 (find_decls_types): Likewise.
2147 (find_decls_types_in_eh_region): Likewise.
2148 (free_lang_data_in_cgraph): Stop manually creating and
2149 destroying members of free_lang_data_d.
2151 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
2153 PR rtl-optimization/68961
2154 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
2155 peephole variant. Use sse_reg_operand predicates.
2157 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
2159 * config/i386/predicates.md (x86_64_immediate_operand)
2160 <case CONST_INT>: Remove unneeded truncation to DImode.
2161 <case CONST>: Ditto.
2162 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
2164 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2167 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
2168 The xxperm and xxpermr instructions require that the 2nd input
2169 operand overlap with the output operand, and not the 1st.
2170 (altivec_vperm_v8hiv16qi): Likewise.
2171 (altivec_vperm_<mode>_uns_internal): Likewise.
2172 (altivec_vpermr_<mode>_internal): Likewise.
2173 (vperm_v8hiv4si): Likewise.
2174 (vperm_v16qiv8hi): Likewise.
2176 2016-07-12 Nathan Sidwell <nathan@acm.org>
2178 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
2179 when -mno-pic-data-is-text-relative is in effect, by default.
2180 * doc/invoke.texi (mpic-data-is-text-relative): Document new
2181 behavior and clarify.
2183 2016-07-12 Martin Liska <mliska@suse.cz>
2185 * params.def: Add avg-loop niter.
2186 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
2187 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2188 * doc/invoke.texi: Document the new parameter.
2190 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2193 * expr.c (store_constructor): Mask sign-extended bits when widening
2194 sub-word constructor element at the start of a word.
2196 2016-07-12 Martin Liska <mliska@suse.cz>
2198 * Makefile.in: Append rule for params-options.h.
2199 * params-options.h: New file.
2201 2016-07-12 Martin Liska <mliska@suse.cz>
2203 * ira-build.c (mark_loops_for_removal): Properly iterate
2206 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
2207 Richard Biener <rguenther@suse.de>
2209 PR tree-optimization/23286
2210 PR tree-optimization/70159
2211 * doc/invoke.texi: Document -fcode-hoisting.
2212 * common.opt (fcode-hoisting): New flag.
2213 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
2214 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
2215 (do_regular_insertion): Rename to ...
2216 (do_pre_regular_insertion): ... this and amend general comments
2217 on insertion strathegy.
2218 (do_partial_partial_insertion): Rename to ...
2219 (do_pre_partial_partial_insertion): ... this.
2220 (do_hoist_insertion): New function.
2221 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
2222 and call do_hoist_insertion properly.
2224 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
2225 (pass_pre::execute): Register hoist_insert stats.
2227 2016-07-12 Jakub Jelinek <jakub@redhat.com>
2230 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
2231 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
2232 is different from mode's bitsize. Small cleanup.
2234 2016-07-12 Richard Biener <rguenther@suse.de>
2236 PR rtl-optimization/68961
2237 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
2238 to simplify to a non-constant.
2240 2016-07-11 Jakub Jelinek <jakub@redhat.com>
2243 * omp-low.c (expand_omp_target): Gimplify device.
2245 PR tree-optimization/71823
2246 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
2247 to get vec_oprnds2 from op2.
2249 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
2252 Hoist common subexpressions.
2253 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
2255 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
2258 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
2259 prevent generation of 'stxsiwx' on pre Power8 hardware.
2261 2016-07-11 David Malcolm <dmalcolm@redhat.com>
2263 * input.c: Include cpplib.h.
2264 (selftest::temp_source_file): New class.
2265 (selftest::temp_source_file::temp_source_file): New ctor.
2266 (selftest::temp_source_file::~temp_source_file): New dtor.
2267 (selftest::should_have_column_data_p): New function.
2268 (selftest::test_should_have_column_data_p): New function.
2269 (selftest::temp_line_table): New class.
2270 (selftest::temp_line_table::temp_line_table): New ctor.
2271 (selftest::temp_line_table::~temp_line_table): New dtor.
2272 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
2273 it to create a temp_line_table.
2274 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
2275 locations that are known to have column data.
2276 (selftest::line_table_case): New struct.
2277 (selftest::test_reading_source_line): Move tempfile handling
2278 to class temp_source_file.
2279 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
2280 (selftest::assert_token_loc_eq): New function.
2281 (ASSERT_TOKEN_LOC_EQ): New macro.
2282 (selftest::test_lexer): New function.
2283 (selftest::boundary_locations): New array.
2284 (selftest::input_c_tests): Call test_should_have_column_data_p.
2285 Loop over a test matrix of interesting values of location and
2286 default_range_bits, calling test_lexer on each case in the matrix.
2287 Move call to test_accessing_ordinary_linemaps into the matrix.
2288 * selftest.h (ASSERT_EQ): Reimplement in terms of...
2289 (ASSERT_EQ_AT): New macro.
2291 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
2294 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2295 Don't convert TImode in debug insn.
2297 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2299 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
2300 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
2301 (tree_type_common::lang_flag_7): New.
2302 (tree_type_common::spare): Reduce size.
2303 * tree.h (TYPE_ALIGN_OK): Remove.
2304 (TYPE_LANG_FLAG_7): New.
2305 (get_inner_reference): Adjust header.
2306 * print-tree.c (print_node): Adjust.
2307 * expr.c (get_inner_reference): Remove parameter keep_aligning.
2308 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
2309 calls to get_inner_reference.
2310 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
2311 handling of TYPE_ALIGN_OK.
2312 * builtins.c (get_object_alignment_2): Adjust call to
2313 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
2314 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
2316 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
2317 * cfgexpand.c (expand_debug_expr): Likewise.
2318 * dbxout.c (dbxout_expand_expr): Likewise.
2319 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
2320 loc_list_from_tree, fortran_common): Likewise.
2321 * fold-const.c (optimize_bit_field_compare,
2322 decode_field_reference, fold_unary_loc, fold_comparison,
2323 split_address_to_core_and_offset): Likewise.
2324 * gimple-laddress.c (execute): Likewise.
2325 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
2326 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
2327 * hsa-gen.c (gen_hsa_addr): Likewise.
2328 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
2329 * tsan.c (instrument_expr): Likewise.
2330 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
2331 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
2332 * tree-affine.c (tree_to_aff_combination,
2333 get_inner_reference_aff): Adjust calls to get_inner_reference.
2334 * tree-data-ref.c (split_constant_offset_1,
2335 dr_analyze_innermost): Likewise.
2336 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
2337 * tree-sra.c (ipa_sra_check_caller): Likewise.
2338 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
2339 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
2340 bswap_replace): Likewise.
2341 * tree-vect-data-refs.c (vect_check_gather,
2342 vect_analyze_data_refs): Likewise.
2343 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
2344 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
2347 2016-07-11 David Malcolm <dmalcolm@redhat.com>
2349 * Makefile.in (selftest-valgrind): New phony target.
2350 * function-tests.c (selftest::build_cfg): Delete pass instances
2351 created by the test.
2352 (selftest::convert_to_ssa): Likewise.
2353 (selftest::test_expansion_to_rtl): Likewise.
2354 * tree-cfg.c (selftest::test_linear_chain): Release dominator
2356 (selftest::test_diamond): Likewise.
2358 2016-07-11 Richard Biener <rguenther@suse.de>
2360 PR tree-optimization/71816
2361 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
2362 than replacing all of its operands.
2364 2016-07-11 Alan Modra <amodra@gmail.com>
2366 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2367 (ctr<mode>): Add unspec.
2368 (ctr<mode>_internal*): Likewise.
2370 2016-07-08 James Bowman <james.bowman@ftdichip.com>
2372 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
2373 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
2375 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
2377 PR rtl-optimization/71621
2378 * lra-constraints.c (process_alt_operands): Check combination of
2381 2016-07-08 Jason Merrill <jason@redhat.com>
2382 Richard Biener <rguenther@suse.de>
2384 P0145: Refining Expression Order for C++.
2385 * gimplify.c (initial_rhs_predicate_for): New.
2386 (gimplfy_modify_expr): Gimplify RHS before LHS.
2388 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2391 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2392 Allow standard error handling to take over when a wrong number
2393 of arguments is presented to __builtin_vec_ld () or
2394 __builtin_vec_st ().
2396 2016-07-08 Jiong Wang <jiong.wang@arm.com>
2398 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2403 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2404 __builtin_aarch64_fmaxv2sf.
2405 (vmaxnmq_f32): Likewise.
2406 (vmaxnmq_f64): Likewise.
2407 (vminnm_f32): Likewise.
2408 (vminnmq_f32): Likewise.
2409 (vminnmq_f64): Likewise.
2411 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2414 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2415 enable -mfloat128-hardware by default.
2416 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2417 that IEEE 128-bit hardware support needs.
2418 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2419 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2420 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2421 floating point requires.
2422 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2423 -mfloat128 and -mfloat128-hardware changes.
2425 2016-07-08 Alan Hayward <alan.hayward@arm.com>
2427 PR tree-optimization/71667
2428 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
2430 2016-07-08 Martin Liska <mliska@suse.cz>
2433 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2434 folding produces SAVE_EXPRs, thus return false for the type.
2436 2016-07-07 Martin Liska <mliska@suse.cz>
2438 * file-find.c (remove_prefix): New function.
2439 * file-find.h (remove_prefix): Declare the function.
2440 * gcc-ar.c (main): Skip a folder of the wrapper if
2441 a wrapped binary would point to the same file.
2443 2016-07-07 Jan Hubicka <jh@suse.cz>
2445 * tree-scalar-evolution.c (iv_can_overflow_p): export.
2446 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
2447 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
2449 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
2452 * ipa-inline-analysis.c (compute_inline_parameters): Set
2453 local.can_change_signature to false for intrumentation
2456 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2458 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
2459 with TARGET_HAVE_MOVT.
2460 (TARGET_HAVE_MOVT): Define.
2461 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
2462 availability with TARGET_HAVE_MOVT.
2463 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
2465 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
2467 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
2468 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
2469 * config/arm/constraints.md (define_constraint "j"): Use
2470 TARGET_HAVE_MOVT to check MOVT availability.
2472 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2474 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
2476 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2478 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
2479 (armv8-m.main): Likewise.
2480 (armv8-m.main+dsp): Likewise.
2481 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
2482 (FL_FOR_ARCH8M_MAIN): Likewise.
2483 * config/arm/arm-tables.opt: Regenerate.
2484 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
2485 armv8-m.main+dsp to BE8_LINK_SPEC.
2486 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
2487 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
2488 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
2489 Baseline and Mainline.
2490 (arm_option_override_internal): Also disable arm_restrict_it when
2491 !arm_arch_notm. Update comment for -munaligned-access to also cover
2493 (arm_file_start): Increase buffer size for printing architecture name.
2494 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
2495 and armv8-m.main+dsp.
2496 (mno-unaligned-access): Clarify that this is disabled by default for
2497 ARMv8-M Baseline architectures as well.
2499 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2501 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
2502 decide whether to prevent some libgcc routines being included for some
2503 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
2504 link between this condition and the one in
2505 libgcc/config/arm/lib1func.S.
2507 2016-07-07 Richard Biener <rguenther@suse.de>
2509 * tree-ssa-pre.c: Include alias.h.
2510 (compute_avail): If we have multiple VN_REFERENCEs with the
2511 same hashtable entry adjust that to make it a valid replacement
2512 for all of them with respect to alignment and aliasing
2513 when doing insertion.
2514 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
2515 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
2517 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
2521 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2522 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2525 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2527 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
2528 (adjust_mems): Adjust.
2529 (adjust_insn): Likewise.
2530 (prepare_call_arguments): Likewise.
2532 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2534 * gcse.c (struct ls_expr): Make stores field a vector.
2535 (ldst_entry): Adjust.
2536 (free_ldst_entry): Likewise.
2537 (print_ldst_list): Likewise.
2538 (compute_ld_motion_mems): Likewise.
2539 (update_ld_motion_stores): Likewise.
2541 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2543 * gcse.c (struct ls_expr): Remove loads field.
2544 (ldst_entry): Adjust.
2545 (free_ldst_entry): Likewise.
2546 (print_ldst_list): Likewise.
2547 (compute_ld_motion_mems): Likewise.
2549 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2551 * store-motion.c (struct st_expr): Make antic_stores a vector.
2552 (st_expr_entry): Adjust.
2553 (free_st_expr_entry): Likewise.
2554 (print_store_motion_mems): Likewise.
2555 (find_moveable_store): Likewise.
2556 (compute_store_table): Likewise.
2557 (remove_reachable_equiv_notes): Likewise.
2558 (replace_store_insn): Likewise.
2559 (build_store_vectors): Likewise.
2561 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2563 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
2564 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
2566 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
2568 PR tree-optimization/71518
2569 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2570 misalign also for outer loops with negative step.
2572 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
2574 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
2575 (cortex_a53_shift): Add mov_shift.
2576 (cortex_a53_shift_reg): Add new reservation for register shifts.
2577 (cortex_a53_alu): Remove bfm.
2578 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
2579 (cortex_a53_alu_extr): Add new reservation for EXTR.
2580 (bypasses): Improve bypass modelling.
2582 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2585 * config/avr/avr.c (avr_asm_select_section): Strip off
2586 SECTION_DECLARED from flags when calling get_section.
2588 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2590 * tree-vectorizer.h (vect_memory_access_type): Add
2591 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
2592 * tree-vect-stmts.c (compare_step_with_zero): New function.
2593 (perm_mask_for_reverse): Move further up file.
2594 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
2596 (get_negative_load_store_type): New function.
2597 (get_load_store_type): Call it. Add an ncopies argument.
2598 (vectorizable_mask_load_store): Update call accordingly and
2599 remove tests for negative steps.
2600 (vectorizable_store, vectorizable_load): Likewise. Handle new
2601 memory_access_types.
2603 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2605 * tree-vectorizer.h (vect_memory_access_type): New enum.
2606 (_stmt_vec_info): Add a memory_access_type field.
2607 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
2608 (vect_model_store_cost): Take an access type instead of a boolean.
2609 (vect_model_load_cost): Likewise.
2610 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
2611 vect_model_store_cost and vect_model_load_cost.
2612 * tree-vect-stmts.c (vec_load_store_type): New enum.
2613 (vect_model_store_cost): Take an access type instead of a
2614 store_lanes_p boolean. Simplify tests.
2615 (vect_model_load_cost): Likewise, but for load_lanes_p.
2616 (get_group_load_store_type, get_load_store_type): New functions.
2617 (vectorizable_store): Use get_load_store_type. Record the access
2618 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
2619 (vectorizable_load): Likewise.
2620 (vectorizable_mask_load_store): Likewise. Replace is_store
2621 variable with vls_type.
2623 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2625 * tree-vectorizer.h (vect_grouped_load_supported): Add a
2626 single_element_p parameter.
2627 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2628 Check the PR65518 case here rather than in vectorizable_load.
2629 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
2630 * tree-vect-stmts.c (vectorizable_load): Likewise.
2632 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2634 * tree-vectorizer.h (gather_scatter_info): New structure.
2635 (vect_check_gather_scatter): Return a bool rather than a decl.
2636 Replace return-by-pointer arguments with a single
2637 gather_scatter_info *.
2638 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2639 (vect_analyze_data_refs): Update call accordingly.
2640 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2641 (vectorizable_mask_load_store): Likewise. Also record the
2642 offset dt and vectype in the gather_scatter_info.
2643 (vectorizable_store): Likewise.
2644 (vectorizable_load): Likewise.
2646 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2648 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2649 strided groups, use the cost of N scalar accesses instead
2650 of ncopies vector accesses.
2651 (vect_model_load_cost): Likewise.
2653 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2655 * tree-vect-stmts.c (vect_cost_group_size): Delete.
2656 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
2657 variable to indicate when once-per-group costs are being used.
2658 (vect_model_load_cost): Likewise. Fix comment and misindented code.
2660 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2662 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2663 peeling-for-gaps condition.
2665 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2667 * config/s390/s390.c (s390_expand_vec_init): Force initializer
2668 element to register if it doesn't match general_operand.
2670 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2671 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2673 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2675 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2676 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2677 (SIGNBIT): New mode iterator.
2678 (Fsignbit): New mode attribute.
2679 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2680 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2681 when direct moves are available.
2682 (signbit<mode>2_dm): New define_insn_and_split).
2683 (signbit<mode>2_dm2): New define_insn.
2685 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2687 PR rtl-optimization/71594
2688 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2689 into subregs of appropriate mode before trying to emit a conditional
2692 2016-07-05 Jan Hubicka <jh@suse.cz>
2694 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2695 (simple_iv): Use it.
2697 2016-07-05 Jan Hubicka <jh@suse.cz>
2699 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2701 2016-07-05 Jiong Wang <jiong.wang@arm.com>
2703 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2706 2016-07-05 Jan Hubicka <jh@suse.cz>
2708 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2711 2016-07-05 Richard Biener <rguenther@suse.de>
2713 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2714 Handle empty else block.
2715 (is_feasible_trace): Likewise.
2716 (split_paths): Likewise.
2718 2016-07-05 Richard Biener <rguenther@suse.de>
2720 * tree-loop-distribution.c (distribute_loop): Fix issue with
2721 the cost model loop.
2723 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
2725 * config/arm/neon-testgen.ml: Delete.
2726 * config/arm/neon.ml: Delete.
2728 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2731 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2732 directly using TREE_PURPOSE.
2734 2016-07-04 Jiong Wang <jiong.wang@arm.com>
2736 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2737 * config/aarch64/aarch64_neon.h: Likewise.
2738 * config/aarch64/arm_neon.h: Likewise.
2739 * config/aarch64/atomics.md: Likewise.
2740 * config/aarch64/aarch64-simd-builtins.def: Likewise.
2741 * doc/invoke.texi: Likewise.
2743 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2745 * config/s390/s390.md: Add "z13" cpu_facility.
2746 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2747 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2748 condition" type instructions.
2750 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2751 Jeff Law <law@redhat.com>
2753 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2754 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2756 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
2758 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2759 permutation for TARGET_AVX512F.
2760 (ix86_expand_vec_one_operand_perm_avx512): New function.
2761 (expand_vec_perm_1): Invoke introduced function.
2762 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2763 it may be not valid after vectorization.
2765 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2768 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2769 typo in comment. Only force to memory if it is a weak
2772 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
2773 Jiong Wang <jiong.wang@arm.com>
2775 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2776 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2777 (AARCH64_FL_F16): New.
2778 (AARCH64_FL_FOR_ARCH8_2): New.
2779 (AARCH64_ISA_8_2): New.
2780 (AARCH64_ISA_F16): New.
2781 (TARGET_FP_F16INST): New.
2782 (TARGET_SIMD_F16INST): New.
2783 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2784 ("fp"): Disabling "fp" also disables "fp16".
2785 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2786 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2787 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2788 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2790 2016-07-04 Jan Beulich <jbeulich@suse.com>
2792 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2794 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2797 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2798 the insns, use an insn form that does not adjust the offset on
2799 little endian systems.
2801 2016-07-01 Jan Beulich <jbeulich@suse.com>
2803 * varasm.c (get_variable_section): Validate initializer in
2804 named .bss-like sections.
2806 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2808 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2809 Exchange the order of the second and third operands in the vpermr
2810 instruction tmeplate.
2812 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2815 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2816 Disallow TDmode values.
2818 2016-07-01 Alan Modra <amodra@gmail.com>
2820 PR rtl-optimization/71709
2821 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2822 being set, not referenced.
2824 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2826 PR tree-optimization/70729
2827 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2828 of loop since it can be not valid after transformation.
2830 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2832 * config/arm/arm.c (thumb_reload_in_hi): Delete.
2833 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2835 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2837 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2840 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2843 * config/rs6000/constraints.md (wY constraint): New constraint to
2844 match the requirements for the LXSD and STXSD instructions.
2845 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2846 predicate to match the requirements for the LXSD and STXSD
2848 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2849 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2850 to make sure that the bottom 2 bits of offset are 0, the address
2851 form is offsettable, and no updating is done in the address mode.
2852 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2853 (movdi_internal32): Likewise
2854 (movdi_internal64): Likewise.
2856 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2858 PR tree-optimization/71707
2859 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2860 strinfo even for ADDR_EXPR ptr.
2862 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2864 * config/rs6000/altivec.md (darn_32): Change the condition to
2865 TARGET_P9_MISC instead of TARGET_MODULO.
2866 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2867 condition expression.
2868 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2869 condition expression.
2870 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2871 (DFP_TEST): New code iterator.
2872 (dfptstsfi_<code>_mode>): New define_expand.
2873 (*dfp_sgnfcnc_<mode>): New define_insn.
2874 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2875 definition next to BU_P9_MISC_1 definition and change the MASK
2876 value to RS6000_BTM_P9_MISC.
2877 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2878 (BU_P9_64BIT_MISC_0): Likewise.
2879 (BU_P9_DFP_MISC_0): New macro definition.
2880 (BU_P9_DFP_MISC_1): New macro definition.
2881 (BU_P9_DFP_MISC_2): New macro definition.
2882 (BU_P9_DFP_OVERLOAD_1): New macro definition.
2883 (BU_P9_DFP_OVERLOAD_2): New macro definition.
2884 (BU_P9_DFP_OVERLOAD_3): New macro definition.
2885 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2886 (TSTSFI_LT_TD): Likewise.
2887 (TSTSFI_EQ_DD): Likewise.
2888 (TSTSFI_EQ_TD): Likewise.
2889 (TSTSFI_GT_DD): Likewise.
2890 (TSTSFI_GT_TD): Likewise.
2891 (TSTSFI_OV_DD): Likewise.
2892 (TSTSFI_OV_TD): Likewise.
2893 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2894 (TSTSFI_LT_DD): Likewise.
2895 (TSTSFI_LT_TD): Likewise.
2896 (TSTSFI_EQ): Likewise.
2897 (TSTSFI_EQ_DD): Likewise.
2898 (TSTSFI_EQ_TD): Likewise.
2899 (TSTSFI_GT): Likewise.
2900 (TSTSFI_GT_DD): Likewise.
2901 (TSTSFI_GT_TD): Likewise.
2902 (TSTSFI_OV): Likewise.
2903 (TSTSFI_OV_DD): Likewise.
2904 (TSTSFI_OV_TD): Likewise.
2905 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2906 overloaded test significance functions.
2907 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2908 OPTION_MASK_P9_MISC into the representation of this mask.
2909 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2911 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2912 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2914 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2915 argument is a 6-bit unsigned literal value if the icode argument
2916 represents a DFP test significance built-in call.
2917 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2918 flag used independently and in combination with the
2919 RS6000_BTM_64BIT flag.
2920 (rs6000_opt_masks): Add entry for power9-misc command-line option.
2921 (rs6000_builtin_mask_names): Add entry for power9-misc
2922 command-line option.
2923 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2924 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
2925 RS6000_BTM_P9_MISC macros.
2926 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2927 option and change the description of the -mpower9-vector option to
2928 enable only vector instructions, removing its erroneously claimed
2929 support for scalar instructions.
2930 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2931 the ISA 3.0 digital floating point test significance built-in
2934 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
2936 * config/aarch64/aarch64.c (cortexa35_tunings):
2937 Enable AES fusion. Use cortexa57_branch_cost.
2938 (cortexa53_tunings): Use cortexa57_branch_cost.
2939 (cortexa72_tunings): Use cortexa57_branch_cost.
2940 Use AUTOPREFETCHER_WEAK.
2941 (cortexa73_tunings): Use cortexa57_branch_cost.
2943 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2944 James Greenhalgh <james.greenhalgh@arm.com>
2946 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2947 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2948 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2949 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2950 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2951 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2952 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2953 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2954 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2955 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2956 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2957 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2958 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2961 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
2962 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2964 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2966 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2968 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2971 * gcc.c (driver::build_option_suggestions): Pass "option" to
2972 add_misspelling_candidates.
2973 * opts-common.c (add_misspelling_candidates): Add "option" param;
2974 use it to avoid adding negated forms for options marked with
2976 * opts.h (add_misspelling_candidates): Add "option" param.
2978 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2981 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2982 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2983 first when permuting bitwise operation with rotate. Cast
2984 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2986 2016-06-29 David Malcolm <dmalcolm@redhat.com>
2988 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2989 for misspelled param names.
2990 * params.c: Include spellcheck.h.
2991 (find_param_fuzzy): New function.
2992 * params.h (find_param_fuzzy): New prototype.
2993 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2994 * spellcheck.h (struct edit_distance_traits<const char *>):
2997 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2999 * config/rs6000/predicates.md (const_0_to_7_operand): New
3000 predicate, recognize 0..7.
3001 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3002 support for doing extracts from V16QImode, V8HImode, V4SImode
3004 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
3005 vector extract support.
3006 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
3007 for ISA 3.0 vector extract.
3008 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
3009 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
3010 extracts of a constant element number from small integer vectors
3011 on 64-bit ISA 3.0 systems.
3012 (vsx_extract_<mode>_di): Likewise.
3013 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
3014 say when we can do ISA 3.0 vector extracts.
3015 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
3016 registers, using the stxsiwx instruction.
3018 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
3020 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
3021 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
3022 qdf24xx_regmove_cost, qdf24xx_tunings): New.
3023 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
3024 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
3025 * config/arm/arm.c (arm_qdf24xx_tune): New.
3027 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
3029 * config/aarch64/aarch64.c (cortexa53_tunings):
3030 Increase loop alignment to 8. Set function alignment to 16.
3031 (cortexa35_tunings): Likewise.
3032 (cortexa57_tunings): Increase loop alignment to 8.
3033 (cortexa72_tunings): Likewise.
3034 (cortexa73_tunings): Likewise.
3036 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
3038 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
3039 for arm_fp16_ok and arm_fp16_hw.
3040 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
3041 arm_fp16_alternative.
3043 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
3045 PR tree-optimization/71655
3046 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
3047 types when swapping operands.
3049 2016-06-29 Martin Liska <mliska@suse.cz>
3052 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
3053 * ipa-inline-transform.c (inline_call): Remove unnecessary call
3054 of build_optimization_node.
3056 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
3058 PR tree-optimization/70729
3059 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
3060 independent in loops having positive safelen value.
3061 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
3062 it may be not valid after vectorization.
3064 2016-06-29 Jakub Jelinek <jakub@redhat.com>
3066 PR tree-optimization/71625
3067 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
3068 is sorted by ascending list->offset. If PTR is non-NULL and there is
3069 previous strinfo, call get_stridx_plus_constant.
3070 (get_stridx): Pass exp as second argument to get_addr_stridx.
3071 (addr_stridxptr): Add missing list = list->next, so that there can be
3072 more than one entries in the list. Bump limit from 16 to 32. Ensure
3073 the list is sorted by ascending list->offset.
3074 (get_stridx_plus_constant): Adjust so that it can be also called with
3075 ADDR_EXPR instead of SSA_NAME as PTR.
3076 (handle_char_store): Pass NULL_TREE as second argument to
3079 2016-06-29 Richard Biener <rguenther@suse.de>
3081 PR rtl-optimization/68961
3082 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
3084 2016-06-29 Richard Biener <rguenther@suse.de>
3087 * alias.c (component_uses_parent_alias_set_from): Handle
3088 type punning through union accesses by using the union alias set.
3089 * gimple.c (gimple_get_alias_set): Remove union type punning case.
3091 2016-07-29 Richard Biener <rguenther@suse.de>
3093 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
3094 precision not matching mode precision.
3096 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
3098 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
3099 pa_output_arg_descriptor.
3100 (call_val_symref_64bit_post_reload): Likewise.
3101 (call_val_powf_64bit_post_reload): Likewise.
3102 (sibcall_internal_symref_64bit): Likewise.
3103 (sibcall_value_internal_symref_64bit): Likewise.
3105 2016-06-28 Jakub Jelinek <jakub@redhat.com>
3108 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
3109 a constant, force its SUBREG_REG into memory or register instead
3112 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3115 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
3116 * doc/invoke.texi (AVR Options): Document it.
3118 2016-06-28 Walter Lee <walt@tilera.com>
3120 * config/tilegx/linux.h: Do not include arch/icache.h
3121 (CLEAR_INSN_CACHE): Provide inlined definition directly.
3122 * config/tilepro/linux.h: Do not include arch/icache.h
3123 (CLEAR_INSN_CACHE): Provide inlined definition directly.
3125 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
3127 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
3128 for big-endian BIT_FIELD_REF.
3130 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
3132 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
3133 ('size' attribute): Add '128'.
3135 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
3136 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
3137 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
3138 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
3139 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
3140 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
3141 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
3142 *trunc<mode>df2_odd): Set size attribute to '128'.
3143 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
3144 * config/rs6000/power6.md (power6-fp): Include dfp type.
3145 * config/rs6000/power7.md (power7-fp): Likewise.
3146 * config/rs6000/power8.md (power8-fp): Likewise.
3147 * config/rs6000/power9.md: New file.
3148 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
3149 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
3150 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
3152 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
3153 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
3154 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
3155 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
3156 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
3157 dfp_dscri_<mode>): Change type attribute to dfp.
3158 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
3159 attribute to vecsimple.
3160 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
3161 and prefetch streams.
3162 (rs6000_option_override_internal): Remove temporary code setting
3163 tuning to power8. Don't set rs6000_sched_groups for power9.
3164 (last_scheduled_insn): Change to rtx_insn *.
3165 (divide_cnt, vec_load_pendulum): New variables.
3166 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
3167 (rs6000_issue_rate): Set issue rate for Power9.
3168 (is_power9_pairable_vec_type): New.
3169 (power9_sched_reorder2): New.
3170 (rs6000_sched_reorder2): Call new function for Power9 specific
3172 (insn_must_be_first_in_group): Remove Power9.
3173 (insn_must_be_last_in_group): Likewise.
3174 (force_new_group): Likewise.
3175 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
3176 Initialize divide_cnt/vec_load_pendulum.
3177 (_rs6000_sched_context, rs6000_init_sched_context,
3178 rs6000_set_sched_context): Handle context save/restore of new
3181 2016-06-28 Richard Biener <rguenther@suse.de>
3183 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3184 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
3185 COMPONENT_REF operand.
3186 (nonoverlapping_component_refs_p): Likewise.
3187 * stor-layout.c (start_bitfield_representative): Mark
3188 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
3190 2016-06-28 Jakub Jelinek <jakub@redhat.com>
3192 * Makefile.in: Don't cat ../stage_current if it does not exist.
3194 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
3195 last argument is a bit-field.
3197 PR rtl-optimization/71673
3198 * internal-fn.c (expand_arith_overflow_result_store): Use
3199 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
3200 expand_simple_binop.
3203 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
3204 expand_ifn_atomic_compare_exchange): New functions.
3205 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
3206 * tree.h (build_call_expr_internal_loc): Rename to ...
3207 (build_call_expr_internal_loc_array): ... this. Fix up type of
3209 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
3210 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
3211 ATOMIC_COMPARE_EXCHANGE result.
3212 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
3213 * gimple-fold.h (optimize_atomic_compare_exchange_p,
3214 fold_builtin_atomic_compare_exchange): New prototypes.
3215 * gimple-fold.c (optimize_atomic_compare_exchange_p,
3216 fold_builtin_atomic_compare_exchange): New functions..
3217 * tree-ssa.c (execute_update_addresses_taken): If
3218 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
3219 of call when finding addressable vars, and if such var becomes
3220 non-addressable, call fold_builtin_atomic_compare_exchange.
3222 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
3225 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
3226 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
3228 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
3230 * config/rs6000/rs6000.md ('type' attribute): Add
3231 veclogical,veccmpfx,vecexts,vecmove insn types.
3232 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
3233 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
3234 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
3235 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
3236 *nabs<mode>2_hw): Change type to vecmove.
3237 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
3238 *boolcc<mode>3_internal, *eqv<mode>3_internal,
3239 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
3240 *ieee_128bit_vsx_abs<mode>2_internal,
3241 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
3242 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
3243 *ieee128_mtvsrd_32bit): Change type to veclogical.
3244 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
3245 *movdi_internal32, *movdi_internal64): Update insn types.
3246 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
3247 vsx_extract_<mode>): Change type to veclogical.
3248 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
3249 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
3250 *vsx_sign_extend_si_v2di): Change type to vecexts.
3251 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
3253 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
3254 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
3255 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
3256 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
3257 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
3258 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
3259 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
3260 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
3261 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
3262 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
3263 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
3264 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
3265 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
3266 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
3267 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
3268 (ppc7450-vecsimple): Add veclogical, vecmove.
3269 (ppc7450-veccmp): Add veccmpfx.
3270 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
3272 (ppc8540_vector_compare): Add veccmpfx.
3273 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
3274 * config/rs6000/cell.md (cell-fp): Add fpsimple.
3275 (cell-vecsimple): Add veclogical, vecmove.
3276 (cell-veccmp): Add veccmpfx.
3277 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
3278 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
3280 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
3281 * config/rs6000/power4.md (power4-fp): Add fpsimple.
3282 (power4-vecsimple): Add veclogical, vecmove.
3283 (power4-veccmp): Add veccmpfx.
3284 * config/rs6000/power5.md (power5-fp): Add fpsimple.
3285 * config/rs6000/power6.md (power6-fp): Add fpsimple.
3286 (power6-vecsimple): Add veclogical, vecmove.
3287 (power6-veccmp): Add veccmpfx.
3288 * config/rs6000/power7.md (power7-fp): Add fpsimple.
3289 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
3290 * config/rs6000/power8.md (power8-fp): Add fpsimple.
3291 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
3292 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
3293 * config/rs6000/titan.md (titan_fp): Add fpsimple.
3294 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
3296 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
3298 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
3301 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3302 OPTION_MASK_P9_DFORM_VECTOR.
3303 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
3304 disable -mpower9-dform-vector when using reload.
3305 (quad_address_p): Remove 'gpr_p' argument and all associated code.
3306 New 'strict' argument. Update all callers. Add strict addressing
3308 (rs6000_legitimate_offset_address_p): Remove call to
3309 virtual_stack_registers_memory_p.
3310 (rs6000_legitimize_reload_address): Add quad address support.
3311 (rs6000_legitimate_address_p): Move call to quad_address_p above
3312 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
3313 to account for new strict usage.
3314 (rs6000_output_move_128bit): Adjust quad_address_p args to account
3315 for new strict usage.
3316 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
3318 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
3325 * config/i386/i386.c (ix86_spill_class): Disable condition to
3326 always return NO_REGS.
3328 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
3330 * predict.c: Include gimple-pretty-print.h
3331 (predicted_by_loop_heuristics_p): Check also
3332 PRED_LOOP_EXIT_WITH_RECURSION
3333 (predict_loops): Find self recursive calls and use special purpose
3334 predictors for them; dump log about decisions.
3335 (pass_profile::execute): Dump info about #of iterations.
3336 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
3337 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
3339 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
3341 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
3342 output_asm_insn calls and shorten long lines. Output .CALL
3343 argument descriptor using pa_output_arg_descriptor. Add various
3344 inline $$dyncall and other optimizations.
3345 (pa_attr_length_indirect_call): Adjust ordering and lengths.
3347 2016-06-25 Jakub Jelinek <jakub@redhat.com>
3349 PR tree-optimization/71643
3350 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
3353 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
3354 leak a bitmap if dep_bb is NULL.
3356 PR tree-optimization/71631
3357 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
3358 to rewrite_expr_tree even if negate_result, move new_lhs var
3359 declaration and initialization earlier, for powi_result set afterwards
3360 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
3361 if new_lhs != lhs, and don't shadow gsi var.
3363 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
3365 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
3366 Add in_loop parameter.
3367 (predict_loops): Add loop guard heuristics.
3368 * predict.def (PRED_LOOP_GUARD): New heuristics.
3370 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
3372 * predict.c: Include ipa-utils.h
3373 (tree_bb_level_prediction): Predict recursive calls.
3374 (tree_estimate_probability_bb): Skip inexpensive calls for call
3376 * predict.def (PRED_RECURSIVE_CALL): New.
3378 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3380 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
3381 (BU_FLOAT128_1): Likewise.
3383 (COPYSIGNQ): Likewise.
3384 (RS6000_BUILTIN_NANQ): Likewise.
3385 (RS6000_BUILTIN_NANSQ): Likewise.
3386 (RS6000_BUILTIN_INFQ): Likewise.
3387 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
3388 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
3389 (TARGET_FOLD_BUILTIN): New #define.
3390 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
3391 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
3392 (rs6000_fold_builtin): New target hook implementation, handling
3393 folding of 128-bit NaNs and infinities.
3394 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
3395 entries are filled in to avoid problems during bootstrap
3396 self-test; define builtins for 128-bit NaNs and infinities.
3397 (rs6000_opt_mask): Add entry for float128.
3398 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
3399 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
3400 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3401 (const_str_type_node): New #define.
3402 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3403 to a define_expand that dispatches to either copysign<mode>3_soft
3404 or copysign<mode>3_hard.
3405 (copysign<mode>3_hard): Rename from copysign<mode>3.
3406 (copysign<mode>3_soft): New define_insn.
3407 * doc/extend.texi: Document new builtins.
3409 2016-06-24 Jakub Jelinek <jakub@redhat.com>
3411 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
3412 PRIu64 instead of lu.
3414 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
3417 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
3420 2016-06-24 Jakub Jelinek <jakub@redhat.com>
3422 PR tree-optimization/71647
3423 * omp-low.c (lower_rec_input_clauses): Convert
3424 omp_clause_aligned_alignment (c) to size_type_node for the
3425 last argument of __builtin_assume_aligned.
3427 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
3429 * configure.ac (calling ___tls_get_addr via GOT): New
3430 assembler/linker check.
3431 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
3432 assembler and linker supports calling ___tls_get_addr via GOT.
3433 Otherise, defined to 0.
3434 * config.in: Regenerated.
3435 * configure: Likewise.
3436 * config/i386/constraints.md (Yb): New constraint.
3437 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
3438 (REG_CLASS_NAMES): Likewise.
3439 (REG_CLASS_CONTENTS): Likewise.
3440 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
3441 the b constraint with the Yb constraint. Call ___tls_get_addr
3442 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
3444 (*tls_local_dynamic_base_32_gnu): Likewise.
3445 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
3446 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
3447 (*tls_local_dynamic_base_64_<mode>): Likewise.
3449 2016-06-24 Martin Liska <mliska@suse.cz>
3451 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
3452 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
3454 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
3455 argument to true if the expected number of iterations is
3458 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
3460 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
3461 assemble for 32bit target.
3462 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
3463 and $ld_ix86_gld_32_opt to link for 32bit target.
3464 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
3465 * configure: Regenerate.
3467 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3469 * config/arm/arm.c (int_log2): Delete definition and prototype.
3470 (shift_op): Use exact_log2 instead of int_log2.
3471 (vfp3_const_double_for_fract_bits): Likewise.
3473 2016-06-24 Jakub Jelinek <jakub@redhat.com>
3475 * internal-fn.c (expand_arith_set_overflow): New function.
3476 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
3478 (expand_arith_overflow_result_store): Likewise. Handle precision
3479 smaller than mode precision.
3480 * tree-vrp.c (extract_range_basic): For imag part, handle
3481 properly signed 1-bit precision result.
3482 * doc/extend.texi (__builtin_add_overflow): Document that last
3483 argument can't be pointer to enumerated or boolean type.
3484 (__builtin_add_overflow_p): Document that last argument can't
3485 have enumerated or boolean type.
3487 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3488 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3490 * config/rs6000/predicates.md (splat_input_operand): Rework.
3491 Don't allow constants, since the insns that use this predicate
3492 don't support constants. Constants are handled by other insns
3493 that are created via combine. During and after register
3494 allocation, only allow indexed or indirect addresses, and not
3495 general addresses. Only allow modes supported by the hardware.
3496 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
3497 comment. Move check for using VSPLTIS<x> to a common location,
3498 instead of doing it in two different places.
3500 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
3502 * config/i386/driver-i386.c (host_detect_local_cpu): Set
3503 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
3504 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
3505 signature_CENTAUR_ebx.
3507 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
3511 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
3512 (as_ix86_gas_32_opt): This.
3513 (ld_ix86_tls_ldm_opt): Renamed to ...
3514 (ld_ix86_gld_32_opt): This.
3515 (R_386_TLS_LDM reloc): Updated.
3516 (R_386_GOT32X reloc): New assembler/linker check.
3517 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
3518 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
3520 * config.in: Regenerated.
3521 * configure: Likewise.
3522 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
3523 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
3524 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
3525 if ix86_force_load_from_GOT_p returns true.
3526 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
3527 ix86_force_load_from_GOT_p returns true.
3528 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
3529 the external function address via the GOT slot.
3530 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
3531 HAVE_AS_IX86_GOT32X before returning false.
3532 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
3533 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
3535 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
3537 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
3539 2016-06-23 Andi Kleen <ak@linux.intel.com>
3541 * Makefile.in: Regenerate.
3542 * doc/install.texi: Document autoprofiledbootstrap.
3544 2016-06-23 Andi Kleen <ak@linux.intel.com>
3546 * config/i386/gcc-auto-profile: New file.
3548 2016-06-23 Martin Liska <mliska@suse.cz>
3551 * predict.c (predict_loops): Revert the hunk that was removed
3554 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
3556 * config.gcc: Add support for arm*-*-phoenix* targets.
3557 * config/arm/t-phoenix: New.
3558 * config/phoenix.h: New.
3560 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
3561 H.J. Lu <hongjiu.lu@intel.com>
3564 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
3565 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
3566 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
3567 ix86_force_load_from_GOT_p returns true.
3568 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
3569 ix86_force_load_from_GOT_p returns true.
3570 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
3571 ix86_force_load_from_GOT_p returns true.
3572 (ix86_expand_move): Load the external function address via the
3573 GOT slot if ix86_force_load_from_GOT_p returns true.
3574 * config/i386/predicates.md (x86_64_immediate_operand): Return
3575 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
3576 (x86_64_zext_immediate_operand): Ditto.
3578 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
3580 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
3582 2016-06-22 David Malcolm <dmalcolm@redhat.com>
3585 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
3586 * diagnostic.c (pedwarn_at_rich_loc): New function.
3587 * spellcheck.h (best_match::best_match): Add a
3588 "best_distance_so_far" optional parameter.
3589 (best_match::set_best_so_far): New method.
3590 (best_match::get_best_distance): New accessor.
3591 (best_match::get_best_candidate_length): New accessor.
3593 2016-06-22 Nick Clifton <nickc@redhat.com>
3595 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
3596 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
3597 modes are accepted as well.
3598 (ucompare_loc_descriptor): Likewise.
3599 (minmax_loc_descriptor): Likewise.
3600 (clz_loc_descriptor): Likewise.
3601 (popcount_loc_descriptor): Likewise.
3602 (bswap_loc_descriptor): Likewise.
3603 (rotate_loc_descriptor): Likewise.
3604 (mem_loc_descriptor): Likewise.
3605 (loc_descriptor): Likewise.
3607 2016-06-22 David Malcolm <dmalcolm@redhat.com>
3609 * common.opt (fdiagnostics-parseable-fixits): New option.
3610 * diagnostic.c: Include "selftest.h".
3611 (print_escaped_string): New function.
3612 (print_parseable_fixits): New function.
3613 (diagnostic_report_diagnostic): Call print_parseable_fixits.
3614 (selftest::assert_print_escaped_string): New function.
3615 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
3616 (selftest::test_print_escaped_string): New function.
3617 (selftest::test_print_parseable_fixits_none): New function.
3618 (selftest::test_print_parseable_fixits_insert): New function.
3619 (selftest::test_print_parseable_fixits_remove): New function.
3620 (selftest::test_print_parseable_fixits_replace): New function.
3621 (selftest::diagnostic_c_tests): New function.
3622 * diagnostic.h (struct diagnostic_context): Add field
3623 "parseable_fixits_p".
3624 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3625 -fdiagnostics-parseable-fixits.
3626 (-fdiagnostics-parseable-fixits): New option.
3627 * opts.c (common_handle_option): Handle
3628 -fdiagnostics-parseable-fixits.
3629 * selftest-run-tests.c (selftest::run_tests): Call
3630 selftest::diagnostic_c_tests.
3631 * selftest.h (selftest::diagnostic_c_tests): New prototype.
3633 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
3635 PR tree-optimization/71488
3636 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3637 comparison of boolean vectors.
3638 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3639 of boolean vectors using bitwise operations.
3641 2016-06-22 Andreas Schwab <schwab@suse.de>
3643 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3646 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
3648 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3650 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
3652 * config/i386/i386.c (print_reg): Emit an error message on attempt to
3655 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3657 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3658 * config/arm/arm-cores.def (cortex-a73): New entry.
3659 (cortex-a73.cortex-a35): Likewise.
3660 (cortex-a73.cortex-a53): Likewise.
3661 * config/arm/arm-tables.opt: Regenerate.
3662 * config/arm/arm-tune.md: Likewise.
3663 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3664 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3665 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3666 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3667 * doc/invoke.texi (ARM Options): Document cortex-a73,
3668 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3670 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3672 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3673 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3674 (cortex-a73.cortex-a35): Likewise.
3675 (cortex-a73.cortex-a53): Likewise.
3676 * config/aarch64/aarch64-tune.md: Regenerate.
3677 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3678 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3681 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3683 * configure.ac (gcc_cv_as_compress_debug): Remove
3684 --compress-debug-sections as extra as switch.
3685 Handle gas --compress-debug-sections=type.
3686 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3687 Handle gld --compress-debug-sections=type.
3688 * configure: Regenerate.
3690 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
3692 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3694 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
3696 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3697 (do_rewrite): likewise.
3699 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3701 * common/config/mep/mep-common.c: Remove.
3702 * config.gcc: Remove mep-* support.
3703 * config/mep/constraints.md: Remove.
3704 * config/mep/default.h: Remove.
3705 * config/mep/intrinsics.h: Remove.
3706 * config/mep/intrinsics.md: Remove.
3707 * config/mep/ivc2-template.h: Remove.
3708 * config/mep/mep-c5.cpu: Remove.
3709 * config/mep/mep-core.cpu: Remove.
3710 * config/mep/mep-default.cpu: Remove.
3711 * config/mep/mep-ext-cop.cpu: Remove.
3712 * config/mep/mep-intrin.h: Remove.
3713 * config/mep/mep-ivc2.cpu: Remove.
3714 * config/mep/mep-pragma.c: Remove.
3715 * config/mep/mep-protos.h: Remove.
3716 * config/mep/mep.c: Remove.
3717 * config/mep/mep.cpu: Remove.
3718 * config/mep/mep.h: Remove.
3719 * config/mep/mep.md: Remove.
3720 * config/mep/mep.opt: Remove.
3721 * config/mep/predicates.md: Remove.
3722 * config/mep/t-mep: Remove.
3723 * doc/install.texi: Remove mep-* documentation.
3724 * doc/md.texi: Likewise.
3726 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3728 * config.gcc: Remove support for avr-rtems.
3729 * config/avr/gen-avr-mmcu-specs.c: Likewise.
3730 * config/avr/rtems.h: Remove.
3731 * config/avr/t-rtems: Remove.
3733 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3735 * config.gcc: Remove m32r-rtems support.
3736 * config/m32r/rtems.h: Remove.
3738 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3740 * config.gcc: Remove h8300-rtems support.
3741 * config/h8300/rtems.h: Remove.
3742 * config/h8300/t-rtems: Remove.
3744 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3746 * config.gcc: Remove support for knetbsd.
3747 * configure.ac: Likewise.
3748 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
3749 * config/knetbsd-gnu.h: Remove.
3750 * configure: Regenerate.
3752 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3754 * config.gcc: Remove support for openbsd 2 and 3.
3755 * config/openbsd-oldgas.h: Remove.
3757 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3759 * config.gcc: Remove interix support.
3760 * config/i386/i386-interix.h: Remove.
3761 * config/i386/interix.opt: Remove.
3762 * config/i386/t-interix: Remove.
3763 * configure: Regenerate.
3764 * configure.ac: Remove interix support.
3765 * doc/install.texi: Remove interix documentation.
3767 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3769 * config/rs6000/rs6000.h: Add conditional preprocessing directives
3770 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3773 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3775 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3776 they are both PLACEHOLDER_EXPRs.
3778 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3780 * stor-layout.c (layout_type): Move setting complex MODE to
3781 layout_type, instead of setting it ahead of time by the caller.
3782 * tree.c (build_complex_type): Likewise.
3784 2016-06-21 Martin Liska <mliska@suse.cz>
3786 * predict.c (force_edge_cold): Replace imposisble with
3789 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3791 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3792 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3794 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3796 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3798 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
3799 Ilya Enkovich <ilya.enkovich@intel.com>
3802 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3803 New member function to convert V1TImode register to SUBREG
3804 TImode in debug insn.
3805 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3806 after changing register mode to V1TImode.
3808 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
3810 * config/aarch64/aarch64-cores.def (vulcan): New core.
3811 * config/aarch64/aarch64-tune.md: Regenerate.
3812 * doc/invoke.texi: Document vulcan as an available option.
3814 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3816 * cse.c (canon_asm_operands): New function extracted from...
3817 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
3818 either standalone or member of a PARALLEL.
3820 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3823 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3824 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3825 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3827 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3830 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3831 constant addresses if can_create_pseudo_p.
3833 2016-06-21 Jakub Jelinek <jakub@redhat.com>
3835 PR tree-optimization/71588
3836 * tree-ssa-strlen.c (valid_builtin_call): New function.
3837 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3840 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3843 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3844 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3845 for conversion of scalar user var to complex type and use the
3846 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
3849 PR rtl-optimization/71591
3850 * toplev.c (toplev::run_self_tests): If no_backend, complain and
3851 don't run any tests.
3853 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
3856 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3857 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
3858 space for PIC with non-v32 and the common non-PIC "jump".
3860 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3863 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3864 returned values and add UN*/LTGT/*ORDERED cases with values matching
3865 D operand modifier on vcmp for AVX.
3867 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3869 * config/aarch64/aarch64.opt
3870 (mpc-relative-literal-loads): Rename internal option name.
3871 * config/aarch64/aarch64.c
3872 (aarch64_nopcrelative_literal_loads): Rename to
3873 aarch64_pcrelative_literal_loads.
3874 (aarch64_expand_mov_immediate): Likewise.
3875 (aarch64_secondary_reload): Likewise.
3876 (aarch64_can_use_per_function_literal_pools_p): Likewise.
3877 (aarch64_override_options_after_change_1): Rename and simplify logic.
3878 (aarch64_classify_symbol): Merge large model checks into switch,
3879 remove pc-relative load check.
3881 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3883 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3884 costs relative to the cost of a register move.
3886 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3888 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3889 (vcvt_n_f64_u64): Likewise.
3890 (vcvt_n_s64_f64): Likewise.
3891 (vcvt_n_u64_f64): Likewise.
3892 (vcvt_f64_s64): Likewise.
3893 (vrecpe_f64): Likewise.
3894 (vcvt_f64_u64): Likewise.
3895 (vrecps_f64): Likewise.
3897 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3899 * config/aarch64/aarch64.md
3900 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3902 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
3904 * config/aarch64/aarch64-builtins.c
3905 (aarch64_types_binop_uss_qualifiers): Delete.
3906 (TYPES_BINOP_USS): Likewise.
3907 (aarch64_types_binop_sus_qualifiers): Likewise.
3908 (TYPES_BINOP_SUS): Likewise.
3909 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3910 (TYPES_FCVTIMM_SUS): Likewise.
3911 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3913 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3914 (fcvtzs): Use SHIFTIMM rather than BINOP.
3915 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3917 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3919 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3920 costs relative to the cost of a register move.
3922 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3924 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3925 Allow scalar/single vector modes to be tieable.
3927 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3929 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3931 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3933 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3935 * tree.h (TYPE_ALIGN): Likewise.
3937 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3940 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3942 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3944 * config/avr/avr.c (avr_print_operand): Fix "format not a string
3945 literal" build warnings.
3946 (avr_print_operand_address): Dito.
3948 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
3951 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3952 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3954 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
3956 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3958 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
3961 * reload1.c (reload): Pass 0 to finish_spills when called because
3962 update_eliminables_and_spill returns true and remove did_spill.
3963 (finish_spills): Adjust comment and document GLOBAL parameter.
3965 2016-06-17 DJ Delorie <dj@redhat.com>
3968 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3969 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3970 (umulqihi3_virt): Likewise.
3971 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3972 (umulqihi3_real): Likewise.
3974 2016-06-17 Martin Liska <mliska@suse.cz>
3976 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3978 2016-06-17 Martin Liska <mliska@suse.cz>
3980 * predict.def: PRED_LOOP_EXIT from 92 to 85.
3982 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
3984 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3986 (vaddq_f32): Likewise.
3987 (vmul_f32): Likewise.
3988 (vmulq_f32): Likewise.
3989 (vsub_f32): Likewise.
3990 (vsubq_f32): Likewise.
3992 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3994 PR tree-optimization/71347
3995 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3996 cost for all uses in group.
3998 2016-06-17 Bin Cheng <bin.cheng@arm.com>
4000 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4001 insert gimple seq if it's not empty.
4003 2016-06-17 Bin Cheng <bin.cheng@arm.com>
4005 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
4007 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
4009 (comp_dr_with_seg_len_pair): Ditto.
4010 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
4011 struct dr_with_seg_len_pair against DR_OFFSET.
4012 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
4015 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
4017 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
4019 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
4021 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
4022 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
4023 (pa_output_millicode_call): Likewise.
4024 (pa_output_call): Likewise.
4025 (pa_output_indirect_call): Likewise.
4026 (pa_asm_output_mi_thunk): Likewise.
4028 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4030 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
4032 2016-06-16 Martin Liska <mliska@suse.cz>
4034 * predict.c (combine_predictions_for_insn): When we find a first
4035 match predictor, we should consider just predictors with
4036 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
4037 DS theory predictor.
4038 (combine_predictions_for_bb): Likewise.
4040 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4042 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
4043 with base of reference to struct.
4045 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
4047 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
4049 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4052 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
4053 progmem_swtable_section.
4054 (progmem_swtable_section): Remove.
4055 (avr_asm_function_rodata_section): Remove.
4056 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
4057 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
4059 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
4061 * config/i386/driver-i386.c (host_detect_local_cpu): Set
4062 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
4063 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
4064 signature_CENTAUR_ebx.
4065 * config/i386/i386.c (ix86_option_override_internal): Add
4066 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
4067 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
4068 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
4070 2016-06-16 Martin Liska <mliska@suse.cz>
4072 * predict.def: Add fortran loop preheader predictor.
4073 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
4074 fold IFN_BUILTIN_EXPECT with a known constant argument.
4076 2016-06-16 Martin Liska <mliska@suse.cz>
4078 * predict.def: Add 'Fortran' to display text of all
4079 PRED_FORTRAN_* predictors.
4081 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
4084 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
4085 [IA64_BUILTIN_NANSQ]: Ditto.
4086 (ia64_fold_builtin): New function.
4087 (TARGET_FOLD_BUILTIN): New define.
4088 (ia64_init_builtins) Declare const_string_type node.
4089 Add __builtin_nanq and __builtin_nansq builtin functions.
4090 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
4092 2016-06-16 Nick Clifton <nickc@redhat.com>
4094 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
4095 MSP430_HWMULT_ prefix to enum values.
4096 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
4097 * config/msp430/msp430.c: Update use of enum values.
4098 * config/msp430/msp430.md: Likewise.
4099 * config/msp430/msp430.opt: Likewise.
4101 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
4103 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
4104 of comparsions in the last iteration.
4106 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
4107 Joern Rennecke <joern.rennecke@embecosm.com>
4109 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
4111 (arc_needs_pcl_p): Add GOTOFFPC.
4112 (arc_legitimate_pic_addr_p): Likewise.
4113 (arc_output_pic_addr_const): Likewise.
4114 (arc_legitimize_pic_address): Generate a pc-relative address using
4116 (arc_output_libcall): Use @pcl syntax.
4117 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
4118 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
4119 (*movsi_insn): Use @pcl syntax.
4120 (doloop_begin_i): Likewise.
4122 2016-06-16 Martin Liska <mliska@suse.cz>
4124 * predict.def: Define a new predictor.
4126 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
4128 * config/arc/arc.opt (mtp-regno): Update text.
4130 2016-06-16 Renlin Li <renlin.li@arm.com>
4132 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
4134 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4137 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
4138 (setcc + and peephole2): Likewise.
4140 PR rtl-optimization/71532
4141 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
4144 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4146 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
4147 DImode constants with XXSPLTIB in vector registers.
4148 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
4149 vsx_extract_<mode>_internal{1,2} into a single insn that handles
4150 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
4151 extraction of the element at the top of the register as a scalar
4153 (vsx_extract_<mode>_internal1): Likewise.
4154 (vsx_extract_<mode>_internal2): Likewise.
4155 * config/rs6000/constraints.md (wi constraint): Remove a comment
4156 about DImode not being allowed in Altivec registers.
4157 (wB constraint): New constraint for constants that can be
4158 generated in Altivec registers with VSPLTISW/VUPKHSW.
4159 * config/rs6000/predicates.md (xxspltib_constant_split): Update
4161 (xxspltib_constant_nosplit): Likewise.
4162 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
4163 support for -mupper-regs-di to enable DImode to go into Altivec
4165 (POWERPC_MASKS): Likewise.
4166 (power7 cpu): Likewise.
4167 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
4168 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
4169 for DImode being allowed in Altivec registers. Update wi/wj
4170 constraints. Set scalar_in_vmx_p flag.
4171 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
4172 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
4173 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
4174 (rs6000_opt_masks): Add -mupper-regs-di.
4175 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
4176 direct move to use wi and not wj.
4178 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
4180 (floatunssi<mode>2_lfiwzx_mem): Likewise.
4181 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
4182 any VSX register, instead of just Altivec registers, to allow
4183 either operand to be an Altivec register or both.
4184 (fixuns_trunc<mode>di2_fctiduz): Likewise.
4185 (movdi_internal32): Add support for -mupper-regs-di. Add support
4186 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
4187 the alternatives and attributes to be lined up to be easier to
4189 (movdi_internal64): Likewise.
4190 (64-bit DImode splitters): Change predicates to only split loading
4191 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
4192 load constants in ISA 3.0 or ISA 2.07 respectively.
4193 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4194 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
4195 mention -mcpu=power9 sets these options.
4196 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
4199 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4202 * config/avr/avr.c (avr_set_current_function): Warn misspelled
4203 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
4204 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
4205 by default to warn misspelled interrupt/ signal handler.
4206 * doc/invoke.texi (AVR Options): Document it. Update description
4207 for -nodevicelib option.
4209 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4211 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
4212 up parentheses. Use GET_MODE_UNIT_BITSIZE.
4213 (aarch64_<sur>shll2_n<mode>): Likewise.
4215 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
4218 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
4219 DECL_CONTEXT for copied arguments.
4221 2016-06-15 Alan Hayward <alan.hayward@arm.com>
4223 PR tree-optimization/71483
4224 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
4227 2016-06-15 Martin Liska <mliska@suse.cz>
4229 * predict.c (tree_predict_by_opcode): Call predict_edge_def
4230 instead of predict_edge w/o a probability.
4232 2016-06-15 Alan Hayward <alan.hayward@arm.com>
4234 PR tree-optimization/71439
4235 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
4238 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4240 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
4241 register subregs in SET_SRC.
4243 2016-06-15 Richard Biener <rguenther@suse.de>
4245 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
4248 2016-06-15 Richard Biener <rguenther@suse.de>
4250 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
4251 not consider dependences between accesses that belong to the
4253 (vect_analyze_data_ref_dependences): Do not analyze read-read
4254 or self-dependences.
4256 2016-06-14 David Malcolm <dmalcolm@redhat.com>
4258 * spellcheck-tree.c: Include spellcheck-tree.h rather than
4260 (find_closest_identifier): Reimplement in terms of
4261 best_match<tree,tree>.
4262 * spellcheck-tree.h: New file.
4263 * spellcheck.c (struct edit_distance_traits<const char *>): New
4265 (find_closest_string): Reimplement in terms of
4266 best_match<const char *, const char *>.
4267 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
4268 overload to spellcheck-tree.h.
4269 (find_closest_identifier): Likewise.
4270 (struct edit_distance_traits<T>): New template.
4271 (class best_match): New class.
4273 2016-06-14 David Malcolm <dmalcolm@redhat.com>
4275 * selftest-run-tests.c (selftest::run_tests): Call
4276 selftest::spellcheck_tree_c_tests.
4277 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
4278 * spellcheck-tree.c: Include selftest.h and stringpool.h.
4279 (selftest::test_find_closest_identifier): New function.
4280 (selftest::spellcheck_tree_c_tests): New function.
4281 * spellcheck.c (selftest::test_find_closest_string): Verify that
4282 the order of the vec does not affect the results for this case.
4283 (selftest::test_data): New array.
4284 (selftest::test_metric_conditions): New function.
4285 (selftest::spellcheck_c_tests): Add a test of case-comparison.
4286 Call selftest::test_metric_conditions.
4288 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4290 * config/rs6000/rs6000-builtin.def (commentary): Typo.
4291 (BU_P9_MISC_1): Likewise.
4292 (BU_P9_64BIT_MISC_0): Likewise.
4293 (BU_P9_MISC_0): Likewise.
4295 2016-06-14 David Malcolm <dmalcolm@redhat.com>
4297 * gcc-rich-location.c
4298 (gcc_rich_location::add_fixit_misspelled_id): New method.
4299 * gcc-rich-location.h
4300 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
4302 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
4304 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
4305 FreeBSD 11 and above.
4307 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
4309 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
4311 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4313 * expmed.h: Close parenthesis in "at your option" in copyright
4315 * lower-subreg.h: Likewise.
4317 2016-06-14 Richard Biener <rguenther@suse.de>
4320 * genmatch.c (expr::gen_transform): Use in_type for comparisons
4323 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4325 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
4327 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
4329 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
4331 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
4332 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
4334 2016-06-14 Richard Biener <rguenther@suse.de>
4336 PR tree-optimization/71522
4337 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
4338 copying into float copying.
4340 2016-06-14 Jakub Jelinek <jakub@redhat.com>
4342 PR tree-optimization/71520
4343 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
4344 (replace_block_by): Move user labels from bb1 to bb2.
4346 2016-06-14 Richard Biener <rguenther@suse.de>
4350 * expr.h (get_bit_range): Declare.
4351 * expr.c (get_bit_range): Export.
4352 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
4353 word_mode again to constrain the bitfield access.
4355 2016-06-14 Richard Biener <rguenther@suse.de>
4357 PR tree-optimization/71521
4358 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
4359 division int_const_binop against zero divisor.
4361 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
4363 * config/i386/i386.md (signbittf2): New expander.
4364 * config/i386/sse.md (ptesttf2): New insn pattern.
4366 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4369 * input.c (selftest::test_reading_source_line): Avoid reading from
4370 __FILE__ by creating a tempfile with known content and reading
4373 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4375 * pretty-print.c (assert_pp_format_colored): Skip the test if
4377 (test_pp_format): Remove comment about GCC_COLORS.
4379 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4381 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
4382 * pretty-print.c (assert_pp_format_va): Add location param and use
4383 it with ASSERT_STREQ_AT.
4384 (assert_pp_format): Add location param and pass it to
4385 assert_pp_format_va.
4386 (assert_pp_format_colored): Likewise.
4387 (ASSERT_PP_FORMAT_1): New.
4388 (ASSERT_PP_FORMAT_2): New.
4389 (ASSERT_PP_FORMAT_3): New.
4390 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
4391 explicitly, or implicitly via the above macros.
4392 * selftest.c (selftest::pass): Use a selftest::location rather
4394 (selftest::fail): Likewise. Print the function name.
4395 (selftest::fail_formatted): Likewise.
4396 (selftest::assert_streq): Use a selftest::location rather than
4398 * selftest.h (selftest::location): New struct.
4399 (SELFTEST_LOCATION): New macro.
4400 (selftest::pass): Accept a const location & rather than file
4402 (selftest::fail): Likewise.
4403 (selftest::fail_formatted): Likewise.
4404 (selftest::assert_streq): Likewise.
4405 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
4406 (ASSERT_FALSE): Likewise.
4407 (ASSERT_EQ): Likewise.
4408 (ASSERT_NE): Likewise.
4409 (ASSERT_STREQ): Likewise.
4410 (ASSERT_PRED1): Likewise.
4411 (ASSERT_STREQ_AT): New macro.
4413 2016-06-13 David Malcolm <dmalcolm@redhat.com>
4415 * selftest.c (selftest::fail_formatted): New function.
4416 (selftest::assert_streq): New function.
4417 * selftest.h (selftests::fail_formatted): New decl.
4418 (selftest::assert_streq): New decl.
4419 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
4421 2016-06-13 Jeff Law <law@redhat.com>
4423 PR tree-optimization/71403
4424 * tree-ssa-threadbackward.c
4425 (convert_and_register_jump_thread_path): No longer accept reference
4426 to path. Do not pop items off the path anymore.
4427 (fsm_find_control_statement_thread_paths): Do not allow threading
4428 to a deeper loop nest. Pop the last item off the path here rather
4429 than in convert_and_register_jump_thread_path.
4431 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
4432 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
4434 [AArch64] Emit division using the Newton series
4436 * config/aarch64/aarch64-protos.h
4437 (cpu_approx_modes): Add new member "division".
4438 (aarch64_emit_approx_div): Declare new function.
4439 * config/aarch64/aarch64.c
4440 (generic_approx_modes): New member "division".
4441 (exynosm1_approx_modes): Likewise.
4442 (xgene1_approx_modes): Likewise.
4443 (aarch64_emit_approx_div): Define new function.
4444 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
4445 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
4446 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
4447 * doc/invoke.texi (-mlow-precision-div): Describe new option.
4449 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
4450 Wilco Dijkstra <wilco.dijkstra@arm.com>
4452 [AArch64] Emit square root using the Newton series
4454 * config/aarch64/aarch64-protos.h
4455 (aarch64_emit_approx_rsqrt): Replace with new function
4456 "aarch64_emit_approx_sqrt".
4457 (cpu_approx_modes): New member "sqrt".
4458 * config/aarch64/aarch64.c
4459 (generic_approx_modes): New member "sqrt".
4460 (exynosm1_approx_modes): Likewise.
4461 (xgene1_approx_modes): Likewise.
4462 (aarch64_emit_approx_rsqrt): Replace with new function
4463 "aarch64_emit_approx_sqrt".
4464 (aarch64_override_options_after_change_1): Handle new option.
4465 * config/aarch64/aarch64-simd.md
4466 (rsqrt<mode>2): Use new function instead.
4467 (sqrt<mode>2): New expansion and insn definitions.
4468 * config/aarch64/aarch64.md: Likewise.
4469 * config/aarch64/aarch64.opt
4470 (mlow-precision-sqrt): Add new option description.
4471 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
4473 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
4475 [AArch64] Add more choices for the reciprocal square root approximation
4477 Allow a target to prefer such operation depending on the operation mode.
4479 * config/aarch64/aarch64-protos.h
4480 (AARCH64_APPROX_MODE): New macro.
4481 (AARCH64_APPROX_{NONE,ALL}): Likewise.
4482 (cpu_approx_modes): New structure.
4483 (tune_params): New member "approx_modes".
4484 * config/aarch64/aarch64-tuning-flags.def
4485 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
4486 * config/aarch64/aarch64.c
4487 (generic_approx_modes): New core "cpu_approx_modes" structure.
4488 (exynosm1_approx_modes): Likewise.
4489 (xgene1_approx_modes): Likewise.
4490 (generic_tunings): New member "approx_modes".
4491 (cortexa35_tunings): Likewise.
4492 (cortexa53_tunings): Likewise.
4493 (cortexa57_tunings): Likewise.
4494 (cortexa72_tunings): Likewise.
4495 (exynosm1_tunings): Likewise.
4496 (thunderx_tunings): Likewise.
4497 (xgene1_tunings): Likewise.
4498 (use_rsqrt_p): New argument for the mode and use new member from
4500 (aarch64_builtin_reciprocal): Devise mode from builtin.
4501 (aarch64_optab_supported_p): New argument for the mode.
4502 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
4504 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
4506 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
4507 RS6000_BTM_MODULO flag into the set of flags that are considered
4508 to be part of the common configuration.
4510 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
4512 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
4513 difference unsigned.
4514 (vec_absdb): New macro for vector absolute difference unsigned
4516 (vec_absdh): New macro for vector absolute difference unsigned
4518 (vec_absdw): New macro for vector absolute difference unsigned word.
4519 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
4520 (vadu<mode>3): New insn.
4521 (*p9_vadu<mode>3): New insn.
4522 * config/rs6000/rs6000-builtin.def (vadub): New built-in
4524 (vaduh): New built-in definition.
4525 (vaduw): New built-in definition.
4526 (vadu): New overloaded built-in definition.
4527 (vadub): New overloaded built-in definition.
4528 (vaduh): New overloaded built-in definition.
4529 (vaduw): New overloaded built-in definition.
4530 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4531 overloaded vector absolute difference unsigned functions.
4532 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4533 the ISA 3.0 vector absolute difference unsigned built-in functions.
4535 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
4537 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
4538 update shared_lookup_references only once after changing operands.
4540 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
4543 * tree-nested.c (convert_nonlocal_omp_clauses)
4544 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
4546 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
4547 * tree.def (CASE_LABEL_EXPR): Likewise.
4549 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4552 * input.c (test_builtins): Fix an assertion.
4554 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
4556 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
4559 (isinf<mode>2): Ditto.
4561 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
4563 * ggc-tests.c (test_finalization): Only test need_finalization_p
4564 for GCC_VERSION >= 4003.
4566 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4568 * config/s390/vecintrin.h: Fix file description in comment.
4570 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4572 * config/s390/s390-builtin-types.def: Change builtin type naming
4573 scheme to match builtin-types.def.
4575 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
4577 * fold-const.c (optimize_minmax_comparison): Remove.
4578 (fold_comparison): Remove call to the above.
4579 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
4580 New transformations.
4582 2016-06-13 Alan Hayward <alan.hayward@arm.com>
4584 PR tree-optimization/71416
4585 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
4588 2016-06-13 Martin Liska <mliska@suse.cz>
4590 * predict.c (enum predictor_reason): Prefix enum with REASON_.
4591 (combine_predictions_for_insn): Likewise.
4592 (prune_predictions_for_bb): Likewise.
4593 (combine_predictions_for_bb): Likewise.
4595 2016-06-13 Richard Biener <rguenther@suse.de>
4597 PR tree-optimization/71505
4598 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
4599 assert match comment.
4601 2016-06-13 Marek Polacek <polacek@redhat.com>
4604 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
4605 gimplify_switch_expr.
4606 (warn_switch_unreachable_r): New function.
4608 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4611 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
4614 2016-06-13 Richard Biener <rguenther@suse.de>
4617 * fold-const.c (fold_unary_loc): Preserve alignment when
4618 folding a VIEW_CONVERT_EXPR into a MEM_REF.
4620 2016-06-13 Martin Liska <mliska@suse.cz>
4623 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
4624 w/ -fsanitize=bounds.
4626 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
4628 * config/i386/i386.c (ix86_init_builtins): Calculate
4629 FLOAT128_FTYPE_CONST_STRING function type only once.
4630 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
4631 built-in functions are available for x86-32 and x86-64 targets.
4633 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
4636 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4638 (FLOAT128_FTYPE_CONST_STRING): New function type.
4639 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4640 [IX86_BUILTIN_NANSQ]: Ditto.
4641 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4642 (ix86_init_builtin_types): Declare const_string_type_node.
4643 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4645 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4646 * doc/extend.texi (x86 Built-in Functions): Document
4647 __builtin_nanq and __builtin_nansq.
4649 2016-06-11 Jiong Wang <jiong.wang@arm.com>
4652 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4653 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4654 length for pop patterns.
4655 (arm_attr_length_push_multi): Update comments.
4656 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4658 (*pop_multiple_with_writeback_and_return): Likewise.
4659 (*pop_multiple_with_return): Likewise.
4661 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
4664 * fold-const.c (optimize_bit_field_compare): Don't try to use
4665 word_mode unconditionally for reading the bit field, look at
4666 DECL_BIT_FIELD_REPRESENTATIVE instead.
4668 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4671 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4672 vector integer type.
4674 2016-06-10 Jakub Jelinek <jakub@redhat.com>
4677 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4678 without LABEL_DECL, set *handled_ops_p to false instead of true.
4680 2016-06-10 Martin Sebor <msebor@redhat.com>
4683 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4684 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4685 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4687 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4688 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4689 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4690 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4691 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4692 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4693 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4694 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4696 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4698 * config/arm/arm.h (pool_vector_label,
4699 return_used_this_function): Remove.
4701 2016-06-10 Jeff Law <law@redhat.com>
4703 PR tree-optimization/71335
4704 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4705 zero length paths here.
4706 (convert_and_register_jump_thread_path): Remove hacks related to
4707 duplicated blocks in the jump thread path.
4708 (fsm_find_control_statement_thread_paths): Avoid putting the same
4709 block on the thread path twice, but ensure the thread path is
4710 unchanged from the caller's point of view.
4712 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4714 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4715 * predict.def (PRED_LOOP_BRANCH): Remove.
4717 2016-06-10 David Malcolm <dmalcolm@redhat.com>
4719 * Makefile.in (OBJS): Add ggc-tests.o.
4720 (GTFILES): Add ggc-tests.c.
4721 * ggc-tests.c: New file.
4722 * selftest-run-tests.c (selftest::run_tests): Call
4723 selftest::ggc_tests_c_tests.
4724 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4726 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
4728 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4730 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
4733 * varasm.c (place_block_symbol): Adjust alignment for asan protected
4734 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4736 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4738 * profile.c: Include cfgloop.h.
4739 (branch_prob): Compute estimated number of iterations.
4740 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4741 recompute estimate number of iterations from profile.
4743 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4746 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4747 must be grouped on top of stack. Don't force early clobber
4748 on ordinary reg outputs.
4750 2016-06-10 Richard Biener <rguenther@suse.de>
4752 * targhooks.c (default_builtin_vectorization_cost): Adjust
4755 2016-06-10 Richard Biener <rguenther@suse.de>
4757 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4758 to fold the RHS to a constant if possible.
4760 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4763 * tree-nested.c (convert_nonlocal_omp_clauses)
4764 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4765 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4766 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4768 * gimplify.c (gimplify_adjust_omp_clauses): Discard
4770 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4772 * omp-low.c (scan_sharing_clauses): Don't expect
4775 2016-06-10 Alan Hayward <alan.hayward@arm.com>
4777 PR tree-optimization/71407
4778 PR tree-optimization/71416
4779 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4782 2016-06-10 Richard Biener <rguenther@suse.de>
4785 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4787 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4789 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4791 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
4792 Jiong Wang <jiong.wang@arm.com>
4794 PR rtl-optimization/70751
4795 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4796 spilled into memory.
4798 2016-06-09 Jonathan Yong <10walls@gmail.com>
4801 2015-09-21 Jonathan Yong <10walls@gmail.com>
4803 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4804 sysroot/usr/lib/32api for additional win32 libraries,
4805 fixes failing Cygwin bootstrapping.
4807 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
4809 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4812 2016-06-09 David Malcolm <dmalcolm@redhat.com>
4815 * pretty-print.c (pp_indent): Specify that %p is printed in a
4816 host-dependent manner.
4817 (test_pp_format): Remove the test for %p.
4819 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
4821 * config/mips/mips.c (mips_output_jump): Fix formatting.
4823 2016-06-09 Richard Biener <rguenther@suse.de>
4825 PR tree-optimization/71462
4826 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4829 2016-06-09 Martin Liska <mliska@suse.cz>
4831 * predict.c (dump_prediction): Add new argument.
4832 (enum predictor_reason): New enum.
4833 (struct predictor_hash): New struct.
4834 (predictor_hash::hash): New function.
4835 (predictor_hash::equal): Likewise.
4836 (not_removed_prediction_p): New function.
4837 (prune_predictions_for_bb): Likewise.
4838 (combine_predictions_for_bb): Prune predictions.
4840 2016-06-09 Martin Liska <mliska@suse.cz>
4842 * predict.c (filter_predictions): New function.
4843 (remove_predictions_associated_with_edge): Use the filter
4845 (equal_edge_p): New function.
4847 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
4849 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4850 Correct usage of @samp vs @option, add @samp where appropriate.
4851 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4852 Add armv6s-m and document it, as it is no official ARM name.
4854 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4856 * ifcvt.c (struct noce_if_info): Add transform_name field.
4857 (noce_try_move): Set if_info->transform_name to the function name.
4858 (noce_try_ifelse_collapse): Likewise.
4859 (noce_try_store_flag): Likewise.
4860 (noce_try_inverse_constants): Likewise.
4861 (noce_try_store_flag_constants): Likewise.
4862 (noce_try_addcc): Likewise.
4863 (noce_try_store_flag_mask): Likewise.
4864 (noce_try_cmove): Likewise.
4865 (noce_try_cmove_arith): Likewise.
4866 (noce_try_minmax): Likewise.
4867 (noce_try_abs): Likewise.
4868 (noce_try_sign_mask): Likewise.
4869 (noce_try_bitop): Likewise.
4870 (noce_convert_multiple_sets): Likewise.
4871 (noce_process_if_block): Print if_info->transform_name to
4872 dump_file if transformation succeeded.
4874 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4876 * config/arm/cortex-a57.md (cortex_a57_alu):
4879 2016-06-08 Martin Sebor <msebor@redhat.com>
4880 Jakub Jelinek <jakub@redhat.com>
4884 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4885 BUILT_IN_MUL_OVERFLOW_P): New builtins.
4886 * builtins.c: Include gimple-fold.h.
4887 (fold_builtin_arith_overflow): Handle
4888 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4889 (fold_builtin_3): Likewise.
4890 * doc/extend.texi (Integer Overflow Builtins): Document
4891 __builtin_{add,sub,mul}_overflow_p.
4893 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
4895 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4896 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4898 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
4900 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4901 Rewrite, looking one level down for records and arrays.
4903 2016-06-08 David Malcolm <dmalcolm@redhat.com>
4905 * pretty-print.c: Include "selftest.h".
4906 (pp_format): Fix comment.
4907 (identifier_to_locale): Likewise.
4908 (selftest::test_basic_printing): New function.
4909 (selftest::assert_pp_format): New function.
4910 (selftest::test_pp_format): New function.
4911 (selftest::pretty_print_c_tests): New function.
4912 * selftest-run-tests.c (selftest::run_tests): Call
4913 selftest::pretty_print_c_tests.
4914 * selftest.h (pretty_print_c_tests): New declaration.
4916 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4918 * invoke.texi (max-loop-headers-insns): Document.
4919 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4920 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4921 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4923 2016-06-08 Richard Biener <rguenther@suse.de>
4925 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4926 on strided SLP loads and fall back to scalar loads in case
4927 we can't chunk them.
4929 2016-06-08 Richard Biener <rguenther@suse.de>
4931 PR tree-optimization/71452
4932 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4933 type used for the SSA rewrite has enough precision to cover
4934 the dynamic type of the location.
4936 2016-06-08 Jakub Jelinek <jakub@redhat.com>
4937 Richard Biener <rguenther@suse.de>
4940 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4941 the same as DECL_P (base0) for indirect_base0. Use equality_code
4942 in one further place.
4944 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
4946 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4947 to one word if the field is known to overlap other words.
4948 (extract_bit_field_1): Likewise.
4949 (store_split_bit_field): Remove compensating code.
4950 (extract_split_bit_field): Likewise.
4952 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
4956 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4958 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4960 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4962 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4963 (arch64_addpv4sf): Delete.
4964 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4965 "gen_aarch64_addpv4sf".
4966 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
4968 (vpadds_f32): Likewise.
4969 (vpaddq_f32): Likewise.
4970 (vpaddq_f64): Likewise.
4972 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4974 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4976 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4977 to VALLF. Rename to "fabd<mode>3".
4978 "*fabd_scalar<mode>3): Delete.
4979 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4981 (vabdd_f64): Likewise.
4982 (vabd_f32): Likewise.
4983 (vabd_f64): Likewise.
4984 (vabdq_f32): Likewise.
4985 (vabdq_f64): Likewise.
4987 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4989 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4991 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4992 "aarch64_rsqrts<mode>".
4993 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4994 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
4996 (vrsqrtsd_f64): Likewise.
4997 (vrsqrts_f32): Likewise.
4998 (vrsqrts_f64): Likewise.
4999 (vrsqrtsq_f32): Likewise.
5000 (vrsqrtsq_f64): Likewise.
5002 2016-06-08 Jiong Wang <jiong.wang@arm.com>
5004 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
5006 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
5007 "aarch64_rsqrte<mode>".
5008 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
5009 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
5011 (vrsqrted_f64): Likewise.
5012 (vrsqrte_f32): Likewise.
5013 (vrsqrte_f64): Likewise.
5014 (vrsqrteq_f32): Likewise.
5015 (vrsqrteq_f64): Likewise.
5017 2016-06-08 Jiong Wang <jiong.wang@arm.com>
5019 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
5023 * config/aarch64/aarch64-simd.md
5024 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
5025 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
5026 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
5028 (vcvt_n_f32_u32): Likewise.
5029 (vcvt_n_s32_f32): Likewise.
5030 (vcvt_n_u32_f32): Likewise.
5031 (vcvtq_n_f32_s32): Likewise.
5032 (vcvtq_n_f32_u32): Likewise.
5033 (vcvtq_n_f64_s64): Likewise.
5034 (vcvtq_n_f64_u64): Likewise.
5035 (vcvtq_n_s32_f32): Likewise.
5036 (vcvtq_n_s64_f64): Likewise.
5037 (vcvtq_n_u32_f32): Likewise.
5038 (vcvtq_n_u64_f64): Likewise.
5039 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
5040 (VSDQ_SDI): Likewise.
5041 (fcvt_target): Support V4DI, V4SI and V2SI.
5042 (FCVT_TARGET): Likewise.
5044 2016-06-08 Jiong Wang <jiong.wang@arm.com>
5046 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
5047 (TYPES_BINOP_SUS): Likewise.
5048 (aarch64_simd_builtin_data): Update include file name.
5049 (aarch64_builtins): Likewise.
5050 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
5051 for conversion between scalar float-point and fixed-point.
5055 * config/aarch64/aarch64.md
5056 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
5057 pattern for conversion between scalar float to fixed-pointer.
5058 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
5059 (UNSPEC_FCVTZS): New UNSPEC enumeration.
5060 (UNSPEC_FCVTZU): Likewise.
5061 (UNSPEC_SCVTF): Likewise.
5062 (UNSPEC_UCVTF): Likewise.
5063 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
5065 (vcvtd_n_f64_u64): Likewise.
5066 (vcvtd_n_s64_f64): Likewise.
5067 (vcvtd_n_u64_f64): Likewise.
5068 (vcvtd_n_f32_s32): Likewise.
5069 (vcvts_n_f32_u32): Likewise.
5070 (vcvtd_n_s32_f32): Likewise.
5071 (vcvts_n_u32_f32): Likewise.
5072 * config/aarch64/iterators.md (fcvt_target): Support integer to float
5074 (FCVT_TARGET): Likewise.
5075 (FCVT_FIXED2F): New iterator.
5076 (FCVT_F2FIXED): Likewise.
5077 (fcvt_fixed_insn): New define_int_attr.
5079 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
5081 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
5082 some statements was removed.
5084 2016-06-08 Alan Hayward <alan.hayward@arm.com>
5086 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
5087 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
5088 (vect_can_advance_ivs_p): likewise.
5089 (vect_update_ivs_after_vectorizer): likewise.
5090 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
5091 (vect_analyze_scalar_cycles_1): likewise.
5092 (vect_analyze_loop_operations): likewise.
5093 (report_vect_op): likewise.
5094 (vect_is_slp_reduction): likewise.
5095 (vect_is_simple_reduction): likewise.
5096 (get_initial_def_for_induction): likewise.
5097 (vect_transform_loop): likewise.
5098 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
5099 (vect_recog_sad_pattern): likewise.
5100 (vect_recog_widen_sum_pattern): likewise.
5101 (vect_recog_widening_pattern): likewise.
5102 (vect_recog_divmod_pattern): likewise.
5103 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
5104 (vect_analyze_slp_instance): likewise.
5105 (vect_transform_slp_perm_load): likewise.
5106 (vect_schedule_slp_instance): likewise.
5108 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
5110 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
5111 (return_prediction): PRED_CONST_RETURN predict return as not taken.
5112 * predict.def (PRED_CONTINUE): Change hitrate 50->67
5113 (PRED_LOOP_BRANCH): Document predictor as broken.
5114 (PRED_LOOP_EXIT): Change hitrate 91->92.
5115 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
5116 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
5117 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
5118 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
5119 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
5120 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
5121 (PRED_CALL): Chane hitrate 71->67.
5122 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
5123 (PRED_GOTO): Document as unused right now.
5124 (PRED_CONST_RETURN): Change hitrate 67->69
5125 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
5126 (PRED_NULL_RETURN): Change hitrate 91->90.
5127 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
5128 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
5129 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
5131 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
5133 * config/rs6000/altivec.h: Add __builtin_vec_mul.
5134 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
5135 special case Altivec builtin.
5136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
5137 VSX_BUILTIN_VEC_MUL (replaced with special case code).
5138 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5139 code for ALTIVEC_BUILTIN_VEC_MUL.
5140 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5141 for __builtin_vec_mul.
5143 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
5145 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
5148 2016-06-07 David Malcolm <dmalcolm@redhat.com>
5150 * spellcheck.c (selftest::test_find_closest_string): New function.
5151 (spellcheck_c_tests): Call the above.
5153 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5155 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
5157 2016-06-07 Jakub Jelinek <jakub@redhat.com>
5159 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
5160 Yv=Yv,C alternatives.
5162 2016-06-07 Richard Biener <rguenther@suse.de>
5165 * common.opt (ffast-math): Make Optimization.
5167 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
5168 Prachi Godbole <prachi.godbole@imgtec.com>
5170 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
5171 `fabs' and `fneg' type attributes.
5172 (p5600_fpu_fabs): Add `fmove' to the comment.
5174 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
5176 * gimple.c: Include builtins.h
5177 (gimple_inexpensive_call_p): New function.
5178 * gimple.h (gimple_inexpensive_call_p): Declare.
5179 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
5180 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
5183 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
5185 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
5186 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
5187 warning_at_rich_loc, warning_n, pedwarn, permerror,
5188 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
5189 sorry, fatal_error, internal_error, internal_error_no_backtrace):
5192 2016-06-07 Richard Biener <rguenther@suse.de>
5194 PR tree-optimization/71428
5195 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
5196 BIT_FIELD_REF op vs. load.
5198 2016-06-07 Richard Biener <rguenther@suse.de>
5201 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
5204 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
5206 * config/pa/pa.md (call): Generate indirect long calls to non-local
5207 functions on TARGET_64BIT.
5208 (call_value): Likewise.
5210 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
5212 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
5213 pattern and subsequent splitters.
5214 (call_val_reg_64bit_post_reload): Likewise.
5216 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
5219 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
5220 propagate_op_to_single_use.
5222 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
5225 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
5227 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
5229 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
5230 (enum x86_dirflag_state): New enum.
5231 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
5232 (machine_function): Remove needs_cld.
5233 (ix86_current_function_needs_cld): Remove.
5234 * config/i386/i386.c (ix86_set_func_type): Set
5235 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
5236 (ix86_expand_prologue): Do not emit CLD here.
5237 (ix86_dirflag_mode_needed): New function.
5238 (ix86_dirflag_mode_entry): Ditto.
5239 (ix86_mode_needed): Handle X86_DIRFLAG entity.
5240 (ix86_mode_after): Ditto.
5241 (ix86_mode_entry): Ditto.
5242 (ix86_mode_exit): Ditto.
5243 (ix86_emit_mode_set): Ditto.
5244 * config/i386/i386.md (strmov_singleop): Set
5245 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
5246 Do not set ix86_current_function_needs_cld.
5248 (strset_singleop): Ditto.
5250 (cmpstrnqi_nz_1): Ditto.
5251 (cmpstrnqi_1): Ditto.
5252 (strlenqi_1): Ditto.
5254 2016-06-06 Jakub Jelinek <jakub@redhat.com>
5256 PR tree-optimization/71259
5257 * tree-vect-slp.c (vect_get_constant_vectors): For
5258 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
5259 one for constant op, and use COND_EXPR for non-constant.
5261 2016-06-06 David Malcolm <dmalcolm@redhat.com>
5263 * Makefile.in (OBJS): Add function-tests.o,
5264 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
5265 selftest-run-tests.o.
5266 (OBJS-libcommon): Add selftest.o.
5267 (OBJS-libcommon-target): Add selftest.o.
5268 (all.internal): Add "selftest".
5269 (all.cross): Likewise.
5270 (selftest): New phony target.
5271 (s-selftest): New target.
5272 (selftest-gdb): New phony target.
5273 (COLLECT2_OBJS): Add selftest.o.
5274 * bitmap.c: Include "selftest.h".
5275 (selftest::test_gc_alloc): New function.
5276 (selftest::test_set_range): New function.
5277 (selftest::test_clear_bit_in_middle): New function.
5278 (selftest::test_copying): New function.
5279 (selftest::test_bitmap_single_bit_set_p): New function.
5280 (selftest::bitmap_c_tests): New function.
5281 * common.opt (fself-test): New.
5282 * diagnostic-show-locus.c: Include "selftest.h".
5283 (make_range): New function.
5284 (test_range_contains_point_for_single_point): New function.
5285 (test_range_contains_point_for_single_line): New function.
5286 (test_range_contains_point_for_multiple_lines): New function.
5287 (assert_eq): New function.
5288 (test_get_line_width_without_trailing_whitespace): New function.
5289 (selftest::diagnostic_show_locus_c_tests): New function.
5290 * et-forest.c: Include "selftest.h".
5291 (selftest::test_single_node): New function.
5292 (selftest::test_simple_tree): New function.
5293 (selftest::test_disconnected_nodes): New function.
5294 (selftest::et_forest_c_tests): New function.
5295 * fold-const.c: Include "selftest.h".
5296 (selftest::assert_binop_folds_to_const): New function.
5297 (selftest::assert_binop_folds_to_nonlvalue): New function.
5298 (selftest::test_arithmetic_folding): New function.
5299 (selftest::fold_const_c_tests): New function.
5300 * function-tests.c: New file.
5301 * gimple.c: Include "selftest.h".
5302 Include "gimple-pretty-print.h".
5303 (selftest::verify_gimple_pp): New function.
5304 (selftest::test_assign_single): New function.
5305 (selftest::test_assign_binop): New function.
5306 (selftest::test_nop_stmt): New function.
5307 (selftest::test_return_stmt): New function.
5308 (selftest::test_return_without_value): New function.
5309 (selftest::gimple_c_tests): New function.
5310 * hash-map-tests.c: New file.
5311 * hash-set-tests.c: New file.
5312 * input.c: Include "selftest.h".
5313 (selftest::assert_loceq): New function.
5314 (selftest::test_accessing_ordinary_linemaps): New function.
5315 (selftest::test_unknown_location): New function.
5316 (selftest::test_builtins): New function.
5317 (selftest::test_reading_source_line): New function.
5318 (selftest::input_c_tests): New function.
5319 * rtl-tests.c: New file.
5320 * selftest-run-tests.c: New file.
5321 * selftest.c: New file.
5322 * selftest.h: New file.
5323 * spellcheck.c: Include "selftest.h".
5324 (selftest::levenshtein_distance_unit_test_oneway): New function,
5325 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
5326 (selftest::levenshtein_distance_unit_test): Likewise.
5327 (selftest::spellcheck_c_tests): Likewise.
5328 * toplev.c: Include selftest.h.
5329 (toplev::run_self_tests): New.
5330 (toplev::main): Handle -fself-test.
5331 * toplev.h (toplev::run_self_tests): New.
5332 * tree.c: Include "selftest.h".
5333 (selftest::test_integer_constants): New function.
5334 (selftest::test_identifiers): New function.
5335 (selftest::test_labels): New function.
5336 (selftest::tree_c_tests): New function.
5337 * tree-cfg.c: Include "selftest.h".
5338 (selftest::push_fndecl): New function.
5339 (selftest::test_linear_chain): New function.
5340 (selftest::test_diamond): New function.
5341 (selftest::test_fully_connected): New function.
5342 (selftest::tree_cfg_c_tests): New function.
5343 * vec.c: Include "selftest.h".
5344 (selftest::safe_push_range): New function.
5345 (selftest::test_quick_push): New function.
5346 (selftest::test_safe_push): New function.
5347 (selftest::test_truncate): New function.
5348 (selftest::test_safe_grow_cleared): New function.
5349 (selftest::test_pop): New function.
5350 (selftest::test_safe_insert): New function.
5351 (selftest::test_ordered_remove): New function.
5352 (selftest::test_unordered_remove): New function.
5353 (selftest::test_block_remove): New function.
5354 (selftest::reverse_cmp): New function.
5355 (selftest::test_qsort): New function.
5356 (selftest::vec_c_tests): New function.c.
5357 * wide-int.cc: Include selftest.h and wide-int-print.h.
5358 (selftest::from_int <wide_int>): New function.
5359 (selftest::from_int <offset_int>): New function.
5360 (selftest::from_int <widest_int>): New function.
5361 (selftest::assert_deceq): New function.
5362 (selftest::assert_hexeq): New function.
5363 (selftest::test_printing <VALUE_TYPE>): New function template.
5364 (selftest::test_ops <VALUE_TYPE>): New function template.
5365 (selftest::test_comparisons <VALUE_TYPE>): New function template.
5366 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
5368 (selftest::wide_int_cc_tests): New function.
5370 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5373 * ifcvt.c (noce_try_ifelse_collapse): New function.
5375 (noce_process_if_block): Call noce_try_ifelse_collapse.
5376 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
5377 (simplify_ternary_operation): Use the above to simplify
5378 conditional CLZ/CTZ expressions.
5380 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5383 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
5384 define_insn_and_split.
5386 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5389 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
5391 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
5394 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
5395 Implicitly clobber memory for basic asm with non-empty assembler
5396 string. Use targetm.md_asm_adjust also here.
5397 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
5398 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
5399 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
5400 non-empty assembler string.
5401 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
5402 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
5403 (decode_asm_operands): Handle basic asm in PARALLEL block.
5404 (extract_insn): Handle basic asm in PARALLEL block.
5405 * doc/extend.texi: Mention new behavior of basic asm.
5406 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
5407 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
5408 branch_needs_nop_p): Use asm_noperands.
5410 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
5412 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
5413 Include the M7 SPARC DFA scheduler.
5414 New attribute v3pipe.
5415 Annotate insns with v3pipe where appropriate.
5416 Define cpu_feature vis4.
5417 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
5418 Add (V8QI "8") to vbits.
5419 Add insns {add,sub}v8qi3
5420 Add insns ss{add,sub}v8qi3
5421 Add insns us{add,sub}{v8qi,v4hi}3
5422 Add insns {min,max}{v8qi,v4hi,v2si}3
5423 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
5424 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
5425 * config/sparc/niagara4.md: Add a comment explaining the
5426 discrepancy between the documented latenty numbers and the
5428 * config/sparc/niagara7.md: New file.
5429 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
5430 supports SPARC5 and VIS 4.0 instructions.
5431 * configure: Regenerate.
5432 * config.in: Likewise.
5433 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
5434 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
5435 TARGET_CPU_niagara7.
5436 (ASM_CPU64_DEFAULT_SPEC): Likewise.
5437 (CPP_CPU_SPEC): Handle niagara7.
5438 (ASM_CPU_SPEC): Likewise.
5439 * config/sparc/sparc-opts.h (processor_type): Add
5441 (mvis4): New option.
5442 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
5443 (AS_NIAGARA7_FLAG): Define.
5444 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
5445 (CPP_CPU64_DEFAULT_SPEC): Likewise.
5446 (CPP_CPU_SPEC): Handle niagara7.
5447 (ASM_CPU_SPEC): Likewise.
5448 * config/sparc/sparc.c (niagara7_costs): Define.
5449 (sparc_option_override): Handle niagara7 and adjust cache-related
5450 parameters with better values for niagara cpus. Also support VIS4.
5451 (sparc32_initialize_trampoline): Likewise.
5452 (sparc_use_sched_lookahead): Likewise.
5453 (sparc_issue_rate): Likewise.
5454 (sparc_register_move_cost): Likewise.
5455 (dump_target_flag_bits): Support VIS4.
5456 (sparc_vis_init_builtins): Likewise.
5457 (sparc_builtins): Likewise.
5458 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
5460 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
5462 * config/sparc/sparc.opt (sparc_processor_type): New value
5464 * config/sparc/visintrin.h (__attribute__): Prototypes for the
5466 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
5468 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5471 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
5473 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
5475 2016-06-06 Richard Biener <rguenther@suse.de>
5477 PR tree-optimization/71398
5478 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
5481 2016-06-05 James Bowman <james.bowman@ftdichip.com>
5483 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
5484 ft32_expand_prolog, ft32_expand_epilogue):
5485 Handle pretend_args.
5486 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
5487 * config/ft32/ft32.md: Add pretend_returner.
5489 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
5492 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5493 Copy op1 RTX to avoid invalid sharing.
5494 (ix86_expand_vector_move_misalign): Ditto.
5496 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
5498 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
5501 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
5503 * predict.c (predicted_by_loop_heuristics_p): New function.
5504 (predict_iv_comparison): Use it.
5505 (predict_loops): Walk from innermost loops; do not predict edges
5506 leaving multiple loops multiple times; implement
5507 PRED_LOOP_ITERATIONS_MAX heuristics.
5508 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
5510 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
5512 * cfg.c (check_bb_profile): Do not report mismatched profiles when
5513 only edges out of BB are EH edges.
5515 2016-06-04 Martin Sebor <msebor@redhat.com>
5516 Marcin Baczyński <marbacz@gmail.com>
5519 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
5520 a void expression in a void function.
5522 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
5524 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
5525 aux; dump reasons of decisions.
5526 (should_duplicate_loop_header_p): Likewise.
5527 (do_while_loop_p): Likewise.
5528 (ch_base::copy_headers): Dump asi num insns duplicated.
5530 2016-06-04 Jakub Jelinek <jakub@redhat.com>
5532 PR tree-optimization/71405
5533 * tree-ssa.c (execute_update_addresses_taken): For clobber with
5534 incompatible type, build a new clobber with the right type instead
5535 of building a VIEW_CONVERT_EXPR around it.
5537 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
5539 PR tree-optimization/52171
5540 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
5541 by_pieces_ninsns instead of move_by_pieces_ninsns.
5543 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
5545 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
5546 for reg+reg addressing mode.
5548 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5550 * rs6000-c.c (c/c-tree.h): Add #include.
5551 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
5552 in C++ when found in the base position of vec_ld or vec_st.
5554 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
5556 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
5557 use of profile unless profile status is PROFILE_READ.
5558 * profile.c (compute_branch_probabilities): Set profile status
5559 only after reporting predictor hitrates.
5561 2016-06-03 Joseph Myers <joseph@codesourcery.com>
5565 * common.opt (ffp-int-builtin-inexact): New option.
5566 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
5567 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
5568 (ceil@var{m}2): Document dependence on this option.
5569 * ipa-inline-transform.c (inline_call): Handle
5570 flag_fp_int_builtin_inexact.
5571 * ipa-inline.c (can_inline_edge_p): Likewise.
5572 * config/i386/i386.md (rintxf2): Do not test
5573 flag_unsafe_math_optimizations.
5574 (rint<mode>2_frndint): New define_insn.
5575 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
5576 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
5577 for 387 instead of extending and truncating.
5578 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
5579 !flag_trapping_math instead of flag_unsafe_math_optimizations.
5580 Change to frndint<mode>2_<rounding>.
5581 (frndintxf2_<rounding>_i387): Likewise. Change to
5582 frndint<mode>2_<rounding>_i387.
5583 (<rounding_insn>xf2): Likewise.
5584 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
5585 !flag_trapping_math instead of flag_unsafe_math_optimizations for
5586 x87. Test TARGET_ROUND || !flag_trapping_math ||
5587 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
5588 SSE. Use ROUND_NO_EXC in constant operand of
5589 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
5590 for 387 instead of extending and truncating.
5592 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
5593 Julia Koval <julia.koval@intel.com>
5605 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
5606 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
5607 all registers, except for function return registers if there are
5608 no caller-saved registers.
5609 (ix86_set_func_type): New function.
5610 (ix86_set_current_function): Call ix86_set_func_type to set
5611 no_caller_saved_registers and func_type. Call reinit_regs if
5612 caller-saved registers are changed. Don't allow MPX, SSE, MMX
5613 nor x87 instructions in interrupt handler nor function with
5614 no_caller_saved_registers attribute.
5615 (ix86_function_ok_for_sibcall): Return false if there are no
5616 caller-saved registers.
5617 (type_natural_mode): Don't warn ABI change for MMX in interrupt
5619 (ix86_function_arg_advance): Skip for callee in interrupt handler.
5620 (ix86_function_arg): Return special arguments in interrupt handler.
5621 (ix86_promote_function_mode): Promote pointer to word_mode only
5622 for normal functions.
5623 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
5625 (ix86_epilogue_uses): New function.
5626 (ix86_hard_regno_scratch_ok): Likewise.
5627 (ix86_save_reg): Preserve all registers in interrupt handler
5628 after reload. Preserve all registers, except for function return
5629 registers, if there are no caller-saved registers after reload.
5630 (find_drap_reg): Always use callee-saved register if there are
5631 no caller-saved registers.
5632 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5633 for interrupt handler.
5634 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5635 Emit cld instruction if stringops are used in interrupt handler
5636 or interrupt handler isn't a leaf function.
5637 (ix86_expand_epilogue): Generate interrupt return for interrupt
5638 handler and pop the 'ERROR_CODE' off the stack before interrupt
5639 return in exception handler.
5640 (ix86_expand_call): Disallow calling interrupt handler directly.
5641 If there are no caller-saved registers, mark all registers that
5642 are clobbered by the call which returns as clobbered.
5643 (ix86_handle_no_caller_saved_registers_attribute): New function.
5644 (ix86_handle_interrupt_attribute): Likewise.
5645 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5647 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5648 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5649 accumulation in interrupt function if stack may be realigned to
5651 (EPILOGUE_USES): New.
5652 (function_type): New enum.
5653 (machine_function): Add func_type and no_caller_saved_registers.
5654 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5655 (interrupt_return): New pattern.
5656 * doc/extend.texi: Document x86 interrupt and
5657 no_caller_saved_registers attributes.
5659 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
5661 PR tree-optimization/52171
5662 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5663 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
5664 Look for constant strings. Move some code to emit_block_cmp_hints
5666 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5667 * defaults.h (COMPARE_MAX_PIECES): New macro.
5668 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5669 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5670 (clear_by_pieces_1): Don't declare. Move definition before use.
5671 (can_do_by_pieces): New static function.
5672 (can_move_by_pieces): Use it. Return bool.
5673 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
5674 OP. All callers changed. Handle COMPARE_BY_PIECES.
5675 (class pieces_addr); New.
5676 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5677 pieces_addr::adjust, pieces_addr::increment_address,
5678 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5680 (class op_by_pieces_d): New.
5681 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5683 (class move_by_pieces_d, class compare_by_pieces_d,
5684 class store_by_pieces_d): New subclasses of op_by_pieces_d.
5685 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5686 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5687 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5688 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5689 compare_by_pieces_d::finish_mode): New member functions.
5690 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5692 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5693 (emit_block_cmp_hints): New function.
5694 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5695 use the newly defined classes.
5696 * expr.h (by_pieces_constfn): New typedef.
5697 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5698 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5699 (move_by_pieces_ninsns): Don't declare.
5700 (can_move_by_pieces): Change return value to bool.
5701 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5702 (compare_by_pieces_branch_ratio): New hook.
5703 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5704 (by_pieces_ninsns): Declare.
5705 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5707 (default_compare_by_pieces_branch_ratio): New function.
5708 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5709 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5710 * doc/tm.texi: Regenerate.
5711 * tree-ssa-strlen.c: Include "builtins.h".
5712 (handle_builtin_memcmp): New static function.
5713 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5714 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5716 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5718 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5719 relevant stmts which are simple and invariant.
5720 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5721 instead of simple and invariant
5723 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5725 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5726 (vectorizable_reduction): Check for new relevant state.
5727 (vectorizable_live_operation): vectorize live stmts using
5728 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
5729 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5730 (vect_stmt_relevant_p): Check for stmts which are only used live.
5731 (process_use): Use of a stmt does not inherit it's live value.
5732 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5733 (vect_analyze_stmt): Check for new relevant state.
5734 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5735 outside the loop, but not inside it.
5737 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5739 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5740 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5741 (vect_get_vec_def_for_operand): Split out code.
5743 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5745 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5747 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5749 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5751 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5753 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5755 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5758 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5759 to noreturn e->callee->decl that has void return type and void
5760 arguments, adjust gimple_call_fntype and remove lhs even if it had
5761 previously addressable type.
5763 2016-06-02 Jeff Law <law@redhat.com>
5765 PR tree-optimization/71328
5766 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5767 error when checking for a jump back onto the copied path.
5769 2016-06-02 David Malcolm <dmalcolm@redhat.com>
5771 * config/microblaze/microblaze.c (get_branch_target): Add return
5772 NULL_RTX for the non-CALL_P case.
5773 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5774 (insert_wic): Remove unused local "j".
5776 2016-06-02 Martin Liska <mliska@suse.cz>
5778 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5780 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
5781 Julia Koval <julia.koval@intel.com>
5783 * function.c (assign_parm_setup_stack): Force source into a
5785 * target.def (function_incoming_arg): Update documentation to
5786 allow arbitrary address computation based on hard register.
5787 * doc/tm.texi: Regenerated.
5789 2016-06-02 Martin Liska <mliska@suse.cz>
5791 * predict.c (combine_predictions_for_bb): Fix first match in
5792 cases where a first predictor contains more than one occurence
5793 in list of predictors. Take the best value in such case.
5795 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5797 PR rtl-optimization/71295
5798 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5799 offset would go over the size of the inner mode reject it.
5801 2016-06-02 Jakub Jelinek <jakub@redhat.com>
5803 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5804 x=x,x and v=v,m instead of x=x,m.
5806 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5807 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
5808 alternative to v=rm,C.
5810 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5811 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
5812 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
5813 instead of vex for the last two above mentioned alternatives.
5815 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5818 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5820 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
5822 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5824 2016-06-01 David Malcolm <dmalcolm@redhat.com>
5826 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5827 from int to unsigned.
5829 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5831 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5832 alternatives, eliminating preferred register class. Add support
5833 for the MTVSRDD instruction in ISA 3.0.
5834 (vsx_splat_v4si_internal): Use splat_input_operand instead of
5835 reg_or_indexed_operand.
5836 (vsx_splat_v4sf_internal): Likewise.
5838 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5841 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5842 for loading up all 0's or all 1's.
5844 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5846 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5848 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
5850 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5852 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5853 * gcc.c (set_source_date_epoch_envvar): New function, sets
5854 the SOURCE_DATE_EPOCH environment variable to the current time.
5856 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5858 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5859 the factor for live Phi nodes.
5861 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5863 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5864 * tree-parloops.c (parallelize_loops): likewise.
5865 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5866 tree_unswitch_outer_loop): likewise.
5868 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5871 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5872 around creation of the temporary.
5874 2016-06-01 Richard Biener <rguenther@suse.de>
5876 PR tree-optimization/71366
5877 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5878 (unloop_loops): Move removing edges here ...
5879 (try_unroll_loop_completely): ... from here.
5880 (try_peel_loop): ... and here.
5881 (tree_unroll_loops_completely_1): Track parent loops via
5882 bitmap of header BBs.
5883 (tree_unroll_loops_completely): Adjust for that.
5885 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5887 * config/rs6000/altivec.h (vec_slv): New macro.
5888 (vec_srv): New macro.
5889 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5890 (UNSPEC_VSRV): New value.
5893 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5894 (vsrv): New builtin definition.
5895 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5896 define argument types for new builtin.
5897 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5899 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5902 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5903 Jocelyn Mayer <l_indien@magic.fr>
5906 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5907 detect processor family for signature_CENTAUR_ebx.
5908 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5909 signature_CENTAUR_ebx.
5910 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5911 <default>: Pass x86-64 for has_longmode.
5913 2016-06-01 Nathan Sidwell <nathan@acm.org>
5915 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5918 2016-06-01 Richard Biener <rguenther@suse.de>
5920 PR tree-optimization/71261
5921 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5922 of stmts successfully put in the bool pattern. Remove
5923 single-use restriction.
5924 (adjust_bool_pattern_cast): Add cast at the use site via the
5925 pattern def sequence.
5926 (adjust_bool_pattern): Remove recursion, maintain a hash-map
5927 of patterned defs. Use the pattern def seqence instead of
5928 multiple independent patterns.
5929 (sort_after_uid): New qsort compare function.
5930 (adjust_bool_stmts): New function to process stmts in the bool
5931 pattern in IL order.
5932 (vect_recog_bool_pattern): Adjust.
5933 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5934 (ifcvt_walk_pattern_tree): Likewise.
5935 (stmt_is_root_of_bool_pattern): Likewise.
5936 (ifcvt_repair_bool_pattern): Likewise.
5937 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5939 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5941 * loop-unroll.c (decide_unroll_constant_iterations,
5942 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5943 likely upper bounds.
5944 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5946 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
5948 * tree-core.h (enum omp_clause_code): Remove
5949 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
5951 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5953 * config/arm/sync.md (arm_store_exclusive<mode>):
5954 Use 'H' output modifier on operands[2] rather than creating a new
5955 entry in out-of-bounds memory of the operands array.
5956 (arm_store_release_exclusivedi): Likewise.
5958 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5960 * config/arm/arm.c (arm_fusion_enabled_p): New function.
5961 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5962 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5963 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5965 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5967 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5968 into account live statements for mask producers.
5970 2016-06-01 Richard Biener <rguenther@suse.de>
5972 PR tree-optimization/71311
5973 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5974 restrict to non-INTEGER_CST @0.
5976 2016-06-01 Richard Biener <rguenther@suse.de>
5978 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5979 (relational patterns): Use :c to avoid pattern duplications.
5981 2016-06-01 Richard Biener <rguenther@suse.de>
5983 * genmatch.c (comparison_code_p): New predicate.
5984 (swap_tree_comparison): New function.
5985 (commutate): Add for_vec parameter to append new for entries.
5986 Support commutating relational operators by swapping it alongside
5988 (lower_commutative): Adjust.
5989 (dt_simplify::gen): Do not pass artificial operators to gen
5991 (decision_tree::gen): Do not add artificial operators as parameters.
5992 (parser::parse_expr): Verify operator commutativity when :c is
5993 applied. Allow :C to override this.
5994 * match.pd: Adjust patterns to use :C instead of :c where required.
5996 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
5998 PR tree-optimization/71077
5999 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
6000 the combining step, use boolean_false_node and boolean_true_node
6001 as the designated false/true return values.
6003 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
6005 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
6006 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
6007 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
6010 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
6012 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
6013 of flags impliying the register renaming.
6014 * toplev.c (process_options): Do not imply flag_rename_registers with
6017 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
6019 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
6020 default implementation.
6022 2016-05-31 Nathan Sidwell <nathan@acm.org>
6024 * dwarf2out.c (cur_line_info_table): Add GTY marker.
6026 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
6028 * config/sh/constraints.md (b): Remove constraint.
6029 * config/sh/predicates.md (arith_reg_operand): Remove
6031 * config/sh/sh-modes.def (PDI): Remove.
6032 * config/sh/sh.c (sh_target_reg_class,
6033 sh_optimize_target_register_callee_saved): Remove functions.
6034 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
6035 (sh_expand_epilogue): Update comment.
6036 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
6037 sh_secondary_reload): Remove TARGET_REGS related code.
6038 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
6039 TARGET_REGISTER_P): Remove macros.
6040 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
6041 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
6042 TR1_REG, TR2_REG): Remove constants.
6043 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
6045 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
6047 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
6048 define_expand patterns.
6049 (adddi3_compact): Rename to adddi3.
6050 (subdi3_compact): Rename to subdi3.
6051 (*negdi2): Rename to negdi2.
6052 (*abs<mode>2): Rename to abs<mode>2.
6054 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
6056 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
6057 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
6058 (atomic_sub_fetchsi): ... this new pattern.
6059 (mvtc): Add CC_REG clobber.
6061 2016-05-31 Marek Polacek <polacek@redhat.com>
6063 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
6065 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6067 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
6068 aarch64_fusion_enabled_p to check for fusion capabilities.
6070 2016-05-31 Richard Biener <rguenther@suse.de>
6072 PR tree-optimization/71352
6073 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
6074 minus one and a negate.
6076 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6078 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
6079 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6081 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
6082 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
6083 Remove use of aarch64_simd_attr_length_move, set length attribute
6085 (*aarch64_be_movoi): Likewise.
6086 (*aarch64_be_movci): Likewise.
6087 (*aarch64_be_movxi): Likewise.
6089 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
6091 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
6092 It no longer does that.
6093 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
6095 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
6097 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
6098 attribute __unused__.
6100 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
6102 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
6103 * config/arm/arm.c (arm_arch_thumb1): Define.
6104 (arm_option_override): Initialize arm_arch_thumb1.
6105 * config/arm/arm.h (arm_arch_thumb1): Declare.
6106 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
6107 support Thumb-1 ISA.
6109 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
6112 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
6113 `Yv' for scalar operand.
6115 2016-05-31 Tom de Vries <tom@codesourcery.com>
6117 PR tree-optimization/69068
6118 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
6119 phis with more than two args.
6121 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
6123 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
6124 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
6127 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
6129 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
6131 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
6133 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
6134 cpu_32, cpu_64, tune_32 and tune_64.
6135 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
6137 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
6139 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
6141 2016-05-30 Andi Kleen <ak@linux.intel.com>
6143 * auto-profile.c (read_profile): Replace asserts with errors
6144 when file does not exist.
6145 * gcov-io.c (gcov_read_words): Dito.
6147 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
6149 * tree-cfg.c (print_loop): Print likely upper bounds.
6151 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
6153 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
6154 * opts.c (default_options): Enable peel loops at -O3.
6155 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
6156 (try_peel_loop): Do not re-peel already peeled loops;
6157 use likely upper bounds; fix profile updating.
6158 (pass_complete_unroll::execute): Initialize peeled_loops.
6160 2016-05-30 Martin Liska <mliska@suse.cz>
6162 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
6163 computed costs by frequency of BB they belong to.
6164 (get_scaled_computation_cost_at): New function.
6166 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
6167 Marc Glisse <marc.glisse@inria.fr>
6169 PR tree-optimization/71289
6170 * match.pd (-1 / B < A, A > -1 / B): New transformations.
6172 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
6174 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
6176 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
6178 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
6179 for peeled copies; avoid underflow when updating estimates; correctly
6182 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
6184 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
6185 r236875. Corrected oe3 to oe2 as obvious.
6187 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
6191 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
6192 that inserted stmt will not dominate stmts that defines its operand.
6193 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
6194 (rewrite_expr_tree_parallel): Likewise.
6196 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
6199 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
6200 all fields including stmt_to_insert are swapped.
6202 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
6204 * predict.h (force_edge_cold): Declare.
6205 * predict.c (force_edge_cold): New function.
6206 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
6208 (canonicalize_loop_induction_variables): Fix formating.
6210 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
6212 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
6213 (visium_expand_copysign): Use gen_int_mode directly.
6214 (visium_compute_frame_size): Minor tweaks.
6216 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
6218 * tree-vect-loop.c (vect_analyze_loop_2): Use
6219 likely_max_stmt_executions_int.
6221 2016-05-30 Tom de Vries <tom@codesourcery.com>
6223 PR tree-optimization/69067
6224 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
6226 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
6229 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
6230 New peepholes to remove unneeded fild/fistp pairs.
6231 (define_peephole2 atomic_loaddi_fpu): Ditto.
6233 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6235 * predict.c (maybe_hot_frequency_p): Avoid division.
6237 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
6239 * doc/install.texi: Use https for shop.fsf.org.
6241 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6243 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
6244 likely_max_stmt_executions_int.
6246 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6248 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
6249 likely_max_stmt_executions_int.
6251 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6253 * profile.c (compute_branch_probabilities): Do not report hitrates
6255 (branch_prob): Report hitrates here.
6256 * predict.c (gimple_predict_edge): Do not assert profile status;
6257 fix formatting issues.
6259 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6261 * predict.c (edge_predicted_by_p): New function.
6262 (predict_paths_for_bb): Do not put multiple predictions of the same type
6265 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6267 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
6270 2016-05-28 Alan Modra <amodra@gmail.com>
6272 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
6274 2016-05-28 Alan Modra <amodra@gmail.com>
6276 PR rtl-optimization/71275
6277 * ira.c (ira): Free dominance info.
6279 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
6281 * doc/sourcebuild.texi: New address for upstream Go repository.
6283 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6285 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
6286 (TARGET_ARM_V7M): Likewise.
6288 2016-05-26 Jeff Law <law@redhat.com>
6290 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
6291 (thread_across_edge): Remove calls to find_jump_threads_backwards.
6292 * passes.def: Add jump threading passes before DOM/VRP.
6293 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
6294 argument to a basic block from an edge. Remove tests which are
6296 (pass_data_thread_jumps, class pass_thread_jumps): New.
6297 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
6298 (make_pass_thread_jumps): Likewise.
6299 * tree-pass.h (make_pass_thread_jumps): Declare.
6301 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
6303 * config/visium/visium-protos.h (split_double_move): Rename into...
6304 (visium_split_double_move): ...this.
6305 (visium_split_double_add): Declare.
6306 * config/visium/visium.c (split_double_move): Rename into...
6307 (visium_split_double_move): ...this.
6308 (visium_split_double_add): New function.
6309 (visium_expand_copysign): Renumber operands for consistency.
6310 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
6311 (DFmode move splitter): Likewise.
6312 (*addi3_insn): Split by means of visium_split_double_add.
6313 (*adddi3_insn_flags): Delete.
6314 (*plus_plus_sltu<subst_arith>): New insn.
6315 (*subdi3_insn): Split by means of visium_split_double_add.
6316 (subdi3_insn_flags): Delete.
6317 (*minus_minus_sltu<subst_arith>): New insn.
6318 (*negdi2_insn): Split by means of visium_split_double_add.
6319 (*negdi2_insn_flags): Delete.
6321 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
6323 * configure.ac: Treat a --with-headers option without argument
6324 the same as the default (i.e. consult sys-include directory).
6325 * configure: Regenerate.
6327 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6329 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
6330 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
6332 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
6333 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
6335 2016-05-27 Jiong Wang <jiong.wang@arm.com>
6338 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
6339 tree-stdarg analysis results.
6340 (aarch64_setup_incoming_varargs): Likewise.
6342 2016-05-27 Jiong Wang <jiong.wang@arm.com>
6344 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
6345 va_list_gpr_counter_field and va_list_fpr_counter_field.
6347 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
6350 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
6351 * config/aarch64/aarch64.c
6352 (aarch64_cannot_change_mode_class): Remove function.
6353 * config/aarch64/aarch64-protos.h
6354 (aarch64_cannot_change_mode_class): Remove.
6356 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
6358 * cfgloop.c (record_niter_bound): Record likely upper bounds.
6359 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
6360 get_likely_max_loop_iterations_int): New.
6361 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
6362 any_likely_upper_bound.
6363 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
6365 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
6366 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
6368 (unroll_loop_constant_iterations): Likewise.
6369 (unroll_loop_runtime_iterations): Likewise.
6370 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
6371 * lto-streamer-out.c (output_cfg): Likewise.
6372 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
6374 (canonicalize_loop_induction_variables): Dump likely upper bounds.
6375 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
6376 (likely_max_loop_iterations): New.
6377 (likely_max_loop_iterations_int): New.
6378 (likely_max_stmt_executions): New.
6379 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
6380 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
6381 likely_max_stmt_executions): Declare.
6383 2016-05-27 Marek Polacek <polacek@redhat.com>
6386 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
6388 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6390 * config/s390/s390.md (2x risbg splitters): Use
6391 reg_overlap_mentioned_p instead of rtx_equal_p.
6393 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6395 * combine.c (make_compound_operation): Take known zero bits into
6396 account when checking for possible zero_extend.
6398 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6400 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
6401 Use const_int_operand for operand 2 predicate. Simplify expand code
6404 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
6407 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
6410 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6412 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
6413 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
6414 that returns CC_SESWPmode and CC_ZESWPmode.
6415 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
6417 (aarch64_rtx_costs): Likewise.
6419 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6421 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
6422 for ISA 3.0 min/max support.
6423 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
6424 conditional move support.
6425 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
6426 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
6428 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
6429 conditional moves where the comparison type is different from move
6431 (fp_minmax): New code iterator for smin/smax.
6432 (minmax): New code attributes for min/max.
6433 (SMINMAX): Likewise.
6434 (smax<mode>3): Combine min, max insns into one insn using the
6435 fp_minmax code iterator. Add support for ISA 3.0 min/max
6436 instructions that don't need -ffast-math.
6437 (s<minmax><mode>3): Likewise.
6438 (smax<mode>3_vsx): Likewise.
6439 (smin<mode>3): Likewise.
6440 (s<minmax><mode>3_vsx): Likewise.
6441 (smin<mode>3_vsx): Likewise.
6442 (pre-VSX min/max splitters): Likewise.
6443 (s<minmax><mode>3_fpr): Likewise.
6444 (movsfcc): Rewrite floating point conditional moves to combine
6445 SFmode/DFmode into a single insn.
6446 (mov<mode>cc): Likewise.
6447 (movdfcc): Likewise.
6448 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
6449 SFDF2 iterators to handle all combinations.
6450 (fseldfsf4): Likewise.
6451 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
6452 (fseldfdf4): Likewise.
6453 (fselsfdf4): Likewise.
6454 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
6455 comparison instructions that set a 0/-1 mask, and use it for
6456 floating point conditional move via XXSEL.
6457 (fpmask<mode>): Likewise.
6458 (xxsel<mode>): Likewise.
6459 * config/rs6000/predicates.md (min_max_operator): Delete, no
6461 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
6462 instructions that generate a 0/-1 mask for use with XXSEL.
6463 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
6464 say whether floating point min/max is available, either through
6465 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
6466 (TARGET_MINMAX_DF): Likewise.
6468 2016-05-27 Alan Modra <amodra@gmail.com>
6470 PR rtl-optimization/71275
6471 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
6472 for update_equiv_regs and combine_and_move_insns.
6474 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
6476 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
6477 if_then_else or cond RTXes to calculate attribute value.
6478 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
6479 <attr "length_immediate>: Ditto.
6480 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
6481 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
6482 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
6483 <attr "type">: Ditto.
6484 <attr "prefix_data16">: Ditto.
6485 <attr "prefix_extra">: Ditto.
6486 <attr "length_immediate">: Ditto.
6487 <attr "prefix">: Ditto.
6488 (vec_set<mode>_0) <attr "isa">: Ditto.
6489 <attr "prefix_extra">: Ditto.
6490 <attr "length_immediate">: Ditto.
6491 <attr "prefix">: Ditto.
6492 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
6493 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
6494 (sse2_storelpd) <attr "prefix_data16">: Ditto.
6495 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
6496 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
6497 <attr "length_immediate">: Ditto.
6498 <attr "prefix">: Ditto.
6499 (sse2_movsd) <attr "length_immediate">: Ditto.
6500 <attr "prefix">: Ditto.
6501 (vec_concatv2df) <attr "isa">: Ditto.
6502 <attr "prefix">: Ditto.
6503 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
6504 (*vec_extractv2di_1) <attr "isa">: Ditto.
6505 <attr "type">: Ditto.
6506 <attr "length_immediate">: Ditto.
6507 <attr "prefix_rex">: Ditto.
6508 <attr "prefix_extra">: Ditto.
6509 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
6510 <attr "prefix_extra">: Ditto.
6511 <attr "length_immediate">: Ditto.
6512 (vec_concatv2di) <attr "isa">: Ditto.
6513 <attr "prefix_extra">: Ditto.
6514 <attr "length_immediate">: Ditto.
6515 <attr "prefix">: Ditto.
6517 2016-05-26 Martin Liska <mliska@suse.cz>
6519 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
6521 (operator+): Likewise.
6522 (operator-): Likewise.
6523 (comp_cost::operator+=): Likewise.
6524 (comp_cost::operator-=): Likewise.
6525 (comp_cost::operator/=): Likewise.
6526 (comp_cost::operator*=): Likewise.
6527 (operator<): Likewise.
6528 (operator==): Likewise.
6529 (operator<=): Likewise.
6531 (infinite_cost_p): Likewise.
6532 (add_costs): Likewise.
6533 (sub_costs): Likewise.
6534 (compare_costs): Likewise.
6535 (set_group_iv_cost): Use the newly introduced functions.
6536 (get_address_cost): Likewise.
6537 (get_shiftadd_cost): Likewise.
6538 (force_expr_to_var_cost): Likewise.
6539 (split_address_cost): Likewise.
6540 (ptr_difference_cost): Likewise.
6541 (difference_cost): Likewise.
6542 (get_computation_cost_at): Likewise.
6543 (determine_group_iv_cost_generic): Likewise.
6544 (determine_group_iv_cost_address): Likewise.
6545 (determine_group_iv_cost_cond): Likewise.
6546 (autoinc_possible_for_pair): Likewise.
6547 (determine_group_iv_costs): Likewise.
6548 (cheaper_cost_pair): Likewise.
6549 (iv_ca_recount_cost): Likewise.
6550 (iv_ca_set_no_cp): Likewise.
6551 (iv_ca_set_cp): Likewise.
6552 (iv_ca_cost): Likewise.
6553 (iv_ca_new): Likewise.
6554 (iv_ca_dump): Likewise.
6555 (iv_ca_narrow): Likewise.
6556 (iv_ca_prune): Likewise.
6557 (iv_ca_replace): Likewise.
6558 (try_add_cand_for): Likewise.
6559 (try_improve_iv_set): Likewise.
6560 (find_optimal_iv_set): Likewise.
6562 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
6564 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
6565 that internal functions will clobber all caller-saved registers.
6567 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
6569 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
6570 Return a better case_values_threshold when optimizing.
6572 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
6574 * config/aarch64/aarch64-simd.md (aarch64_combinez):
6575 Add ? to integer variant.
6576 (aarch64_combinez_be): Likewise.
6578 2016-05-26 Jakub Jelinek <jakub@redhat.com>
6580 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
6581 instead of x constraint.
6582 (vcvtps2ph256<mask_name>): Likewise.
6584 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
6585 alternative. Formatting fix.
6587 * config/i386/sse.md
6588 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
6590 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
6591 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
6592 maybe_evex prefix instead of vex.
6593 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
6594 EXT_REX_SSE_REG_P (op0) case in the splitter.
6596 2016-05-25 Jeff Law <law@redhat.com>
6598 PR tree-optimization/71272
6599 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
6600 Update comments. Add test for empty path.
6602 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6604 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
6605 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
6606 special case builtin.
6607 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6608 code for ALTIVEC_BUILTIN_VEC_CMPNE.
6609 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6610 for __builtin_vec_cmpne.
6612 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
6614 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
6615 redundant test and bail out if the type of the new operand is not
6616 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
6618 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
6620 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
6621 (x_ix86_target_flags_explicit): Remove.
6622 * config/i386/i386.c (ix86_function_specific_save): Do not copy
6623 x_ix86_target_flags_explicit.
6624 (ix86_function_specific_restore): Ditto.
6626 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
6627 H.J. Lu <hongjiu.lu@intel.com>
6630 * common/config/i386/i386-common.c
6631 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6632 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6633 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6634 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6635 (-mgeneral-regs-only): Add new option.
6636 * config/i386/i386.c (ix86_option_override_internal): Don't enable
6637 x87 instructions if only general registers are allowed.
6638 (ix86_target_string): Add ix86_flags argument. Handle additional
6639 flags options through ix86_flags argument. Update all callers.
6640 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6642 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6644 PR rtl-optimization/66940
6645 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6646 decrementing desired_val will not overflow before performing these
6649 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
6651 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6652 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6653 * config/i386/i386.c (enum ix86_builtins): Add
6654 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6655 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6656 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6657 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6658 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6659 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6660 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6661 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6662 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6663 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6664 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6665 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6666 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6667 __builtin_ia32_cvtps2dq512_mask.
6668 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6669 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6670 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6671 * config/i386/sse.md
6672 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6674 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6675 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6677 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6678 (avx512f_vec_pack_sfix_v8df): New define_expand.
6679 (avx512f_roundpd512): Rename to ...
6680 (avx512f_round<castmode>512): ... this. Change iterator.
6681 (avx512f_roundps512_sfix): New define_expand.
6682 (round<mode>2_sfix): Change iterator.
6684 2016-05-25 Nick Clifton <nickc@redhat.com>
6686 * config/msp430/msp430.c (msp430_attr): Produce an error if a
6687 static interrupt handler is detected.
6688 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6689 default linker script.
6690 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6691 the low part of a symbolic pointer.
6693 2016-05-25 Richard Biener <rguenther@suse.de>
6695 PR tree-optimization/71261
6696 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6697 interesting stmt instead of immediate uses when looking
6698 for the use operand to replace.
6700 2016-05-25 Martin Liska <mliska@suse.cz>
6702 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6704 2016-05-25 Richard Biener <rguenther@suse.de>
6706 PR tree-optimization/71264
6707 * tree-vect-stmts.c (vect_init_vector): Properly deal with
6710 2016-05-25 Martin Liska <mliska@suse.cz>
6712 PR tree-optimization/71239
6713 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6714 if DECL_SIZE is NULL.
6716 2016-05-25 Richard Biener <rguenther@suse.de>
6718 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6719 * tree-if-conv.c (pass_data_if_conversion): Use it.
6721 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6723 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6724 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6725 * varpool.c (varpool_node::get_availability): Likewise.
6727 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6729 * config/rs6000/altivec.md (VNEG iterator): New iterator for
6730 VNEGW/VNEGD instructions.
6731 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6732 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6733 support for ISA 3.0 VNEGW/VNEGD instructions.
6735 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6737 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6738 pointers inside OACC_DATA regions.
6739 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6740 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6741 (gimplify_adjust_omp_clauses): Fix typo in comment.
6743 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6745 * config/rs6000/altivec.md (VParity): New mode iterator for vector
6746 parity built-in functions.
6747 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6749 (p9v_parity<mode>2): Likewise.
6750 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6752 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6753 (parity<mode>2): ISA 3.0 expander for vector parity.
6754 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6756 (BU_P9_64BIT_MISC_0): Likewise.
6757 (BU_P9_MISC_0): Likewise.
6758 (BU_P9V_AV_1): Likewise.
6759 (BU_P9V_AV_2): Likewise.
6760 (BU_P9V_AV_3): Likewise.
6761 (BU_P9V_AV_P): Likewise.
6762 (BU_P9V_VSX_1): Likewise.
6763 (BU_P9V_OVERLOAD_1): Likewise.
6764 (BU_P9V_OVERLOAD_2): Likewise.
6765 (BU_P9V_OVERLOAD_3): Likewise.
6766 (VCTZB): Add vector count trailing zeros support.
6770 (VPRTYBD): Add vector parity support.
6771 (VPRTYBQ): Likewise.
6772 (VPRTYBW): Likewise.
6773 (VCTZ): Add overloaded vector count trailing zeros support.
6774 (VPRTYB): Add overloaded vector parity support.
6775 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6776 overloaded vector count trailing zeros and parity instructions.
6777 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6778 vector parity support.
6779 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6780 trailing zeros support.
6781 (vec_cntlz): Likewise.
6782 (vec_vctzb): Likewise.
6783 (vec_vctzd): Likewise.
6784 (vec_vctzh): Likewise.
6785 (vec_vctzw): Likewise.
6786 (vec_vprtyb): Add ISA 3.0 vector parity support.
6787 (vec_vprtybd): Likewise.
6788 (vec_vprtybw): Likewise.
6789 (vec_vprtybq): Likewise.
6790 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6791 the ISA 3.0 vector count trailing zeros and vector parity built-in
6794 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6796 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6797 when there is stmt_to_insert.
6799 2016-05-24 Martin Sebor <msebor@redhat.com>
6802 * tree.h (complete_or_array_type_p): New inline function.
6804 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6806 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6807 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6808 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6810 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6811 Limit 1st alternative to noavx isa, split 2nd alternative into one
6812 noavx and one avx alternative, use *x and Bm in the former and
6813 x and m in the latter.
6815 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6816 of sse4 for the first alternative, drop %v from the template
6817 and d operand modifier. Split second alternative into one sse4_noavx
6818 and one avx alternative, use *x instead of *v in the former and v
6819 instead of *v in the latter.
6820 (*sse4_1_extractps): Use noavx isa instead of * for the first
6821 alternative, drop %v from the template. Split second alternative into
6822 one noavx and one avx alternative, use *x instead of *v in the
6823 former and v instead of *v in the latter.
6824 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6825 with noavx and the last one with avx.
6826 (sse4_1_phminposuw): Guard first alternative with noavx isa,
6827 split the second one into one noavx and one avx alternative,
6828 use *x and Bm in the former and x and m in the latter one.
6829 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6832 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6833 first two alternatives to noavx, use *x instead of *v in the second
6834 one, add avx alternative without *.
6835 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6836 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6837 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6839 2016-05-24 Jeff Law <law@redhat.com>
6841 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6842 New function, extracted from...
6843 (fsm_find_control_statement_thread_paths): Here. Use the new function.
6844 Allow simple copies and constant initializations in the SSA chain.
6846 2016-05-24 Marek Polacek <polacek@redhat.com>
6849 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6852 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6855 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6856 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6857 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
6858 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6859 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6861 2016-05-24 Richard Biener <rguenther@suse.de>
6863 PR tree-optimization/71240
6864 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6867 2016-05-24 Richard Biener <rguenther@suse.de>
6869 PR tree-optimization/71230
6870 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6872 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6874 * tree-vectorizer.h (vectorizable_comparison): Delete.
6875 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6876 PURE_SLP_STMT check.
6877 * tree-vect-stmts.c (vectorizable_call): Likewise.
6878 (vectorizable_simd_clone_call): Likewise.
6879 (vectorizable_conversion): Likewise.
6880 (vectorizable_assignment): Likewise.
6881 (vectorizable_shift): Likewise.
6882 (vectorizable_operation): Likewise.
6883 (vectorizable_load): Likewise.
6884 (vectorizable_condition): Likewise.
6885 (vectorizable_store): Likewise. Assert that we don't have
6887 (vectorizable_comparison): Make static. Remove redundant
6888 PURE_SLP_STMT check.
6889 (vect_transform_stmt): Assert that we always have an slp_node
6892 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6894 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
6895 operands[2] against 1 with comparison against CONST1_RTX.
6896 (<shift>di3_neon): Likewise.
6897 * config/arm/predicates.md (const0_operand): Replace with comparison
6900 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6902 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6903 operands[2] against 1 with comparison against CONST1_RTX.
6904 (ashrdi3): Likewise.
6905 (lshrdi3): Likewise.
6906 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6908 (ashrsi3): Likewise.
6909 (lshrsi3): Likewise.
6910 (rotrsi3): Likewise.
6911 (define_split above *compareqi_eq0): Likewise.
6912 (define_split above "prologue"): Likewise.
6913 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6914 * config/arm/predicates.md (shift_operator): Likewise.
6915 (shift_nomul_operator): Likewise.
6916 (sat_shift_operator): Likewise.
6917 (thumb1_cmp_operand): Likewise.
6918 (const_neon_scalar_shift_amount_operand): Replace manual range
6919 check with IN_RANGE.
6920 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6921 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6923 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6925 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6926 with HOST_WIDE_INT_1.
6928 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6929 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6930 (arm_canonicalize_comparison): Likewise.
6931 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6933 (thumb1_size_rtx_costs): Likewise.
6934 (vfp_const_double_index): Replace cast of 1 to unsigned
6935 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6936 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6938 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6939 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6940 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6941 HOST_WIDE_INT with HOST_WIDE_INT_1.
6943 2016-05-24 Marek Polacek <polacek@redhat.com>
6945 * tree-cfg.h (should_remove_lhs_p): New predicate.
6946 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6947 * gimplify.c (gimplify_modify_expr): Likewise.
6948 * tree-cfg.c (verify_gimple_call): Likewise.
6949 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6950 * gimple-fold.c: Include "tree-cfg.h".
6951 (gimple_fold_call): Use should_remove_lhs_p.
6953 2016-05-24 Richard Biener <rguenther@suse.de>
6955 PR tree-optimization/71253
6956 * cfganal.h (control_dependences): Make robust against edge
6958 (control_dependences::control_dependences): Remove edge_list argument.
6959 (control_dependences::get_edge): Remove.
6960 (control_dependences::get_edge_src): Add.
6961 (control_dependences::get_edge_dest): Likewise.
6962 (control_dependences::m_el): Make a vector of edge src/dest index.
6963 * cfganal.c (control_dependences::find_control_dependence): Adjust.
6964 (control_dependences::control_dependences): Likewise.
6965 (control_dependences::~control_dependence): Likewise.
6966 (control_dependences::get_edge): Remove.
6967 (control_dependences::get_edge_src): Add.
6968 (control_dependences::get_edge_dest): Likewise.
6969 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6971 (perform_tree_ssa_dce): Adjust.
6972 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6974 (pass_loop_distribution::execute): Adjust. Do loop destroying
6975 conditional on changed.
6977 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6980 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6981 return. Reindent transformation comment and mention the ARM state
6984 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6987 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6988 after build_and_add_sum creates new use stmt.
6990 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6992 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6993 load_lanes/grouped_load classification comes first. Don't check
6994 whether the vectorization factor is a multiple of the group size
6997 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6999 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
7000 GROUP_GAP for single-element interleaving.
7001 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
7004 2016-05-24 Richard Biener <rguenther@suse.de>
7008 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
7009 bases which are accessed with non-invariant indices.
7010 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
7011 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
7013 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
7016 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
7017 (add_to_ops_vec): Add stmt_to_insert.
7018 (add_repeat_to_ops_vec): Init stmt_to_insert.
7019 (insert_stmt_before_use): New.
7020 (transform_add_to_multiply): Remove mult_stmt insertion and add it
7022 (get_ops): Init stmt_to_insert.
7023 (maybe_optimize_range_tests): Likewise.
7024 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
7025 (rewrite_expr_tree_parallel): Likewise.
7026 (reassociate_bb): Likewise.
7028 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7031 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
7032 ISA 3.0 xxperm fusion alternative.
7033 (altivec_vperm_v8hiv16qi): Likewise.
7034 (altivec_vperm_<mode>_uns_internal): Likewise.
7035 (vperm_v8hiv4si): Likewise.
7036 (vperm_v16qiv8hi): Likewise.
7038 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7039 Kelvin Nilsen <kelvin@gcc.gnu.org>
7041 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
7042 vpermr/xxpermr on ISA 3.0.
7043 (altivec_expand_vec_perm_le): Likewise.
7044 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
7045 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
7048 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
7050 * config/i386/i386.h (IS_STACK_MODE): Enable for
7051 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
7052 SSE_FLOAT_MODE_P macros.
7053 * config/i386/i386.c (ix86_preferred_reload_class): Use
7054 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
7055 Cleanup regclass processing for CONST_DOUBLE_P.
7056 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
7057 (ix86_rtx_costs): Remove redundant TARGET_80387 check
7058 with IS_STACK_MODE macro.
7059 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
7061 (*movdf_internal): Use IS_STACK_MODE macro.
7062 (*movsf_internal): Ditto.
7064 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
7066 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
7067 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
7069 2016-05-23 Jeff Law <law@redhat.com>
7071 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
7073 (fsm_find_control_statement_thread_paths): Call it.
7075 2016-05-23 Martin Jambor <mjambor@suse.cz>
7078 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
7079 from_global_constant if t is not NULL.
7081 2016-05-23 Marek Polacek <polacek@redhat.com>
7084 * common.opt (Wswitch-unreachable): New option.
7085 * doc/invoke.texi: Document -Wswitch-unreachable.
7086 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
7089 2016-05-23 Bin Cheng <bin.cheng@arm.com>
7091 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
7092 TMR_INDEX is non-NULL.
7094 2016-05-23 Richard Biener <rguenther@suse.de>
7096 PR tree-optimization/71230
7097 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
7098 (try_special_add_to_ops): ... here. Always test for single-use.
7100 2016-05-23 Martin Jambor <mjambor@suse.cz>
7102 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
7103 default block if a PHI node in the original one would be resized.
7105 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7107 PR tree-optimization/58135
7108 * tree-vect-slp.c: When group size is not multiple
7109 of vector size, allow splitting of store group at
7112 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
7114 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
7116 2016-05-22 Jakub Jelinek <jakub@redhat.com>
7118 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
7119 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
7120 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
7123 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
7124 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
7125 v constraint instead of x and vinserti32x4 insn.
7127 * config/i386/sse.md (i128vldq): New mode iterator.
7128 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
7129 avx512dq and avx512vl alternatives.
7131 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
7132 constraint, use maybe_evex prefix instead of vex.
7133 (vec_dupv4sf): Use v constraint instead of x for output
7134 operand except for noavx alternative, use Yv constraint
7135 instead of x for input. Use maybe_evex prefix instead of vex.
7136 (*vec_dupv4si): Likewise.
7137 (*vec_dupv2di): Likewise.
7139 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7142 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
7143 (linearize_expr_tree): Call try_special_add_to_ops.
7144 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
7146 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7148 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
7149 to computed stack_usage.
7151 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7154 * config/avr/avr.md (define_expand "mov<mode>"): If the source
7155 operand is subreg (symbol_ref) then move the symbol ref to register.
7157 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
7159 * tree.c (array_at_struct_end_p): Look through MEM_REF.
7161 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7164 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
7167 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
7169 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
7170 ranges by calling get_single_symbol and tidy up. Look more closely
7171 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
7173 2016-05-20 Jeff Law <law@redhat.com>
7175 * bitmap.c (bitmap_find_bit): Remove useless test.
7177 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
7179 * function.c (thread_prologue_and_epilogue_insns): Commit the
7180 insertion of the epilogue.
7182 2016-05-20 Martin Jambor <mjambor@suse.cz>
7184 PR tree-optimization/70884
7185 * tree-sra.c (initialize_constant_pool_replacements): Do not check
7186 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
7187 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
7188 of constant pool data as a reason for scalarization.
7190 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
7192 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
7193 for naked functions.
7194 (thumb1_expand_prologue): Likewise.
7196 2016-05-20 Nathan Sidwell <nathan@acm.org>
7198 * config/nvptx/nptx.c (nvptx_option_override): Only set
7199 flag_toplevel_reorder, if not explicitly specified. Set
7200 flag_no_common, unless explicitly specified.
7202 2016-05-20 David Malcolm <dmalcolm@redhat.com>
7204 * calls.c (can_implement_as_sibling_call_p): Mark param
7205 reg_parm_stack_space with ATTRIBUTE_UNUSED.
7207 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
7209 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
7210 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
7211 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
7213 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
7214 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
7217 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
7219 * config/nvptx/nvptx.md (sincossf3): New pattern.
7221 2016-05-20 David Malcolm <dmalcolm@redhat.com>
7223 * calls.c (maybe_complain_about_tail_call): New function.
7224 (initialize_argument_information): Call
7225 maybe_complain_about_tail_call when clearing *may_tailcall.
7226 (can_implement_as_sibling_call_p): Call
7227 maybe_complain_about_tail_call when returning false.
7228 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
7229 ensure try_tail_call is set. Call maybe_complain_about_tail_call
7230 if tail-call optimization fails.
7231 * cfgexpand.c (expand_call_stmt): Initialize
7232 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
7233 * gimple-pretty-print.c (dump_gimple_call): Dump
7234 gimple_call_must_tail_p.
7235 * gimple.c (gimple_build_call_from_tree): Call
7236 gimple_call_set_must_tail with the value of
7237 CALL_EXPR_MUST_TAIL_CALL.
7238 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
7239 (gimple_call_set_must_tail): New function.
7240 (gimple_call_must_tail_p): New function.
7241 * print-tree.c (print_node): Update printing of TREE_STATIC
7242 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
7243 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
7244 trailing comment listing applicable flags.
7245 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
7247 2016-05-20 David Malcolm <dmalcolm@redhat.com>
7249 * calls.c (expand_call): Move "Rest of purposes for tail call
7250 optimizations to fail" to...
7251 (can_implement_as_sibling_call_p): ...this new function, and
7252 split into multiple "if" statements.
7254 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
7256 * cfgloop.h (expected_loop_iterations_unbounded,
7257 expected_loop_iterations): Unconstify.
7258 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
7259 profile with known upper bound; return 3 when profile is absent.
7260 (expected_loop_iterations): Update.
7262 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
7264 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
7265 and get_max_loop_iterations_int.
7267 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
7269 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
7270 realistic upper bounds here.
7272 2016-05-20 Jakub Jelinek <jakub@redhat.com>
7275 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
7276 calls if the LHS is variable length or has addressable type.
7277 If targets[0]->decl is a noreturn call with void return type and
7278 zero arguments, adjust fntype and remove lhs in that case.
7280 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
7282 PR tree-optimization/71079
7283 PR tree-optimization/71206
7284 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
7286 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7288 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
7289 (get_vec_alignment_for_array_decl): Likewise.
7290 (get_vec_alignment_for_record_decl): Likewise.
7291 (increase_alignment::execute): Move code to find alignment to
7292 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
7293 (type_align_map): New hash_map.
7295 2016-05-20 Richard Guenther <rguenther@suse.de>
7297 PR tree-optimization/29756
7298 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
7299 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
7300 * fold-const.c (operand_equal_p): Likewise.
7301 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
7302 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
7303 * tree-inline.c (estimate_operator_cost): Likewise.
7304 * tree-pretty-print.c (dump_generic_node): Likewise.
7305 * tree-ssa-operands.c (get_expr_operands): Likewise.
7306 * cfgexpand.c (expand_debug_expr): Likewise.
7307 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7308 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
7309 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
7310 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
7311 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
7312 (execute_update_addresses_taken): Do it.
7314 2016-05-20 Richard Biener <rguenther@suse.de>
7316 PR tree-optimization/71185
7317 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
7318 register operations.
7320 2016-05-20 Richard Biener <rguenther@suse.de>
7322 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
7323 gimple_seq_add_seq_without_update.
7324 (release_bb_predicate): Assert we have no operands to free.
7325 (if_convertible_loop_p_1): Calculate post dominators later.
7326 Do not free BB predicates here.
7327 (combine_blocks): Do not recompute BB predicates.
7328 (version_loop_for_if_conversion): Save BB predicates around
7331 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7333 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
7334 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
7335 code. Ignore sibcalls on EDGE_IGNORE edges.
7336 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
7337 on edges for sibcalls that run without prologue. The rest of the
7338 function is combined from...
7339 (fix_fake_fallthrough_edge): ... this, and ...
7340 (try_shrink_wrapping): ... a part of this. Remove the bb_with
7341 function argument, make it a local variable.
7343 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
7345 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
7346 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
7347 for 32-bit mode and SEH for 64-bit.
7348 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
7349 TARGET_64BIT_DEFAULT.
7351 2016-05-19 Ryan Burn <contact@rnburn.com>
7353 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
7354 * gengtype.c (open_base_files): Add cilk.h to ifiles.
7356 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
7358 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
7359 force pending loads from memory.
7361 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
7363 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
7364 (UNSPEC_DARN_32): New unspec constant.
7365 (UNSPEC_DARN_RAW): New unspec constant.
7366 (darn_32): New instruction.
7367 (darn_raw): New instruction.
7368 (darn): New instruction.
7369 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
7370 support and documentation for this macro.
7371 (BU_P9_MISC_1): New macro definition.
7372 (BU_P9_64BIT_MISC_0): New macro definition.
7373 (BU_P9_MISC_0): New macro definition.
7374 (darn_32): New builtin definition.
7375 (darn_raw): New builtin definition.
7376 (darn): New builtin definition.
7377 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
7378 RS6000_BUILTIN_0 directives to surround each occurrence of
7379 #include "rs6000-builtin.def".
7380 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
7381 RS6000_BTM_64BIT flags to the returned mask, depending on
7383 (def_builtin): Correct an error in the assignments made to the
7384 debugging variable attr_string.
7385 (rs6000_expand_builtin): Add support for no-operand built-in
7387 (builtin_function_type): Remove fatal_error assertion that is no
7389 (rs6000_common_init_builtins): Add support for no-operand built-in
7391 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
7393 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
7395 (RS6000_BTM_64BIT): New macro definition.
7396 * doc/extend.texi: Document __builtin_darn (void),
7397 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
7400 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
7402 * tree-vect-loop.c (vect_analyze_loop_2): Use also
7403 max_loop_iterations_int.
7405 2016-05-19 Marek Polacek <polacek@redhat.com>
7407 PR tree-optimization/71031
7408 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
7409 condition and adjust the code a bit.
7411 2016-05-19 Martin Liska <mliska@suse.cz>
7413 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
7414 auto_vec instead of vec.
7416 2016-05-19 Martin Liska <mliska@suse.cz>
7418 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
7420 2016-05-19 Martin Liska <mliska@suse.cz>
7422 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
7424 2016-05-19 Martin Liska <mliska@suse.cz>
7426 * ipa-pure-const.c (set_function_state): Remove an existing
7428 (remove_node_data): Do not free it as it's released
7429 in set_function_state.
7431 2016-05-19 Martin Liska <mliska@suse.cz>
7433 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
7436 2016-05-19 Martin Liska <mliska@suse.cz>
7438 * omp-simd-clone.c (simd_clone_adjust): Release vector.
7440 2016-05-19 Martin Liska <mliska@suse.cz>
7442 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
7443 an auto_vec instead of re-creating it.
7445 2016-05-19 Martin Liska <mliska@suse.cz>
7447 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
7448 auto_vec instead of vec.
7450 2016-05-19 Martin Liska <mliska@suse.cz>
7452 * lto-section-in.c (lto_get_section_data): Call
7453 lto_check_version with additional argument.
7454 * lto-streamer.c (lto_check_version): Add new argument.
7455 * lto-streamer.h (lto_check_version): Likewise.
7457 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7459 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
7460 Don't add cost of inner memory when handling sign-extended loads.
7462 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
7464 PR rtl-optimization/71148
7465 * cse.c (cse_main): Free dominance info.
7466 (rest_of_handle_cse): Don't free dominance info.
7467 (rest_of_handle_cse2): Likewise.
7468 (rest_of_handle_cse_after_global_opts): Likewise.
7470 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7473 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
7474 NULL_TREE early if NEON is not available. Remove now redundant check
7475 in ARM_CHECK_BUILTIN_MODE.
7477 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
7480 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
7481 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
7482 * doc/cpp.texi: Document new macros.
7484 2016-05-19 Bin Cheng <bin.cheng@arm.com>
7486 PR tree-optimization/69848
7487 * tree-vect-loop.c (vectorizable_reduction): Don't factor
7488 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
7490 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7492 * function.c (thread_prologue_and_epilogue_insn): Move the
7493 "goto epilogue_done" one block later.
7495 2016-05-19 Richard Biener <rguenther@suse.de>
7497 PR tree-optimization/70729
7498 * passes.def: Move LIM pass before PRE. Remove no longer
7499 required copyprop and move first DCE out of the loop pipeline.
7501 2016-05-18 David Malcolm <dmalcolm@redhat.com>
7504 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
7505 (OBJS-libcommon-target): ...here.
7506 * opts-common.c: Include spellcheck.h.
7507 (cmdline_handle_error): Build a vec of valid options and use it
7508 to suggest provide hints for misspelled arguments.
7510 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7513 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
7514 lhs if it has TREE_ADDRESSABLE type.
7516 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
7519 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
7520 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
7522 2016-05-18 Martin Jambor <mjambor@suse.cz>
7525 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
7526 input for NOP_EXPR pass-through functions.
7527 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
7528 aggregate global constant VAR_DECLs in constant jump functions.
7530 2016-05-18 Martin Jambor <mjambor@suse.cz>
7533 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
7534 from TREE_READONLY parameters.
7536 2016-05-18 Martin Jambor <mjambor@suse.cz>
7539 * cgraph.h (cgraph_indirect_call_info): New field
7540 guaranteed_unmodified.
7541 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
7542 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7544 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
7545 pass the parameter value to ipa_find_agg_cst_for_param.
7546 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
7547 guaranteed_unmodified, store AA results there instead of bailing out
7549 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
7550 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
7551 (find_constructor_constant_at_offset): New function.
7552 (ipa_find_agg_cst_from_init): Likewise.
7553 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
7554 static initializers of contants, report back through a new paameter
7555 from_global_constant if that was the case.
7556 (try_make_edge_direct_simple_call): Also pass parameter value to
7557 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
7559 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
7560 (ipa_read_indirect_edge_info): Likewise.
7561 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
7562 (ipa_load_from_parm_agg): Likewise.
7564 2016-05-18 Jiong Wang <jiong.wang@arm.com>
7566 PR rtl-optimization/71150
7567 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
7570 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7573 * config/rs6000/constraints.md (wE constraint): New constraint
7574 for a vector constant that can be loaded with XXSPLTIB.
7575 (wM constraint): New constraint for a vector constant of a 1's.
7576 (wS constraint): New constraint for a vector constant that can be
7577 loaded with XXSPLTIB and a vector sign extend instruction.
7578 * config/rs6000/predicates.md (xxspltib_constant_split): New
7579 predicates for wE/wS constraints.
7580 (xxspltib_constant_nosplit): Likewise.
7581 (easy_vector_constant): Add support for constants that can be
7582 loaded via XXSPLTIB.
7583 (all_ones_constant): New predicate for vector constant with all
7585 (splat_input_operand): Add support for ISA 3.0 word splat operations.
7586 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
7587 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
7588 instruction and possibly with a sign extension.
7589 (output_vec_const_move): Add support for XXSPLTIB. If we are
7590 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
7591 instead of XXLXOR/XXLORC.
7592 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
7594 (rs6000_legitimize_reload_address): Likewise.
7595 (rs6000_output_move_128bit): Use output_vec_const_move to emit
7597 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
7598 combine VSX_M and VSX_M2 into one iterator.
7600 (VSINT_84): New iterators for loading constants with XXSPLTIB.
7601 (VSINT_842): Likewise.
7602 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
7603 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
7604 XXSPLTIB instruction.
7605 (xxspltib_<mode>_nosplit): Likewise.
7606 (xxspltib_<mode>_split): New insn to load up constants with
7607 XXSPLTIB and a sign extend instruction.
7608 (vsx_mov<mode>): Replace single move that handled all vector types
7609 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
7610 moves (when -mvsx-timode is in effect) into the main vector
7611 moves. Eliminate separate moves for <VSr> <VSa>, where the
7612 preferred register class (<VSr>) is listed first, and the
7613 secondary register class (<VSa>) is listed second with a '?' to
7614 discourage use. Prefer loading 0/-1 in any VSX register for ISA
7615 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
7616 that if the register was involved in a slow operation, the
7617 clear/set operation does not wait for the slow operation to
7618 finish. Adjust the length attributes for 32-bit mode. Use
7619 rs6000_output_move_128bit and drop the use of the string
7620 instructions for 32-bit movti when -mvsx-timode is in effect. Use
7621 spacing so that the alternatives and attributes don't generate
7622 long lines, and put things in columns, so that it is easier to
7623 match up the operands and attributes with the insn alternatives.
7624 (vsx_mov<mode>_64bit): Likewise.
7625 (vsx_mov<mode>_32bit): Likewise.
7626 (vsx_movti_64bit): Fold movti into normal vector moves.
7627 (vsx_movti_32bit): Likewise.
7628 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
7630 (vsx_splat_v4si_internal): Likewise.
7631 (vsx_splat_v4sf_internal): Likewise.
7632 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7633 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7634 extend vector elements.
7635 (vsx_sign_extend_hi_<mode>): Likewise.
7636 (vsx_sign_extend_si_v2di): Likewise.
7637 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7639 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7640 constraints. Add trailing period to wL documentation.
7642 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
7645 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7646 * tree-dfa.c (replace_abnormal_ssa_names): New function.
7647 * tree-call-cdce.c: Include tree-dfa.h.
7648 (can_guard_call_p): New function, extracted from...
7649 (can_use_internal_fn): ...here.
7650 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7652 (shrink_wrap_one_built_in_call): Likewise.
7653 (use_internal_fn): Likewise.
7654 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7655 and return void. Call replace_abnormal_ssa_names.
7656 (pass_call_cdce::execute): Check can_guard_call_p during the
7657 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
7658 will always change something.
7660 2016-05-18 Martin Jambor <mjambor@suse.cz>
7663 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7664 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7666 2016-05-18 Martin Jambor <mjambor@suse.cz>
7669 * ipa-inline.h (condition): New field size.
7670 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7671 for comaprison and store it into the new condition.
7672 (evaluate_conditions_for_known_args): Use condition size to check
7673 access sizes for all but CHANGED conditions.
7674 (unmodified_parm_1): New parameter size_p, store access size into it.
7675 (unmodified_parm): Likewise.
7676 (unmodified_parm_or_parm_agg_item): Likewise.
7677 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7678 (set_cond_stmt_execution_predicate): Extract access sizes and store
7680 (set_switch_stmt_execution_predicate): Likewise.
7681 (will_be_nonconstant_expr_predicate): Likewise.
7682 (will_be_nonconstant_predicate): Likewise.
7683 (inline_read_section): Stream condition size.
7684 (inline_write_summary): Likewise.
7686 2016-05-18 Richard Biener <rguenther@suse.de>
7688 * tree-ssa-loop-im.c (determine_max_movement): Properly add
7689 condition cost to PHI cost instead of total_cost.
7691 2016-05-18 Martin Liska <mliska@suse.cz>
7694 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7697 2016-05-18 Richard Biener <rguenther@suse.de>
7699 * lto-streamer.h (LTO_major_version): Bump to 6.
7701 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7703 * function.c (make_split_prologue_seq, make_prologue_seq,
7704 make_epilogue_seq): New functions, factored out from...
7705 (thread_prologue_and_epilogue_insns): Here.
7707 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7709 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7710 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7711 of before. Add a comment.
7713 2016-05-18 Bin Cheng <bin.cheng@arm.com>
7715 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7716 expression pointer, not pointer to the pointer.
7718 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7720 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7721 (avx2_pbroadcast<mode>): Add another alternative with v instead
7722 of x constraints in it, using <pbroadcast_evex_isa> isa.
7723 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7725 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7726 constraint x instead of v in second alternative, add avx512bw
7729 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7730 constraint x instead of v in second alternative, add avx512bw
7733 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7734 constraint x instead of v in second alternative, add avx512bw
7737 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7738 avx512bw alternative.
7740 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7742 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7744 (define_insn "*andnottf3"): Ditto.
7745 (define_insn "*<code><mode>3"/any_logic): Ditto.
7746 (define_insn "*<code>tf3"/any_logic): Ditto.
7747 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7748 operand to block AVX-512VL insn variant emit when it is not enabled.
7750 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7752 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7753 constraint fot SF mode.
7755 2016-05-18 Petr Murzin <petr.murzin@intel.com>
7756 Kirill Yukhin <kirill.yukhin@intel.com>
7758 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7760 (define_insn "rsqrt14<mode>"): Ditto.
7761 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7762 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7763 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7764 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7765 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7767 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7768 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7769 * config/i386/i386.c (ix86_print_operand): Expand check for size
7770 override codes for Intel syntax.
7772 2016-05-18 Richard Biener <rguenther@suse.de>
7774 PR tree-optimization/71168
7775 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7776 initialization earlier.
7778 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
7780 * config/aarch64/aarch64-simd.md
7781 (aarch64_reduc_plus_internal<mode>): Rename to...
7782 (reduc_plus_scal): ...This, and remove previous implementation.
7784 2016-05-18 Richard Biener <rguenther@suse.de>
7786 * passes.def: Put late dse and cd_dce in canonical order.
7788 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
7790 * ipa-inline-transform.c (preserve_function_body_p): Look for
7791 first non-thunk clone.
7792 (save_function_body): Save into first non-thunk.
7793 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7795 (lto_output_node): Inline thunks don't need body in every
7797 * lto-streamer-in.c: Do not fixup thunk clones.
7798 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7800 * tree-inline.c (copy_bb): Be prepared for target node to be new after
7803 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7806 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7807 (reassociate_bb): Call transform_add_to_multiply.
7809 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7811 * config/aarch64/aarch64.c (all_extensions): Removed unused
7814 2016-05-17 Nathan Sidwell <nathan@acm.org>
7816 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7817 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7819 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
7821 PR tree-optimization/54579
7823 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7825 2016-05-17 Marek Polacek <polacek@redhat.com>
7828 * tree-inline.c (expand_call_inline): Call
7829 maybe_remove_unused_call_args.
7831 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
7833 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7834 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7835 * doc/md.texi (fmin@var{m}3): Likewise.
7837 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7839 * match.pd (X & C): New transformation.
7841 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7843 * match.pd (~X & Y): New transformation.
7845 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7847 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7848 information for new SSA_NAME.
7849 (simplify_conversion_using_ranges): Get range through get_range_info
7850 instead of get_value_range.
7852 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7854 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7855 Remove inline assembly.
7856 (vmvn_s16): Likewise.
7857 (vmvn_s32): Likewise.
7858 (vmvn_u8): Likewise.
7859 (vmvn_u16): Likewise.
7860 (vmvn_u32): Likewise.
7861 (vmvnq_s8): Likewise.
7862 (vmvnq_s16): Likewise.
7863 (vmvnq_s32): Likewise.
7864 (vmvnq_u8): Likewise.
7865 (vmvnq_u16): Likewise.
7866 (vmvnq_u32): Likewise.
7867 (vmvn_p8): Likewise.
7868 (vmvnq_p16): Likewise.
7870 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7872 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7874 (vmul_n_s16): Likewise.
7875 (vmul_n_s32): Likewise.
7876 (vmul_n_u16): Likewise.
7877 (vmul_n_u32): Likewise.
7878 (vmulq_n_f32): Likewise.
7879 (vmulq_n_f64): Likewise.
7880 (vmulq_n_s16): Likewise.
7881 (vmulq_n_s32): Likewise.
7882 (vmulq_n_u16): Likewise.
7883 (vmulq_n_u32): Likewise.
7885 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7887 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7888 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
7890 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7892 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7893 to *aarch64_fma4_elt_from_dup<mode>.
7894 (*aarch64_fnma4_elt_to_128df): Rename to
7895 *aarch64_fnma4_elt_from_dup<mode>.
7896 * config/aarch64/arm_neon.h (vfma_n_f64): New.
7897 (vfms_n_f32): Likewise.
7898 (vfms_n_f64): Likewise.
7899 (vfmsq_n_f32): Likewise.
7900 (vfmsq_n_f64): Likewise.
7902 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
7904 * wide-int.h: Change fixed_wide_int_storage from class to struct.
7906 2016-05-17 Richard Biener <rguenther@suse.de>
7908 PR tree-optimization/71132
7909 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7910 Only add control dependences for blocks in the loop.
7911 (build_rdg): Adjust.
7912 (generate_code_for_partition): Return whether loop should
7913 be destroyed and delay that.
7914 (distribute_loop): Likewise.
7915 (pass_loop_distribution::execute): Record loops to be destroyed
7916 and perform delayed destroying of loops.
7918 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7921 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7923 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7925 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7927 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
7930 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7931 insertion point for instructions generated by validize_mem.
7933 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7935 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7938 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7940 * config/aarch64/aarch64.c
7941 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7942 rather than a macro.
7944 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7946 * doc/invoke.texi (AArch64 Options): Various updates.
7948 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7950 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7951 into instrumentation thunks.
7952 * cif-code.def (CIF_CHKP): New.
7954 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
7956 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7958 2016-05-16 Martin Jambor <mjambor@suse.cz>
7960 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7961 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7963 2016-05-16 Marek Polacek <polacek@redhat.com>
7965 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7968 2016-05-16 Martin Jambor <mjambor@suse.cz>
7971 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7972 the outlined kernel function.
7974 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
7976 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7977 (ISA_HAS_DLSA): Ditto.
7979 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7981 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7983 2016-05-16 Nathan Sidwell <nathan@acm.org>
7985 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7986 (nvptx_name_replacement): Restore. Add comment.
7987 (write_fn_proto, write_fn_proto_from_insn,
7988 nvptx_output_call_insn): Restore
7989 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7991 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7993 * config/aarch64/aarch64.md
7994 (add<mode>3_compareC_cconly_imm): Remove use of %w.
7995 (add<mode>3_compareC_imm): Likewise.
7996 (<optab>si3_uxtw): Split into register and immediate variants.
7997 (andsi3_compare0_uxtw): Likewise.
7998 (and<mode>3_compare0): Likewise.
7999 (and<mode>3nr_compare0): Likewise.
8000 (stack_protect_test_<mode>): Don't use %x for memory operands.
8002 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
8004 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
8006 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
8008 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
8009 Split integer shifts into shift_reg and bfm.
8010 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8011 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
8012 (ror<mode>3_insn): Likewise.
8013 (<optab>si3_insn_uxtw): Likewise.
8014 (<optab><mode>3_insn): Change to rotate_imm.
8015 (extr<mode>5_insn_alt): Likewise.
8016 (extrsi5_insn_uxtw): Likewise.
8017 (extrsi5_insn_uxtw_alt): Likewise.
8019 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
8021 * doc/tm.texi: Regenerate.
8022 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
8023 (TARGET_INVALID_RETURN_TYPE): Remove.
8024 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
8025 TARGET_INVALID_RETURN_TYPE.
8026 * target.def (invalid_parameter_type): Remove.
8027 (invalid_return_type): Remove.
8029 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
8031 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
8032 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
8034 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
8036 (preserve_function_body_p): No need to preserve function body
8037 * cif-codes.def (CIF_THUNK): Remove.
8038 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
8040 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
8042 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
8044 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
8046 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
8049 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
8051 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
8052 (inline_small_functions): Do not look for function symbol when
8055 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
8057 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
8060 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
8061 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8062 Jiong Wang <jiong.wang@arm.com>
8064 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
8065 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
8066 Define __ARM_FP16_ARGS when appropriate.
8067 * config/arm/arm.c (arm_invalid_parameter_type): Remove
8069 (arm_invalid_return_type): Likewise.
8070 (TARGET_INVALID_PARAMETER_TYPE): Remove.
8071 (TARGET_INVALID_RETURN_TYPE): Remove.
8072 (aapcs_vfp_sub_candidate): Allow HFmode.
8073 (aapcs_vfp_allocate): Add comment. Support HFmode.
8074 (aapcs_vfp_allocate_return_reg): Likewise.
8075 (struct aapcs_cp_arg_layout): Slightly reword comments for
8076 is_return_candidate and allocate_return_reg.
8077 (output_mov_vfp): Update assert.
8078 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
8080 (arm_invalid_parameter_type): Remove.
8081 (amr_invalid_return_type): Remove.
8082 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
8083 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
8084 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
8086 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
8088 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8089 * config/aarch64/arch64-protos.h
8090 (aarch64_legitimize_reload_address): Remove.
8091 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
8094 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
8096 * configure.ac: Add ACX_NONCANONICAL_HOST.
8097 * configure: Regenerate.
8098 * Makefile.in: Set host_noncanonical.
8100 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
8103 * config/i386/i386.md (*movtf_internal): Before register allocation,
8104 do not allow FP constants for CM_MEDIUM memory model, allow only
8105 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
8106 (*movxf_internal): Ditto.
8107 (*movdf_internal): Ditto.
8108 (*movsf_internal): Ditto.
8110 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
8112 PR rtl-optimization/67483
8113 * combine.c (make_compound_operation): Don't call extract_left_shift
8114 with negative shift amounts.
8116 2016-05-13 Jakub Jelinek <jakub@redhat.com>
8119 * fold-const.c (fold_checksum_tree): Allow modification
8120 of TYPE_ALIAS_SET during folding.
8122 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
8123 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
8124 (ix86_split_to_parts): Likewise. Fix up formatting.
8126 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
8128 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
8129 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
8132 2016-05-13 Nathan Sidwell <nathan@acm.org>
8134 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
8135 (nvptx_name_replacement): Delete.
8136 (write_fn_proto, write_fn_proto_from_insn,
8137 nvptx_output_call_insn): Remove nvptx_name_replacement call.
8138 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
8139 * langhooks.c (add_builtin_funcction_common): Call
8140 targetm.mangle_decl_assembler_name.
8142 * config/nvptx/nvptx.c (write_fn_proto): Handle
8143 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
8145 2016-05-13 Martin Liska <mliska@suse.cz>
8147 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
8148 and PRIu64 in printf format.
8150 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8152 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
8155 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8157 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8158 Change --param max-completely-peeled-times to
8159 --param max-completely-peel-times in dump file printing.
8161 2016-05-13 Richard Biener <rguenther@suse.de>
8163 PR tree-optimization/42587
8164 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
8165 (find_bswap_or_nop_1): Likewise.
8166 (bswap_replace): Likewise.
8168 2016-05-13 Martin Liska <mliska@suse.cz>
8170 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
8171 Initialize a variable with default value.
8173 2016-05-13 Martin Liska <mliska@suse.cz>
8175 * doc/invoke.texi: Enhance explanation of error recovery
8178 2016-05-13 Martin Liska <mliska@suse.cz>
8180 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
8181 (struct cost_pair): Change inv_expr_id (int) to inv_expr
8182 (iv_inv_expr_ent *).
8183 (struct iv_inv_expr_ent): Comment struct fields.
8184 (sort_iv_inv_expr_ent): New function.
8185 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
8186 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
8187 a hash_map between iv_inv_expr_ent and number of usages.
8188 (niter_for_exit): Fix coding style.
8189 (tree_ssa_iv_optimize_init): Use renamed variable.
8190 (determine_base_object): Fix coding style.
8191 (alloc_iv): Likewise.
8192 (find_interesting_uses_outside): Likewise.
8193 (add_candidate_1): Likewise.
8194 (add_standard_iv_candidates): Likewise.
8195 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
8196 (prepare_decl_rtl): Fix coding style.
8197 (get_address_cost): Likewise.
8198 (get_shiftadd_cost): Likewise.
8199 (force_expr_to_var_cost): Likewise.
8200 (compare_aff_trees): Likewise.
8201 (get_expr_id): Restructure the function.
8202 (get_loop_invariant_expr_id): Renamed to
8203 get_loop_invariant_expr.
8204 (get_computation_cost_at): Replace usage of inv_expr_id with
8206 (get_computation_cost): Likewise.
8207 (determine_group_iv_cost_generic): Likewise.
8208 (determine_group_iv_cost_address): Likewise.
8209 (iv_period): Fix coding style.
8210 (iv_elimination_compare_lt): Likewise.
8211 (may_eliminate_iv): Likewise.
8212 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
8214 (determine_group_iv_costs): Dump invariant expressions.
8215 (iv_ca_recount_cost): Use the newly added hash_map.
8216 (iv_ca_set_remove_invariants): Fix coding style.
8217 (iv_ca_set_add_invariants): Fix coding style.
8218 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
8220 (iv_ca_set_cp): Likewise.
8221 (iv_ca_new): Initialize the newly added hash_map and remove
8222 initialization of fields.
8223 (iv_ca_free): Delete the hash_map.
8224 (iv_ca_dump): Dump invariant expressions.
8225 (iv_ca_extend): Fix coding style.
8226 (try_add_cand_for): Likewise.
8227 (create_new_ivs): Dump information about # of avg iterations and
8228 # of used invariant expressions.
8229 (rewrite_use_compare): Fix coding style.
8230 (free_loop_data): Set default value for max_inv_expr_id.
8232 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
8234 * cse.c (rest_of_handle_cse): Use cleanup_cfg
8235 returned value cse_cfg_altered computation.
8236 (rest_of_handle_cse2): Likewise.
8237 (rest_of_handle_cse_after_global_opts): Likewise.
8239 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8242 * config/arm/arm.c (arm32_output_mi_thunk): New.
8243 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
8244 to split Thumb1 vs TARGET_32BIT functionality.
8245 (arm_thumb1_mi_thunk): New.
8247 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8249 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
8252 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8255 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
8257 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
8259 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
8260 (expand_builtin_trap): Emit a regular call.
8261 (set_builtin_user_assembler_name): Remove obsolete cases.
8262 * dse.c (scan_insn): Adjust.
8263 * except.c: Include calls.h.
8264 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
8265 emit a regular call to setjmp.
8266 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
8267 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
8268 (emit_block_move_via_libcall): Delete.
8269 (block_move_fn): Delete.
8270 (init_block_move_fn): Likewise.
8271 (emit_block_move_libcall_fn): Likewise.
8272 (emit_block_op_via_libcall): New function.
8273 (set_storage_via_libcall): Tidy up and use memset builtin.
8274 (block_clear_fn): Delete.
8275 (init_block_clear_fn): Likewise.
8276 (clear_storage_libcall_fn): Likewise.
8277 (expand_assignment): Call emit_block_move_via_libcall.
8278 Do not include gt-expr.h.
8279 * expr.h (emit_block_op_via_libcall): Declare.
8280 (emit_block_copy_via_libcall): New inline function.
8281 (emit_block_move_via_libcall): Likewise.
8282 (emit_block_comp_via_libcall): Likewise.
8283 (block_clear_fn): Delete.
8284 (init_block_move_fn): Likewise.
8285 (init_block_clear_fn): Likewise.
8286 (emit_block_move_via_libcall): Likewise.
8287 (set_storage_via_libcall): Add default parameter value.
8288 * libfuncs.h (enum libfunc_index): Remove obsolete values.
8289 (abort_libfunc): Delete.
8290 (memcpy_libfunc): Likewise.
8291 (memmove_libfunc): Likewise.
8292 (memcmp_libfunc): Likewise.
8293 (memset_libfunc): Likewise.
8294 (setbits_libfunc): Likewise.
8295 (setjmp_libfunc): Likewise.
8296 (longjmp_libfunc): Likewise.
8297 (profile_function_entry_libfunc): Likewise.
8298 (profile_function_exit_libfunc): Likewise.
8299 (gcov_flush_libfunc): Likewise.
8300 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
8301 and DECL_VISIBILITY on the declaration.
8302 (init_optabs): Do not initialize obsolete libfuncs.
8303 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
8304 * tree-core.h (ECF_RET1): Define.
8305 (ECF_TM_PURE): Adjust.
8306 (ECF_TM_BUILTIN): Likewise.
8307 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
8308 (build_common_builtin_nodes): Initialize abort builtin.
8309 Add ECF_RET1 on memcpy, memmove and memset builtins.
8310 Pass final flags for alloca and alloca_with_align builtins.
8311 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
8313 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
8314 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
8315 set_storage_via_libcall and call emit_block_copy_via_libcall.
8317 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
8319 * config/i386/i386.md (*call_got_x32): Change operand 0 to
8320 DImode before it is passed to ix86_output_call_operand.
8321 (*call_value_got_x32): Ditto for operand 1.
8323 2016-05-12 Jiong Wang <jiong.wang@arm.com>
8325 PR rtl-optimization/70904
8326 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
8327 reload for wide mode.
8329 2016-05-12 Marek Polacek <polacek@redhat.com>
8332 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
8333 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
8334 * langhooks.h (incomplete_type_error): Likewise.
8335 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
8336 parameter, pass it down to incomplete_type_error.
8337 * tree.h (size_in_bytes): New inline overload.
8338 (size_in_bytes_loc): Renamed from size_in_bytes.
8340 2016-05-12 Richard Biener <rguenther@suse.de>
8342 PR tree-optimization/71059
8343 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
8344 nary before looking up or entering the expression into the VN
8346 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
8347 Make sure to re-use NARYs without result as inserted by
8350 2016-05-12 Richard Biener <rguenther@suse.de>
8352 PR tree-optimization/71062
8353 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
8355 * tree-ssa-structalias.c (set_uids_in_ptset): Set
8356 vars_contains_restrict if the var is a restrict tag.
8357 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
8358 do not disambiguate pointers against it.
8359 (dump_points_to_solution): Re-structure and adjust for new
8360 vars_contains_restrict flag.
8361 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8363 2016-05-12 Martin Liska <mliska@suse.cz>
8365 * doc/invoke.texi: Explain connection between
8366 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
8368 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
8370 PR tree-optimization/71006
8371 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8372 consider COND_EXPR as a mask producer.
8374 2016-05-12 Marek Polacek <polacek@redhat.com>
8377 * opts.c (common_handle_option): Detect missing argument for --help^.
8379 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8382 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
8383 when popping the PC and within an interrupt handler routine.
8384 Add missing tab to output of "ldmfd".
8385 (output_return_instruction): Output LDMFD with SP update rather
8386 than POP when returning from interrupt handler.
8388 2016-05-12 Jakub Jelinek <jakub@redhat.com>
8390 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
8391 TARGET_64BIT && TARGET_AVX512DQ.
8392 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
8393 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
8394 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
8395 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
8396 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
8397 (*vec_extractv4si_zext): Add avx512dq alternative.
8398 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
8399 use v instead of x constraint in other alternatives where possible.
8401 * config/i386/sse.md (sse2_loadld): Use v instead of x
8402 constraint in alternatives 0,1,4.
8404 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
8405 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
8406 v constraints instead of x and <pinsr_evex_isa> isa attribute.
8409 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
8410 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
8411 is not emitted unless TARGET_AVX512BW.
8412 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
8413 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
8414 for the result operand.
8416 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
8417 constraint instead of x in avx alternatives. Use maybe_evex instead
8420 * config/i386/constraints.md (Yv): New constraint.
8421 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
8422 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
8423 * config/i386/i386.md (avx512fvecmode): New mode attr.
8424 (*pushtf): Use v constraint instead of x.
8425 (*movtf_internal): Likewise. For TARGET_AVX512VL and
8426 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
8427 (*absneg<mode>2): Use Yv constraint instead of x constraint.
8428 (*absnegtf2_sse): Likewise.
8429 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
8430 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
8431 avx512f alternatives.
8432 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
8434 2016-05-12 Richard Biener <rguenther@suse.de>
8436 PR tree-optimization/71060
8437 * tree-data-ref.c (initialize_data_dependence_relation): Do not
8438 require exact match of DR_BASE_OBJECT but only matching address and
8441 2016-05-12 Richard Biener <rguenther@suse.de>
8443 PR tree-optimization/70986
8444 * cfganal.c: Include cfgloop.h.
8445 (dfs_find_deadend): Prefer to take edges exiting loops.
8447 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8449 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
8450 compile and run time.
8452 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
8455 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
8457 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
8459 * config/i386/i386.c (legitimize_pic_address): Use
8460 copy_to_suggested_reg instead of gen_movsi.
8462 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8464 * config/rs6000/predicates.md (quad_memory_operand): Move most of
8465 the code into quad_address_p and call it to share code with
8466 vsx_quad_dform_memory_operand.
8467 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
8469 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
8470 bit instead of being a separate word. Split -mpower9-dform into
8471 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8472 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
8473 for the register class supporting 128-bit quad word memory offsets.
8474 (mode_supports_vsx_dform_quad): Helper function to return if the
8475 register class uses quad word memory offsets.
8476 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
8477 (rs6000_debug_reg_global): Always print if we are using LRA or not.
8478 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
8479 instructions are enabled, set up the appropriate addr_masks for
8481 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
8482 -mpower9-dform-scalar, instead of -mpower9-dform.
8483 (rs6000_option_override_internal): Split -mpower9-dform into two
8484 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
8485 -mpower9-dform switch sets or clears both. If we are not using
8486 the LRA register allocator, do not enable -mpower9-dform-vector by
8487 default. If we are using LRA, enable -mpower9-dform-vector and
8488 -mvsx-timode if it is appropriate. Issue a warning if either
8489 -mpower9-dform-vector or -mvsx-timode are explicitly used without
8491 (quad_address_offset_p): New helper function to return if the
8492 offset is legal for quad word memory instructions.
8493 (quad_address_p): New function to determin if GPR or vector
8494 register quad word memory addresses are legal.
8495 (mem_operand_gpr): Validate quad word address offsets.
8496 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
8497 d-form (register + offset) instructions.
8498 (offsettable_ok_by_alignment): Likewise.
8499 (rs6000_legitimate_offset_address_p): Likewise.
8500 (legitimate_lo_sum_address_p): Likewise.
8501 (rs6000_legitimize_address): Likewise.
8502 (rs6000_legitimize_reload_address): Add more debug statements for
8504 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
8505 d-form instructions.
8506 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
8507 d-form instructions. Distinguish different cases in debug
8508 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
8509 d-form instructions.
8510 (rs6000_preferred_reload_class): Likewise.
8511 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
8512 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
8513 of the ISA 2.06 indexed memory instructions.
8514 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
8515 use them to save/restore the saved vector registers instead of
8516 using Altivec instructions.
8517 (rs6000_emit_epilogue): Likewise.
8518 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
8519 (rs6000_opt_masks): Split -mpower9-dform into
8520 -mpower9-dform-scalar and -mpower9-dform-vector.
8521 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
8523 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
8524 ISA 3.0 vector indexed memory instructions, and fold the code into
8525 the normal mov<mode> patterns.
8526 (p9_vecstore_<mode>): Likewise.
8527 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
8529 (vsx_movti_64bit): Likewise.
8530 (vsx_movti_32bit): Likewise.
8531 * config/rs6000/constraints.md (wO constraint): New constraint for
8532 ISA 3.0 vector d-form support.
8533 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
8534 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
8535 include -mpower9-dform-vector until we switch over to LRA.
8536 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
8537 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
8538 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
8539 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8540 for -mpower9-dform and -mlra.
8541 * doc/md.texi (wO constraint): Document wO constraint.
8543 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
8545 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
8546 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
8547 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
8548 Move handling of non-insn arguments inline into the sole user:
8549 (output_trans_func): ...here.
8550 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
8551 in emitted function prototype.
8552 (output_internal_insn_latency_func): Ditto. Simplify.
8553 (output_internal_maximal_insn_latency_func): Ditto. Delete
8554 always-unused argument.
8555 (output_insn_latency_func): Ditto.
8556 (output_maximal_insn_latency_func): Ditto.
8558 2016-05-11 Richard Biener <rguenther@suse.de>
8560 PR tree-optimization/71055
8561 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
8562 sth with precision not equal to access size verify we don't chop
8565 2016-05-11 Richard Biener <rguenther@suse.de>
8568 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
8569 (dwarf2out_finish): Move retry_incomplete_types call ...
8570 (dwarf2out_early_finish): ... here.
8572 2016-05-11 Richard Biener <rguenther@suse.de>
8575 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
8576 if the langhook insists on it.
8577 * fold-const.c (make_bit_field_ref): Add arg for the original
8578 reference and preserve its alias-set.
8579 (decode_field_reference): Take exp by reference and adjust it
8580 to the original memory reference.
8581 (optimize_bit_field_compare): Adjust callers.
8582 (fold_truth_andor_1): Likewise.
8583 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
8585 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
8588 * cfgrtl.h (delete_insn_and_edges): Now return bool.
8589 * cfgrtl.c (delete_insn_and_edges): Likewise.
8590 * config/i386/i386.c (convert_scalars_to_vector): Remove
8592 * cse.c (cse_insn): Compute cse_cfg_altered.
8593 (delete_trivially_dead_insns): Likewise.
8594 (cse_cc_succs): Likewise.
8595 (rest_of_handle_cse): Free dominance info if required.
8596 (rest_of_handle_cse2): Likewise.
8597 (rest_of_handle_cse_after_global_opts): Likewise.
8599 2016-05-11 Alan Modra <amodra@gmail.com>
8601 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
8602 abi_v4_pass_in_fpr): New functions.
8603 (rs6000_function_arg_boundary): Exclude complex IBM long double
8604 from 64-bit alignment when ABI_V4.
8605 (rs6000_function_arg, rs6000_function_arg_advance_1,
8606 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
8608 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
8610 PR rtl-optimization/71028
8611 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
8612 jump with just a return in the fallthrough block if the branch
8613 block contains just a return as well.
8615 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
8617 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
8618 * match.pd ((X & Y) ^ Y): ... this.
8619 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
8620 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
8622 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8624 * read-md.c (require_char_ws): New function.
8625 (read_string): Simplify using require_char_ws.
8626 (handle_constants): Likewise.
8627 (handle_enum): Likewise.
8628 (handle_file): Likewise.
8629 * read-md.h (require_char_ws): New declaration.
8630 * read-rtl.c (read_conditions): Simplify using require_char_ws.
8631 (read_mapping): Likewise.
8632 (read_rtx_code): Likewise.
8633 (read_nested_rtx): Likewise.
8635 2016-05-10 James Norris <jnorris@codesourcery.com>
8637 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8638 if offloading is enabled and -fopenacc or -fopenmp is specified.
8639 (CRTOFFLOADEND): Likewise.
8640 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8641 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8643 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
8645 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8646 gotoff_operand code paths. Use copy_to_suggested_regs and
8647 expand_simple_binop where appropriate. Cleanup.
8649 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8652 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8654 (dimode_scalar_chain::vector_const_cost): New.
8655 (dimode_scalar_chain::compute_convert_gain): Handle constants.
8656 (dimode_scalar_chain::convert_op): Likewise.
8657 (dimode_scalar_chain::convert_insn): Likewise.
8659 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8661 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8662 unary operation, not a binary one.
8664 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8667 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8668 calls with type casted fndecl.
8670 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8672 PR tree-optimization/70786
8673 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8674 * calls.c (initialize_argument_information): Bind bounds
8675 with corresponding args passed by reference.
8677 2016-05-10 Jakub Jelinek <jakub@redhat.com>
8680 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8681 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8682 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8685 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8688 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8689 code for a zero scale factor.
8690 (vsx_xvcvdpuxds_scale): Likewise.
8692 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8694 * diagnostic-show-locus.c (layout::layout): Call show_ruler
8695 if show_ruler_p was set on the context.
8696 (layout::show_ruler): New method.
8697 * diagnostic.h (struct diagnostic_context): Add field
8700 2016-05-10 Richard Biener <rguenther@suse.de>
8702 PR tree-optimization/71039
8703 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8704 (chk_uses): New function.
8705 (propagate_with_phi): Verify we can safely replicate the lhs of an
8706 aggregate assignment on all incoming edges.
8708 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
8710 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8712 (rx_atomic_sequence): New class.
8713 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8714 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8716 (rx_atomic_sequence::rx_atomic_sequence,
8717 rx_atomic_sequence::~rx_atomic_sequence): New functions.
8718 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8719 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8720 CTRLREG_INTB): New constants.
8721 (FETCHOP): New code iterator.
8722 (fethcop_name, fetchop_name2): New iterator code attributes.
8723 (QIHI): New mode iterator.
8724 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8725 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8726 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8728 2016-05-10 Martin Liska <mliska@suse.cz>
8730 * tree-inline.c (remap_dependence_clique): Do not remap
8731 debugging statements.
8733 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8735 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8736 ("*fixuns_truncdfdi2_z13")
8737 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8738 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8739 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8741 2016-05-10 Richard Biener <rguenther@suse.de>
8743 PR tree-optimization/70497
8744 PR tree-optimization/28367
8745 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8747 (visit_reference_op_load): ... here.
8748 (vn_reference_lookup_3): Use it to handle subreg-like accesses
8749 with simplified BIT_FIELD_REFs.
8750 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8751 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8754 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8756 * dwarf2out.c (add_abstract_origin_attribute): Adjust
8757 documentation comment. For BLOCK nodes, add a
8758 DW_AT_abstract_origin attribute that points to the DIE generated
8759 for the origin BLOCK.
8760 (gen_lexical_block_die): Call add_abstract_origin_attribute for
8761 blocks from inlined functions.
8763 2016-05-10 Alan Modra <amodra@gmail.com>
8766 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8767 regrename modifying insns saving lr before __morestack call.
8768 * config/rs6000/rs6000.md (split_stack_return): Similarly for
8769 insns restoring lr after __morestack call.
8771 2016-05-09 Jakub Jelinek <jakub@redhat.com>
8773 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8774 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8776 * config/i386/sse.md (vec_interleave_high<mode>,
8777 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8778 <avx512>_vpermt2var<mode>3_maskz): Likewise.
8780 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8782 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8783 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8784 parallel reassociation for power8 and forward.
8786 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
8788 * config/i386/i386.md (absneg splitters with general regs): Use
8789 general_reg_operand predicate.
8790 (btsq peephole2): Use x86_64_immediate_operand to check if new
8791 value is suitable for immediate operand. Generate emitted insn
8792 using RTL expressions.
8793 (btcq peephole2): Ditto.
8794 (btrq peephole2): Ditto. Generate correct immediate operand
8797 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8799 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8802 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8804 * tree-affine.c (wide_int_constant_multiple_p): Add missing
8805 pointer dereference.
8807 2016-05-09 Richard Biener <rguenther@suse.de>
8809 PR tree-optimization/70985
8810 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8811 op0 isn't a gimple register.
8813 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
8815 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8816 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8817 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8818 (i6400_fpu_mult): New cpu units.
8819 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8820 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8821 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8822 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8823 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8824 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8825 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8826 (i6400_msa_long_float4, i6400_msa_long_float5)
8827 (i6400_msa_long_float8, i6400_msa_fdiv_df)
8828 (i6400_msa_fdiv_sf): New reservations.
8829 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8830 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8831 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8832 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8833 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8834 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8835 (msa_short_cmp, msa_short_float2, msa_short_logic3)
8836 (msa_short_store4, msa_long_load, msa_short_store)
8837 (msa_long_logic, msa_long_float2, msa_long_float4)
8838 (msa_long_float5, msa_long_float8, msa_long_mult)
8839 (msa_long_fdiv, msa_long_div): New reservations.
8841 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
8842 Sameera Deshpande <sameera.deshpande@imgtec.com>
8843 Matthew Fortune <matthew.fortune@imgtec.com>
8844 Graham Stott <graham.stott@imgtec.com>
8845 Chao-ying Fu <chao-ying.fu@imgtec.com>
8847 * config.gcc: Add MSA header file for mips*-*-* target.
8848 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8849 (Ubv8i, Urv8): New constraints.
8850 * config/mips/mips-ftypes.def: Add function types for MSA
8852 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8853 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8854 * config/mips/mips-msa.md: New file.
8855 * config/mips/mips-protos.h
8856 (mips_split_128bit_const_insns): New prototype.
8857 (mips_msa_idiv_insns): Likewise.
8858 (mips_split_128bit_move): Likewise.
8859 (mips_split_128bit_move_p): Likewise.
8860 (mips_split_msa_copy_d): Likewise.
8861 (mips_split_msa_insert_d): Likewise.
8862 (mips_split_msa_fill_d): Likewise.
8863 (mips_expand_msa_branch): Likewise.
8864 (mips_const_vector_same_val_p): Likewise.
8865 (mips_const_vector_same_bytes_p): Likewise.
8866 (mips_const_vector_same_int_p): Likewise.
8867 (mips_const_vector_shuffle_set_p): Likewise.
8868 (mips_const_vector_bitimm_set_p): Likewise.
8869 (mips_const_vector_bitimm_clr_p): Likewise.
8870 (mips_msa_vec_parallel_const_half): Likewise.
8871 (mips_msa_output_division): Likewise.
8872 (mips_ldst_scaled_shift): Likewise.
8873 (mips_expand_vec_cond_expr): Likewise.
8874 * config/mips/mips.c (enum mips_builtin_type): Add
8875 MIPS_BUILTIN_MSA_TEST_BRANCH.
8876 (mips_gen_const_int_vector_shuffle): New prototype.
8877 (mips_const_vector_bitimm_set_p): New function.
8878 (mips_const_vector_bitimm_clr_p): Likewise.
8879 (mips_const_vector_same_val_p): Likewise.
8880 (mips_const_vector_same_bytes_p): Likewise.
8881 (mips_const_vector_same_int_p): Likewise.
8882 (mips_const_vector_shuffle_set_p): Likewise.
8883 (mips_symbol_insns): Forbid loading symbols via immediate for
8885 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8887 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8889 (mips_lx_address_p): Add support load indexed address for MSA.
8890 (mips_address_insns): Add calculation of instructions needed for
8891 stores and loads for MSA.
8892 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
8893 CONST_VECTOR for MSA and let it fall through.
8894 (mips_ldst_scaled_shift): New function.
8895 (mips_subword_at_byte): Likewise.
8896 (mips_msa_idiv_insns): Likewise.
8897 (mips_legitimize_move): Validate MSA moves.
8898 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
8899 calculation of costs for MSA division.
8900 (mips_split_move_p): Check if MSA moves need splitting.
8901 (mips_split_move): Split MSA moves if necessary.
8902 (mips_split_128bit_move_p): New function.
8903 (mips_split_128bit_move): Likewise.
8904 (mips_split_msa_copy_d): Likewise.
8905 (mips_split_msa_insert_d): Likewise.
8906 (mips_split_msa_fill_d): Likewise.
8907 (mips_output_move): Handle MSA moves.
8908 (mips_expand_msa_branch): New function.
8909 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8910 Reinstate 'y' modifier.
8911 (mips_file_start): Add MSA .gnu_attribute.
8912 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8914 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8915 (mips_class_max_nregs): Add register size for MSA supported mode.
8916 (mips_cannot_change_mode_class): Allow conversion between MSA
8917 vector modes and TImode.
8918 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8920 (mips_secondary_reload_class): Force MSA loads/stores via memory.
8921 (mips_preferred_simd_mode): Add preffered modes for MSA.
8922 (mips_vector_mode_supported_p): Add MSA supported modes.
8923 (mips_autovectorize_vector_sizes): New function.
8924 (mips_msa_output_division): Likewise.
8925 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8926 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8927 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8928 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8929 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8930 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8931 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8932 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8933 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8934 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8935 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8936 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8937 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8938 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8939 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8940 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8941 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8942 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8943 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8944 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8945 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8946 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8947 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8948 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8949 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8950 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8951 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8952 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8953 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8954 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8955 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8956 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8957 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8958 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8959 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8960 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8961 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8962 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8963 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8964 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8965 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8966 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8967 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8968 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8969 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8970 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8971 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8972 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8973 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8974 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8975 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8976 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8977 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8978 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8979 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8980 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8981 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8982 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8983 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8984 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8985 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8986 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8987 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8988 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8989 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8990 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8991 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8992 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8993 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8994 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8995 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8996 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8997 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8998 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8999 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
9000 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
9001 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
9002 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
9003 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
9004 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
9005 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
9006 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
9007 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
9008 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
9009 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
9010 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
9011 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
9012 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
9013 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
9014 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
9015 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
9016 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
9017 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
9018 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
9019 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
9020 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
9021 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
9022 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
9023 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
9024 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
9025 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
9026 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
9027 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
9028 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
9029 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
9030 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
9031 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
9032 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
9033 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
9034 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
9035 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
9036 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
9037 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
9038 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
9039 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
9040 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
9041 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
9042 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
9043 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
9044 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
9045 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
9046 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
9047 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
9048 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
9049 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
9050 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
9051 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
9052 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
9053 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
9054 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
9055 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
9056 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
9057 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
9058 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
9059 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
9060 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
9061 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
9062 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
9063 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
9064 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
9065 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
9066 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
9067 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
9068 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
9069 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
9070 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
9071 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
9072 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
9073 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
9074 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
9075 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
9077 (mips_get_builtin_decl_index): New array.
9078 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
9079 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
9080 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
9081 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
9082 (mips_init_builtins): Initialize mips_get_builtin_decl_index
9084 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9086 (mips_expand_builtin_insn): Prepare operands for
9087 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
9088 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
9089 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
9090 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
9091 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
9092 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
9093 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
9094 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
9095 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
9096 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
9097 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
9098 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
9099 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
9100 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
9101 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
9102 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
9103 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
9104 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
9105 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
9106 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
9107 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
9108 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
9109 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
9110 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
9111 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
9112 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
9113 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
9114 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
9115 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
9116 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
9117 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
9118 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
9119 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
9120 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
9121 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
9122 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
9123 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
9124 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
9125 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
9126 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
9127 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
9128 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
9129 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
9130 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
9131 These are set implicitly and an error is reported if overridden.
9132 (mips_expand_builtin_msa_test_branch): New function.
9133 (mips_expand_msa_shuffle): Likewise.
9134 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
9135 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
9136 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
9137 (mips_expand_vec_unpack): Add support for MSA.
9138 (mips_expand_vector_init): Likewise.
9139 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
9140 instead of const0_rtx.
9141 (mips_msa_vec_parallel_const_half): New function.
9142 (mips_gen_const_int_vector): Likewise.
9143 (mips_gen_const_int_vector_shuffle): Likewise.
9144 (mips_expand_msa_cmp): Likewise.
9145 (mips_expand_vec_cond_expr): Likewise.
9146 * config/mips/mips.h
9147 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
9148 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
9150 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
9151 (ISA_HAS_MSA): New macro.
9152 (UNITS_PER_MSA_REG): Likewise.
9153 (BITS_PER_MSA_REG): Likewise.
9154 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
9155 (MSA_REG_FIRST): New macro.
9156 (MSA_REG_LAST): Likewise.
9157 (MSA_REG_NUM): Likewise.
9158 (MSA_REG_P): Likewise.
9159 (MSA_REG_RTX_P): Likewise.
9160 (MSA_SUPPORTED_MODE_P): Likewise.
9161 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
9162 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
9163 * config/mips/mips.md: Include mips-msa.md.
9164 (alu_type): Add simd_add.
9165 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
9166 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
9167 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
9168 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
9169 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
9170 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
9171 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
9172 simd_move, simd_load, simd_store. Choose "multi" for moves
9174 (qword_mode): New attribute.
9175 (insn_count): Add instruction count for quad moves.
9176 Increase the count for MIPS SIMD division.
9177 (UNITMODE): Add UNITMODEs for vector types.
9178 (addsub): New code iterator.
9179 * config/mips/mips.opt (mmsa): New option.
9180 * config/mips/msa.h: New file.
9181 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
9183 * config/mips/mti-linux.h: Likewise.
9184 * config/mips/predicates.md
9185 (const_msa_branch_operand): New constraint.
9186 (const_uimm3_operand): Likewise.
9187 (const_uimm4_operand): Likewise.
9188 (const_uimm5_operand): Likewise.
9189 (const_uimm8_operand): Likewise.
9190 (const_imm5_operand): Likewise.
9191 (aq10b_operand): Likewise.
9192 (aq10h_operand): Likewise.
9193 (aq10w_operand): Likewise.
9194 (aq10d_operand): Likewise.
9195 (const_m1_operand): Likewise.
9196 (reg_or_m1_operand): Likewise.
9197 (const_exp_2_operand): Likewise.
9198 (const_exp_4_operand): Likewise.
9199 (const_exp_8_operand): Likewise.
9200 (const_exp_16_operand): Likewise.
9201 (const_vector_same_val_operand): Likewise.
9202 (const_vector_same_simm5_operand): Likewise.
9203 (const_vector_same_uimm5_operand): Likewise.
9204 (const_vector_same_uimm6_operand): Likewise.
9205 (const_vector_same_uimm8_operand): Likewise.
9206 (par_const_vector_shf_set_operand): Likewise.
9207 (reg_or_vector_same_val_operand): Likewise.
9208 (reg_or_vector_same_simm5_operand): Likewise.
9209 (reg_or_vector_same_uimm6_operand): Likewise.
9210 * doc/extend.texi (MIPS SIMD Architecture Functions): New
9212 * doc/invoke.texi (-mmsa): Document new option.
9214 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9216 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
9217 * configure: Regenerate.
9218 * config.in: Regenerate.
9219 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
9221 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
9222 (ENDFILE_VTV_SPEC): Define.
9224 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
9226 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
9227 registers in all interrupt handlers if necessary.
9228 (rl78_option_override): Add warning.
9229 (MUST_SAVE_MDUC_REGISTERS): New macro.
9230 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
9231 * config/rl78/rl78.c (check_mduc_usage): New function.
9232 (mduc_regs): New structure to hold MDUC register data.
9233 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
9234 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
9235 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
9236 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
9237 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
9238 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
9240 2016-05-09 Bin Cheng <bin.cheng@arm.com>
9242 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
9243 (tree-ssa-loop-niter.h): Ditto.
9244 (idx_within_array_bound, ref_within_array_bound): New functions.
9245 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
9246 Factor out check on writable base object to ...
9247 (base_object_writable): ... here.
9249 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9251 * config/arm/arm.md (probe_stack): Add modes to set source
9254 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
9256 * regrename.c (base_reg_class_for_rename): New static function.
9257 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
9259 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
9261 * cgraph.c (thunk_adjust): Export.
9262 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
9263 * cgraphunit.c (thunk_adjust): Export.
9264 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
9266 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
9268 * tree-inline.c (expand_call_inline): Expand thunks inline.
9270 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
9273 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
9274 (*sse2_vd_cvtss2sd): Ditto.
9275 * config/i386/i386.md
9276 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
9277 Generate *sse2_vd_cvtsd2ss pattern.
9278 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
9279 Generate *sse2_vd_cvtss2sd pattern.
9281 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
9283 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
9284 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
9287 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
9289 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
9290 * config/sh/sh.c: Define and declare variables on first use throughout
9292 (current_function_interrupt): Change to bool type.
9293 (frame_insn): Rename to emit_frame_insn and update users.
9294 (push_regs): Use bool for 'interrupt_handler' argument.
9295 (save_schedule_s): Remove.
9296 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
9297 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
9298 targetm.asm_out.unaligned_op.di.
9299 (gen_far_branch): Remove redundant forward declaration.
9300 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
9301 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
9302 (sh_set_return_address, sh_function_ok_for_sibcall,
9303 scavenge_reg): Update comments.
9304 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
9305 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
9306 (sh_attr_renesas_p): Remove unnecessary parentheses.
9307 (branch_dest): Simplify.
9308 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
9309 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
9310 (CUMULATIVE_ARGS): Change macro to typedef.
9311 (current_function_interrupt): Change to bool type.
9312 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
9313 Surround with __cplusplus ifdef.
9314 (sh_compare_op0, sh_compare_op1): Remove.
9315 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
9317 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
9319 * config/arm/arm.md: (arch): Add neon.
9320 (arch_enabled): Return yes for arch neon when TARGET_NEON.
9321 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
9322 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
9323 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
9324 attributes for alt renumbering. Mark alt 3 as non-predicable.
9325 (thumb2_movdf_vfp): Likewise.
9327 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
9329 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
9330 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
9331 (*andqi_1): Add preferred_for_speed attribute to disparage
9332 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
9333 (*<code>qi_1): Ditto.
9334 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
9335 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
9336 (*ashlqi3_1): Ditto.
9337 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
9338 Add preferred_for_size attribute to disparage alternative 0 and
9339 preferred_for_speed attribute to disparage alternative 1 for
9340 TARGET_PARTIAL_REG_STALL targets.
9342 2016-05-07 Tom de Vries <tom@codesourcery.com>
9344 PR tree-optimization/70956
9345 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
9348 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
9350 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
9351 * config/sh/sh.c (sh_cbranch_distance): Implement it.
9352 * config/sh/sh.md (branch_zero): Remove define_attr.
9353 (define_delay): Disable delay slot if branch distance is one insn.
9355 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
9357 * config/i386/i386.md (LEAMODE): New mode attribute.
9358 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
9359 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
9360 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
9361 operand 2 predicate.
9362 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
9363 (*lea<mode>_general_3): Ditto.
9364 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
9366 2016-05-06 Jakub Jelinek <jakub@redhat.com>
9368 * genmddump.c (main): Convert argv from char ** to const char **.
9370 2016-05-06 David Malcolm <dmalcolm@redhat.com>
9372 * coretypes.h (OVERRIDE): New macro.
9375 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
9377 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
9378 allow coalescing if the types are compatible.
9380 2016-05-06 David Malcolm <dmalcolm@redhat.com>
9382 * pass_manager.h (pass_manager::register_pass_name): New method.
9383 (pass_manager::get_pass_by_name): New method.
9384 (pass_manager::create_pass_tab): New method.
9385 (pass_manager::m_name_to_pass_map): New field.
9386 * passes.c (name_to_pass_map): Delete global in favor of field
9387 "m_name_to_pass_map" of pass_manager.
9388 (register_pass_name): Rename from a function to...
9389 (pass_manager::register_pass_name): ...this method, updating
9390 for renaming of global "name_to_pass_map" to field
9391 "m_name_to_pass_map".
9392 (create_pass_tab): Rename from a function to...
9393 (pass_manager::create_pass_tab): ...this method, updating
9394 for renaming of global "name_to_pass_map" to field.
9395 (get_pass_by_name): Rename from a function to...
9396 (pass_manager::get_pass_by_name): ...this method.
9397 (enable_disable_pass): Convert use of get_pass_by_name to
9398 a method call, locating the pass_manager singleton.
9400 2016-05-06 David Malcolm <dmalcolm@redhat.com>
9402 * genattr-common.c (main): Convert argv from char ** to const char **.
9403 * genattr.c (main): Likewise.
9404 * genattrtab.c (main): Likewise.
9405 * genautomata.c (initiate_automaton_gen): Likewise.
9407 * gencodes.c (main): Likewise.
9408 * genconditions.c (main): Likewise.
9409 * genconfig.c (main): Likewise.
9410 * genconstants.c (main): Likewise.
9411 * genemit.c (main): Likewise.
9412 * genenums.c (main): Likewise.
9413 * genextract.c (main): Likewise.
9414 * genflags.c (main): Likewise.
9415 * genmddeps.c (main): Likewise.
9416 * genopinit.c (main): Likewise.
9417 * genoutput.c (main): Likewise.
9418 * genpeep.c (main): Likewise.
9419 * genpreds.c (main): Likewise.
9420 * genrecog.c (main): Likewise.
9421 * gensupport.c (init_rtx_reader_args_cb): Likewise.
9422 (init_rtx_reader_args): Likewise.
9423 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9424 (init_rtx_reader_args): Likewise.
9425 * gentarget-def.c (main): Likewise.
9426 * read-md.c (read_md_files): Likewise.
9427 * read-md.h (read_md_files): Likewise.
9429 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
9431 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
9432 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
9433 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
9434 Remove unused predicate.
9435 (register_and_not_fp_reg_operand): Ditto.
9437 2016-05-06 Martin Liska <mliska@suse.cz>
9439 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
9440 instead of vec as the vector is local to the function.
9442 2016-05-06 Jakub Jelinek <jakub@redhat.com>
9444 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
9445 avx512bw alternative.
9447 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
9448 before the ashr<mode>3 pattern.
9450 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
9451 v instead of x in vex or maybe_vex alternatives, use
9452 maybe_evex instead of vex in prefix.
9454 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
9455 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
9456 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
9457 in vex or maybe_vex alternatives, use maybe_evex instead of vex
9460 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
9461 v instead of x in vex or maybe_vex alternatives, use
9462 maybe_evex instead of vex in prefix.
9464 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
9465 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
9466 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
9467 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
9468 alternatives, use maybe_evex instead of vex in prefix.
9470 * config/i386/sse.md (vec_interleave_lowv4sf,
9471 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
9472 v instead of x in vex or maybe_vex alternatives, use
9473 maybe_evex instead of vex in prefix.
9475 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
9476 v instead of x in vex or maybe_vex alternatives, use
9477 maybe_evex instead of vex in prefix.
9479 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
9480 v constraint instead of x.
9482 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
9484 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
9485 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
9488 2016-05-06 Richard Biener <rguenther@suse.de>
9490 PR tree-optimization/70948
9491 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9492 Properly clobber all fields of va_list for __builtin_va_start.
9494 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9497 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
9498 loop latch destination.
9500 2016-05-06 Martin Liska <mliska@suse.cz>
9502 * tree-ssa-uninit.c: Apply manual changes
9503 to the GNU coding style.
9504 (prune_uninit_phi_opnds): Rename from
9505 prune_uninit_phi_opnds_in_unrealizable_paths.
9507 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9509 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
9510 mspace): Remove deprecated options.
9511 * doc/invoke.texi (SH options): Remove -mspace.
9513 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9515 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
9517 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9519 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
9520 corresponding combine split pattern.
9522 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9525 * config/sh/predicates.md (long_displacement_mem_operand): New.
9526 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
9527 Add movi20, movi20s alternatives. Adjust length attribute for
9529 (movsi_ie): Allow for any FPU. Adjust length attribute for
9531 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
9532 attribute for alternatives.
9533 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
9534 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
9535 length attribute for alternatives.
9537 2016-05-06 Richard Biener <rguenther@suse.de>
9539 PR tree-optimization/70960
9540 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
9542 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9545 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
9546 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
9548 2016-05-06 Marek Polacek <polacek@redhat.com>
9551 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
9553 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
9556 * config/sh/sh.md (*rotcr): Add another variant.
9558 2016-05-06 Richard Biener <rguenther@suse.de>
9561 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
9563 2016-05-06 Richard Biener <rguenther@suse.de>
9566 * fold-const.c (split_tree): Always convert to the original type
9569 2016-05-06 Richard Biener <rguenther@suse.de>
9571 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
9572 (fwprop_addr): Likewise.
9574 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
9577 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
9579 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
9580 * config/i386/i386.md (push mem splitter): Use find_constant_src in
9581 the splitter condition.
9582 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
9583 the splitter condition.
9584 (FP float_extend load splitter): Ditto.
9586 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
9588 * config/i386/i386.md (peehole2 patterns): Change true_regnum
9589 to REGNO in all peephole2 patterns.
9590 (post-reload splitters): Change true_regnum to REGNO in
9591 post-reload splitters.
9592 (zero_extend splitters): Use general_reg_operand and
9593 nonimmediate_gr_operand predicates.
9595 2016-05-05 Jakub Jelinek <jakub@redhat.com>
9597 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
9598 v constraint instead of x.
9600 2016-05-05 Alan Modra <amodra@gmail.com>
9603 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
9604 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
9605 TARGET_NO_FP_IN_TOC for -mrelocatable.
9606 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
9607 TARGET_RELOCATABLE test.
9608 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9609 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9610 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9611 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9612 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9613 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9614 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9615 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9616 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9617 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9619 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
9620 (rs6000_stack_info): Likewise.
9621 (rs6000_elf_asm_out_constructor): Likewise.
9622 (rs6000_elf_asm_out_destructor): Likewise.
9623 (rs6000_elf_declare_function_name): Likewise.
9624 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
9625 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
9628 2016-05-05 Alan Modra <amodra@gmail.com>
9630 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9632 2016-05-05 Alan Modra <amodra@gmail.com>
9634 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9635 out-of-line gpr restore for one or two regs if that would add
9638 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
9641 * config/i386/i386.md
9642 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9643 Change to post-epilogue_completed late splitter. Use sse_reg_operand
9644 as operand 0 predicate.
9645 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9647 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9648 Ditto. Emit the pattern using RTX.
9650 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9651 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
9652 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
9653 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9655 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9656 sse_reg_operand as operand 0 predicate.
9658 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9659 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
9660 instead of gen_rtx_REG.
9661 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9664 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9666 * function.c (emit_use_return_register_into_block): Delete.
9667 (gen_return_pattern): Delete.
9668 (emit_return_into_block): Delete.
9669 (active_insn_between): Delete.
9670 (convert_jumps_to_returns): Delete.
9671 (emit_return_for_exit): Delete.
9672 (thread_prologue_and_epilogue_insns): Delete all code dealing with
9673 simple_return for shrink-wrapped blocks.
9674 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9675 end of blocks that need one.
9676 (get_unconverted_simple_return): Delete.
9677 (convert_to_simple_return): Delete.
9678 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9679 (convert_to_simple_return): Ditto.
9681 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9683 * cfgcleanup.c (bb_is_just_return): New function.
9684 (try_optimize_cfg): Simplify jumps to return, branches to return,
9685 and branches around return.
9687 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9689 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9692 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9696 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9697 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9698 assert flags & OEP_HASH_CHECK, instead of asserting it
9699 never happens. Handle TARGET_EXPR.
9700 * fold-const.c (operand_equal_p): For hash verification,
9701 or in OEP_HASH_CHECK into flags.
9703 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
9705 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9707 (compute_samebase_partition_bases): Fix typo.
9709 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9711 * config/i386/sse.md (vec_interleave_highv8sf,
9712 vec_interleave_lowv8sf, vec_interleave_highv4df,
9713 vec_interleave_lowv4df): Remove constraints from expanders.
9715 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9717 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9719 * tree-inline.c (expand_call_inline): Fix path dealing with
9720 making lhs of call statement undefined.
9722 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9724 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9725 Check availability on NODE, too.
9726 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9727 (cgraph_node::call_for_symbol_and_aliases): Likewise.
9728 (varpool_node::call_for_symbol_and_aliase): Likewise.
9729 * ipa-pure-const.c (add_new_function): Analyze all bodies.
9730 (propagate_pure_const): Propagate across interposable functions, too.
9731 (skip_function_for_local_pure_const): Do not skip interposable bodies
9733 (pass_local_pure_const::execute): Update.
9735 2016-05-04 Marek Polacek <polacek@redhat.com>
9737 * doc/invoke.texi: Document -Wdangling-else.
9739 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9741 * config.gcc: Error out when conflicting multilib is detected. Do not
9742 loop over multilibs since no combination is legal.
9744 2016-05-04 Alan Modra <amodra@gmail.com>
9746 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9747 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9748 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9751 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
9753 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9754 Clean up p5600 comments.
9756 2016-05-04 Richard Biener <rguenther@suse.de>
9758 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9759 constructor simplifications.
9760 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9762 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
9764 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9765 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9766 result.set_rtx is null instead of aborting.
9767 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9769 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9770 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9771 *mov<mode>_store_postinc): New patterns.
9773 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
9775 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
9776 as commutative. Check both conversions are NOP.
9777 ((A & B) OP (C & B)): Remove.
9779 2016-05-04 Alan Modra <amodra@gmail.com>
9781 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9783 2016-05-04 Alan Modra <amodra@gmail.com>
9786 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9787 when cr2,3,4 are all fixed regs.
9789 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
9791 PR rtl-optimization/57193
9792 * opts.c (default_options_table): Revert OPT_frename_registers change.
9793 * doc/invoke.texi (-frename-registers, -O2): Likewise.
9795 2016-05-03 Martin Sebor <msebor@redhat.com>
9798 * builtins.c (fold_builtin_FILE): New function.
9799 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9800 (fold_builtin_0): Call them.
9801 * gimplify.c (gimplify_call_expr): Remove the handling of
9802 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9805 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9806 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9810 * doc/extend.texi (Function Names as Strings): Update __func__,
9811 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9814 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9815 Richard Biener <rguenther@suse.de>
9817 PR tree-optimization/70916
9818 * tree-if-conv.c: Include cfganal.h.
9819 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9820 and remove_fake_exit_edges around the optimization pass.
9822 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
9824 * cgraph.c (symbol_table::create_edge): Set inline_failed.
9825 (cgraph_edge::make_direct): Likewise.
9826 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9827 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9828 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9829 (CIF_THUNK): New code.
9830 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9831 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9832 (compute_inline_parameters): Set inline_failed for thunks.
9833 (inline_analyze_function): Cleanup.
9834 * ipa-inline.c (can_inline_edge_p): Do not deal with
9835 call_stmt_cannot_inline_p.
9836 (can_early_inline_edge_p): Likewise.
9837 (early_inliner): Initialize inline_failed.
9838 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9840 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
9842 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9843 from nonimm_ssenomem_operand.
9844 (nonimm_ssenomem_operand): New predicate.
9845 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9846 as operand 0 predicate.
9847 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9848 Disable unsupported alternatives using "enabled" attribute.
9849 Use register_ssemem_operand as operand 0 predicate.
9850 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9852 2016-05-03 Marek Polacek <polacek@redhat.com>
9855 * input.c (expansion_point_location): New function.
9856 * input.h (expansion_point_location): Declare.
9858 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
9860 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9861 occurence with frame_offset_ ones.
9863 2016-05-03 Alan Modra <amodra@gmail.com>
9865 PR rtl-optimization/70890
9866 * ira.c (combine_and_move_insns): When moving def_insn, remove
9869 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9871 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9872 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9873 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9874 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9876 2016-05-03 Alan Modra <amodra@gmail.com>
9878 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9879 for SAVE_MULTIPLE/STORE_MULTIPLE.
9881 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9883 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9884 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9886 2016-05-03 Richard Biener <rguenther@suse.de>
9888 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9890 (gimplify_arg): Likewise.
9891 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9892 re-writing the result to a decl if required.
9893 (internal_get_tmp_var): Add allow_ssa parameter
9894 and override into_ssa with it.
9895 (get_formal_tmp_var): Adjust.
9896 (get_initialized_tmp_var): Add allow_ssa parameter.
9897 (gimplify_arg): Add allow_ssa parameter and avoid generating
9898 SSA names for the result false.
9899 (gimplify_call_expr): If the call may return twice do not
9900 gimplify parameters into SSA.
9901 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9902 (gimplify_modify_expr): Adjust assert. For noreturn calls
9903 with a SSA name LHS adjust its def.
9904 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9905 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9906 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9907 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9908 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
9909 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
9910 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9911 (optimize_target_teams): Do not allow SSA names for clause operands.
9912 (gimplify_expr): Likewise for where we mark the result addressable.
9913 * passes.def (pass_init_datastructures): Remove.
9914 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9915 (rewrite_stmt): Likewise.
9916 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9917 (replace_locals_op): Replace SSA names.
9918 (copy_gimple_seq_and_replace_locals): Init src_cfun.
9919 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9920 * cgraph.c (release_function_body): Free CFG annotations only
9921 when we have a CFG. Simplify.
9922 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9923 force_gimple_operand instead of get_initialized_tmp_var.
9924 * tree-pass.h (make_pass_init_datastructures): Remove.
9925 * tree-ssa.c (execute_init_datastructures): Remove.
9926 (pass_data_init_datastructures): Likewise.
9927 (class pass_init_datastructures): Likewise.
9928 (make_pass_init_datastructures): Likewise.
9929 * omp-low.c (create_omp_child_function): Init SSA data structures.
9930 (grid_expand_target_grid_body): Likewise.
9931 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9932 name before adding it to names_to_release.
9933 (remove_bb): Always release SSA defs.
9934 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9935 before dereferencing it.
9936 * cgraphunit.c (init_lowered_empty_function): Always
9937 int SSA data structures.
9938 * tree-ssanames.c (release_defs): Remove assert that we are in
9940 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9942 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9943 Uros Bizjak <ubizjak@gmail.com>
9945 PR rtl-optimization/70467
9946 * config/i386/predicates.md (x86_64_hilo_int_operand,
9947 x86_64_hilo_general_operand): New predicates.
9948 * config/i386/constraints.md (Wd): New constraint.
9949 * config/i386/i386.md (mode attr di): Use Wd instead of e.
9950 (general_hilo_operand): New mode attr.
9951 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9952 instead of <general_operand>.
9953 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9954 x86_64_hilo_general_operand instead of <general_operand>.
9956 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9958 PR tree-optimization/70916
9959 * tree-if-conv.c (constant_or_ssa_name): Removed.
9960 (fold_build_cond_expr): Use is_gimple_val instead of
9961 constant_or_ssa_name.
9963 PR tree-optimization/70916
9964 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9965 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9968 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9969 (optimize_atomic_bit_test_and): New function.
9970 (pass_fold_builtins::execute): Use it.
9971 * optabs.def (atomic_bit_test_and_set_optab,
9972 atomic_bit_test_and_complement_optab,
9973 atomic_bit_test_and_reset_optab): New optabs.
9974 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9975 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9976 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9977 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9978 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9979 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9980 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9981 * doc/md.texi (atomic_bit_test_and_set@var{mode},
9982 atomic_bit_test_and_complement@var{mode},
9983 atomic_bit_test_and_reset@var{mode}): Document.
9984 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9985 atomic_bit_test_and_complement<mode>,
9986 atomic_bit_test_and_reset<mode>): New expanders.
9987 (atomic_bit_test_and_set<mode>_1,
9988 atomic_bit_test_and_complement<mode>_1,
9989 atomic_bit_test_and_reset<mode>_1): New insns.
9991 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
9993 PR rtl-optimization/70687
9994 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
9995 instead of unsigned HOST_WIDE_INT.
9997 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
9999 PR rtl-optimization/44281
10000 * hard-reg-set.h (struct target_hard_regs): New field
10001 x_fixed_nonglobal_reg_set.
10002 (fixed_nonglobal_reg_set): New macro.
10003 * reginfo.c (init_reg_sets_1): Initialize it.
10004 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
10006 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
10008 2016-05-03 Bin Cheng <bin.cheng@arm.com>
10010 PR tree-optimization/56541
10011 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
10012 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
10013 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
10014 (any_complicated_phi): new static variable.
10015 (aggressive_if_conv): delete.
10016 (if_convertible_phi_p): support phis with more than two arguments.
10017 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
10018 critical pred edges.
10019 (ifcvt_split_critical_edges): support phis with more than two
10020 arguments by checking new parameter. only split critical edges
10022 (tree_if_conversion): handle simd pragma marked loop using new
10023 local variable aggressive_if_conv. check any_complicated_phi.
10025 2016-05-03 Bin Cheng <bin.cheng@arm.com>
10027 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
10030 2016-05-03 Bin Cheng <bin.cheng@arm.com>
10032 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
10035 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
10037 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
10038 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
10039 define_insn_and_split.
10040 (mulsi3_i): New define_insn_and_split.
10041 (mulsi3_call): Convert to define_insn.
10042 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
10043 Remove constraints.
10045 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10047 * machmode.h (mode_complex): Add support to give the complex mode
10049 (GET_MODE_COMPLEX_MODE): Likewise.
10050 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
10051 stored by build_complex_type and gfc_build_complex_type instead of
10052 trying to figure out the appropriate mode based on the size. Raise
10053 an assertion error, if the type was not set.
10054 * genmodes.c (struct mode_data): Add field for the complex type of
10056 (blank_mode): Likewise.
10057 (make_complex_modes): Remember the complex mode created in the
10059 (emit_mode_complex): Write out the mode_complex array to map a
10060 type mode to the complex version.
10061 (emit_insn_modes_c): Likewise.
10062 * tree.c (build_complex_type): Set the complex type to use before
10063 calling layout_type.
10064 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
10065 support for __float128 complex datatypes.
10066 (rs6000_hard_regno_mode_ok): Likewise.
10067 (rs6000_setup_reg_addr_masks): Likewise.
10068 (rs6000_complex_function_value): Likewise.
10069 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
10070 __float128 and __ibm128 complex.
10071 (FLOAT128_IBM_P): Likewise.
10072 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10073 * doc/extend.texi (Additional Floating Types): Document that
10074 -mfloat128 must be used to enable __float128. Document complex
10075 __float128 and __ibm128 support.
10077 2016-05-02 Jakub Jelinek <jakub@redhat.com>
10080 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
10081 char/short arguments promoted to int because of promote_prototypes.
10083 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
10085 * config/i386/predicates.md (register_ssemem_operand): New predicate.
10086 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
10087 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
10088 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
10089 alternatives using "enabled" attribute. Use register_ssemem_operand
10090 as operand 1 predicate.
10091 (*cmpi<unord>xf_i387): Split XFmode pattern from
10092 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
10093 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
10094 *absneg<mode>2_i387. Disable unsupported alternatives using
10095 "enabled" attribute.
10096 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
10098 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10100 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
10102 (oacc_loop_process): Check mask for loop termination.
10104 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
10106 * cif-code.def (CIF_THUNK): Add.
10107 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
10110 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
10112 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
10113 (dump_inline_summary): Dump it.
10114 (fp_expression_p): New predicate.
10115 (estimate_function_body_sizes): Use it.
10116 (inline_merge_summary): Merge fp_expressions.
10117 (inline_read_section): Read fp_expressions.
10118 (inline_write_summary): Write fp_expressions.
10119 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
10120 codegen boundary if either caller or callee is !fp_expressions.
10121 * ipa-inline.h (inline_summary): Add fp_expressions.
10122 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
10123 to fp_expressions be sure the fp generation flags are updated.
10125 2016-05-02 Jakub Jelinek <jakub@redhat.com>
10127 PR rtl-optimization/70467
10128 * cse.c (cse_insn): Handle no-op MEM moves after folding.
10130 PR rtl-optimization/70467
10131 * ipa-pure-const.c (check_call): Handle internal calls even in
10132 ipa mode like in local mode.
10134 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
10136 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
10138 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
10140 * match.pd (X u< X, X u> X): New transformations.
10142 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
10144 * flag-types.h (enum warn_strict_overflow_code): Move ...
10145 * coretypes.h: ... here.
10146 * fold-const.h (fold_overflow_warning): Declare.
10147 * fold-const.c (fold_overflow_warning): Make non-static.
10148 (fold_comparison): Move the transformation of X +- C1 CMP C2
10149 into X CMP C2 -+ C1 ...
10150 * match.pd: ... here.
10151 * gimple-fold.c (fold_stmt_1): Protect with
10152 fold_defer_overflow_warnings.
10154 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10156 * omp-low.c (struct oacc_loop): Add 'inner' field.
10157 (new_oacc_loop_raw): Initialize it to zero.
10158 (oacc_loop_fixed_partitions): Initialize it.
10159 (oacc_loop_auto_partitions): Partition outermost loop to outermost
10160 available partitioning.
10162 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
10164 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
10166 (umulsidi3): Likewise.
10167 (indirect_jump): Fix jump instruction assembly patterns.
10169 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
10172 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
10173 (nvptx_function_value): Assert non-NULL cfun.
10175 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
10177 PR rtl-optimization/70886
10178 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
10180 * cselib.h (rtx_equal_for_cselib_1): Declare.
10181 (rtx_equal_for_cselib_p: New inline function.
10182 * cselib.c (rtx_equal_for_cselib_p): Delete.
10183 (rtx_equal_for_cselib_1): Make public.
10185 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
10187 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
10188 (register_mixssei387nonimm_operand): Remove predicate.
10189 * config/i386/i386.md (*fop_<mode>_comm): Merge from
10190 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
10191 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
10192 for TARGET_MIX_SSE_I387 alternatives.
10193 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
10194 Disable unsupported alternatives using "enabled" attribute. Use
10195 nonimm_ssenomem_operand as operand 1 predicate. Also check
10196 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
10198 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
10200 * tree.c (cst_and_fits_in_hwi): Simplify.
10202 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
10204 * tree.h (wi::to_wide): New function.
10205 * expr.c (expand_expr_real_1): Use wi::to_wide.
10206 * fold-const.c (int_const_binop_1): Likewise.
10207 (extract_muldiv_1): Likewise.
10209 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
10211 * wide-int.h: Update offset_int and widest_int documentation.
10212 (WI_SIGNED_SHIFT_RESULT): New macro.
10213 (wi::binary_shift): Define signed_shift_result_type for
10214 shifts on offset_int- and widest_int-like types.
10215 (generic_wide_int): Support <<= and >>= if << and >> are supported.
10216 * tree.h (int_bit_position): Use shift operators instead of wi::
10218 * alias.c (adjust_offset_for_component_ref): Likewise.
10219 * expr.c (get_inner_reference): Likewise.
10220 * fold-const.c (fold_comparison): Likewise.
10221 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
10222 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
10223 * tree-dfa.c (get_ref_base_and_extent): Likewise.
10224 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
10225 (stmt_kills_ref_p): Likewise.
10226 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
10227 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
10228 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10229 (ao_ref_init_from_vn_reference): Likewise.
10231 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
10233 * wide-int.h: Update offset_int and widest_int documentation.
10234 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
10235 (wi::binary_traits): Allow ordered comparisons between offset_int and
10236 offset_int, between widest_int and widest_int, and between either
10237 of these types and basic C types.
10238 (operator <, <=, >, >=): Define for the same combinations.
10239 * tree.h (tree_int_cst_lt): Use comparison operators instead
10240 of wi:: comparisons.
10241 (tree_int_cst_le): Likewise.
10242 * gimple-fold.c (fold_array_ctor_reference): Likewise.
10243 (fold_nonarray_ctor_reference): Likewise.
10244 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
10245 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
10246 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
10247 * tree-sra.c (completely_scalarize): Likewise.
10248 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
10249 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
10250 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
10251 (check_for_binary_op_overflow): Likewise.
10252 (search_for_addr_array): Likewise.
10253 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
10255 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
10257 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
10258 (arc_save_restore): Likewise.
10259 (arc_dwarf_register_span): Likewise.
10260 (arc_output_pic_addr_const): Initialize suffix variable.
10262 2016-05-02 Martin Liska <mliska@suse.cz>
10264 * symbol-summary.h (function_summary::function_summary):
10265 Remove checking assert for all cgraph nodes.
10266 (function_summary::get): Check summary_uid.
10267 (symtab_insertion): Check summary_uid.
10269 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
10271 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
10272 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
10273 bmaskn instruction.
10274 (arc_dwarf_register_span): Remove enum keyword.
10275 (compact_memory_operand_p): New function.
10276 * config/arc/arc.h (reg_class): Add code density register classes.
10277 (REG_CLASS_NAMES): Likewise.
10278 (REG_CLASS_CONTENTS): Likewise.
10279 * config/arc/arc.md (*movqi_insn): Add code density instructions.
10280 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
10281 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
10282 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
10283 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
10285 (h, Rcd, Rsd, Rzd): New register constraints.
10286 (T): Use compact_memory_operand_p function.
10287 * config/arc/predicates.md (compact_load_memory_operand): Remove.
10289 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
10291 * config/sh/sh.md (*negnegt, *movtt): Remove.
10293 2016-05-02 Marek Polacek <polacek@redhat.com>
10294 Tom de Vries <tom@codesourcery.com>
10296 PR tree-optimization/70700
10297 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
10298 bigger than FIRST_REF_NODE.
10300 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
10303 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
10305 (prepare_cbranch_operands): Don't use scratch register. Assume that
10306 function is used when pseudos can be created.
10307 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
10308 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
10309 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
10310 define_expand. Allow it only when pseudos can be created.
10311 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
10313 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
10315 * config/i386/constraints.md (BC): Only allow -1 operands.
10316 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
10317 Add "enabled" attribute. Update XI mode attribute calculation.
10318 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
10319 (*movoi_internal_avx): Update XI mode attribute calculation.
10320 (*movti_internal): Ditto.
10322 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
10324 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
10325 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
10327 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
10329 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
10330 statement on instruction code. Remove trailing spaces.
10331 (altivec_expand_stv_builtin): Likewise.
10333 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
10335 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
10336 (TARGET_FPU_DOUBLE): Simplify.
10337 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
10338 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
10339 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
10340 with 'TARGET_FPU_DOUBLE'.
10341 * config/sh/sh.md: Likewise.
10343 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
10345 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
10346 SH_DIV_STR_FOR_SIZE): Remove.
10347 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
10348 SH_DIV_STR_FOR_SIZE): Remove.
10350 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
10352 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
10353 logical_reg_operand): Delete.
10354 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
10355 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
10356 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
10357 match_operand and match_test.
10358 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
10359 variables on their first use. Return bool values.
10360 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
10361 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
10362 arith_reg_operand for input operand. Remove empty constraints.
10364 (*xorsi3_compact): Rename to xorsi3.
10365 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
10366 (*zero_extend<mode>si2_disp_mem): Update comment.
10369 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
10371 * config/sh/t-sh: Remove SH5 support.
10372 * config.gcc: Likewise.
10373 * configure: Likewise.
10375 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10377 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
10379 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
10381 * config/sh/sh.c (register_sh_passes, sh_option_override,
10382 sh_print_operand, prepare_move_operands,
10383 sh_can_follow_jump): Remove TARGET_SH1 checks.
10384 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
10385 PROMOTE_MODE): Likewise.
10386 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
10389 2016-04-30 Alan Modra <amodra@gmail.com>
10391 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
10392 restoring when fixed_reg_p, but allow out-of-line or stmw save.
10393 Check for user regs later to avoid unnecessary looping over regs.
10394 Merge user reg check with non-saved reg check. Don't force
10395 inline VR restore when static chain used.
10396 (rs6000_frame_related): Omit eh_frame info for user regs when
10398 (fixed_regs_p): Delete.
10400 2016-04-30 Alan Modra <amodra@gmail.com>
10402 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
10403 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
10406 2016-04-30 Alan Modra <amodra@gmail.com>
10409 * config/rs6000/rs6000.c (fixed_reg_p): New function.
10410 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
10413 2016-04-30 Alan Modra <amodra@gmail.com>
10415 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10416 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
10417 flag_pic test for Darwin.
10419 2016-04-30 Alan Modra <amodra@gmail.com>
10421 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
10422 throw_calls_crossed.
10423 (REG_FREQ_CALLS_CROSSED): Delete.
10424 (REG_N_THROWING_CALLS_CROSSED): Delete.
10425 * regstat.c (regstat_bb_compute_ri): Don't calculate
10426 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
10427 (dump_reg_info): Don't print call cross frequency.
10428 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
10429 and REG_N_THROWING_CALLS_CROSSED.
10431 2016-04-30 Alan Modra <amodra@gmail.com>
10433 * regs.h (struct reg_info_t): Delete live_length.
10434 (REG_LIVE_LENGTH): Delete macro.
10435 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
10436 local_live, local_processed and local_live_last_luid params.
10437 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
10439 (regstat_compute_ri): Adjust for above. Don't set
10441 (dump_reg_info): Don't print live length.
10442 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
10443 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
10444 Localize loop_depth var.
10446 2016-04-30 Alan Modra <amodra@gmail.com>
10448 * ira.c (enum valid_equiv): New.
10449 (validate_equiv_mem): Return enum.
10450 (update_equiv_mem): Create replacement in more cases.
10451 (add_store_equivs): Update validate_equiv_mem call.
10453 2016-04-30 Alan Modra <amodra@gmail.com>
10455 * ira.c (combine_and_move_insns): Rather than scanning insns,
10456 use DF infrastucture to find use and def insns.
10458 2016-04-30 Alan Modra <amodra@gmail.com>
10460 ira.c (combine_and_move_insns): Move invariant conditions..
10461 (ira.c): ..to here. Call combine_and_move_insns before
10462 add_store_equivs. Call grow_reg_equivs later. Allocate
10463 req_equiv later using max_reg_num() rather than global max_regno.
10464 (contains_replace_regs): Delete.
10465 (add_store_equivs): Remove contains_replace_regs test.
10467 2016-04-30 Alan Modra <amodra@gmail.com>
10469 * ira.c (struct equiv_mem_data): New.
10470 (equiv_mem, equiv_mem_modified): Delete static vars.
10471 (validate_equiv_mem_from_store): Use "data" param to communicate..
10472 (validate_equiv_mem): ..from here.
10474 2016-04-30 Alan Modra <amodra@gmail.com>
10476 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
10478 (update_reg_equivs): ..here. Move allocation and freeing of
10479 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
10480 end_alias_analysis to..
10483 2016-04-30 Alan Modra <amodra@gmail.com>
10485 * ira.c (pdx_subregs): Delete.
10486 (struct equivalence): Add pdx_subregs field.
10487 (set_paradoxical_subreg): Remove pdx_subregs param. Update
10488 pdx_subregs access.
10489 (update_equiv_regs): Don't create or free pdx_subregs. Update
10490 pdx_subregs access.
10492 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10494 * config/rs6000/altivec.h: Change definitions of vec_xl and
10496 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
10497 (LD_ELEMREV_V2DI): New.
10498 (LD_ELEMREV_V4SF): New.
10499 (LD_ELEMREV_V4SI): New.
10500 (LD_ELEMREV_V8HI): New.
10501 (LD_ELEMREV_V16QI): New.
10502 (ST_ELEMREV_V2DF): New.
10503 (ST_ELEMREV_V2DI): New.
10504 (ST_ELEMREV_V4SF): New.
10505 (ST_ELEMREV_V4SI): New.
10506 (ST_ELEMREV_V8HI): New.
10507 (ST_ELEMREV_V16QI): New.
10510 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10511 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
10512 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
10513 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
10514 (altivec_expand_builtin): Add handling for
10515 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
10516 (rs6000_invalid_builtin): Add error-checking for
10517 RS6000_BTM_P9_VECTOR.
10518 (altivec_init_builtins): Define builtins used to implement vec_xl
10520 (rs6000_builtin_mask_names): Define power9-vector.
10521 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
10522 (RS6000_BTM_P9_VECTOR): Define.
10523 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
10524 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
10525 (vsx_ld_elemrev_v2df): Likewise.
10526 (vsx_ld_elemrev_v4sf): Likewise.
10527 (vsx_ld_elemrev_v4si): Likewise.
10528 (vsx_ld_elemrev_v8hi): Likewise.
10529 (vsx_ld_elemrev_v16qi): Likewise.
10530 (vsx_st_elemrev_v2df): Likewise.
10531 (vsx_st_elemrev_v2di): Likewise.
10532 (vsx_st_elemrev_v4sf): Likewise.
10533 (vsx_st_elemrev_v4si): Likewise.
10534 (vsx_st_elemrev_v8hi): Likewise.
10535 (vsx_st_elemrev_v16qi): Likewise.
10536 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
10539 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
10541 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
10543 (simplify_control_stmt_condition_1): ... here. Recurse into
10544 BIT_AND_EXPRs and BIT_IOR_EXPRs.
10546 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
10549 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
10550 (zero_extendqi<mode>2_dot): Revert earlier conversion from
10551 define_insn_and_split to define_insn.
10552 (zero_extendqi<mode>2_dot2): Same.
10553 (extendqi<mode>2_dot): Same.
10554 (extendqi<mode>2_dot2): Same.
10556 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10558 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
10559 (probe_stack): New expander.
10560 (probe_stack_<mode>): New insn pattern.
10562 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10564 * config/i386/i386.md
10565 (operations with memory inputs setting flags peephole2):
10566 Remove uneeded REG_P checks. Cleanup pattern generation.
10568 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
10570 * tree-vect-loop.c (vect_transform_loop): Fix
10571 nb_iterations_upper_bound computation for vectorized loop.
10573 2016-04-29 Marek Polacek <polacek@redhat.com>
10574 Jakub Jelinek <jakub@redhat.com>
10577 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
10578 TARGET_EXPR_SLOT as a base.
10580 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10582 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
10583 with 'rCm2' constraints to limit possible immediate size.
10584 (*load_zeroextendqisi_update): Likewise.
10585 (*load_signextendqisi_update): Likewise.
10586 (*loadhi_update): Likewise.
10587 (*load_zeroextendhisi_update): Likewise.
10588 (*load_signextendhisi_update): Likewise.
10589 (*loadsi_update): Likewise.
10590 (*loadsf_update): Likewise.
10592 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10594 * config/i386/predicates.md (constm1_operand): Fix comparison.
10596 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10598 * testsuite/gcc.target/arc/ieee_eq.c: New test.
10600 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
10602 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
10603 remaining SH5 related settings.
10604 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
10605 shmedia_prepare_call_address): Delete.
10606 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
10607 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
10608 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
10609 UNSUPPORTED_SH2A): Remove m5 checks.
10610 (sh_divide_strategy_e): Remove SH5 division strategies.
10611 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
10612 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
10614 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10616 * config/s390/s390.c (s390_rtx_costs): Update documentation.
10618 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10620 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
10621 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
10622 Change lder to ldr.
10623 * config/s390/vector.md ("mov<mode>"): Likewise.
10625 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
10627 * config/s390/constraints.md ("U", "W"): Invoke
10628 s390_mem_constraint with "ZR" and "ZT".
10629 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
10630 addresses when using LRA. Accept also short displacements for S
10631 and T constraints. Do not check for long displacement target for
10632 S and T constraints.
10633 (s390_mem_constraint): Remove handling of U and W constraints.
10634 * config/s390/s390.md (various patterns): Remove the short
10635 displacement constraints (Q and R) if a long displacement
10636 constraint is present. Add longdisp as required CPU capability.
10637 * config/s390/vector.md: Likewise.
10638 * config/s390/vx-builtins.md: Likewise.
10640 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10643 * reload1.c (reload): Call finish_spills before
10644 restarting reload loop. Skip select_reload_regs
10645 if update_eliminables_and_spill returns true.
10647 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10649 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10650 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10651 (umulhisi3_imm): Update predicates and constraint letters.
10652 (umulhisi3_reg): Declare instruction as commutative.
10653 * config/arc/constraints.md (J12, J16): New constraints.
10654 * config/arc/predicates.md (short_unsigned_const_operand): New
10656 (arc_short_operand): Likewise.
10657 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10659 2016-04-29 Richard Biener <rguenther@suse.de>
10661 PR tree-optimization/13962
10662 PR tree-optimization/65686
10663 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10664 * tree-ssa-alias.c (ptrs_compare_unequal): New function
10665 using PTA to compare pointers.
10666 * match.pd: Add pattern for pointer equality compare simplification
10667 using ptrs_compare_unequal.
10669 2016-04-29 Richard Biener <rguenther@suse.de>
10671 * stor-layout.c (layout_type): Do not build a pointer-to-element
10674 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10676 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10677 Use SWI mode iterator. Use general_reg_operand predicate.
10678 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10679 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
10682 2016-04-29 Jakub Jelinek <jakub@redhat.com>
10684 PR middle-end/70843
10685 * fold-const.c (operand_equal_p): Don't verify hash value equality
10687 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
10690 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10693 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10694 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10695 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10696 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10697 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10699 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10701 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10702 to info. Don't initialize separate fields to 0. Clean up
10705 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10707 * config/i386/i386.md (peephole2s for operations with memory inputs):
10708 Use SWI mode iterator.
10709 (peephole2s for operations with memory outputs): Ditto.
10710 Do not check for stack checking probe.
10712 (probe_stack): Remove expander.
10714 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10715 Andrew Burgess <andrew.burgess@embecosm.com>
10717 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10718 operands as 32-bits.
10720 2016-04-28 Jason Merrill <jason@redhat.com>
10722 * gdbinit.in: Skip line-map.h.
10724 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10725 Andrew Burgess <andrew.burgess@embecosm.com>
10727 * config/arc/arc.c (arc_conditional_register_usage): Take
10728 TARGET_RRQ_CLASS into account.
10729 (arc_print_operand): Support printing 'p' and 's' operands.
10730 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10732 (TARGET_RRQ_CLASS): Define.
10733 (IS_POWEROF2_OR_0_P): Define.
10734 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10736 (*tst_movb): New define_insn.
10737 (*tst): Avoid recognition if it could prevent '*tst_movb'
10738 combination; replace c/CnL with c/Chs alternative.
10739 (*tst_bitfield_tst): New define_insn.
10740 (*tst_bitfield_asr): New define_insn.
10741 (*tst_bitfield): New define_insn.
10742 (andsi3_i): Add Rrq variant.
10743 (extzv): New define_expand.
10744 (insv): New define_expand.
10745 (*insv_i): New define_insn.
10746 (*movb): New define_insn.
10747 (*movb_signed): New define_insn.
10748 (*movb_high): New define_insn.
10749 (*movb_high_signed): New define_insn.
10750 (*movb_high_signed + 1): New define_split pattern.
10751 (*mrgb): New define_insn.
10752 (*mrgb + 1): New define_peephole2 pattern.
10753 (*mrgb + 2): New define_peephole2 pattern.
10754 * config/arc/arc.opt (mbitops): New option for nps400, uses
10755 TARGET_NPS_BITOPS_DEFAULT.
10756 * config/arc/constraints.md (q): Make register class conditional.
10757 (Rrq): New register constraint.
10758 (Chs): New constraint.
10759 (Clo): New constraint.
10760 (Chi): New constraint.
10761 (Cbf): New constraint.
10762 (Cbn): New constraint.
10763 (C18): New constraint.
10764 (Cbi): New constraint.
10766 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10768 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10770 (bitmap_intersection_of_preds): Ditto.
10771 (bitmap_union_of_succs): Ditto.
10772 (bitmap_union_of_preds): Ditto.
10773 * sbitmap.c (do_popcount): Delete.
10774 (BITMAP_DEBUGGING): Delete.
10775 (sbitmap_verify_popcount): Delete.
10776 (sbitmap_alloc): Don't initialize the popcount field.
10777 (sbitmap_alloc_with_popcount): Delete.
10778 (sbitmap_resize): Don't resize the popcount array.
10779 (sbitmap_vector_alloc): Don't initialize the popcount field.
10780 (bitmap_copy): Don't copy the popcount array.
10781 (bitmap_clear): Don't clear the popcount array.
10782 (bitmap_clear): Delete the popcount array handling.
10783 (bitmap_ior_and_compl): Delete the popcount assert.
10784 (bitmap_not): Ditto.
10785 (bitmap_and_compl): Ditto.
10786 (bitmap_and): Delete the popcount array handling.
10787 (bitmap_xor): Ditto.
10788 (bitmap_ior): Ditto.
10789 (bitmap_or_and): Delete the popcount assert.
10790 (bitmap_and_or): Ditto.
10791 (popcount_table): Delete.
10792 (sbitmap_elt_popcount): Delete.
10793 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10794 (bitmap_set_bit): Delete the popcount assert.
10795 (bitmap_clear_bit): Ditto.
10796 (sbitmap_free): Don't free the popcount array.
10797 (sbitmap_alloc_with_popcount): Delete declaration.
10798 (sbitmap_popcount): Ditto.
10800 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10801 Andrew Burgess <andrew.burgess@embecosm.com>
10803 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10804 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10805 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10806 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10807 * config/arc/arc.opt (mcmem): New option.
10808 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10809 supply length for r/m alternative.
10810 (*extendqisi2_ac): Likewise.
10811 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10813 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10814 (movhi_insn): Likewise.
10815 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10816 (*zero_extendqihi2_i): Add r/Ucm alternative.
10817 (*zero_extendqisi2_ac): Likewise.
10818 (*zero_extendhisi2_i): Likewise.
10819 * config/arc/constraints.md (Uex): New memory constraint.
10820 (Ucm): New define_constraint.
10821 * config/arc/predicates.md (long_immediate_loadstore_operand):
10822 Return 0 for MEM with cmem_address address.
10823 (cmem_address_0): New predicates.
10824 (cmem_address_1): Likewise.
10825 (cmem_address_2): Likewise.
10826 (cmem_address): Likewise.
10828 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10830 * config/rs6000/rs6000.c (machine_function): Rename
10831 insn_chain_scanned_p to spe_insn_chain_scanned_p.
10832 (rs6000_stack_info): Adjust.
10834 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10835 Andrew Burgess <andrew.burgess@embecosm.com>
10837 * config/arc/constraints.md (Usd): Convert to define_constraint.
10841 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10844 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10845 Add new peephole2 where the first insn is *mov<mode>_or instead of
10846 *mov<mode>_internal.
10848 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
10850 * tracer.c (bb_seen): Make static.
10852 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
10854 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10855 support, setup defaults.
10856 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10857 * config/arc/arc.c (arc_init): Add NPS400 support.
10858 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10859 (TARGET_ARC700): NPS400 is also an ARC700.
10860 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10862 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10865 * config/nds32/nds32.md (casesi): Don't access the operands array
10868 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10870 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10871 (or $-1,reg peephole2): Ditto.
10872 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10874 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10876 * doc/extend.texi (Common Function Attributes) [optimize]:
10877 Discourage use of the optimize attribute.
10879 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
10881 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10882 special case builtin.
10883 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10884 ALTIVEC_BUILTIN_VEC_ADDE.
10885 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10886 support for ALTIVEC_BUILTIN_VEC_ADDE.
10887 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10888 for __builtin_vec_adde.
10890 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10892 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10893 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10895 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10898 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10899 attributes): Document cilkplus_runtime.
10901 2016-04-28 Martin Jambor <mjambor@suse.cz>
10903 * tree-cfg.c (verify_expr): Verify that local declarations belong to
10904 this function. Call verify_expr on MEM_REFs and bases of other
10905 handled_components.
10907 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10909 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10910 for WORD_REGISTER_OPERATIONS to runtime check.
10912 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10914 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10916 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10918 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10919 big-endian compilation.
10920 * config/arc/arc.md (addf3): Likewise.
10921 (subdf3): Likewise.
10922 (muldf3): Likewise.
10924 2016-04-28 Richard Biener <rguenther@suse.de>
10926 PR tree-optimization/70840
10927 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10928 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10929 Mark x * pow(x,c) -> pow(x,c+1) commutative.
10930 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10932 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10934 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10935 and explain why in a comment.
10937 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10939 * config/arc/arc.md (cpu_facility): Add fpx variant.
10940 (subdf3): Prohibit use reverse sub when assist operations option
10942 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10943 instructions only when FPX is enabled.
10944 * testsuite/gcc.target/arc/trsub.c: New test.
10946 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10948 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10949 mult_operator when calculating "type" attribute.
10950 (*fop_<mode>_1_i387): Ditto.
10951 (*fop_xf_1_i387): Ditto.
10952 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10953 Use std::swap to swap operands. Use RTL expressions to generate
10956 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10957 Joern Rennecke <joern.rennecke@embecosm.com>
10959 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10961 (emit_pic_move): Remove.
10962 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10963 * config/arc/arc.c (emit_pic_move): Removed.
10964 (TARGET_HAVE_TLS): Define.
10965 (arc_conditional_register_usage): Test for arc_tp_regno.
10966 (arc_print_operand, arc_print_operand_address): Handle TLS
10968 (arc_needs_pcl_p): New function.
10969 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10970 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10971 (arc_raw_symbolic_reference_mentioned_p): Likewise.
10972 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10973 (arc_legitimize_tls_address): Likewise.
10974 (DTPOFF_ZERO_SYM): Define.
10975 (arc_legitimize_pic_address): Make it static, handle TLS cases.
10976 (arc_output_pic_addr_const): Print TLS unspecs.
10977 (prepare_pic_move): New function, replaces emit_pic_move.
10978 (arc_legitimate_constant_p): Handle TLS unspecs.
10979 (arc_legitimate_address_p): Likewise.
10980 (arc_rewrite_small_data_p): Use assert for TLS constants.
10981 (prepare_move_operands): Use prepare_pic_move.
10982 (arc_legitimize_address): Legitimize tls addresses.
10983 (arc_epilogue_uses): Check for arc_tp_regno.
10984 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10985 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10987 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10989 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10990 %(arc_tls_extra_start_spec).
10991 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10992 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10994 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10995 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10996 (UNSPEC_TLS_OFF): Add.
10998 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10999 (get_thread_pointersi): New patterns.
11000 * config/arc/arc.opt (mtp-regno): New option.
11001 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
11002 (move_dest_operand): Likewise.
11003 * configure: Regenerate.
11004 * configure.ac: Add arc*-*-* case to test for tls.
11005 * doc/invoke.texi (ARC options): Document mtp-regno.
11007 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
11009 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
11010 the new ARC HS SIMD instructions.
11011 (arc_preferred_simd_mode): New function.
11012 (arc_autovectorize_vector_sizes): Likewise.
11013 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
11014 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11015 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
11016 (arc_init_builtins): Add new SIMD builtin types.
11017 (arc_split_move): Handle 64 bit vector moves.
11018 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
11019 (TARGET_PLUS_QMACW): Define.
11020 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
11021 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
11022 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
11023 (VSUBADD4H): New builtins.
11024 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
11025 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
11027 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
11028 Matthias Klose <doko@debian.org>
11030 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
11032 2016-04-28 Richard Biener <rguenther@suse.de>
11034 PR middle-end/70777
11035 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
11038 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
11040 * common/config/sh/sh-common.c: Remove SH5 support.
11041 * config/sh/constraints.md: Likewise.
11042 * config/sh/config/sh/elf.h: Likewise.
11043 * config/sh/linux.h: Likewise.
11044 * config/sh/netbsd-elf.h: Likewise.
11045 * config/sh/predicates.md: Likewise.
11046 * config/sh/sh-c.c: Likewise.
11047 * config/sh/sh-protos.h: Likewise.
11048 * config/sh/sh.c: Likewise.
11049 * config/sh/sh.h: Likewise.
11050 * config/sh/sh.md: Likewise.
11051 * config/sh/sh.opt: Likewise.
11052 * config/sh/sync.md: Likewise.
11053 * config/sh/sh64.h: Delete.
11054 * config/sh/shmedia.h: Likewise.
11055 * config/sh/shmedia.md: Likewise.
11056 * config/sh/sshmedia.h: Likewise.
11057 * config/sh/t-netbsd-sh5-64: Likewise.
11058 * config/sh/t-sh64: Likewise.
11059 * config/sh/ushmedia.h: Likewise.
11061 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
11063 * config/i386/i386.md (sign_extend to memory peephole2s): Use
11064 general_reg_operand instead of register_operand predicate.
11066 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11068 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
11070 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
11072 * match.pd (A - B > A, A + B < A): New transformations.
11074 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
11076 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
11077 which defaults to true. Emit an outer pair of parentheses only if
11078 EMIT_PARENS. When continuing a chain of && or || (or & or |),
11079 don't emit parentheses for the right-hand operand.
11081 2016-04-27 Jeff Law <law@redhat.com>
11083 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
11085 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11087 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
11088 (altivec_lvx_<mode>_internal): Document.
11089 (altivec_lvx_<mode>_2op): New define_insn.
11090 (altivec_lvx_<mode>_1op): Likewise.
11091 (altivec_lvx_<mode>_2op_si): Likewise.
11092 (altivec_lvx_<mode>_1op_si): Likewise.
11093 (altivec_stvx_<mode>): Remove.
11094 (altivec_stvx_<mode>_internal): Document.
11095 (altivec_stvx_<mode>_2op): New define_insn.
11096 (altivec_stvx_<mode>_1op): Likewise.
11097 (altivec_stvx_<mode>_2op_si): Likewise.
11098 (altivec_stvx_<mode>_1op_si): Likewise.
11099 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11100 Expand vec_ld and vec_st during parsing.
11101 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
11103 (altivec_expand_stvx_be): Likewise.
11104 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
11105 address-masking behavior in RTL.
11106 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
11107 address-masking behavior in RTL.
11108 (altivec_expand_builtin): Change builtin code arguments for calls
11109 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
11110 (insn_is_swappable_p): Avoid incorrect swap optimization in the
11111 presence of lvx/stvx patterns.
11112 (alignment_with_canonical_addr): New function.
11113 (alignment_mask): Likewise.
11114 (find_alignment_op): Likewise.
11115 (recombine_lvx_pattern): Likewise.
11116 (recombine_stvx_pattern): Likewise.
11117 (recombine_lvx_stvx_patterns): Likewise.
11118 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
11119 stvx patterns from expand.
11120 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
11122 (vector_altivec_store_<mode>): Likewise.
11124 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
11126 * config/aarch64/aarch64.md
11127 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
11128 remove the "fp" attributes.
11129 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
11130 add the "simd" attributes.
11131 (*movdf_aarch64): Likewise.
11132 (*movtf_aarch64): Remove the "fp" attributes.
11133 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
11134 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
11136 2016-04-27 David Malcolm <dmalcolm@redhat.com>
11138 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
11139 rtx to rtx_code_label *.
11140 * rtl.h (maybe_set_first_label_num): Likewise.
11142 2016-04-27 David Malcolm <dmalcolm@redhat.com>
11144 * df-core.c (df_add_problem): Make the problem param be const.
11145 (df_remove_problem): Make local "problem" be const.
11146 * df-problems.c (problem_RD): Make const.
11147 (problem_LR): Likewise.
11148 (problem_LIVE): Likewise.
11149 (problem_MIR): Likewise.
11150 (problem_CHAIN): Likewise.
11151 (problem_WORD_LR): Likewise.
11152 (problem_NOTE): Likewise.
11153 (problem_MD): Likewise.
11154 * df-scan.c (problem_SCAN): Likewise.
11155 * df.h (struct df_problem): Make field "dependent_problem" be
11157 (struct dataflow): Likewise for field "problem".
11158 (df_add_problem): Make param const.
11160 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
11162 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
11163 inter-unit moves to/from vector registers are enabled. Do not disable
11166 2016-04-27 David Malcolm <dmalcolm@redhat.com>
11168 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
11169 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
11171 (enum df_problem_id): ...this new enum.
11172 (struct df_problem): Convert field "id" from "int" to
11173 enum df_problem_id.
11175 2016-04-27 David Malcolm <dmalcolm@redhat.com>
11177 * rtl.def: Update comment for "things in the instruction chain" to
11178 reflect the removal of the leading "i" field for INSN_UID in
11179 r210360. Fix bogus apostrophe.
11181 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
11183 * config/i386/i386.md
11184 (lea arith with mem operand + setcc peephole2): Set operator mode.
11186 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
11189 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
11190 (dimode_scalar_to_vector_candidate_p): This.
11191 (timode_scalar_to_vector_candidate_p): New function.
11192 (scalar_to_vector_candidate_p): Likewise.
11193 (timode_check_non_convertible_regs): Likewise.
11194 (timode_remove_non_convertible_regs): Likewise.
11195 (remove_non_convertible_regs): Likewise.
11196 (remove_non_convertible_regs): Renamed to ...
11197 (dimode_remove_non_convertible_regs): This.
11198 (scalar_chain::~scalar_chain): Make it virtual.
11199 (scalar_chain::compute_convert_gain): Make it pure virtual.
11200 (scalar_chain::mark_dual_mode_def): Likewise.
11201 (scalar_chain::convert_insn): Likewise.
11202 (scalar_chain::convert_registers): Likewise.
11203 (scalar_chain::add_to_queue): Make it protected.
11204 (scalar_chain::emit_conversion_insns): Likewise.
11205 (scalar_chain::replace_with_subreg): Likewise.
11206 (scalar_chain::replace_with_subreg_in_insn): Likewise.
11207 (scalar_chain::convert_op): Likewise.
11208 (scalar_chain::convert_reg): Likewise.
11209 (scalar_chain::make_vector_copies): Likewise.
11210 (scalar_chain::convert_registers): New pure virtual function.
11211 (class dimode_scalar_chain): New class.
11212 (class timode_scalar_chain): Likewise.
11213 (scalar_chain::mark_dual_mode_def): Renamed to ...
11214 (dimode_scalar_chain::mark_dual_mode_def): This.
11215 (timode_scalar_chain::mark_dual_mode_def): New function.
11216 (timode_scalar_chain::convert_insn): Likewise.
11217 (dimode_scalar_chain::convert_registers): Likewise.
11218 (scalar_chain::compute_convert_gain): Renamed to ...
11219 (dimode_scalar_chain::compute_convert_gain): This.
11220 (scalar_chain::replace_with_subreg): Renamed to ...
11221 (dimode_scalar_chain::replace_with_subreg): This.
11222 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
11223 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
11224 (scalar_chain::make_vector_copies): Renamed to ...
11225 (dimode_scalar_chain::make_vector_copies): This.
11226 (scalar_chain::convert_reg): Renamed to ...
11227 (dimode_scalar_chain::convert_reg ): This.
11228 (scalar_chain::convert_op): Renamed to ...
11229 (dimode_scalar_chain::convert_op): This.
11230 (scalar_chain::convert_insn): Renamed to ...
11231 (dimode_scalar_chain::convert_insn): This.
11232 (scalar_chain::convert): Call convert_registers.
11233 (convert_scalars_to_vector): Change to scalar_chain pointer to
11234 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
11235 in 32-bit mode. Delete scalar_chain pointer. Call
11236 free_dominance_info in 64-bit mode.
11237 (pass_stv::gate): Remove TARGET_64BIT check.
11238 (ix86_option_override): Put the 64-bit STV pass before the CSE
11241 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
11243 * dwarf2out.h (struct dw_loc_descr_node): Remove the
11244 dw_loc_frame_offset field.
11245 * dwarf2out.c (new_loc_descr): Likewise.
11246 (resolve_args_picking_1): Turn the VISITED hash set into a
11247 FRAME_OFFSET hash map. Use it to associate a frame offset to
11248 visited nodes. Remove uses of the CHECKING_P macro.
11249 (resolve_args_picking): Update call to resolve_args_picking_1.
11251 2016-04-27 Martin Liska <mliska@suse.cz>
11253 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
11254 (free_loop_data): Release vuses of groups.
11256 2016-04-27 Bin Cheng <bin.cheng@arm.com>
11258 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
11259 instead of redundant use_id and boolean have_use_for.
11260 (struct iv_use): Change sub_id into group_id. Remove field next.
11261 Move fields: related_cands, n_map_members, cost_map and selected
11263 (struct iv_group): ... here. New structure.
11264 (struct iv_common_cand): Use structure declaration directly.
11265 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
11266 (MAX_CONSIDERED_USES): Rename macro to ...
11267 (MAX_CONSIDERED_GROUPS): ... here.
11268 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
11269 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
11270 (dump_uses): Rename to ...
11271 (dump_groups): ... here. Update all uses.
11272 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
11273 (find_induction_variables): Refactor format of dump information.
11274 (record_sub_use): Delete.
11275 (record_use): Update all uses.
11276 (record_group): New function.
11277 (record_group_use, find_interesting_uses_op): Call above functions.
11279 (find_interesting_uses_cond): Ditto.
11280 (group_compare_offset): New function.
11281 (split_all_small_groups): Rename to ...
11282 (split_small_address_groups_p): ... here. Update all uses.
11283 (split_address_groups): Update all uses.
11284 (find_interesting_uses): Refactor format of dump information.
11285 (add_candidate_1): Update all uses. Remove redundant check on iv,
11287 (add_candidate, record_common_cand): Remove redundant assert.
11288 (add_iv_candidate_for_biv): Update use.
11289 (add_iv_candidate_derived_from_uses): Update all uses.
11290 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
11291 (alloc_use_cost_map): Ditto.
11292 (set_use_iv_cost, get_use_iv_cost): Rename to ...
11293 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
11294 (determine_use_iv_cost_generic): Ditto.
11295 (determine_group_iv_cost_generic): Ditto.
11296 (determine_use_iv_cost_address): Ditto.
11297 (determine_group_iv_cost_address): Ditto.
11298 (determine_use_iv_cost_condition): Ditto.
11299 (determine_group_iv_cost_cond): Ditto.
11300 (determine_use_iv_cost): Ditto.
11301 (determine_group_iv_cost): Ditto.
11302 (set_autoinc_for_original_candidates): Update all uses.
11303 (find_iv_candidates): Update all uses. Refactor dump information.
11304 (determine_use_iv_costs): Ditto.
11305 (determine_iv_costs): Ditto.
11306 (iv_ca_cand_for_use): Rename to ...
11307 (iv_ca_cand_for_group): ... here. Update all uses.
11308 (iv_ca_add_use, iv_ca_add_group): Ditto.
11309 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
11310 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
11311 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
11312 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
11313 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
11314 (create_new_iv, adjust_iv_update_pos): Ditto.
11315 (rewrite_use_address): Delete.
11316 (rewrite_use_address_1): Rename to ...
11317 (rewrite_use_address): ... here.
11318 (rewrite_use_compare): Update all uses.
11319 (rewrite_use): Delete.
11320 (rewrite_uses): Rename to ...
11321 (rewrite_groups): ... here. Update all uses.
11322 (remove_unused_ivs, free_loop_data): Update all uses.
11323 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
11325 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11327 * rtlanal.c (nonzero_bits1): Convert preprocessor check
11328 for WORD_REGISTER_OPERATIONS to runtime check.
11330 2016-04-27 Richard Biener <rguenther@suse.de>
11333 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
11334 aggregate_value_p to determine if a function result is
11335 returned by reference.
11336 (ipa_pta_execute): Functions having their address taken are
11337 not automatically nonlocal.
11339 2016-04-27 Jakub Jelinek <jakub@redhat.com>
11342 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
11343 * fold-const.c (operand_equal_p): If flag_checking and
11344 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
11345 and if it returns non-zero, assert iterative_hash_expr on both
11348 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
11350 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
11352 2016-04-27 Nick Clifton <nickc@redhat.com>
11354 PR middle-end/49889
11355 * varasm.c (merge_weak): Generate an error if an attempt is made
11356 to convert a non-weak static function into a weak, public function.
11358 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11360 * params.def (MAX_PARTITION_SIZE): New param.
11361 * doc/invoke.texi: Document lto-max-partition.
11363 2016-04-27 Richard Biener <rguenther@suse.de>
11366 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
11367 function cummulating used_from_other_partition, externally_visible
11368 and force_output from aliases.
11369 (refered_from_nonlocal_var): Likewise.
11370 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
11371 node flags properly.
11373 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
11375 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
11376 (-Wmemset-elt-size): New item.
11378 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
11381 * stor-layout.h (internal_reference_types): Delete.
11382 * stor-layout.c (reference_types_internal): Likewise.
11383 (internal_reference_types): Likewise.
11384 (layout_type) <REFERENCE_TYPE>: Adjust.
11386 2016-04-27 Jakub Jelinek <jakub@redhat.com>
11389 * tree.h (inchash::add_expr): Add FLAGS argument.
11390 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
11391 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
11392 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
11393 Formatting fix. Adjust recursive calls. For tcc_comparison,
11394 if swap_tree_comparison (code) is smaller than code, hash that
11395 and arguments in the other order. Hash CONVERT_EXPR the same
11396 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
11397 of ADDR_EXPR of decl as the decl itself. Add or remove
11398 OEP_ADDRESS_OF from recursive flags as needed. For
11399 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
11400 operands commutatively and only the third one normally.
11401 For internal CALL_EXPR hash in CALL_EXPR_IFN.
11403 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
11405 * config/rtems.h (LIB_SPEC): Add -latomic.
11407 2016-04-27 Joel Sherrill <joel@rtems.org>
11409 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
11410 xilink.ld and flags not relevant to RTEMS.
11412 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11414 * toplev.c (backend_init_target): Avoid calling init_reload when using
11417 2016-04-26 Jakub Jelinek <jakub@redhat.com>
11419 * reorg.c (try_merge_delay_insns): Declare i and j inside the
11420 for loops rather than one for the whole function.
11422 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
11424 * match.pd (X + CST CMP X): New transformation.
11426 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
11428 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
11429 * fold-const.c (fold_binary_loc): Remove 2 transformations
11430 superseded by match.pd.
11431 * match.pd (x+x -> x*2): Generalize to integers.
11433 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
11435 * config/i386/i386.md (operation on memory peephole): Duplicate an
11436 existing peephole and adapt it to match lea rather than an operation
11439 PR rtl-optimization/57193
11440 * opts.c (default_options_table): Add OPT_frename_registers at -O2
11442 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
11444 2016-04-26 Bin Cheng <bin.cheng@arm.com>
11446 * tree-if-conv.c (any_pred_load_store): New static variable.
11447 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
11448 any_pred_load_store instead of and_mask_load_store.
11449 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
11450 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
11451 (combine_blocks, tree_if_conversion): Ditto.
11453 2016-04-26 Bin Cheng <bin.cheng@arm.com>
11455 PR tree-optimization/70771
11456 PR tree-optimization/70775
11457 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
11458 virtual PHI nodes. Delete parameter.
11459 (if_convertible_loop_p_1): Delete argument to above function.
11460 (predicate_all_scalar_phis): Delete code handling single-argument
11462 (tree_if_conversion): Mark and update virtual SSA.
11464 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11467 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
11468 (x86_elf_aligned_common): Rename to ...
11469 (x86_elf_aligned_decl_common): ... this.
11470 Add decl arg. Switch to .lbss for largecomm object. Use
11471 LARGECOMM_SECTION_ASM_OP.
11472 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
11474 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
11475 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
11477 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11478 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
11480 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11483 * config/i386/i386.c (SECTION_LARGE): Define.
11484 (x86_64_elf_select_section): Set it for large data/bss sections.
11485 Only clear SECTION_WRITE for .lrodata.
11486 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
11488 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
11489 * varasm.c (default_elf_asm_named_section): Grow flagchars.
11490 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
11492 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
11493 * doc/tm.texi: Regenerate.
11495 2016-04-26 Jakub Jelinek <jakub@redhat.com>
11498 * configure.ac (--enable-checking): Document extra flag, for
11499 non-release builds default to --enable-checking=yes,extra.
11500 If misc checking and extra checking, define CHECKING_P to 2 instead
11502 * common.opt (fchecking=): Add.
11503 * doc/invoke.texi (-fchecking=): Document.
11504 * doc/install.texi: Document --enable-checking changes.
11505 * configure: Regenerated.
11506 * config.in: Regenerated.
11508 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11510 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
11511 attribute instead of which_alternative.
11512 * config/i386/sse.md (*mov<mode>_internal): Ditto.
11513 Use EXT_REX_SSE_REG_P where appropriate.
11515 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11517 * config/i386/predicates.md (const0_operand): Do not match
11518 const_wide_int code.
11519 (const1_operand): Ditto.
11521 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11523 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
11524 for SSE constm1 operands and TARGET_AVX512VL.
11525 (*movti_internal): Ditto.
11526 (*mov<mode>_or): Use constm1_operand predicate.
11527 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
11528 for SSE vector_all_ones operands and TARGET_AVX512VL.
11529 * config/i386/predicates.md (constm1_operand): New predicate.
11530 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
11531 emission of constant -1 load.
11533 2016-04-25 Jason Merrill <jason@redhat.com>
11535 * gdbinit.in: Skip is-a.h.
11537 * attribs.c (register_scoped_attributes): Fix logic.
11538 * attribs.h: Declare register_scoped_attributes.
11540 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11542 * config/rs6000/rs6000-builtin.def: Correct pasto error for
11543 stxvd2x and stxvw4x built-in functions.
11545 2016-04-25 DJ Delorie <dj@redhat.com>
11547 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
11548 (ashrhi3): Likewise.
11549 (lshrhi3): Likewise.
11551 2016-04-25 Richard Biener <rguenther@suse.de>
11553 PR tree-optimization/70780
11554 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
11555 wasn't visited yet.
11556 (compute_antic): Mark blocks with abnormal preds as visited as
11557 they have a final empty antic-in solution already.
11559 2016-04-25 Michael Collison <michael.collison@linaro.org>
11561 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
11563 2016-04-25 Michael Collison <michael.collison@linaro.org>
11565 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
11566 mode is VQI to improve mixed mode vectorization.
11567 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
11568 define_insn to match low half of signed vaddw.
11569 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
11570 define_insn to match high half of signed vaddw.
11571 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
11572 define_insn to match low half of unsigned vaddw.
11573 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
11574 define_insn to match high half of unsigned vaddw.
11575 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
11576 (arm_simd_check_vect_par_cnst_half_p): Likewise.
11577 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
11579 (arm_simd_check_vect_par_cnst_half_p): Likewise.
11580 * config/arm/predicates.md (vect_par_constant_high): Support
11581 big endian and simplify by calling
11582 arm_simd_check_vect_par_cnst_half
11583 (vect_par_constant_low): Likewise.
11585 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
11587 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
11588 predicate for operand 2.
11590 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
11591 H.J. Lu <hongjiu.lu@intel.com>
11593 * config/i386/i386-protos.h (standard_sse_constant_p): Add
11594 machine_mode argument.
11595 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
11596 constm1_rtx operands. For VOIDmode constants, get mode from
11597 pred_mode. Check mode size if the mode is supported by ABI.
11598 (standard_sse_constant_opcode): Do not use standard_constant_p.
11599 Strictly check ABI support for all-ones operands.
11600 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
11601 immediates. Update calls to standard_sse_constant_p.
11602 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
11603 (ix86_rtx_costs): Ditto.
11604 * config/i386/i386.md (*movxi_internal_avx512f): Use
11605 nonimmediate_or_sse_const_operand instead of vector_move_operand.
11606 Use (v,BC) alternative instead of (v,C). Use register_operand
11607 checks instead of MEM_P.
11608 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
11609 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
11610 isa attribute. Use register_operand checks instead of MEM_P.
11611 (*movti_internal): Use nonimmediate_or_sse_const_operand for
11612 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
11613 alternative and corresponding sse2 isa attribute.
11614 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
11615 to standard_sse_constant_p.
11616 (FP constant splitters): Ditto.
11617 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
11619 * config/i386/predicates.md (constm1_operand): Remove.
11620 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
11621 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
11622 vector_all_ones_operand instead of constm1_operand.
11624 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11626 * print-rtl.c (print_rtx_insn_vec): New function.
11627 * print-rtl.h: New prototype.
11628 * store-motion.c (struct st_expr): Make avail_stores a vector.
11629 (st_expr_entry): Adjust.
11630 (free_st_expr_entry): Likewise.
11631 (print_store_motion_mems): Likewise.
11632 (find_moveable_store): Likewise.
11633 (compute_store_table): Likewise.
11634 (delete_store): Likewise.
11635 (build_store_vectors): Likewise.
11637 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11639 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11641 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11643 * vec.h (vec_safe_contains): New function.
11644 (vec::contains): Likewise.
11645 (vec::begin): Likewise.
11646 (vec::end): Likewise.
11648 2016-04-23 Jakub Jelinek <jakub@redhat.com>
11651 * cfgexpand.c (expand_stack_vars): Fix typo.
11653 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11655 * system.h (list, map, set, vector): Include conditionally.
11656 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11657 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11658 * ipa-icf.c (INCLUDE_LIST): Define.
11659 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11660 * config/sh/sh.c (INCLUDE_VECTOR): Define.
11661 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11662 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11663 * cp/logic.cc (INCLUDE_LIST): Define.
11664 * fortran/trans-common.c (INCLUDE_MAP): Define.
11666 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11668 * auto-profile.c: Remove <string.h> include.
11669 * ipa-icf-gimple.c: Remove <list> include.
11670 * diagnostic.c: Remove <new> include.
11671 * genmatch.c: Likewise.
11672 * pretty-print.c: Likewise.
11673 * toplev.c: Likewise
11674 * c/c-objc-common.c: Likewise.
11675 * cp/error.c: Likewise.
11676 * fortran/error.c: Likewise.
11678 2016-04-22 Richard Biener <rguenther@suse.de>
11680 * lto-streamer-in.c (input_ssa_names): Do not allocate
11681 GIMPLE_NOP for all SSA names.
11682 * lto-streamer-out.c (output_ssa_names): Do not output
11683 SSA names that should have been released.
11685 2016-04-22 Richard Biener <rguenther@suse.de>
11687 PR tree-optimization/70740
11688 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11691 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
11694 * config/i386/predicates.md (call_insn_operand): Replace
11695 sibcall_memory_operand with memory_operand.
11697 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
11699 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11700 has_single_use() tests.
11701 (register_edge_assert_for_1): Likewise.
11702 (find_assert_locations_1): Check the liveness bitmap instead of
11703 checking has_single_use().
11705 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
11708 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11709 Extract AVX-512BW constraint from AVX.
11711 2016-04-21 Richard Biener <rguenther@suse.de>
11713 PR tree-optimization/70725
11714 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11715 for phi_convertible_by_degenerating_args.
11716 (predicate_all_scalar_phis): Handle single-argument PHIs.
11718 2016-04-21 Richard Biener <rguenther@suse.de>
11720 PR middle-end/70747
11721 * fold-const.c (fold_comparison): Return properly typed
11724 2016-04-21 Bin Cheng <bin.cheng@arm.com>
11726 PR tree-optimization/70715
11727 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11728 after expanding BASE using expand_simple_operations.
11730 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11732 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11733 New transformations.
11735 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11737 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11739 2016-04-20 Jan Hubicka <jh@suse.cz>
11741 * ipa-inline.c (can_inline_edge_p): Pass caller info to
11742 ultiimate_alias_target.
11743 (update_callee_keys): Likewise.
11744 (lookup_recursive_calls): Likewise.
11745 (speculation_useful_p): Likewise.
11747 2016-04-20 Jan Hubicka <jh@suse.cz>
11750 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11751 (set_nothrow_flag_1): ... this; handle interposition correctly;
11752 recurse on aliases and thunks.
11753 (cgraph_node::set_nothrow_flag): New.
11754 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11755 functions compiled with non-call exceptions that binds to current
11757 (propagate_nothrow): Be safe WRT interposition.
11758 * cgraph.h (set_nothrow_flag): Update prototype.
11760 2016-04-18 Jan Hubicka <jh@suse.cz>
11762 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11763 max_loop_iterations_int.
11764 (tree_unswitch_outer_loop): Likewise.
11766 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11768 PR tree-optimization/69489
11769 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11770 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11771 Revise dump message.
11772 (if_convertible_bb_p): Remove check on edge count of basic block's
11775 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11777 PR tree-optimization/56625
11778 PR tree-optimization/69489
11779 * tree-data-ref.h (DR_INNERMOST): New macro.
11780 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11781 hashing struct innermost_loop_behavior.
11782 (ref_DR_map): Remove.
11783 (innermost_DR_map): New map.
11784 (baseref_DR_map): Revise comment.
11785 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11786 to innermost_DR_map accroding to its innermost loop behavior.
11787 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11788 to its innermost loop behavior.
11789 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11790 Add initialization for innermost_DR_map. Record memory reference
11791 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11792 have innermost loop behavior.
11793 (if_convertible_loop_p): Remove release for ref_DR_map. Release
11796 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
11798 * config/i386/i386.md (*lea<mode>_general_1): Rename from
11799 *lea_general_1. Use explicit SWI12 mode interator.
11800 (*lea<mode>_general_2): Rename from *lea_general_2.
11801 Use explicit SWI12 mode interator.
11802 (*lea<mode>_general_3): Rename from *lea_general_3.
11803 Use explicit SWI12 mode interator.
11804 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11805 Use explicit SWI12 mode interator.
11806 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11807 Use explicit SWI48 mode interator.
11809 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11811 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11812 Short-cut unaligned load and store cases. Handle all integer
11814 (ix86_expand_vector_move_misalign): Short-cut unaligned load
11815 and store cases. Call ix86_avx256_split_vector_move_misalign
11816 directly without checking mode class.
11818 2016-04-20 Andrew Pinski <apinski@cavium.com>
11819 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11822 * config/aarch64/aarch64.md (sibcall): Force call
11823 address to be DImode for ILP32.
11824 (sibcall_value): Likewise.
11826 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11828 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11830 2016-04-20 Richard Biener <rguenther@suse.de>
11832 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11833 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11834 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11835 (maybe_push_res_to_seq): Adjust.
11836 * gimple-fold.c (maybe_build_generic_op): Likewise.
11838 2016-04-20 Marek Polacek <polacek@redhat.com>
11840 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11843 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
11845 * config/i386/sse.md (vec_unpacks_lo_hi): Always
11846 use kmovw to support AVX512F target.
11848 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11850 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11852 2016-04-20 Marek Polacek <polacek@redhat.com>
11854 PR tree-optimization/70725
11855 * tree-if-conv.c (is_false_predicate): New function.
11856 (predicate_mem_writes): Use it.
11858 2016-04-20 Richard Biener <rguenther@suse.de>
11860 PR tree-optimization/70726
11861 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11862 shift amounts from a pattern stmt operand.
11864 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11867 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11868 stack_restore_from_fpr pattern when restoring r15.
11869 (s390_optimize_prologue): Strip away the memory barrier in the
11870 parallel when trying to get rid of restore insns.
11871 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11872 definition for loading the stack pointer from an FPR. Compared to
11873 the normal move insn this pattern includes a full memory barrier.
11875 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11877 PR middle-end/70680
11878 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11879 implicitly linear or lastprivate iterator on the outer context.
11881 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11883 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11885 * config/i386/i386.md (ssememalign): Removed.
11886 * config/i386/sse.md: Remove ssememalign attribute from patterns.
11888 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11891 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11892 const short * to __builtin_ia32_loaddquhi512_mask.
11893 (_mm512_maskz_loadu_epi16): Likewise.
11894 (_mm512_mask_storeu_epi16): Pass short * to
11895 __builtin_ia32_storedquhi512_mask.
11896 (_mm512_mask_loadu_epi8): Pass const char * to
11897 __builtin_ia32_loaddquqi512_mask.
11898 (_mm512_maskz_loadu_epi8): Likewise.
11899 (_mm512_mask_storeu_epi8): Pass char * to
11900 __builtin_ia32_storedquqi512_mask.
11901 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11902 const double * to __builtin_ia32_loadupd512_mask.
11903 (_mm512_mask_loadu_pd): Likewise.
11904 (_mm512_maskz_loadu_pd): Likewise.
11905 (_mm512_storeu_pd): Pass double * to
11906 __builtin_ia32_storeupd512_mask.
11907 (_mm512_mask_storeu_pd): Likewise.
11908 (_mm512_loadu_ps): Pass const float * to
11909 __builtin_ia32_loadups512_mask.
11910 (_mm512_mask_loadu_ps): Likewise.
11911 (_mm512_maskz_loadu_ps): Likewise.
11912 (_mm512_storeu_ps): Pass float * to
11913 __builtin_ia32_storeups512_mask.
11914 (_mm512_mask_storeu_ps): Likewise.
11915 (_mm512_mask_loadu_epi64): Pass const long long * to
11916 __builtin_ia32_loaddqudi512_mask.
11917 (_mm512_maskz_loadu_epi64): Likewise.
11918 (_mm512_mask_storeu_epi64): Pass long long *
11919 to __builtin_ia32_storedqudi512_mask.
11920 (_mm512_loadu_si512): Pass const int * to
11921 __builtin_ia32_loaddqusi512_mask.
11922 (_mm512_mask_loadu_epi32): Likewise.
11923 (_mm512_maskz_loadu_epi32): Likewise.
11924 (_mm512_storeu_si512): Pass int * to
11925 __builtin_ia32_storedqusi512_mask.
11926 (_mm512_mask_storeu_epi32): Likewise.
11927 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11928 char * to __builtin_ia32_storedquqi256_mask.
11929 (_mm_mask_storeu_epi8): Likewise.
11930 (_mm256_mask_loadu_epi16): Pass const short * to
11931 __builtin_ia32_loaddquhi256_mask.
11932 (_mm256_maskz_loadu_epi16): Likewise.
11933 (_mm_mask_loadu_epi16): Pass const short * to
11934 __builtin_ia32_loaddquhi128_mask.
11935 (_mm_maskz_loadu_epi16): Likewise.
11936 (_mm256_mask_loadu_epi8): Pass const char * to
11937 __builtin_ia32_loaddquqi256_mask.
11938 (_mm256_maskz_loadu_epi8): Likewise.
11939 (_mm_mask_loadu_epi8): Pass const char * to
11940 __builtin_ia32_loaddquqi128_mask.
11941 (_mm_maskz_loadu_epi8): Likewise.
11942 (_mm256_mask_storeu_epi16): Pass short * to.
11943 __builtin_ia32_storedquhi256_mask.
11944 (_mm_mask_storeu_epi16): Pass short * to.
11945 __builtin_ia32_storedquhi128_mask.
11946 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11947 const double * to __builtin_ia32_loadupd256_mask.
11948 (_mm256_maskz_loadu_pd): Likewise.
11949 (_mm_mask_loadu_pd): Pass onst double * to
11950 __builtin_ia32_loadupd128_mask.
11951 (_mm_maskz_loadu_pd): Likewise.
11952 (_mm256_mask_storeu_pd): Pass double * to
11953 __builtin_ia32_storeupd256_mask.
11954 (_mm_mask_storeu_pd): Pass double * to
11955 __builtin_ia32_storeupd128_mask.
11956 (_mm256_mask_loadu_ps): Pass const float * to
11957 __builtin_ia32_loadups256_mask.
11958 (_mm256_maskz_loadu_ps): Likewise.
11959 (_mm_mask_loadu_ps): Pass const float * to
11960 __builtin_ia32_loadups128_mask.
11961 (_mm_maskz_loadu_ps): Likewise.
11962 (_mm256_mask_storeu_ps): Pass float * to
11963 __builtin_ia32_storeups256_mask.
11964 (_mm_mask_storeu_ps): ass float * to
11965 __builtin_ia32_storeups128_mask.
11966 (_mm256_mask_loadu_epi64): Pass const long long * to
11967 __builtin_ia32_loaddqudi256_mask.
11968 (_mm256_maskz_loadu_epi64): Likewise.
11969 (_mm_mask_loadu_epi64): Pass const long long * to
11970 __builtin_ia32_loaddqudi128_mask.
11971 (_mm_maskz_loadu_epi64): Likewise.
11972 (_mm256_mask_storeu_epi64): Pass long long * to
11973 __builtin_ia32_storedqudi256_mask.
11974 (_mm_mask_storeu_epi64): Pass long long * to
11975 __builtin_ia32_storedqudi128_mask.
11976 (_mm256_mask_loadu_epi32): Pass const int * to
11977 __builtin_ia32_loaddqusi256_mask.
11978 (_mm256_maskz_loadu_epi32): Likewise.
11979 (_mm_mask_loadu_epi32): Pass const int * to
11980 __builtin_ia32_loaddqusi128_mask.
11981 (_mm_maskz_loadu_epi32): Likewise.
11982 (_mm256_mask_storeu_epi32): Pass int * to
11983 __builtin_ia32_storedqusi256_mask.
11984 (_mm_mask_storeu_epi32): Pass int * to
11985 __builtin_ia32_storedqusi128_mask.
11986 * config/i386/i386-builtin-types.def (PCSHORT): New.
11987 (PINT64): Likewise.
11988 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11989 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11990 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11991 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11992 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11993 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11994 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11995 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11996 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11997 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11998 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11999 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
12000 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
12001 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
12002 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
12003 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
12004 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
12005 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
12006 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
12007 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
12008 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
12009 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
12010 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
12011 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
12012 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
12013 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
12014 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
12015 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
12016 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
12017 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
12018 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
12019 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
12020 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
12021 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
12022 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
12023 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
12024 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
12025 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
12026 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
12027 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
12028 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
12029 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
12030 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
12031 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
12032 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
12033 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
12034 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
12035 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
12036 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
12038 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
12039 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
12041 (ix86_expand_vector_move_misalign): Likewise.
12042 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
12043 to scalar function prototype for unaligned load/store builtins.
12044 (ix86_expand_special_args_builtin): Updated.
12045 * config/i386/sse.md (UNSPEC_LOADU): Removed.
12046 (UNSPEC_STOREU): Likewise.
12047 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
12048 (VI_ULOADSTORE_F_AVX512VL): Likewise.
12049 (ssescalarsize): Handle V4TI, V2TI and V1TI.
12050 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
12051 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
12052 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
12053 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
12054 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
12055 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
12056 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
12057 (<avx512>_storedqu<mode>_mask): Likewise.
12058 (*sse4_2_pcmpestr_unaligned): Likewise.
12059 (*sse4_2_pcmpistr_unaligned): Likewise.
12060 (*mov<mode>_internal): Renamed to ...
12061 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
12062 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
12063 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
12064 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
12066 2016-04-19 Richard Biener <rguenther@suse.de>
12068 PR tree-optimization/70171
12069 * tree-ssa-phiprop.c: Include stor-layout.h.
12070 (phiprop_insert_phi): Handle the aggregate copy case.
12071 (propagate_with_phi): Likewise.
12073 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
12075 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
12076 instead of simplify_gen_subreg (... , 0).
12077 (ix86_delegitimize_address): Ditto.
12078 (ix86_split_divmod): Ditto.
12079 (ix86_split_copysign_const): Ditto.
12080 (ix86_split_copysign_var): Ditto.
12081 (ix86_expand_args_builtin): Ditto.
12082 (ix86_expand_round_builtin): Ditto.
12083 (ix86_expand_special_args_builtin): Ditto.
12084 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
12085 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
12086 (udivmodqi4): Ditto.
12087 (absneg splitters): Ditto.
12088 (*jcc_bt<mode>_1): Ditto.
12090 2016-04-19 Richard Biener <rguenther@suse.de>
12092 PR tree-optimization/70724
12093 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
12094 restoring out from ...
12095 (free_scc_vn): ... here.
12096 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
12097 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
12099 (pass_fre::execute): Restore SSA info.
12101 2016-04-19 Richard Biener <rguenther@suse.de>
12103 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
12104 * gimple-walk.c (walk_gimple_op): Initialize it.
12105 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
12106 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
12107 remapping SSA names of defs.
12108 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
12111 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
12113 PR middle-end/70689
12114 * lra-constraints.c (equiv_substition_p): New.
12115 (process_alt_operands): Use it.
12116 (swap_operands): Swap it.
12117 (curr_insn_transform): Update it.
12119 2016-04-18 Michael Matz <matz@suse.de>
12121 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
12122 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
12123 * tree-core.h (tree_type_common.align): Use bit-field.
12124 (tree_type_common.spare): New.
12125 (tree_decl_common.off_align): Make smaller.
12126 (tree_decl_common.align): Use bit-field.
12128 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
12129 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
12130 (scan_sharing_clauses): Ditto.
12131 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
12132 (omp_finish_file): Ditto.
12133 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
12134 (layout_decl): Ditto.
12135 (relayout_decl): Ditto.
12136 (finalize_record_size): Use SET_TYPE_ALIGN.
12137 (finalize_type_size): Ditto.
12138 (finish_builtin_struct): Ditto.
12139 (layout_type): Ditto.
12140 (initialize_sizetypes): Ditto.
12141 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
12142 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
12143 (lookup_field_for_decl): Use SET_DECL_ALIGN.
12144 (get_chain_field): Ditto.
12145 (get_trampoline_type): Ditto.
12146 (get_nl_goto_field): Ditto.
12147 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12149 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
12150 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
12151 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
12152 (build_qualified_type): Use SET_TYPE_ALIGN.
12153 (build_aligned_type, build_range_type_1): Ditto.
12154 (build_atomic_base): Ditto.
12155 (build_common_tree_nodes): Ditto.
12156 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
12157 (expand_one_stack_var_at): Ditto.
12158 * coverage.c (build_var): Use SET_DECL_ALIGN.
12159 * except.c (init_eh): Ditto.
12160 * function.c (assign_parm_setup_block): Ditto.
12161 * symtab.c (increase_alignment_1): Ditto.
12162 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
12163 * tree-vect-stmts.c (ensure_base_align): Ditto.
12164 * varasm.c (align_variable): Ditto.
12165 (assemble_variable): Ditto.
12166 (build_constant_desc): Ditto.
12167 (output_constant_def_contents): Ditto.
12169 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
12170 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
12171 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
12172 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
12173 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
12175 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
12178 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
12179 replace %vmovsd with "%vmovq".
12180 (vec_concatv2df): Likewise.
12182 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
12184 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
12185 (*vec_extractv2si_0): Ditto.
12186 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
12187 (zero_extended_scalar_load_operand splitters): Ditto.
12188 (vec_extract splitters): Ditto.
12189 (*vec_extractv4si_0_zext): Ditto.
12190 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
12191 and lowpart_subreg.
12192 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
12193 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
12194 (*sse4_1_extractps): Use lowpart_subreg.
12195 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
12197 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12199 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
12201 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
12202 Mention Solaris 11 packaging changes.
12203 Update gas and gld requirements.
12204 Remove reference to pre-Solaris 10 bug.
12205 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
12207 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
12210 2016-04-17 Jan Hubicka <jh@suse.cz>
12212 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
12213 max_loop_iterations_int.
12215 2016-04-18 Richard Biener <rguenther@suse.de>
12217 PR tree-optimization/43434
12218 * tree-ssa-structalias.c (struct vls_data): New.
12219 (visit_loadstore): Handle all pointer-based accesses.
12220 (compute_dependence_clique): Compute a bitmap of restrict tags
12221 assigned bases and pass it to visit_loadstore.
12223 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
12226 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
12227 armv8.1-a and armv8.1-a+crc.
12229 2016-04-18 Richard Biener <rguenther@suse.de>
12231 PR tree-optimization/70701
12232 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
12233 references after translating through a memcpy.
12235 2016-04-18 Richard Biener <rguenther@suse.de>
12237 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
12238 (compute_antic): ... here. For partial antic use regular
12239 postorder and scrap iteration.
12240 (compute_partial_antic_aux): Remove unused return value.
12241 (init_pre): Do not allocate postorder.
12242 (fini_pre): Do not free postorder.
12244 2016-04-18 Richard Biener <rguenther@suse.de>
12246 PR middle-end/37870
12247 * expmed.c (extract_bit_field_1): Remove broken case
12248 using a wider MODE_INT mode.
12250 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
12252 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
12253 unless compiling with at least GCC-4.8.
12255 2016-04-17 Jan Hubicka <jh@suse.cz>
12258 * graphite.c (graphite_finalize): Update call to
12259 tree_estimate_probability.
12260 * predict.h (tree_estimate_probability): Update prototype.
12262 2016-04-17 Jan Hubicka <jh@suse.cz>
12264 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
12265 (tree_estimate_probability): Likewise.
12266 (pass_profile::execute): Update.
12267 (report_predictor_hitrates): New function.
12268 * profile.c (compute_branch_probabilities): Use it.
12269 * predict.h (report_predictor_hitrates): Declare.
12271 2016-04-17 Jan Hubicka <jh@suse.cz>
12274 * cgraph.h (cgraph_node::set_const_flag,
12275 cgraph_node::set_pure_flag): Update prototype to return bool;
12277 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
12278 of interposable symbol are interposable, too.
12279 (cgraph_set_const_flag_1): Rename to ...
12280 (set_const_flag_1): ... this one; change to self recursive function
12281 instead of call_for_symbol_thunks_and_aliases. Handle correctly
12282 clearnig the flag in all variants and also virtual thunks of const
12283 functions are pure; track if any change was done.
12284 (cgraph_node::set_const_flag): Update.
12285 (struct set_pure_flag_info): New struct.
12286 (cgraph_set_pure_flag_1): Rename to ...
12287 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
12288 rather than pointer encoded flags; track if any changes was done;
12289 handle correctly clearning flag and setting flag of aliases already
12291 (cgraph_node::set_pure_flag): Update.
12292 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
12294 2016-04-17 Tom de Vries <tom@codesourcery.com>
12297 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
12298 backslash in label.
12300 2016-04-17 Tom de Vries <tom@codesourcery.com>
12302 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
12303 '{}<> ' as escape-for-record.
12305 2016-04-17 Tom de Vries <tom@codesourcery.com>
12307 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
12310 2016-04-17 Tom de Vries <tom@codesourcery.com>
12313 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
12314 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
12315 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
12316 * passes.c (finish_optimization_passes): Only call
12317 finish_graph_dump_file if dfi->graph_dump_initialized.
12318 (execute_function_dump, pass_init_dump_file): Use
12319 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
12321 2016-04-17 Tom de Vries <tom@codesourcery.com>
12323 PR tree-optimization/70256
12324 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
12325 (debug_varmap): New function.
12327 2016-04-17 Tom de Vries <tom@codesourcery.com>
12330 * passes.c (pass_manager::register_pass): Propagate pflags.
12332 2016-04-17 Tom de Vries <tom@codesourcery.com>
12335 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
12336 * passes.c (pass_manager::pass_manager): Declare and init p_start in
12337 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
12338 check if it's equal to p_start.
12339 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
12341 2016-04-15 Jan Hubicka <jh@suse.cz>
12344 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
12345 function does not bind to current def.
12346 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
12347 handle conservatively calls to functions that does not need to bind
12349 (check_call): Update call of worse_state.
12350 (ignore_edge_for_nothrow): Update.
12351 (ignore_edge_for_pure_const): Likewise.
12352 (propagate_pure_const): Update calls to worse_state.
12353 (skip_function_for_local_pure_const): Reformat comments.
12355 2016-04-15 Jan Hubicka <jh@suse.cz>
12358 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
12359 (cgraph_node::function_symbol): Likewise.
12360 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12361 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
12362 (symtab_node::ultimate_alias_target): Add REF parameter.
12363 (symtab_node::binds_to_current_def_p): Declare.
12364 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
12365 (cgraph_node::function_symbol): Likewise.
12366 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
12367 (cgraph_node::get_availability): Likewise.
12368 (cgraph_edge::binds_to_current_def_p): New inline function.
12369 (varpool_node::get_availability): Add REF parameter.
12370 (varpool_node::ultimate_alias_target): Likewise.
12371 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
12372 (symtab_node::binds_to_current_def_p): Likewise.
12373 * varpool.c (varpool_node::get_availability): Likewise.
12375 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
12378 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
12379 Fix mode size check.
12381 2016-04-15 Jakub Jelinek <jakub@redhat.com>
12383 * BASE-VER: Set to 7.0.0.
12385 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
12387 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
12389 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12391 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
12392 architecture revisions.
12394 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
12396 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
12397 * config/i386/i386.c (ix86_using_red_zone): No longer static.
12398 * config/i386/i386.md (stack decrement to push peepholes): Guard
12399 with !x86_using_red_zone ().
12401 2016-04-15 Jakub Jelinek <jakub@redhat.com>
12404 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
12405 to dump_generic_node.
12406 (NIY): Pass also flags to do_niy.
12408 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
12410 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
12411 (simd_clone_vector_of_formal_parm_types)
12412 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
12413 (simd_clone_mangle, simd_clone_create)
12414 (simd_clone_adjust_return_type, create_tmp_simd_array)
12415 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
12416 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
12417 (ipa_simd_modify_function_body, simd_clone_linear_addend)
12418 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
12419 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
12420 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
12421 * omp-simd-clone.c: ... this new file.
12422 (simd_clone_vector_of_formal_parm_types): Make it static.
12423 * Makefile.in (OBJS): Add omp-simd-clone.o.
12425 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
12428 * config/i386/sse.md: Use proper memory operand modifiers.
12431 2016-04-15 Richard Biener <rguenther@suse.de>
12432 Alan Modra <amodra@gmail.com>
12434 PR tree-optimization/70130
12435 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
12436 when alignment stays not the same and no not use the realign
12439 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12442 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12443 direct move handlers for KFmode. Change TFmode handlers test from
12444 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
12446 2016-04-14 Jakub Jelinek <jakub@redhat.com>
12449 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
12450 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
12451 (inlined_polymorphic_ctor_dtor_block_p): Use it.
12452 * tree-ssa-live.c (remove_unused_scope_block_p): When
12453 in_ctor_dtor_block, avoid discarding not just BLOCKs with
12454 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
12455 block_ultimate_origin is FUNCTION_DECL.
12456 (remove_unused_locals): If current_function_decl is
12457 polymorphic_ctor_dtor_p, pass initial true to
12458 remove_unused_scope_block_p' is_ctor_dtor_block.
12460 2016-04-14 Martin Sebor <msebor@redhat.com>
12465 * doc/extend.texi (Variable Length): Revert.
12467 2016-04-14 Marek Polacek <polacek@redhat.com>
12468 Jan Hubicka <hubicka@ucw.cz>
12471 * tree.c (verify_type): Disable the canonical type of main variant
12474 2016-04-14 Jason Merrill <jason@redhat.com>
12476 * cfgexpand.c, expr.c: Revert previous change.
12478 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12480 PR middle-end/70643
12481 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
12482 when building a mem ref for the incoming reduction variable.
12484 2016-04-14 Richard Biener <rguenther@suse.de>
12486 PR tree-optimization/70614
12487 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
12488 loop if the evolution dropped to chrec_dont_know.
12489 (interpret_condition_phi): Likewise.
12491 2016-04-14 Richard Biener <rguenther@suse.de>
12493 PR tree-optimization/70623
12494 * tree-ssa-pre.c (changed_blocks): Make global ...
12495 (compute_antic): ... local here. Move and fix worklist
12496 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
12497 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
12498 worklist handling, dump when ANTIC_IN changed.
12499 (compute_partial_antic_aux): Remove worklist handling.
12500 (init_pre): Do not compute post dominators. Add a comment about
12501 the CFG order chosen.
12502 (fini_pre): Do not free post dominators.
12504 2016-04-13 Martin Sebor <msebor@redhat.com>
12509 * doc/extend.texi (Variable Length): Document C++ specifics.
12511 2016-04-13 Jakub Jelinek <jakub@redhat.com>
12514 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
12515 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
12516 eh edges have been purged.
12519 * tree-sra.c (create_access_replacement,
12520 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
12522 * tree-pretty-print.c (dump_fancy_name): New function.
12523 (dump_decl_name, dump_generic_node): Use it.
12525 2016-04-13 Jason Merrill <jason@redhat.com>
12527 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
12528 * expr.c (expand_expr_real_1): Likewise.
12530 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
12532 * config/i386/i386.md (kunpckhi): Swap operands.
12533 (kunpcksi): Likewise.
12534 (kunpckdi): Likewise.
12535 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
12536 (vec_pack_trunc_<mode>): Likewise.
12538 2016-04-13 Jakub Jelinek <jakub@redhat.com>
12541 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
12543 PR middle-end/70633
12544 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
12545 gimplification turns some element into non-constant.
12548 * rtl.h (convert_memory_address_addr_space_1): New prototype.
12549 * explow.c (convert_memory_address_addr_space_1): No longer static,
12550 add NO_EMIT argument and don't call convert_modes if true, pass
12551 it down recursively, remove break after return.
12552 (convert_memory_address_addr_space): Adjust caller.
12553 * simplify-rtx.c (simplify_unary_operation_1): Call
12554 convert_memory_address_addr_space_1 instead of convert_memory_address,
12555 if it returns NULL, don't simplify.
12557 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
12560 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
12562 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12564 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12565 Bump the upper SIMDLEN limits, so that if the return type or
12566 characteristic type if the return type is void can be passed in
12567 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
12570 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12573 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
12574 Do not use "=" constraint on an input constraint.
12575 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12576 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12577 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
12578 generates (neg (abs ...)) instead of (abs ...).
12580 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12582 PR rtl-optimization/70596
12583 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
12584 just invalidate LRA data and reset them. Adjust dump wording.
12586 2016-04-12 Martin Liska <mliska@suse.cz>
12589 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12591 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12593 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12594 max_loop_iterations_int.
12595 (tree_unswitch_outer_loop): Likewise.
12596 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12597 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12599 2016-04-12 Tom de Vries <tom@codesourcery.com>
12601 PR tree-optimization/68756
12602 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
12603 instead of new_name.
12605 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12607 PR tree-optimization/70602
12608 * tree-sra.c (generate_subtree_copies): Don't write anything into
12609 constant pool decls.
12611 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
12612 regardless whether there are depend clauses or not.
12614 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12617 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
12618 target attribute and pragma from changing the -mfloat128
12619 and -mfloat128-hardware options.
12621 * doc/extend.texi (Additional Floating Types): Document PowerPC
12622 __float128 restrictions.
12624 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12627 * config/aarch64/driver-aarch64.c
12628 (aarch64_get_extension_string_for_isa_flags): New.
12629 (arch_extension): Rename to...
12630 (aarch64_arch_extension): ...This.
12631 (ext_to_feat_string): Rename to...
12632 (aarch64_extensions): ...This.
12633 (aarch64_core_data): Keep track of architecture extension flags.
12634 (cpu_data): Rename to...
12635 (aarch64_cpu_data): ...This.
12636 (aarch64_arch_driver_info): Keep track of architecture extension
12638 (get_arch_name_from_id): Rename to...
12639 (get_arch_from_id): ...This, change return type.
12640 (host_detect_local_cpu): Update and reformat for renames, handle
12641 extensions through common infrastructure.
12643 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12646 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12647 track of a canonical flag name.
12648 (all_extensions): Likewise.
12649 (arch_to_arch_name): Also track extension flags enabled by the arch.
12650 (all_architectures): Likewise.
12651 (aarch64_parse_extension): Move to here.
12652 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12654 (aarch64_rewrite_selected_cpu): Update for above change.
12655 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12656 are handled, such that the single explicit value enabled by an
12657 extension is kept seperate from the implicit values it also enables.
12658 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12660 (aarch64_parse_extension): New.
12661 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12662 here to config/aarch64/aarch64-protos.h.
12663 (aarch64_parse_extension): Move from here to
12664 common/config/aarch64/aarch64-common.c.
12665 (aarch64_option_print): Update.
12666 (aarch64_declare_function_name): Likewise.
12667 (aarch64_start_file): Likewise.
12668 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12669 the canonical flag for extensions.
12670 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12673 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12675 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12678 2016-04-09 Tom de Vries <tom@codesourcery.com>
12680 PR tree-optimization/68953
12681 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12682 first to last subscript.
12684 2016-04-09 Jakub Jelinek <jakub@redhat.com>
12686 PR tree-optimization/70586
12687 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12690 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12694 PR tree-optimization/70373
12695 PR middle-end/70533
12696 PR middle-end/70534
12697 PR middle-end/70535
12698 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12699 clauses for acc parallel reductions as necessary. Error on those
12701 * omp-low.c (scan_sharing_clauses): Don't install variables which
12702 are used in acc parallel reductions.
12703 (lower_rec_input_clauses): Remove dead code.
12704 (lower_oacc_reductions): Add support for reference reductions.
12705 (lower_reduction_clauses): Remove dead code.
12706 (lower_omp_target): Don't remap variables appearing in acc parallel
12708 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12710 2016-04-08 Jakub Jelinek <jakub@redhat.com>
12712 PR middle-end/70593
12713 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12714 with multiple SSA_NAME defs, force the outputs other than first
12715 to be live before calling live_track_process_def on each output.
12717 PR rtl-optimization/70574
12718 * fwprop.c (forward_propagate_and_simplify): Don't add
12719 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12720 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12721 paradoxical subregs within *loc.
12723 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
12725 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12726 -ftree-parallelize-loops={0,1}.
12727 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12728 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12729 * config/ia64/hpux.h (LIB_SPEC): Likewise.
12730 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12731 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12733 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
12736 * asan.c (instrument_derefs): If we get unknown location, extract it
12737 with EXPR_LOCATION.
12738 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12740 2016-04-08 Tom de Vries <tom@codesourcery.com>
12742 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12743 implicit firstprivate clause.
12745 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12748 * config/arm/thumb2.md (tst + branch-> lsls + branch
12749 peephole below *orsi_not_shiftsi_si): Require that condition
12750 register is dead after the peephole.
12751 (second peephole after the above): Likewise.
12753 2016-04-08 Alan Modra <amodra@gmail.com>
12756 * builtins.c (fold_builtin_classify): For IBM extended precision,
12757 look at just the high-order double to test for NaN.
12758 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
12759 test just the high double for Inf but both doubles for subnormal
12762 2016-04-07 Jakub Jelinek <jakub@redhat.com>
12764 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12765 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12766 node->simdclone->mask_mode != VOIDmode masks.
12767 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
12768 earlier, use it instead of node->simdclone.
12769 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12770 Set clonei->mask_mode.
12772 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12775 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12776 Pass it through to cp_parser_already_scoped_statement.
12777 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
12778 it through to cp_parser_statement.
12779 (cp_parser_statement): Pass IF_P through to
12780 cp_parser_iteration_statement.
12781 (cp_parser_pragma): Adjust call to
12782 cp_parser_iteration_statement.
12784 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12787 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12788 resolve a future -Wparentheses warning.
12789 * omp-low.c (scan_sharing_clauses): Likewise.
12790 * tree-parloops.c (eliminate_local_variables): Likewise.
12792 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
12794 PR rtl-optimization/70398
12795 * lra-constraints.c (process_address_1): Check zero scale and code
12796 for reloading with zero scale.
12798 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
12800 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12801 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12803 2016-04-06 Jakub Jelinek <jakub@redhat.com>
12805 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12806 Add support for AVX512F clones, include them by default for
12807 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
12808 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12811 PR middle-end/70550
12812 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12813 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12814 firstprivate clauses.
12815 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12816 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12817 (lower_omp_target): Set TREE_NO_WARNING for
12818 non-addressable possibly uninitialized vars which are copied into
12819 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12821 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
12823 * config/pa/predicates.md (integer_store_memory_operand): Accept
12824 REG+D operands with a large offset when reload_in_progress is true.
12825 (floating_point_store_memory_operand): Likewise.
12827 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12830 * match.pd (nested int casts): Limit to GIMPLE.
12832 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
12835 * ipa-devirt.c (maybe_record_node): Fix comment; use
12836 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12838 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12840 PR rtl-optimization/70542
12841 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12842 if there are any uses other than insn or debug insns.
12844 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
12845 Jakub Jelinek <jakub@redhat.com>
12847 PR tree-optimization/70509
12848 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12849 Shift HOST_WIDE_INT_1U instead of 1.
12851 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
12853 PR tree-optimization/70509
12854 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12855 of the vector base type for index.
12857 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
12860 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12862 2016-04-05 Richard Biener <rguenther@suse.de>
12864 PR tree-optimization/70526
12865 * tree-sra.c (build_ref_for_offset): Use prev_base to
12866 extract the alias pointer type.
12868 2016-04-05 Richard Biener <rguenther@suse.de>
12870 * dse.c (struct store_info): Remove alias_set member.
12871 (struct read_info_type): Likewise.
12872 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12873 spill_deleted, clear_alias_set_lookup): Remove.
12874 (get_group_info): Remove dead base == NULL_RTX case.
12875 (dse_step0): Remove initialization of removed variables.
12876 (delete_dead_store_insn): Reomve alias set dumping.
12877 (free_read_records): Remove alias_set handling.
12878 (canon_address): Remove alias_set_out parameter.
12879 (record_store): Remove spill_alias_set, it's always zero.
12880 (check_mem_read_rtx): Likewise.
12881 (dse_step2): Rename from ...
12882 (dse_step2_nospill): ... this. Adjust.
12883 (scan_stores): Rename from ...
12884 (scan_stores_nospill): ... this.
12885 (scan_reads): Rename from ...
12886 (scan_reads_nospill): ... this.
12887 (scan_stores_spill, scan_reads_spill): Remove.
12888 (dse_step3_scan): Remove for_spills argument which is always false.
12889 (dse_step3): Likewise.
12890 (dse_step5): Rename from ...
12891 (dse_step5_nospill): ... this. Remove alias_set handling.
12892 (rest_of_handle_dse): Adjust.
12894 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12897 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12898 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12899 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12900 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12902 2016-04-05 Richard Biener <rguenther@suse.de>
12904 PR middle-end/70499
12905 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12906 non-register type temporaries into SSA.
12908 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
12911 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12912 calls when sanitizing.
12913 (possible_polymorphic_call_target_p): Fix formatting.
12915 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12916 Jakub Jelinek <jakub@redhat.com>
12918 PR middle-end/70457
12919 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12920 to ensure a call statement is compatible with a built-in's
12922 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12925 2016-04-04 Richard Biener <rguenther@suse.de>
12927 PR rtl-optimization/70484
12928 * rtl.h (canon_output_dependence): Declare.
12929 * alias.c (canon_output_dependence): New function.
12930 * dse.c (record_store): Use canon_output_dependence rather
12931 than canon_true_dependence.
12933 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12936 * cgraph.h (symtab_node::copy_visibility_from): New function.
12937 * symtab.c (symtab_node::copy_visibility_from): New function.
12938 * ipa-visibility.c (optimize_weakref): New function.
12939 (function_and_variable_visibility): Use it.
12941 2016-04-04 Martin Liska <mliska@suse.cz>
12944 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12945 value that is really in range handled by SBR instruction.
12946 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12947 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12948 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12950 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
12954 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12955 set, but not for SP_REG operands.
12957 2016-04-02 Martin Sebor <msebor@redhat.com>
12960 * fold-const.c (maybe_nonzero_address): New function.
12961 (fold_comparison): Call it. Fold equality and relational
12962 expressions involving null pointers.
12963 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12965 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
12967 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12968 the "Y" constraint (scalar FP 0.0 immediate).
12970 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12971 Add the "const_double" to the list of operand constraints.
12973 2016-04-01 Jakub Jelinek <jakub@redhat.com>
12975 PR rtl-optimization/70467
12976 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12977 If low word of the last operand is 0, just emit addition/subtraction
12980 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12983 * config/s390/s390.c (s390_expand_insv): Check for everything
12984 constant instead of just VOIDmode stuff.
12986 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12989 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12991 2016-04-01 Nathan Sidwell <nathan@acm.org>
12993 * tree.def (TRY_CATCH_EXPR): Correct documentation.
12995 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
12997 PR rtl-optimization/70461
12998 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
13001 2016-03-31 Martin Liska <mliska@suse.cz>
13004 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
13005 a tree value or an immediate integer value to a buffer
13006 that is eventually copied to a BRIG section.
13007 (emit_immediate_operand): Call the function here.
13008 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
13009 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
13010 of class' fields that are removed.
13011 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
13012 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
13013 m_brig_repr_size fields.
13015 2016-03-31 Martin Liska <mliska@suse.cz>
13018 * hsa-gen.c (hsa_function_representation::update_dominance): New
13020 (convert_addr_to_flat_segment): Likewise.
13021 (gen_hsa_memory_set): New alignment argument.
13022 (gen_hsa_ctor_assignment): Likewise.
13023 (gen_hsa_insns_for_single_assignment): Provide alignment
13024 to gen_hsa_ctor_assignment.
13025 (gen_hsa_insns_for_direct_call): Add new argument.
13026 (expand_lhs_of_string_op): New function.
13027 (expand_string_operation_builtin): Likewise.
13028 (expand_memory_copy): New function.
13029 (expand_memory_set): New function.
13030 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
13031 (convert_switch_statements): Change signature.
13032 (generate_hsa): Use a return value of the function.
13033 (pass_gen_hsail::execute): Do not call
13034 convert_switch_statements here.
13035 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
13036 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
13037 (hsa_function_representation::update_dominance): New function.
13039 2016-03-31 Martin Liska <mliska@suse.cz>
13042 * hsa-brig.c (emit_directive_variable): Emit alignment
13043 according to hsa_symbol::m_align.
13044 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
13045 (dump_hsa_symbol): Dump alignment of HSA symbols.
13046 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
13047 (gen_hsa_addr_with_align): New function.
13048 (hsa_bitmemref_alignment): Use newly added function.
13049 (gen_hsa_insns_for_load): Likewise.
13050 (gen_hsa_insns_for_store): Likewise.
13051 (gen_hsa_memory_copy): New argument added.
13052 (gen_hsa_insns_for_single_assignment): Respect
13053 alignment for assignments processed via gen_hsa_memory_copy.
13054 (gen_hsa_insns_for_direct_call): Likewise.
13055 (gen_hsa_insns_for_return): Likewise.
13056 (gen_function_def_parameters): Set default alignment.
13057 * hsa.c (hsa_object_alignment): New function.
13058 (hsa_byte_alignment): Pasted function.
13059 * hsa.h (hsa_symbol::m_align): New field.
13061 2016-03-31 Bin Cheng <bin.cheng@arm.com>
13063 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
13064 scratch field for goto case.
13066 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
13068 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
13070 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
13073 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
13074 (scalar_chain::convert_insn): Call convert_op for reg
13075 moves to handle undefined registers.
13077 2016-03-31 Nathan Sidwell <nathan@acm.org>
13080 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
13081 Assert we don't want to move backwards.
13083 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
13086 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
13088 2016-03-31 Jakub Jelinek <jakub@redhat.com>
13090 PR rtl-optimization/70460
13091 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
13092 with operand from REG_LABEL_OPERAND, instead substitute
13093 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
13094 Don't do anything for REG_NON_LOCAL_GOTO jumps.
13096 2016-03-31 Martin Liska <mliska@suse.cz>
13098 * passes.c (execute_one_pass): Do not call
13099 todo_after for a discarded function.
13101 2016-03-31 Bin Cheng <bin.cheng@arm.com>
13103 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
13104 (no_cost, infinite_cost): Initialize the new field.
13105 (get_computation_cost_at): Record setup cost.
13106 (determine_use_iv_cost_address): Skip cost computation for sub
13107 uses if we can estimate it without losing accuracy.
13109 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
13111 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
13113 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13114 max_loop_iterations_int.
13115 (tree_unswitch_outer_loop): Likewise.
13116 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
13117 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
13119 2016-03-30 Richard Biener <rguenther@suse.de>
13121 PR middle-end/70450
13122 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
13124 2016-03-30 Jakub Jelinek <jakub@redhat.com>
13127 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
13128 in gen_blendm expander.
13130 2016-03-30 Nick Clifton <nickc@redhat.com>
13133 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
13134 case where we are already provided with an SImode SUBREG.
13136 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
13139 * config/i386/i386.c (ix86_expand_epilogue): Properly check
13140 conflict between DRAP register and __builtin_eh_return.
13142 2016-03-30 Michael Matz <matz@suse.de>
13143 Richard Biener <rguenther@suse.de>
13146 * ipa-polymorphic-call.c (struct type_change_info): Change
13147 speculative to an unsigned allowing to limit the work we do.
13148 (csftc_abort_walking_p): New inline function..
13149 (check_stmt_for_type_change): Limit the number of may-defs
13150 skipped for speculative devirtualization to
13151 max-speculative-devirt-maydefs.
13152 * params.def (max-speculative-devirt-maydefs): New param.
13153 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
13155 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
13158 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
13161 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
13163 PR tree-optimization/59124
13164 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
13165 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
13167 2016-03-29 Jeff Law <law@redhat.com>
13169 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
13171 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13173 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
13176 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13178 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
13179 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
13180 gcrt0.o if linking dynamically.
13182 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13185 * ipa-devirt.c (methods_equal_p): New function.
13186 (compare_virtual_tables): Use it.
13187 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
13188 * cgraphclones.c (clone_function_name_1): Use
13189 symbol_table::symbol_suffix_separator.
13190 * coverage.c (build_var): Likewise.
13191 * symtab.c (symbol_table::symbol_suffix_separator): New.
13193 2016-03-29 Jakub Jelinek <jakub@redhat.com>
13195 PR rtl-optimization/70429
13196 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
13197 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
13198 mode != result_mode.
13201 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
13203 PR tree-optimization/70405
13204 * ssa-iterators.h (num_imm_uses): Add missing braces.
13206 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
13208 PR rtl-optimization/68695
13209 * ira-color.c (allocno_copy_cost_saving): New.
13210 (improve_allocation): Use it.
13212 2016-03-29 Richard Henderson <rth@redhat.com>
13214 PR middle-end/70355
13215 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
13217 2016-03-29 Richard Biener <rguenther@suse.de>
13219 PR middle-end/70424
13220 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
13221 use alignment returned by get_pointer_alignment_1 if it is
13222 bigger than BITS_PER_UNIT.
13223 * builtins.c (get_pointer_alignment_1): Do not return true
13224 for alignment extracted from SSA info.
13226 2016-03-28 James Bowman <james.bowman@ftdichip.com>
13228 * config/ft32/ft32.opt (mnodiv): New.
13229 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
13230 * doc/invoke.texi (FT32 Options -mnodiv): New.
13232 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
13235 * config/i386/i386.md (define_split, andn): Fix modes.
13237 2016-03-26 Richard Biener <rguenther@suse.de>
13238 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13241 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
13243 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
13244 as 2nd argument to cl_optimization_restore().
13246 2016-03-25 Richard Henderson <rth@redhat.com>
13249 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
13250 * config/aarch64/aarch64-protos.h: Declare it.
13251 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
13253 2016-03-25 Alan Modra <amodra@gmail.com>
13256 * config/rs6000/constraints.md (j): Simplify.
13257 * config/rs6000/predicates.md (easy_fp_constant): Exclude
13259 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
13260 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
13261 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
13262 in all constraint alternatives.
13263 (movtd_64bit_nodm): Delete "j" constraint alternative.
13265 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
13267 * tree-ssa-propagate.c: Enhance docs for
13268 SSA_PROP_NOT_INTERESTING.
13270 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
13272 * doc/extend.texi: Fix typo in documentation to pure attribute.
13274 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
13277 * config/pa/pa.md (bswapdi2): Use a scratch register.
13279 2016-03-24 Richard Henderson <rth@redhat.com>
13281 PR middle-end/69845
13282 * fold-const.c (extract_muldiv_1): Correct test for multiplication
13285 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
13287 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
13288 using ix86_expand_binary_operator instead of gen_andsi3.
13290 2016-03-24 Richard Biener <rguenther@suse.de>
13292 PR tree-optimization/70396
13293 * tree-vect-stmts.c (vectorizable_comparison): Use
13294 get_vectype_for_scalar_type.
13296 2016-03-24 Richard Biener <rguenther@suse.de>
13298 PR middle-end/70370
13299 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
13300 with register bases.
13302 2016-03-24 Richard Biener <rguenther@suse.de>
13304 PR tree-optimization/70372
13305 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
13306 build_all_ones_cst to also handle vector types correctly.
13308 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13311 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
13314 2016-03-23 Marek Polacek <polacek@redhat.com>
13317 * doc/invoke.texi: Document -Wignored-attributes.
13319 2016-03-23 Bin Cheng <bin.cheng@arm.com>
13321 PR tree-optimization/69042
13322 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
13323 parameter from 30 to 40.
13325 2016-03-23 Bin Cheng <bin.cheng@arm.com>
13327 PR tree-optimization/69042
13328 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
13329 for use with constant offset stripped in base.
13331 2016-03-23 Richard Biener <rguenther@suse.de>
13333 PR middle-end/70251
13334 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
13335 mode compatibility check.
13336 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13338 2016-03-23 Jeff Law <law@redhat.com>
13340 PR tree-optimization/64058
13341 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
13343 (struct ssa_conflicts): Move up earlier in the file.
13344 (conflicts_, var_map_): New static variables.
13345 (initialize_conflict_count): New function to initialize the
13346 CONFLICT_COUNT field for each conflict pair.
13347 (compare_pairs): Lazily initialize the conflict count and use it
13348 as the first tie-breaker.
13349 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
13350 and wipe conflicts_ and map_ around the call to qsort. Remove
13351 special case for 2 coalesce pairs.
13352 * bitmap.c (bitmap_count_unique_bits): New function.
13353 (bitmap_count_bits_in_word): New function, extracted from
13355 (bitmap_count_bits): Use bitmap_count_bits_in_word.
13356 * bitmap.h (bitmap_count_unique_bits): Declare it.
13358 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
13361 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
13362 transparent alias chain for decl assembler name.
13363 * config/sol2.c (solaris_assemble_visibility): Likewise.
13365 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13367 * config/arm/arm1020e.md (1020call_op): Reduce reservation
13369 (v10_fdivs): Likewise.
13370 (v10_fdivd): Likewise.
13372 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13375 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
13376 to not call fclose twice on file.
13378 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13380 PR tree-optimization/70354
13381 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13382 oprnd0 is wider than oprnd1 and there is a cast from the wider
13383 type to oprnd1, mask it with the mask of the narrower type.
13386 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
13387 Optimize TARGET_STV splitters, if high or low word of last argument
13390 2016-03-22 Jeff Law <law@redhat.com>
13393 tree-ssa-threadbackward.c
13394 (fsm_find_control_statement_thread_paths): Correctly distinguish
13395 between old style jump threads vs FSM jump threads.
13397 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13400 * config/i386/i386.c (scalar_chain::convert_op): Support
13401 uninitialized register usage case.
13403 2016-03-22 Richard Biener <rguenther@suse.de>
13405 PR middle-end/70251
13406 * genmatch.c (gen_transform): Adjust last parameter to a three-state
13408 (capture::gen_transform): ... to change behavior when substituting
13409 a condition into cond or not-cond expr context.
13410 (dt_simplify::gen_1): Adjust.
13411 * gimple-match-head.c: Include gimplify.h for unshare_expr.
13412 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
13413 last change and instead change to
13414 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
13415 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13417 2016-03-22 Anthony Green <green@moxielogic.com>
13419 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
13420 issue for moxiebox targets.
13421 (CC1PLUS_SPEC): Ditto.
13423 2016-03-22 Richard Biener <rguenther@suse.de>
13425 PR middle-end/70333
13426 * fold-const.c (extract_muldiv_1): Properly perform multiplication
13429 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
13431 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
13433 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
13436 * config/i386/i386.c (def_builtin): Handle
13437 OPTION_MASK_ISA_AVX512VL to be and-ed with other
13439 (const struct builtin_description bdesc_special_args[]):
13440 Remove duplicate ISA bits.
13442 2016-03-22 Jakub Jelinek <jakub@redhat.com>
13445 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
13446 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
13447 in a way that works also for AVX512BW.
13450 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
13451 instead of source if operands[1] is xmm16 and above and
13452 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
13453 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
13456 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
13457 on assign if (*from_p) is a comparison, set it to
13458 TREE_NO_WARNING (*from_p).
13460 2016-03-21 Jakub Jelinek <jakub@redhat.com>
13462 PR middle-end/70326
13463 * lra.c (restore_scratches): Ignore deleted insns.
13465 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
13466 Jakub Jelinek <jakub@redhat.com>
13468 PR tree-optimization/70317
13469 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
13472 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
13475 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
13476 of ix86_expand_move.
13478 (movti): Use general_operand for operand 1 predicate.
13480 2016-03-21 Martin Liska <mliska@suse.cz>
13482 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
13484 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
13486 2016-03-21 Martin Liska <mliska@suse.cz>
13489 * ipa-icf.c (sem_function::parse): Skip static
13490 constructors and destructors.
13492 2016-03-21 Jakub Jelinek <jakub@redhat.com>
13495 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
13496 function-like macro, peek following token(s) if it is followed
13497 by CPP_OPEN_PAREN token with optional padding in between, and
13498 if not, don't treat it like a macro.
13500 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
13501 Alexander Monakov <amonakov@ispras.ru>
13503 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
13504 for the stabs debug format.
13506 2016-03-21 Richard Biener <rguenther@suse.de>
13508 PR tree-optimization/70310
13509 * tree-vect-generic.c (expand_vector_condition): Fold the built
13512 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
13515 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
13516 Block third alternative for AVX-512VL target,
13518 2016-03-21 Martin Liska <mliska@suse.cz>
13521 * hsa-brig.c (emit_function_directives): Mark unemitted
13522 global variables for emission.
13523 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
13524 (get_symbol_for_decl): Likewise.
13525 * hsa.h (struct hsa_symbol): New flag.
13527 2016-03-21 Richard Biener <rguenther@suse.de>
13529 PR tree-optimization/70288
13530 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
13531 we do not estimate unsimplified all-constant conditionals or
13532 switches as optimized away.
13534 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
13536 PR rtl-optimization/69102
13537 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
13538 when we have a readonly dependency context.
13540 2016-03-18 Jeff Law <law@redhat.com>
13542 PR rtl-optimization/70263
13543 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
13544 (update_equiv_regs): When trying to move a store to after the insn
13545 that sets the source of the store, make sure the store occurs after
13546 the insn that sets the source of the store. When successful note
13547 the REG_EQUIV note created in the dump file.
13549 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
13550 Bernd Schmidt <bschmidt@redhat.com>
13552 * doc/extend.texi: Document more potential problems with basic asms.
13554 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
13556 PR rtl-optimization/70278
13557 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
13560 2016-03-18 Jason Merrill <jason@redhat.com>
13562 * calls.c (load_register_parameters): Fix zero size sibcall logic.
13564 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
13566 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
13567 values to 128b regs.
13569 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
13571 PR tree-optimization/70252
13572 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
13573 boolean vector has a proper number of elements.
13574 (supportable_narrowing_operation): Likewise.
13576 2016-03-18 Tom de Vries <tom@codesourcery.com>
13579 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
13581 2016-03-18 Jakub Jelinek <jakub@redhat.com>
13583 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
13584 instead of replace_rtx for DEBUG_INSNs.
13586 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13588 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
13589 load type reservations.
13591 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
13594 * config/pa/constraints.md: Revert 2015-02-13 change. Use
13595 define_constraint for "Q" and "T" constraints.
13597 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
13599 Tweak the pipeline model for Exynos M1
13601 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
13604 2016-03-17 David Malcolm <dmalcolm@redhat.com>
13607 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
13608 where one or both locations aren't within a line_map.
13610 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
13613 * opts.c (finish_options): Don't set flag_pie to the default if
13614 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
13617 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
13619 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
13620 true as ALL_REGS argument to replace_rtx.
13622 2016-03-17 Richard Biener <rguenther@suse.de>
13625 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
13628 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13631 * rtl.h (replace_rtx): Add ALL_REGS argument.
13632 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
13633 equality and assert mode is the same, instead of just rtx pointer
13635 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13636 true as ALL_REGS argument to replace_rtx.
13638 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
13640 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13641 for boolean vector with vector mode only.
13642 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13644 2016-03-17 Nick Clifton <nickc@redhat.com>
13647 * config/rx/rx.c (rx_print_integer): Print negative constants in
13650 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13653 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13655 2016-03-16 Richard Henderson <rth@redhat.com>
13656 Richard Biener <rguenth@suse.de>
13658 PR middle-end/70240
13659 PR middle-end/68215
13661 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13662 first operand as is_gimple_condexpr.
13664 PR middle-end/70240
13665 PR middle-end/68215
13667 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
13668 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13669 Do not gimplify the result.
13670 (do_unop): Adjust call to tree_vec_extract.
13671 (do_binop): Likewise.
13672 (do_compare): Likewise.
13673 (do_plus_minus): Likewise.
13674 (do_negate): Likewise.
13675 (expand_vector_condition): Likewise.
13676 (do_cond): Likewise.
13678 2016-03-16 Richard Henderson <rth@redhat.com>
13681 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13682 (aarch64_classify_address): Use it.
13683 (aarch64_legitimize_address): Force all subexpressions of PLUS
13684 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
13686 2016-03-16 Jakub Jelinek <jakub@redhat.com>
13687 Richard Biener <rguenth@suse.de>
13690 * rtlanal.c (replace_rtx): For REG, if from is a REG,
13691 return to even if only REGNO is equal, and assert
13694 2016-03-11 Jeff Law <law@redhat.com>
13696 PR rtl-optimization/70224
13697 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13699 2016-03-16 Richard Henderson <rth@redhat.com>
13701 PR middle-end/70199
13702 * function.h (struct function): Add has_forced_label_in_static.
13703 * gimplify.c (force_labels_r): Set it.
13704 * lto-streamer-in.c (input_struct_function_base): Read it.
13705 * lto-streamer-out.c (output_struct_function_base): Write it.
13706 * tree-inline.c (has_label_address_in_static_1): Remove.
13707 (copy_forbidden): Remove fndecl parameter; test
13708 has_forced_label_in_static.
13709 (inline_forbidden_p): Update call to copy_forbidden.
13710 (tree_versionable_function_p): Likewise.
13711 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13712 (chkp_versioning): Likewise.
13713 * tree-inline.h (copy_forbidden): Update decl.
13715 2016-03-16 Marek Polacek <polacek@redhat.com>
13718 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13719 function being thunked if the result type doesn't have fixed size.
13720 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13721 doesn't have fixed size.
13723 2016-03-16 Bin Cheng <bin.cheng@arm.com>
13725 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13726 reporting malformed loop nest.
13728 2016-03-16 Tom de Vries <tom@codesourcery.com>
13731 * ipa-devirt.c (possible_polymorphic_call_targets): Move
13732 nodes.length () == 1 test to before first nodes[0] access.
13734 2016-03-16 Tom de Vries <tom@codesourcery.com>
13736 PR tree-optimization/68715
13737 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13738 single_pred_p test.
13740 2016-03-16 Tom de Vries <tom@codesourcery.com>
13742 PR tree-optimization/68809
13743 * graphite-scop-detection.c (same_close_phi_node): Test if result types
13746 2016-03-16 Carlos O'Donell <carlos@redhat.com>
13747 Sandra Loosemore <sandra@codesourcery.com>
13749 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13750 on leaf attribute. Mention ELF interposition problems.
13752 2016-03-16 Alan Modra <amodra@gmail.com>
13754 PR rtl-optimization/69195
13755 PR rtl-optimization/47992
13756 * ira.c (indirect_jump_optimize): Ignore artificial defs.
13759 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
13762 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13764 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13766 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13768 2016-03-15 Jakub Jelinek <jakub@redhat.com>
13770 PR rtl-optimization/70222
13771 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13772 optimization if mode is different from result_mode, queue up masking
13773 of the result in outer_op. Formatting fix.
13775 PR middle-end/70239
13776 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13779 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13781 PR rtl-optimization/69032
13782 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13783 looping backwards over basic block insns.
13785 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13788 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13789 to non-speculative when propagating trap bits.
13791 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13793 PR rtl-optimization/63384
13794 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13795 DEBUG_INSN_P insns.
13797 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13800 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13801 factored out from ...
13802 (sched_analyze_insn): ... here.
13803 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13804 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13805 get_implicit_reg_pending_clobbers in it.
13806 (setup_id_reg_sets): Use setup_id_implicit_regs.
13807 (deps_init_id): Ditto.
13809 2016-03-15 Tom de Vries <tom@codesourcery.com>
13812 * cgraph.c (cgraph_node::get_body): Save, reset and restore
13814 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13815 execute_function_dump.
13816 (execute_one_pass): Don't dump function if it will be dumped after ipa
13819 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13821 * genrecog.c (match_pattern_2): If pred is NULL don't call
13822 safe_predicate_mode on it.
13824 2016-03-14 Jakub Jelinek <jakub@redhat.com>
13826 PR middle-end/70219
13827 * lra-constraints.c (delete_move_and_clobber): Change assertion
13828 to also allow dregno == 0.
13830 2016-03-14 Richard Henderson <rth@redhat.com>
13833 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13834 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13835 (reassociate_bb): Use optimize_vec_cond_expr; avoid
13836 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13839 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
13842 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13844 (lra_create_live_ranges_1): initialize hard register biggest_mode to
13846 * lra-constraints.c (split_reg): For hard regs, try to find the
13847 biggest single-register mode used in the function.
13849 2016-03-14 Richard Biener <rguenther@suse.de>
13851 PR tree-optimization/56365
13852 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13853 constants to compare against.
13855 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
13858 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13859 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13860 (define_split for the GPR case): Use int_reg_operand instead of
13861 gpc_reg_operand for the output.
13863 2016-03-14 Tom de Vries <tom@codesourcery.com>
13865 PR tree-optimization/70045
13866 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13867 create_empty_if_region_on_edge argument.
13869 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
13871 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13872 (STACK_CHECK_PROTECT): Likewise.
13873 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13874 (STACK_CHECK_PROTECT): Likewise.
13875 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13876 (STACK_CHECK_PROTECT): Likewise.
13877 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13878 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13879 (STACK_CHECK_PROTECT): Likewise.
13881 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
13883 PR rtl-optimization/69307
13884 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13885 registers in modes that span more than one register.
13887 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
13890 * lra-constraints.c (delete_move_and_clobber): New.
13891 (remove_inheritance_pseudos): Use it.
13893 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
13896 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13897 the libcall is LCT_THROW.
13898 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13899 for the checking routine.
13901 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13904 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13905 optimization if we have direct move.
13906 (roundu32<mode>2_fprs): Likewise.
13908 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
13911 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13913 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13914 Arguments swapped. All callers changed. Take reg_renumber into
13915 account, and Calculate and compare register ranges for hard regs.
13917 2016-03-11 Jeff Law <law@redhat.com>
13919 PR tree-optimization/70190
13920 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13921 Handle cases where we can not extract the taken edge, even though we
13922 found a constant value.
13924 PR tree-optimization/64058
13925 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13926 (num_coalesce_pairs): Move up earlier in file.
13927 (find_coalesce_pair): Initialize the INDEX field for each pair
13929 (compare_pairs): No longer sort on the elements in each pair.
13930 Instead break ties with the index of the coalesce pair.
13932 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13935 * config/aarch64/aarch64-protos.h
13936 (aarch64_save_restore_target_globals): New prototype.
13937 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13938 Call the above when popping pragma.
13939 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13941 (aarch64_set_current_function): Rewrite using the above.
13943 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13945 PR tree-optimization/70177
13946 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13947 (extract_ops_from_tree): ... this. In the 2 argument
13948 overload remove _1 suffix.
13949 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13950 (extract_ops_from_tree): ... this.
13951 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13953 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13954 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13955 extract_ops_from_tree instead of 2 operand one.
13957 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
13959 PR tree-optimization/70013
13960 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13961 for constant-pool entries.
13963 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13965 PR rtl-optimization/70174
13966 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13967 followed by gen_lowpart on force_reg instead of just gen_lowpart.
13969 PR tree-optimization/70169
13970 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13971 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
13974 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13975 Jakub Jelinek <jakub@redhat.com>
13978 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13979 of uninitialized values.
13981 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13983 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13985 ("*trunctddd2"): New pattern definition.
13986 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13989 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13991 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13992 definitions for BFP and DFP rounding modes.
13993 ("fixuns_truncdddi2", "fixuns_trunctddi2")
13994 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13995 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13996 ("fix_trunctf<mode>2"): Use the new constants instead of magic
13999 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14001 * config/s390/constraints.md: Adjust comment.
14002 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
14003 s390_decompose_addrstyle_without_index.
14004 * config/s390/predicates.md (shift_count_or_setmem_operand):
14005 Rename to setmem_operand.
14006 * config/s390/s390-protos.h
14007 (s390_decompose_shift_count): Rename to
14008 s390_decompose_addrstyle_without_index.
14009 * config/s390/s390.c (s390_decompose_shift_count)
14010 (s390_mem_constraint, print_shift_count_operand)
14011 (print_operand_address, print_operand): Rename
14012 s390_decompose_shift_count to
14013 s390_decompose_addrstyle_without_index and rename
14014 print_shift_count_operand to print_addrstyle_operand troughout the
14016 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
14017 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
14018 Rename shift_count_or_setmem_operand to setmem_operand.
14019 * config/s390/vx-builtins.md ("vec_insert<mode>")
14020 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
14023 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14026 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14027 Handle overlapping retval and newval.
14029 2016-03-10 Nick Clifton <nickc@redhat.com>
14032 * config/aarch64/aarch64.c
14033 (aarch64_override_options_after_change_1): When forcing
14034 flag_omit_frame_pointer to be true, use a special value that can
14035 be detected if this function is called again, thus preventing
14036 flag_omit_leaf_frame_pointer from being forced to be false.
14038 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14040 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14041 Set x_flag_omit_leaf_frame_pointer when handling
14042 -momit-leaf-frame-pointer.
14044 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14047 * cgraph.c (cgraph_node::dump): Dump split_part and
14048 indirect_call_target.
14049 * cgraph.h (cgraph_node): Add indirect_call_target flag.
14050 * ipa.c (has_addr_references_p): Cleanup.
14051 (is_indirect_call_target_p): New.
14052 (walk_polymorphic_call_targets): Do not mark virtuals that may be
14053 called indirectly as local.
14054 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
14056 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14059 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14060 on cxa_pure_virtual.
14062 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14065 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
14067 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14070 * tree.c (need_assembler_name_p): Only record main variant type names.
14072 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
14075 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
14076 Always define to 0 or 1.
14077 (TARGET_FIX_ERR_A53_843419): New macro.
14078 * config/aarch64/aarch64-elf-raw.h
14079 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
14080 * config/aarch64/aarch64-linux.h: Likewise.
14081 * config/aarch64/aarch64.c
14082 (aarch64_override_options_after_change_1): Do not default
14083 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
14085 (aarch64_attributes): Handle fix-cortex-a53-843419.
14086 (aarch64_can_inline_p): Likewise.
14087 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
14089 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
14090 Jakub Jelinek <jakub@redhat.com>
14092 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
14093 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
14094 DECL_COMMONS if flag_unconstrained_commons is set.
14095 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14096 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
14097 (funconstrained-commons): Document.
14099 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
14101 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
14102 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
14104 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
14106 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
14107 has a proper number of elements.
14109 2016-03-10 Alan Modra <amodra@gmail.com>
14111 PR rtl-optimization/69195
14112 PR rtl-optimization/47992
14113 * ira.c (recorded_label_ref): Delete.
14114 (update_equiv_regs): Return void.
14115 (indirect_jump_optimize): New function.
14116 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
14117 before regstat_compute_ri. Don't rebuild_jump_labels here.
14118 Delete update_regstat.
14120 2016-03-10 Richard Biener <rguenther@suse.de>
14122 PR tree-optimization/70128
14123 * tree-ssa-structalias.c (set_uids_in_ptset): Set
14124 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
14126 2016-03-09 Jakub Jelinek <jakub@redhat.com>
14128 PR tree-optimization/70152
14129 * tree-sra.c (replace_removed_params_ssa_names): Copy over
14130 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
14133 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
14134 instead of gen_sse2_loadlpd.
14135 * config/i386/sse.md (*vec_concatv2df): Rename to...
14136 (vec_concatv2df): ... this.
14138 PR tree-optimization/70127
14139 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
14141 2016-03-09 David Malcolm <dmalcolm@redhat.com>
14145 * diagnostic-show-locus.c (compatible_locations_p): New function.
14146 (layout::layout): Sanitize ranges using compatible_locations_p.
14148 2016-03-09 David Malcolm <dmalcolm@redhat.com>
14152 * diagnostic-show-locus.c (layout_range::layout_range): Replace
14153 location_range param with three const expanded_locations * and a
14155 (layout::layout): Replace call to
14156 rich_location::lazily_expand_location with get_expanded_location.
14157 Extract the range and perform location expansion here, passing
14158 the results to the layout_range ctor.
14159 * diagnostic.c (source_range::debug): Delete.
14160 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
14161 of rich_location::get_expanded_location.
14162 * gcc-rich-location.c (get_range_for_expr): Delete.
14163 (gcc_rich_location::add_expr): Reimplement to avoid the
14164 rich_location::add_range overload that took a location_range,
14165 passing a location_t instead.
14167 2016-03-09 Richard Biener <rguenther@suse.de>
14168 Jakub Jelinek <jakub@redhat.com>
14170 PR tree-optimization/70138
14171 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
14172 Also skip vect_double_reduction_def.
14174 2016-03-09 Jakub Jelinek <jakub@redhat.com>
14177 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
14178 if the operand is "m".
14180 2016-03-09 Nathan Sidwell <nathan@acm.org>
14182 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
14184 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14186 * config/i386/i386.c (processor_target_table): Fix cost table
14187 intialization order for znver1.
14189 2016-03-08 Jakub Jelinek <jakub@redhat.com>
14191 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
14192 - becuase -> because.
14193 * ipa-reference.c (ignore_module_statics): Likewise.
14194 * cgraph.c (cgraph_node::get_body): Likewise.
14195 * ipa-inline.c (early_inliner): Likewise.
14196 * ipa-devirt.c (types_same_for_odr): Likewise.
14197 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
14198 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
14200 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14202 * tree-ssa-math-opts.c: Fix typo in comment.
14204 2016-03-08 Jakub Jelinek <jakub@redhat.com>
14207 * config/i386/i386.c (scalar_chain::make_vector_copies,
14208 scalar_chain::convert_reg): Call end_sequence in between
14209 get_insns and emit_conversion_insns rather than after both
14212 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
14215 * config/i386/i386.h (machine_function): Add
14216 pc_thunk_call_expanded flag.
14217 (ix86_pc_thunk_call_expanded): New define.
14218 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
14219 (*set_got): Rename insn pattern from set_got.
14220 (*set_got_labelled): Rename inst pattern from set_got_labelled.
14221 * config/i386/i386.c (ix86_compute_frame_layout): Use
14222 ix86_pc_thunk_call_expanded to prevent red-zone.
14224 2016-03-07 Martin Jambor <mjambor@suse.cz>
14226 * hsa.h (hsa_get_ctor_statements): Declare.
14227 (hsa_get_dtor_statements): Likewise.
14228 (hsa_get_kernel_dispatch_type): Likewise.
14229 * hsa.c (hsa_get_ctor_statements): New function.
14230 (hsa_get_dtor_statements): Likewise.
14231 (hsa_get_kernel_dispatch_type): Likewise.
14232 * hsa-brig.c (hsa_cdtor_statements): Removed.
14233 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
14234 hsa_get_dtor_statements.
14235 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
14236 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
14238 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14240 * config/arm/arm-cores.def (cortex-r8): New.
14241 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
14242 * config/arm/arm-tune.md: Likewise.
14243 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
14245 2016-03-07 Martin Sebor <msebor@redhat.com>
14247 PR rtl-optimization/19705
14248 * doc/invoke.texi (Options That Control Optimization): Clarify
14249 -fno-branch-count-reg.
14251 2016-02-26 Richard Biener <rguenther@suse.de>
14252 Jeff Law <law@redhat.com>
14254 PR tree-optimization/69740
14255 * cfghooks.c (remove_edge): Request loop fixups if we delete
14256 an edge that might turn an irreducible loop into a natural
14258 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
14259 Move after definition of loops_state_clear.
14261 2016-03-07 Bin Cheng <bin.cheng@arm.com>
14263 PR rtl-optimization/69052
14264 * rtlanal.c (commutative_operand_precedence): Set higher precedence
14267 2016-03-07 Tom de Vries <tom@codesourcery.com>
14269 PR tree-optimization/70116
14270 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
14271 is_tm_ending stmts and ubsan/asan internal functions.
14272 (find_duplicate): Use it. Don't test is_tm_ending here.
14274 2016-03-07 Richard Biener <rguenther@suse.de>
14276 PR tree-optimization/70115
14277 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
14278 (propagate_constants_for_unrolling): Use replace_uses_by.
14280 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
14282 PR middle-end/69916
14283 * omp-low.c (struct oacc_loop): Add ifns.
14284 (new_oacc_loop_raw): Initialize it.
14285 (finish_oacc_loop): Clear mask & flags if no ifns.
14286 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
14287 (oacc_loop_xform_loop): Add ifns arg & adjust.
14288 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
14290 2016-03-07 Richard Henderson <rth@redhat.com>
14293 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
14294 (insert_value_copy_on_edge): Likewise.
14296 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14298 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
14300 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14303 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
14305 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
14307 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
14309 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
14311 Fix sseimul type attribute.
14312 * config/i386/znver1.md
14313 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
14314 znver1_sseimul_avx256_load) : Fix the type attribute.
14315 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
14316 pipe usage and latency.
14318 2016-03-05 Jakub Jelinek <jakub@redhat.com>
14321 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
14322 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
14325 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
14328 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
14330 PR rtl-optimization/69941
14331 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
14332 the reg share its mode.
14334 2016-03-04 Jeff Law <law@redhat.com>
14336 PR tree-optimization/69196
14337 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14338 If the both SSA_NAMEs are anonymous, then consider them unassociated
14339 and include the PHI in the statement count.
14341 2016-03-05 Tom de Vries <tom@codesourcery.com>
14343 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
14344 construct in oacc routine. Check for oacc region in oacc routine.
14346 2016-03-04 Jakub Jelinek <jakub@redhat.com>
14349 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
14350 2016-02-22 changes, instead don't recurse if RECUR is already true.
14351 Don't change *dynamic_check if RECUR. Adjust recursive caller
14352 to pass true to the new argument.
14353 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
14356 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14357 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
14359 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
14361 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
14363 PR rtl-optimization/57676
14364 * lra-assigns.c (lra_assign): Guard test for maximum iterations
14365 with flag_checking.
14367 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
14369 * tree-vect-patterns.c (search_type_for_mask): Handle
14370 comparison of booleans.
14372 2016-03-04 Jakub Jelinek <jakub@redhat.com>
14374 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
14378 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
14379 all other ops that have dw_val_class_die_ref operands,
14380 and DW_OP_GNU_entry_value.
14382 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14384 PR rtl-optimization/69904
14385 * config/arm/arm.c (arm_cannot_copy_insn_p):
14386 Return true for load-exclusive instructions.
14388 2016-03-03 Jakub Jelinek <jakub@redhat.com>
14391 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
14392 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
14393 the pattern no matter if it is used just by non-pattern, pattern
14395 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
14396 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14397 oprnd1 def_stmt is in pattern, don't look through it.
14399 2016-03-03 Marek Polacek <polacek@redhat.com>
14401 PR middle-end/70050
14402 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
14404 2016-03-03 Martin Liska <mliska@suse.cz>
14406 PR tree-optimization/70043
14407 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
14408 previous statement if we see a debug statement.
14410 2016-03-03 Richard Biener <rguenther@suse.de>
14412 PR tree-optimization/55936
14413 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
14414 parameter and guard unsafe equivalence use.
14415 (vrp_evaluate_conditional_warnv_with_ops): Always use
14416 safe equivalences but not via the quadratic compare_names
14419 2016-03-03 Michael Collison <michael.collison@linaro.org>
14422 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
14423 for operand 1 to s_register_operand. Change predicate for operand
14424 2 to arm_not_immediate_operand.
14426 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
14428 * doc/tm.texi: Regenerated.
14430 2016-03-02 Richard Henderson <rth@redhat.com>
14433 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
14434 simplification when all args are positive non-fixed registers.
14436 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14438 * target.def (lra_p): Specify that new ports should use LRA.
14440 2016-03-02 Jakub Jelinek <jakub@redhat.com>
14443 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
14444 gimplify_type_sizes the type they refer to.
14445 (omp_notice_variable): Handle reference vars to VLAs.
14446 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
14447 reference to VLA decls in the second pass instead of first pass.
14449 2016-03-02 Tom de Vries <tom@codesourcery.com>
14451 PR tree-optimization/68659
14452 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
14453 new_expr == NULL_TREE.
14454 (get_new_name): Handle ADDR_EXPR.
14456 2016-03-02 Bin Cheng <bin.cheng@arm.com>
14458 PR rtl-optimization/69052
14459 * loop-invariant.c (canonicalize_address): New function.
14460 (inv_can_prop_to_addr_use): Check validity of address expression
14461 which is canonicalized by above function.
14463 2016-03-02 Alan Modra <amodra@gmail.com>
14466 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
14469 2016-03-02 Jakub Jelinek <jakub@redhat.com>
14472 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
14473 (*movhi_internal): Put mask moves from and to memory separately
14474 from moves from/to GPRs.
14476 2016-03-02 Richard Biener <rguenther@suse.de>
14478 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
14479 GENERIC expressions in GIMPLE.
14481 2016-03-02 Richard Biener <rguenther@suse.de>
14483 * config/i386/i386.c (type_natural_mode): Fix typo.
14485 2016-03-02 Nick Clifton <nickc@redhat.com>
14487 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
14489 2016-03-02 Richard Biener <rguenther@suse.de>
14490 Uros Bizjak <ubizjak@gmail.com>
14493 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
14495 2016-03-02 Richard Biener <rguenther@suse.de>
14497 PR middle-end/67278
14498 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
14500 2016-03-02 Marek Polacek <polacek@redhat.com>
14503 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
14504 "is promoted to" warning.
14506 2016-03-01 DJ Delorie <dj@redhat.com>
14508 * config.gcc: Deprecate mep-*.
14510 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
14512 PR middle-end/70025
14513 * lra-constraints.c (regno_val_use_in): New.
14514 (match_reload): Use it instead of regno_use_in.
14516 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
14518 PR rtl-optimization/70007
14519 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
14520 references present in REG_EQUAL notes attached to non-SET patterns.
14522 2016-03-01 Jeff Law <law@redhat.com>
14524 PR tree-optimization/69196
14525 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14526 Appropriately clamp the number of statements to copy when the
14527 thread path does not traverse a loop backedge.
14529 PR tree-optimization/69196
14530 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14531 Do count some PHIs in the thread path against the insn count. Decrease
14532 final statement count by one as the control statement in the last
14533 block will get removed. Remove special cased code for handling PHIs
14536 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
14539 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
14540 asm dialect alternatives to explicit GOTPCREL calls.
14542 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
14545 * ira.c (do_reload): Issue warning for generic stack checking here...
14546 * reload1.c (reload): ...instead of here and streamline it.
14548 2016-03-01 Nick Clifton <nickc@redhat.com>
14550 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
14552 2016-03-01 Richard Biener <rguenther@suse.de>
14554 PR tree-optimization/69983
14555 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
14556 types and fall back to operand_equal_p.
14558 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14561 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14563 * config/s390/constraints.md ("jm8"): New constraint.
14564 * config/s390/predicates.md ("const_int_8bitset_operand"): New
14566 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
14568 ("*setmem_long<setmem_and>"): New pattern.
14569 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
14571 ("*setmem_long_31z<setmem_and>"): New pattern.
14572 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
14573 New substitution rules with the required attributes.
14576 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14579 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14581 * gensupport.c (process_substs_on_one_elem): Split loop to
14582 complete mark_operands_used_in_match_dup on all expressions in the
14584 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14585 and remove function.
14587 2016-03-01 Richard Biener <rguenther@suse.de>
14589 PR middle-end/70022
14590 * fold-const.c (fold_indirect_ref_1): Fix range checking for
14591 vector BIT_FIELD_REF extract.
14593 2016-03-01 Richard Biener <rguenther@suse.de>
14595 PR tree-optimization/69994
14596 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
14598 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
14600 PR tree-optimization/69956
14601 * tree-vect-stmts.c (supportable_widening_operation): Support
14602 multi-step conversion of boolean vectors.
14603 (supportable_narrowing_operation): Likewise.
14605 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14607 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
14610 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14612 * config/s390/subst.md (DSI_VI): New mode iterator.
14613 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
14614 * config/s390/vector.md ("vec_set<mode>"): Move expander before
14615 the insn definition.
14616 ("*vec_set<mode>"): Change predicate and add alternative to
14617 support only either register or const_int operands as element
14619 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
14621 ("vec_extract<mode>"): New expander.
14622 ("*vec_extract<mode>"): New insn definition supporting reg and
14623 const_int element selectors.
14624 ("*vec_extract<mode>_plus"): New insn definition supporting
14625 reg+const_int element selectors.
14626 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
14627 following expander+insn definition.
14628 ("<vec_shifts_name><mode>3"): New expander.
14629 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
14631 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14633 * config/s390/s390.md ("*tabort_1"): Change predicate to
14634 nonmemory_operand. Add a second alternative to cover
14635 register as well as const int operands.
14636 ("*tabort_1_plus"): New pattern definition.
14638 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14640 * config/s390/s390.md ("*ashrdi3_cc_31")
14641 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14642 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14643 Merge insn definitions into ...
14644 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14645 New pattern definition.
14646 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14647 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14648 ("*ashr<mode>3_and"): Merge insn definitions into ...
14649 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14650 New pattern definition.
14651 * config/s390/subst.md ("addr_style_op_cc_subst")
14652 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14653 substitutions patterns plus attributes.
14654 Add ashiftrt to SUBST iterator.
14656 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14658 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14659 op2 to nonmemory_operand.
14660 ("*<shift>di3_31", "*<shift>di3_31_and"):
14661 Merge into single pattern definition ...
14662 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14663 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14664 pattern definition ...
14665 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14666 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14669 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14671 * config/s390/predicates.md (const_int_6bitset_operand): New
14673 * config/s390/s390.md: Include subst.md.
14674 ("rotl<mode>3"): New expander.
14675 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14677 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14678 * config/s390/subst.md: New file.
14680 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14682 * config/s390/s390.md ("op_type", "atype", "length" attributes):
14683 Remove RRR type. It doesn't really exist.
14684 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14686 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14687 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14688 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14689 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14690 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14691 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14692 `enabled' attribute.
14694 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14696 * gensupport.c (process_substs_on_one_elem): Split loop to
14697 complete mark_operands_used_in_match_dup on all expressions in the
14699 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14700 and remove function.
14702 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14705 * config/sparc/sparc.c (NWORDS_UP): Rename to...
14706 (CEIL_NWORDS): ...this. Use CEIL macro.
14707 (compute_fp_layout): Adjust to above renaming.
14708 (function_arg_union_value): Likewise.
14709 (sparc_arg_partial_bytes): Likewise.
14710 (sparc_function_arg_advance): Likewise.
14712 2016-02-29 Jeff Law <law@redhat.com>
14714 PR tree-optimization/70005
14715 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14716 where an object with a boolean range is compared against a value
14719 PR tree-optimization/69999
14720 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14721 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14724 2016-02-29 Richard Biener <rguenther@suse.de>
14726 PR tree-optimization/69994
14727 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14728 (get_unary_op): Look through nop conversions.
14729 (ops_equal_values_p): New function, look for equality diregarding
14731 (eliminate_plus_minus_pair): Use ops_equal_values_p
14732 (repropagate_negates): Do not use get_unary_op here.
14734 2016-02-29 Martin Liska <mliska@suse.cz>
14736 * system.h: Poison ENABLE_CHECKING macro.
14738 2016-02-29 Martin Liska <mliska@suse.cz>
14740 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14741 is presented in dump flags.
14742 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14743 (hsa_regalloc): Likewise.
14745 2016-02-19 Richard Biener <rguenther@suse.de>
14747 PR tree-optimization/69980
14748 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14749 permutation of those we need to keep.
14751 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14754 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14755 (NWORDS_UP): ...this
14756 (init_cumulative_args): Minor tweaks.
14757 (sparc_promote_function_mode): Likewise.
14758 (scan_record_type): Delete.
14759 (traverse_record_type): New function template.
14760 (classify_data_t): New structure type.
14761 (classify_registers): New inline function.
14762 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14763 exhausted. Instantiate traverse_record_type on classify_registers and
14764 deal with the case of a structure passed in slot #15 with no FP field
14766 (assign_data_t): New structure type.
14767 (compute_int_layout): New static function.
14768 (compute_fp_layout): Likewise.
14769 (count_registers): New inline function.
14770 (assign_int_registers): New static function.
14771 (assign_fp_registers): Likewise.
14772 (assign_registers): New inline function.
14773 (function_arg_record_value_1): Delete.
14774 (function_arg_record_value_2): Likewise.
14775 (function_arg_record_value_3): Likewise.
14776 (function_arg_record_value): Adjust to above changes. Instantiate
14777 traverse_record_type on count_registers to first count the number of
14778 registers to be used and then on assign_registers to assign them.
14779 (function_arg_union_value): Adjust to above renaming.
14780 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
14781 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
14782 case of a structure passed in slot #15
14783 (sparc_function_arg_advance): Likewise.
14784 (function_arg_padding): Minor tweak.
14786 2016-02-29 Richard Biener <rguenther@suse.de>
14788 PR tree-optimization/69720
14789 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14790 the adjustment_def path for possibly vectorized defs.
14791 (vect_create_epilog_for_reduction): Handle vectorized initial
14794 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
14796 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14798 2016-02-27 Jeff Law <law@redhat.com>
14801 2016-02-26 Richard Biener <rguenther@suse.de>
14802 Jeff Law <law@redhat.com>
14804 PR tree-optimization/69740
14805 * cfghooks.c (remove_edge): Request loop fixups if we delete
14806 an edge that might turn an irreducible loop into a natural
14809 2016-02-27 Jakub Jelinek <jakub@redhat.com>
14811 PR rtl-optimization/69896
14812 * tree-vect-generic.c (get_compute_type): Avoid single element
14815 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
14817 Rename the AArch64 tuning option and related functions to enable the
14818 Newton series for the reciprocal square root to reflect its
14819 approximative characteristic.
14821 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14822 function to "aarch64_emit_approx_rsqrt".
14823 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14824 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14825 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14826 (xgene1_tunings): Likewise.
14827 (use_rsqrt_p): Likewise.
14828 (aarch64_emit_swrsqrt): Use new function name.
14829 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14830 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14831 text explaining this option.
14832 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14834 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14838 complain about -mallow-movmisalign without -mvsx if
14839 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14841 2016-02-26 Joel Sherrill <joel@rtems.org>
14843 * config.gcc: Add x86_64-*-rtems*.
14844 * config/i386/rtems-64.h: New file.
14846 2016-02-26 Joel Sherrill <joel@rtems.org>
14848 * config.gcc: Add aarch64-*-rtems*.
14849 * config/aarch64/rtems.h: New file.
14851 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
14854 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14855 shift amount using %h. Add comment.
14857 2016-02-26 Richard Biener <rguenther@suse.de>
14858 Jeff Law <law@redhat.com>
14860 PR tree-optimization/69740
14861 * cfghooks.c (remove_edge): Request loop fixups if we delete
14862 an edge that might turn an irreducible loop into a natural
14865 2016-02-26 Martin Jambor <mjambor@suse.cz>
14867 PR middle-end/69920
14868 * tree-sra.c (sra_modify_assign): Do not remove loads of
14869 uninitialized aggregates to SSA_NAMEs.
14871 2016-02-26 Richard Henderson <rth@redhat.com>
14874 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14875 pseudo in case the target rtx matches the source of the left
14878 2016-02-26 Martin Jambor <mjambor@suse.cz>
14881 * hsa.h (hsa_type_packed_p): Declare.
14882 * hsa.c (hsa_type_packed_p): New function.
14883 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14885 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14886 * hsa-brig.c (emit_basic_insn): Likewise.
14888 2016-02-26 Martin Jambor <mjambor@suse.cz>
14891 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14893 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14895 2016-02-26 Martin Jambor <mjambor@suse.cz>
14897 * hsa.h (is_a_helper): New overload for hsa_op_immed for
14898 hsa_op_with_type operands.
14899 (hsa_unsigned_type_for_type): Declare.
14900 * hsa.c (hsa_unsigned_type_for_type): New function.
14901 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14902 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14903 the finalizer. Do not emit extra move.
14905 2016-02-26 Martin Jambor <mjambor@suse.cz>
14907 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14908 atomic operations in private segment.
14910 2016-02-26 Martin Jambor <mjambor@suse.cz>
14912 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14913 statements to wi->info. Also disallow omp simd constructs.
14914 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14915 for not gridifying. Dump special string for omp_for.
14917 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14920 * config/aarch64/aarch64.c (aarch64_set_current_function):
14921 Save/restore target globals when switching to
14922 target_option_default_node.
14924 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14927 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14928 Return 0 if !SHIFT_COUNT_TRUNCATED.
14930 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14931 Eric Botcazou <ebotcazou@adacore.com>
14933 PR rtl-optimization/69891
14934 * dse.c (scan_insn): If we can't figure out memset arguments
14935 or they are non-constant, call clear_rhs_from_active_local_stores.
14937 2016-02-26 Martin Liska <mliska@suse.cz>
14939 * doc/extend.texi: Mention clog10, clog10f an clog10l
14940 in Builtins section.
14942 2016-02-26 Martin Liska <mliska@suse.cz>
14944 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14946 (resolve_args_picking_1): Likewise.
14947 * dwarf2out.h (struct GTY): Likewise.
14949 2016-02-26 Martin Liska <mliska@suse.cz>
14951 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14952 with flag_checking.
14953 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14955 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14956 Martin Liska <mliska@suse.cz>
14958 * doc/install.texi: Mention --enable-valgrind-annotations.
14960 2016-02-26 Richard Biener <rguenther@suse.de>
14962 PR tree-optimization/69551
14963 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14964 looking through aliases adjust DECL_PT_UID to refer to the
14965 ultimate alias target.
14967 2016-02-25 Martin Liska <mliska@suse.cz>
14969 PR middle-end/69919
14970 * alloc-pool.c (after_memory_report): New variable.
14971 * alloc-pool.h (base_pool_allocator ::release): Do not use
14972 the infrastructure if after_memory_report.
14973 * toplev.c (toplev::main): Mark after memory report.
14975 2016-02-25 Richard Biener <rguenther@suse.de>
14977 PR tree-optimization/48795
14978 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14980 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
14983 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
14984 offloading is enabled and -fopenacc or -fopenmp is specified.
14985 (CRTOFFLOADEND): Likewise.
14986 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14987 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14988 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14989 (offload_objects_file_name): New static var.
14990 (tool_cleanup): Remove offload_objects_file_name file.
14991 (find_offloadbeginend): Replace with ...
14992 (find_crtoffloadtable): ... this.
14993 (run_gcc): Remove offload_argc and offload_argv.
14994 Get offload_objects_file_name from -foffload-objects=... option.
14995 Read names of object files with offload from this file, pass them to
14996 compile_images_for_offload_targets. Don't call find_offloadbeginend and
14997 don't pass offloadbegin and offloadend to the linker. Don't pass
14998 offload non-LTO files to the linker, because now they're not claimed.
15000 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
15003 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
15004 on builtin_unreachable.
15006 2016-02-25 Jakub Jelinek <jakub@redhat.com>
15008 PR rtl-optimization/69896
15009 * regcprop.c: Include cfgrtl.h.
15010 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
15011 than remembered mode, either delete it (if noop_move_p), or
15012 treat like copy_p but not noop_p instruction.
15014 2016-02-24 Jakub Jelinek <jakub@redhat.com>
15017 * dwarf2out.c (gen_variable_die): Work around buggy LTO
15018 - allow NULL decl for Fortran DW_TAG_common_block variables.
15020 2016-02-24 Jason Merrill <jason@redhat.com>
15022 * common.opt (flifetime-dse): Add -flifetime-dse=1.
15024 2016-02-24 Richard Biener <rguenther@suse.de>
15025 Jakub Jelinek <jakub@redhat.com>
15027 PR middle-end/69760
15028 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
15029 conditionally executed ops to well-defined overflow behavior.
15031 2016-02-24 Jakub Jelinek <jakub@redhat.com>
15033 PR middle-end/69915
15034 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
15037 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15039 PR rtl-optimization/69886
15040 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
15041 argument. Use it when checking validity of set instructions.
15042 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
15043 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
15045 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
15046 * store-motion.c (find_moveable_store): Update
15047 can_assign_to_reg_without_clobbers_p callsite.
15049 2016-02-24 Richard Biener <rguenther@suse.de>
15051 PR middle-end/68963
15052 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
15054 (record_nonwrapping_iv): Do not fall back to the low/high bound
15055 for non-constant IV bases if the stmt is not always executed.
15057 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15059 * config/arm/arm-cores.def (cortex-a32): New entry.
15060 * config/arm/arm-tables.opt: Regenerate.
15061 * config/arm/arm-tune.md: Regenerate.
15062 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
15063 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
15064 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
15065 for -mcpu and -mtune.
15067 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15070 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
15071 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
15072 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
15073 (atomic_loaddi_1): Delete.
15074 (atomic_loaddi): Rewrite expander using the above changes.
15076 2016-02-24 Jakub Jelinek <jakub@redhat.com>
15079 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
15082 2016-02-24 Jakub Jelinek <jakub@redhat.com>
15083 Richard Biener <rguenth@suse.de>
15085 PR middle-end/69909
15086 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
15087 set_mem_attributes if tem is SSA_NAME which got expanded
15090 2016-02-24 Richard Biener <rguenther@suse.de>
15092 PR tree-optimization/69907
15093 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
15094 end of permutations for BB vectorization.
15096 2016-02-24 Christian Bruel <christian.bruel@st.com>
15098 * config/arm/arm-c.c (arm_option_override): Initialize
15099 target_option_current_node.
15100 * config/arm/arm.c (arm_pragma_target_parse): Replace
15101 build_target_option_node call by target_option_current_node.
15102 Set target_option_current_node.
15105 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
15108 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
15109 define_insn_and_split to define_insn.
15110 (zero_extendqi<mode>2_dot2): Same.
15111 (extendqi<mode>2_dot): Same.
15112 (extendqi<mode>2_dot2): Same.
15114 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
15116 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
15117 and add bypass for AES{D,E} and AESMC pairs.
15118 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
15121 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
15123 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
15124 series for reciprocal square root in Exynos M1.
15126 2016-02-23 Martin Sebor <msebor@redhat.com>
15129 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
15130 __builtin_alloca_with_align.
15132 2016-02-23 Richard Henderson <rth@redhat.com>
15134 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
15135 (ix86_register_pragmas): Remove __seg_tls.
15136 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
15137 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
15138 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
15139 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
15140 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
15141 * doc/extend.texi (__seg_tls): Remove item.
15143 2016-02-23 Richard Biener <rguenther@suse.de>
15145 * alloc-pool.h (struct allocation_object): Make id member
15146 conditional on CHECKING_P again.
15147 (get_instance): Adjust.
15148 (base_pool_allocator): Likewise.
15150 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
15152 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
15153 (parallelize_loops): In OpenACC kernels mode, set n_threads to
15155 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
15157 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
15159 2016-02-23 Richard Biener <rguenther@suse.de>
15161 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
15162 * bitmap.h (struct bitmap_usage): Likewise.
15163 (bitmap_move): Declare.
15164 * bitmap.c (register_overhead): Take size_t argument.
15165 (bitmap_move): New function.
15166 * df-problems.c (df_rd_transfer_function): Use bitmap_move
15167 to properly account overhead.
15168 * tree.c (free_node): Use tree_size.
15170 2016-02-23 Jakub Jelinek <jakub@redhat.com>
15173 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
15174 when inverting comparison.
15177 * common.opt (Wunreachable-code): Add Warning flag.
15179 2016-02-23 Mark Wielaard <mjw@redhat.com>
15180 Jakub Jelinek <jakub@redhat.com>
15183 * cgraphunit.c (check_global_declaration): Check main_input_filename
15184 and DECL_SOURCE_FILE are not NULL.
15186 2016-02-23 Martin Jambor <mjambor@suse.cz>
15188 PR tree-optimization/69666
15189 * tree-sra.c (sra_modify_assign): Do not attempt to create
15190 default_def replacements for unscalarizable regions.
15192 2016-02-20 Mark Wielaard <mjw@redhat.com>
15195 * cgraphunit.c (check_global_declaration): Check level of
15196 warn_unused_const_variable and main_input_filename.
15197 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
15198 (-Wunused-variable): For C implies -Wunused-const-variable=1.
15199 (-Wunused-const-variable): Explain levels 1 and 2.
15201 2016-02-22 Jakub Jelinek <jakub@redhat.com>
15204 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
15205 identical arguments. Formatting and spelling fixes.
15208 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
15213 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
15214 and m68k-devices.def.
15215 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
15216 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
15218 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
15220 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
15221 and HImode registers.
15223 2016-02-22 Richard Biener <rguenther@suse.de>
15225 PR tree-optimization/69882
15226 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
15227 preserve permutations present because of gaps.
15228 (vect_supported_load_permutation_p): Always continue checking
15229 permutations after vect_attempt_slp_rearrange_stmts.
15231 2016-02-22 Bin Cheng <bin.cheng@arm.com>
15233 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
15234 min_profitable_estimate, rather than min_profitable_iters.
15236 2016-02-22 Jakub Jelinek <jakub@redhat.com>
15239 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
15240 SImode for last match_operand.
15242 2016-02-22 Martin Liska <mliska@suse.cz>
15244 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
15245 return bitsize - 1 as the return value.
15247 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
15251 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
15252 Handle negative shift counts.
15253 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
15254 force_reg on the shift constant.
15255 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
15256 (lshrsi3_d): Handle negative shift counts.
15258 2016-02-22 Richard Biener <rguenther@suse.de>
15259 Tom de Vries <tom@codesourcery.com>
15261 * graph.c: Include dumpfile.h.
15262 (print_graph_cfg): Split into three overloads.
15263 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
15265 2016-02-22 Tom de Vries <tom@codesourcery.com>
15267 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
15270 2016-02-22 Richard Biener <rguenther@suse.de>
15273 * ipa-inline-transform.c (inline_call): When not updating
15274 overall summaries adjust self size by the growth estimate.
15275 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
15276 hash-set, do not update overall summaries here. Renamed from ...
15277 (inline_to_all_callers): ... this which is now wrapping the
15278 above and performing delayed overall summary update.
15279 (early_inline_small_functions): Delay updating of the overall
15282 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
15284 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
15287 2016-02-19 Jakub Jelinek <jakub@redhat.com>
15290 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
15291 :%* in %:gt() argument.
15292 (greater_than_spec_func): Adjust for expecting only numbers,
15293 if there are more than two numbers, compare the last two.
15295 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
15297 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
15298 -Wnarrowing with -std.
15300 2016-02-19 Jakub Jelinek <jakub@redhat.com>
15303 * expr.c (store_field): Don't use bit-field path if exp is
15304 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
15305 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
15306 and the assignment can be performed by bitwise copy. Formatting
15309 PR middle-end/69838
15310 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
15311 call copy_reg_eh_region_note_forward on before and/or after sequences
15312 and remove note from insn if it no longer can throw.
15315 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
15316 if TARGET_AVX512BW.
15318 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15320 * config/s390/vector.md: Add missing commutative operand markers
15321 to the patterns which qualify for one.
15322 * config/s390/vx-builtins.md: Likewise.
15324 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15326 * config/s390/vector.md (VI, VI_QHS): Add single element vector
15327 types to mode iterators.
15328 (vec_double): ... and mode attribute.
15329 * config/s390/vx-builtins.md (non_vec_int): Likewise.
15331 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15333 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
15334 Change the predicate of op2 from nonimmediate to general and let
15335 reload fix it if necessary.
15337 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15339 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
15341 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15343 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
15346 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15348 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
15349 * config/s390/s390.c (s390_expand_vec_movstr): New function.
15350 * config/s390/s390.md ("movstr<P:mode>"): Call
15351 s390_expand_vec_movstr.
15353 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15355 * config/s390/s390.md: Add missing output modifier for operand 1
15356 to print it as address properly.
15358 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15360 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
15361 * config/s390/2964.md: New file.
15362 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
15363 of insn grouping attributes depending on the CPU level.
15364 (s390_get_unit_mask): New function.
15365 (s390_sched_score): Remove the OOO from the scheduling macros.
15366 Add loop to calculate a score for the instruction mix.
15367 (s390_sched_reorder): Likewise plus improve debug output.
15368 (s390_sched_variable_issue): Rename macros as above. Calculate
15369 the unit distances after actually scheduling an insn. Improve
15371 (s390_sched_init): Clear last_scheduled_unit_distance array.
15372 * config/s390/s390.md: Include 2964.md.
15374 2016-02-18 Jakub Jelinek <jakub@redhat.com>
15377 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
15378 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
15379 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
15380 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
15381 *avx512f_<code>v8div16qi2_mask_1): New insns.
15383 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15386 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
15389 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
15390 earlyclobber from target. Use wF constraint for fused memory
15392 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
15394 2016-02-18 Jakub Jelinek <jakub@redhat.com>
15395 Martin Liska <mliska@suse.cz>
15398 * cfgexpand.c (asan_sanitize_stack_p): New function.
15399 (partition_stack_vars): Use the function.
15400 (expand_stack_vars): Likewise.
15401 (defer_stack_allocation): Likewise.
15402 (expand_used_vars): Likewise.
15404 2016-02-18 Richard Biener <rguenther@suse.de>
15406 PR middle-end/69553
15407 * fold-const.c (operand_equal_p): Properly compare offsets for
15408 IMAGPART_EXPR and ARRAY_REF.
15410 2016-02-18 Nick Clifton <nickc@redhat.com>
15414 * config/arm/arm.c (arm_option_override_internal): Disable
15415 interworking if the target does not support thumb instructions.
15416 (arm_reload_in_hi): Handle the case where a register to register
15417 move needs reloading because there is no simple pattern to handle
15419 (arm_reload_out_hi): Likewise.
15421 2016-02-18 Richard Biener <rguenther@suse.de>
15423 PR middle-end/69854
15424 * match.pd: Don't use fold_binary or fold_unary for folding
15427 2016-02-17 Jakub Jelinek <jakub@redhat.com>
15430 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
15431 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
15432 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
15433 warn on gimple_no_warning_p statements.
15435 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
15437 * doc/extend.texi (C++ Attributes): Correct description of
15438 warn_unused type attribute.
15440 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15442 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
15443 correct instruction.
15445 2016-02-17 Richard Biener <rguenther@suse.de>
15447 PR rtl-optimization/69609
15448 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
15449 (find_traces_1_round): When ending a trace update cached priority
15451 (bb_to_key): Use cached priority when available.
15452 (copy_bb): Initialize cached priority.
15453 (reorder_basic_blocks_software_trace_cache): Likewise.
15455 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15458 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
15460 (aarch64_comparison_operator): Break overly long line into two.
15461 (aarch64_comparison_operation): Likewise.
15462 * config/aarch64/aarch64.md (cstorecc4): Use
15463 aarch64_comparison_operator_mode instead of
15464 aarch64_comparison_operator.
15465 (cstore<mode>4): Likewise.
15466 (aarch64_cstore<mode>): Likewise.
15467 (*cstoresi_insn_uxtw): Likewise.
15468 (cstore<mode>_neg): Likewise.
15469 (*cstoresi_neg_uxtw): Likewise.
15471 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15474 * config/arm/predicates.md (arm_comparison_operator_mode):
15476 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
15477 instead of arm_comparison_operator.
15478 (*mov_negscc): Likewise.
15479 (*mov_notscc): Likewise.
15480 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
15481 (*thumb2_mov_negscc): Likewise.
15482 (*thumb2_mov_negscc_strict_it): Likewise.
15483 (*thumb2_mov_notscc): Likewise.
15484 (*thumb2_mov_notscc_strict_it): Likewise.
15486 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
15488 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
15489 Add missing return.
15491 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
15493 * config/visium/visium.c (machine_libfunc_index): New enum.
15494 (machine_libfuncs): New structure.
15495 (visium_libfuncs): New static variable.
15496 (TARGET_INIT_LIBFUNCS): Define to...
15497 (visium_init_libfuncs): ...this. New function.
15498 (expand_block_move_4): Use the appropriate libfunc.
15499 (expand_block_move_2): Likewise.
15500 (expand_block_move_1): Likewise.
15501 (expand_block_set_4): Likewise.
15502 (expand_block_set_2): Likewise.
15503 (expand_block_set_1): Likewise.
15504 (visium_trampoline_init): Likewise.
15506 2016-02-17 Nick Clifton <nickc@redhat.com>
15508 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
15509 TI's devices.csv file as of March 2016.
15511 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
15514 * opts-global.c (handle_common_deferred_options): Introduce and
15515 initialize two global variables to remember command-line options
15516 specifying a stack-limiting register.
15517 * opts.h: Add extern declarations of the two new global variables.
15518 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
15519 variable based on the values of the two new global variables.
15521 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15524 * common.opt (Wnonnull-compare): New warning.
15525 * doc/invoke.texi (-Wnonnull): Remove text about comparison
15526 of arguments against NULL.
15527 (-Wnonnull-compare): Document.
15528 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
15529 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
15530 * passes.def (pass_warn_nonnull_compare): Add.
15531 * gimple-ssa-nonnull-compare.c: New file.
15533 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15535 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
15536 AARCH64_EXTRA_TUNE_RECIP_SQRT.
15538 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15540 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
15541 reciprocal sqrt for -mlow-precision-recip-sqrt.
15543 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15544 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15546 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
15547 always use lane loads to construct non-constant vectors.
15549 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15551 * config/aarch64/aarch64.md
15552 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
15553 constraints for operand 3.
15554 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
15556 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15557 Richard Biener <rguenther@suse.de>
15559 PR tree-optimization/69820
15560 * tree-vect-patterns.c (type_conversion_p): Return false if
15561 *orig_type is unsigned single precision or boolean.
15562 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
15565 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15567 PR rtl-optimization/69764
15568 PR rtl-optimization/69771
15569 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
15570 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
15572 2016-02-16 Richard Biener <rguenther@suse.de>
15574 PR tree-optimization/69776
15575 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
15577 (indirect_refs_may_alias_p): Likewise.
15578 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
15579 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
15580 according to tbaa_p.
15581 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
15582 (optimize_stmt): For redundant store discovery do not allow tbaa.
15584 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
15586 PR tree-optimization/69714
15587 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
15588 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
15590 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
15592 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
15593 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
15594 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
15595 * config/arc/arc.c (arc_init): Check FPU options.
15596 (get_arc_condition_code): Handle new CC_FPU* modes.
15597 (arc_select_cc_mode): Likewise.
15598 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
15599 register pair only. Allow access for ARCv2 accumulator.
15600 (gen_compare_reg): Whenever we have FPU support use FPU compare
15602 (arc_reorg): Don't generate brcc insns when FPU compare
15603 instructions are involved.
15604 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
15605 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
15606 floating point emulation.
15607 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
15608 (REVERSE_CONDITION): Add new CC_FPU* modes.
15609 (TARGET_FP_SP_BASE): Define.
15610 (TARGET_FP_DP_BASE): Likewise.
15611 (TARGET_FP_SP_FUSED): Likewise.
15612 (TARGET_FP_DP_FUSED): Likewise.
15613 (TARGET_FP_SP_CONV): Likewise.
15614 (TARGET_FP_DP_CONV): Likewise.
15615 (TARGET_FP_SP_SQRT): Likewise.
15616 (TARGET_FP_DP_SQRT): Likewise.
15617 (TARGET_FP_DP_AX): Likewise.
15618 * config/arc/arc.md (ARCV2_ACC): New constant.
15619 (type): New fpu type attribute.
15620 (SDF): Conditional iterator.
15621 (cstore<mode>, cbranch<mode>): Change expand condition.
15622 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
15623 handles FPU/FPX cases as well.
15624 * config/arc/arc.opt (mfpu): New option.
15625 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
15627 (adddf3, muldf3, subdf3): Removed.
15628 * config/arc/predicates.md (proper_comparison_operator): Recognize
15630 * config/arc/fpu.md: New file.
15631 * doc/invoke.texi (ARC Options): Document mfpu option.
15633 2016-02-16 Richard Biener <rguenther@suse.de>
15635 PR rtl-optimization/69291
15636 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15637 noce_operand_ok check.
15639 2016-02-16 Tom de Vries <tom@codesourcery.com>
15642 * omp-low.c (simd_clone_create): Remove call to
15643 symtab->call_cgraph_insertion_hooks.
15645 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15647 PR tree-optimization/69802
15648 * tree-ssa-reassoc.c (update_range_test): If op is
15649 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15650 op == 1 test of precision 1 integral op, otherwise handle
15651 that case as op itself. Fix up formatting.
15652 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15655 2016-02-16 Richard Biener <rguenther@suse.de>
15657 PR tree-optimization/69586
15658 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15659 types for conversion sources.
15661 2016-02-16 Richard Biener <rguenther@suse.de>
15663 PR middle-end/69801
15664 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15665 mask OEP_ADDRESS_OF.
15667 2016-02-16 Alan Modra <amodra@gmail.com>
15670 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15671 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15672 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15674 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15675 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15676 (p8_fmrgow_<mode>): Likewise.
15677 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
15679 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15680 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15681 to use movdi_internal64. Remove op0_di.
15682 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15684 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
15686 Add support for the FCCMP insn types
15688 * config/aarch64/aarch64.md (fccmp): Change insn type.
15689 (fccmpe): Likewise.
15690 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15691 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15692 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15693 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15694 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15695 * config/arm/types.md (fccmps): Add new insn type.
15696 (fccmpd): Likewise.
15698 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15700 * alias.c (get_alias_set): Fix a typo in comment.
15702 2016-02-15 Richard Biener <rguenther@suse.de>
15704 PR tree-optimization/69595
15705 * match.pd: Complete range test simplification to true.
15707 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
15709 PR rtl-optimization/69648
15710 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15711 pic_offset_table_rtx.
15713 PR rtl-optimization/69752
15714 * ira.c (update_equiv_regs): When looking for more than a single SET,
15715 also take other side effects into account.
15717 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15719 * config/s390/s390.c (s390_function_profiler): Add a new sequence
15720 for z900+ CPUs in 31-bit mode.
15722 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15724 * common/config/s390/s390-common.c (s390_supports_split_stack):
15726 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15727 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15728 * config/s390/s390.c (struct machine_function): New field
15729 split_stack_varargs_pointer.
15730 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15731 in s390_emit_prologue.
15732 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15734 (morestack_ref): New global.
15735 (SPLIT_STACK_AVAILABLE): New macro.
15736 (s390_expand_split_stack_prologue): New function.
15737 (s390_live_on_entry): New function.
15738 (s390_va_start): Use split-stack vararg pointer if appropriate.
15739 (s390_asm_file_end): Emit the split-stack note sections.
15740 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15741 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15742 (UNSPECV_SPLIT_STACK_CALL): New unspec.
15743 (UNSPECV_SPLIT_STACK_DATA): New unspec.
15744 (split_stack_prologue): New expand.
15745 (split_stack_space_check): New expand.
15746 (split_stack_data): New insn.
15747 (split_stack_call): New expand.
15748 (split_stack_call_*): New insn.
15749 (split_stack_cond_call): New expand.
15750 (split_stack_cond_call_*): New insn.
15752 2016-02-15 Richard Biener <rguenther@suse.de>
15754 PR tree-optimization/69783
15755 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15756 Add trivially correct cases.
15758 2016-02-15 Tom de Vries <tom@codesourcery.com>
15761 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15763 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15765 2016-02-15 Richard Biener <rguenther@suse.de>
15767 PR tree-optimization/69776
15768 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15769 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15770 indicate whether we can use TBAA to disambiguate against stores.
15771 Use alias-set zero if not.
15772 (visit_reference_op_store): Do not use TBAA when looking up
15774 * tree-ssa-pre.c (compute_avail): Use TBAA here.
15775 (eliminate_dom_walker::before_dom_children): But not when looking
15776 up redundant stores.
15778 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
15780 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15782 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15784 * config/i386/znver1.md
15785 (znver1_pop, znver1_pop_mem,
15786 znver1_load_imov_double_store,
15787 znver1_load_imov_direct_store,
15788 znver1_load_imov_direct_load,
15789 znver1_load_imov_double_load): Add new.
15790 (znver1_insn, znver1_insn_load): Add icmov type.
15791 (znver1_sseavx_fma,
15792 znver1_sseavx_fma_load,
15794 znver1_avx256_fma_load): Fix pipe usage.
15796 2016-02-14 Alan Modra <amodra@gmail.com>
15799 * reload.c (find_reloads_address_1): For pre/post-inc/dec
15800 with an invalid hard reg, reload just the reg not the entire
15801 pre/post-inc/dec address expression.
15803 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15806 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15807 fixed R1_REG scratch reg.
15808 (sibcall_value_pcrel_fdpic): Likewise.
15810 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15814 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15816 2016-02-12 Walter Lee <walt@tilera.com>
15818 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15819 * config/tilegx/t-tilegx: Likewise.
15821 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15824 * diagnostic-show-locus.c (struct line_span): New struct.
15825 (layout::get_first_line): Delete.
15826 (layout::get_last_line): Delete.
15827 (layout::get_num_line_spans): New member function.
15828 (layout::get_line_span): Likewise.
15829 (layout::print_heading_for_line_span_index_p): Likewise.
15830 (layout::get_expanded_location): Likewise.
15831 (layout::calculate_line_spans): Likewise.
15832 (layout::m_first_line): Delete.
15833 (layout::m_last_line): Delete.
15834 (layout::m_line_spans): New field.
15835 (layout::layout): Update comment. Replace m_first_line and
15836 m_last_line with m_line_spans, replacing their initialization
15837 with a call to calculate_line_spans.
15838 (diagnostic_show_locus): When printing source lines and
15839 annotations, rather than looping over a single span
15840 of lines, instead loop over each line_span within
15841 the layout, with an inner loop over the lines within them.
15842 Call the context's start_span callback when changing line spans.
15843 * diagnostic.c (diagnostic_initialize): Initialize start_span.
15844 (diagnostic_build_prefix): Break out the building of the location
15845 part of the string into...
15846 (diagnostic_get_location_text): ...this new function, rewriting
15847 it from nested ternary expressions to a sequence of "if"
15849 (default_diagnostic_start_span_fn): New function.
15850 * diagnostic.h (diagnostic_start_span_fn): New typedef.
15851 (diagnostic_context::start_span): New field.
15852 (default_diagnostic_start_span_fn): New prototype.
15854 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15857 * gcc.c (driver::finalize): Fix cleanup of "specs".
15859 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15863 * gcc.c (driver::driver): Initialize m_option_suggestions.
15864 (driver::~driver): Clean up m_option_suggestions.
15865 (suggest_option): Convert to...
15866 (driver::suggest_option): ...this, and split out into
15867 driver::build_option_suggestions and find_closest_string.
15868 (driver::build_option_suggestions): New function, from
15869 first half of suggest_option. Special-case
15870 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15871 the sanitizer_opts array. For options of enum types, add the
15872 various enum values to the candidate strings.
15873 (driver::handle_unrecognized_options): Remove "const".
15874 * gcc.h (driver::handle_unrecognized_options): Likewise.
15875 (driver::build_option_suggestions): New decl.
15876 (driver::suggest_option): New decl.
15877 (driver::m_option_suggestions): New field.
15878 * opts-common.c (add_misspelling_candidates): New function.
15879 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15880 and make non-static.
15881 * opts.h (sanitizer_opts): New array decl.
15882 (add_misspelling_candidates): New function decl.
15883 * spellcheck.c (find_closest_string): New function.
15884 * spellcheck.h (find_closest_string): New function decl.
15886 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15888 PR rtl-optimization/69764
15889 PR rtl-optimization/69771
15890 * optabs.c (expand_binop_directly): For shift_optab_p, force
15891 convert_modes with VOIDmode if xop1 has VOIDmode.
15893 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
15896 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15897 to correctly determine instrumentation thunks.
15899 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15902 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15903 type by reference, force lhs on the call.
15906 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15907 Compute retval and retbnd early in all cases if split_part_return_p
15908 and return_bb is not EXIT. Remove all clobber stmts and reset
15909 all debug stmts that refer to SSA_NAMEs defined in split part,
15910 except if it is retval, in that case replace the old retval with the
15911 lhs of the call to the split part.
15913 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15916 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15918 PR middle-end/66726
15919 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15920 whose result is used in PHI.
15921 (maybe_optimize_range_tests): Likewise.
15922 (final_range_test_p): Likweise.
15924 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15926 PR middle-end/66726
15927 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15928 whose result is used in PHI.
15929 (maybe_optimize_range_tests): Likewise.
15930 (final_range_test_p): Likweise.
15932 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15934 * cgraph.c: Spelling fixes - behaviour -> behavior and
15935 neighbour -> neighbor.
15936 * target.def: Likewise.
15937 * sel-sched.c: Likewise.
15938 * config/mips/mips.c: Likewise.
15939 * config/arc/arc.md: Likewise.
15940 * config/arm/cortex-a57.md: Likewise.
15941 * config/arm/arm.c: Likewise.
15942 * config/arm/neon.md: Likewise.
15943 * config/arm/arm-c.c: Likewise.
15944 * config/vms/vms-c.c: Likewise.
15945 * config/s390/s390.c: Likewise.
15946 * config/i386/znver1.md: Likewise.
15947 * config/i386/i386.c: Likewise.
15948 * config/ia64/hpux-unix2003.h: Likewise.
15949 * config/msp430/msp430.md: Likewise.
15950 * config/rx/rx.c: Likewise.
15951 * config/rx/rx.md: Likewise.
15952 * config/aarch64/aarch64-simd.md: Likewise.
15953 * config/aarch64/aarch64.c: Likewise.
15954 * config/nvptx/nvptx.c: Likewise.
15955 * config/bfin/bfin.c: Likewise.
15956 * config/cris/cris.opt: Likewise.
15957 * config/rs6000/rs6000.c: Likewise.
15958 * target.h: Likewise.
15959 * spellcheck.c: Likewise.
15960 * ira-build.c: Likewise.
15961 * tree-inline.c: Likewise.
15962 * builtins.c: Likewise.
15963 * lra-constraints.c: Likewise.
15964 * explow.c: Likewise.
15965 * hwint.h: Likewise.
15966 * targhooks.c: Likewise.
15967 * tree-vect-data-refs.c: Likewise.
15968 * expr.c: Likewise.
15969 * doc/tm.texi: Likewise.
15970 * doc/extend.texi: Likewise.
15971 * doc/install.texi: Likewise.
15972 * doc/md.texi: Likewise.
15973 * tree-ssa-tail-merge.c: Likewise.
15974 * sched-int.h: Likewise.
15975 * match.pd: Likewise.
15976 * sched-ebb.c: Likewise.
15977 * target.def (omit_struct_return_reg): Likewise.
15978 * gimple-ssa-isolate-paths.c: Likewise.
15979 (find_implicit_erroneous_behaviour): Renamed to...
15980 (find_implicit_erroneous_behavior): ... this.
15981 (find_explicit_erroneous_behaviour): Renamed to...
15982 (find_explicit_erroneous_behavior): ... this.
15983 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15985 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
15987 PR rtl-optimization/64682
15988 PR rtl-optimization/69567
15989 PR rtl-optimization/69737
15990 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15991 in I2 as well, just lose it.
15993 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15995 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15997 (aarch64_last_printed_tune_string): Likewise.
15998 (aarch64_declare_function_name): Only output .arch assembler
15999 directive if it will be different from the previously output
16000 directive. Same for .tune comment but only if -dA is set.
16001 (aarch64_start_file): New function.
16002 (TARGET_ASM_FILE_START): Define.
16004 2016-02-11 David Malcolm <dmalcolm@redhat.com>
16007 * Makefile.in (PLUGIN_HEADERS): Add params.list.
16009 2016-02-11 Jakub Jelinek <jakub@redhat.com>
16012 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
16013 -Wmaybe-uninitialized warning.
16015 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
16018 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
16020 2016-02-11 Richard Biener <rguenther@suse.de>
16022 PR rtl-optimization/69291
16023 * ifcvt.c (noce_try_store_flag_constants): Do not allow
16024 subexpressions affected by changing the result.
16026 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
16029 * lra-constraints.c (curr_insn_transform): Find in/out operands
16030 for secondary memory moves. Update dups.
16032 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
16034 PR tree-optimization/69652
16035 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
16036 to nested loop, did source re-formatting, skip debug statements,
16037 add check on statement with volatile operand, remove dead scalar
16040 2016-02-10 Jakub Jelinek <jakub@redhat.com>
16041 Patrick Palka <ppalka@gcc.gnu.org>
16045 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
16046 calls if the return type is TREE_ADDRESSABLE.
16047 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
16048 * ipa-split.c (split_function): Fix doubled "we" in comment.
16049 Use void return type for the split part even if
16050 !split_point->split_part_set_retval.
16052 2016-02-10 Bin Cheng <bin.cheng@arm.com>
16054 PR tree-optimization/68021
16055 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
16056 when computing the value of biv cand by itself.
16058 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16060 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
16061 (cortexa57_tunings): Likewise.
16062 (cortexa72_tunings): Likewise.
16063 (arch_macro_fusion_pair_p): Add support for AES fusion.
16064 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
16065 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
16066 Allow virtual registers before reload so early scheduling works.
16067 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
16068 correct latency and pipeline.
16069 (cortex_a57_crypto_complex): Likewise.
16070 (cortex_a57_crypto_xor): Likewise.
16071 (define_bypass): Add AES bypass.
16073 2016-02-10 Richard Biener <rguenther@suse.de>
16075 PR tree-optimization/69726
16076 * passes.def: Add DCE pass before late uninit.
16077 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
16078 really fixup if-conversions job.
16080 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16082 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
16083 (arm_cortex_a57_tune): Likewise.
16084 (aarch_macro_fusion_pair_p): Add support for AES fusion.
16085 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
16087 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
16089 * timevar.def (TV_PHASE_DBGINFO): Delete.
16090 (TV_PHASE_CHECK_DBGINFO): Likewise.
16091 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
16093 2016-02-10 Richard Biener <rguenther@suse.de>
16095 PR tree-optimization/69719
16096 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16097 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
16099 2016-02-09 Andrew Pinski <apinski@cavium.com>
16102 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
16103 get_vcond_mask_icode returns false.
16105 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16108 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
16109 an ADDIS that adds a pointer to a large constant that sets the
16110 upper16 bits with a load operation.
16112 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
16115 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
16117 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
16119 (vzipq_s16): Likewise.
16120 (vzipq_s32): Likewise.
16121 (vzipq_f32): Likewise.
16122 (vzipq_u8): Likewise.
16123 (vzipq_u16): Likewise.
16124 (vzipq_u32): Likewise.
16125 (vzipq_p8): Likewise.
16126 (vzipq_p16): Likewise.
16128 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
16131 * config/arm/arm.c (neon_endian_lane_map): New function.
16132 (neon_vector_pair_endian_lane_map): New function.
16133 (arm_evpc_neon_vuzp): Allow for big endian lane order.
16134 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
16136 (vuzpq_s16): Likewise.
16137 (vuzpq_s32): Likewise.
16138 (vuzpq_f32): Likewise.
16139 (vuzpq_u8): Likewise.
16140 (vuzpq_u16): Likewise.
16141 (vuzpq_u32): Likewise.
16142 (vuzpq_p8): Likewise.
16143 (vuzpq_p16): Likewise.
16145 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
16148 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
16151 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
16153 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
16154 truncate const_int operand 1 to QImode.
16156 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
16158 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
16159 corresponding to an abnormal edge.
16161 2016-02-09 Tom de Vries <tom@codesourcery.com>
16163 PR tree-optimization/69599
16164 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
16166 (find_func_aliases_for_builtin_call, find_func_clobbers)
16167 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
16170 2016-02-09 Richard Biener <rguenther@suse.de>
16172 PR tree-optimization/69715
16173 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
16174 LHS on calls as non-rewritable.
16176 2016-02-09 Tom de Vries <tom@codesourcery.com>
16179 * lto-wrapper.c (append_diag_options): New function.
16180 (compile_offload_image): Call append_diag_options.
16182 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
16185 * doc/extend.texi (Flag Output Operands): Correct sectioning.
16186 Minor copy-edit to fix verb tenses.
16188 2016-02-08 Jakub Jelinek <jakub@redhat.com>
16190 PR tree-optimization/69209
16191 * ipa-split.c (split_function): If split part is not
16192 returning retval, retval has gimple type but is not
16193 gimple value, force it into a SSA_NAME first.
16195 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
16197 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
16200 2016-02-08 Jason Merrill <jason@redhat.com>
16203 * convert.c (convert_to_integer_1): Check dofold on truncation
16205 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
16206 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
16207 Rename from *_nofold.
16208 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
16209 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
16211 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
16214 * tree.c (build_common_tree_nodes): Remove short_double argument.
16215 All callers changed.
16216 * tree.h (build_common_tree_nodes): Adjust declaration.
16217 * doc/invoke.texi (-fshort-double): Remove documentation.
16218 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16219 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
16220 * lto-wrapper.c (merge_and_complain, append_compiler_options)
16221 (append_linker_options): Don't handle OPT_fshort_double.
16223 PR rtl-optimization/68730
16224 * lra-remat.c (insn_to_cand_activation): New static variable.
16225 (lra_remat): Allocate and free it.
16226 (create_cand): New arg activation. Initialize a field in
16227 insn_to_cand_activation if it is nonnull.
16228 (create_cands): Pass the activation insn to create_cand when making
16229 a candidate involving an output reload. Reorganize code a little.
16230 (do_remat): Keep track of active status of candidates in a separate
16233 2016-02-08 Richard Biener <rguenther@suse.de>
16235 PR tree-optimization/69719
16236 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
16237 Properly use absolute of the difference of the two offsets to
16238 compare or adjust the segment length.
16240 2016-02-08 Richard Biener <rguenther@suse.de>
16241 Jeff Law <law@redhat.com>
16244 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
16245 types for anonymous SSA names.
16247 2016-02-08 Richard Biener <rguenther@suse.de>
16249 PR rtl-optimization/69274
16250 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
16252 2016-02-08 Jeff Law <law@redhat.com>
16254 PR tree-optimization/65917
16255 * tree-ssa-dom.c (record_temporary_equivalences): Record both
16256 equivalences from if (x == y) style conditionals.
16257 (loop_depth_of_name): Remove.
16258 (record_equality): Remove loop depth check.
16259 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
16260 (const_and_copies::record_const_or_copy_raw): New member function.
16261 * tree-ssa-scopedtables.c
16262 (const_and_copies::record_const_or_copy_raw): New, factored out of
16263 (const_and_copies::record_const_or_copy): Call new member function.
16265 2016-02-05 Jeff Law <law@redhat.com>
16267 PR tree-optimization/68541
16268 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
16269 (count_stmts_in_block): New function.
16270 (poor_ifcvt_candidate_code): Likewise.
16271 (is_feasible_trace): Add some heuristics to determine when path
16272 splitting is profitable.
16273 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
16274 is a diamond with a single exit.
16276 2016-02-05 Martin Sebor <msebor@redhat.com>
16279 * doc/invoke.texi: Update -Wplacement-new to take an optional
16282 2016-02-06 Richard Henderson <rth@redhat.com>
16285 * tree.c (tree_nop_conversion_p): Do not strip casts into or
16286 out of non-standard address spaces.
16288 2016-02-05 Jakub Jelinek <jakub@redhat.com>
16290 PR rtl-optimization/69691
16291 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
16293 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
16295 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
16296 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
16297 (*ieee128_mfvsrd_64bit): Likewise.
16298 (*ieee128_mfvsrd_32bit): Likewise.
16300 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
16304 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
16306 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16307 instrumented_version.
16309 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
16311 * doc/invoke.texi (Optimize Options): In table of --param options
16312 rename second occurrence of tracer-min-branch-ratio to
16313 tracer-min-branch-probability, rename
16314 tracer-min-branch-ratio-feedback to
16315 tracer-min-branch-probability-feedback and clarify description,
16316 rename sched-spec-state-edge-prob-cutoff to
16317 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
16318 to selsched-insns-to-rename, rename lto-minpartition to
16319 lto-min-partition, delete reorder-blocks-duplicate and
16320 reorder-blocks-duplicate-feedback.
16322 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16324 * config/s390/s390.c (s390_register_info_set_ranges): Remove
16327 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
16329 * doc/extend.texi: S/390: Correct some typos.
16331 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16333 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
16335 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16338 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
16339 (s390_register_info_gprtofpr): Use new macros above.
16340 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
16342 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
16343 its name. Adjust restore and save gpr ranges.
16344 (s390_register_info_set_ranges): New function.
16345 (s390_register_info): Use new macros above. Call
16346 s390_register_info_set_ranges.
16347 (s390_optimize_register_info): Likewise.
16348 (s390_hard_regno_rename_ok): Use new macros.
16349 (s390_hard_regno_scratch_ok): Likewise.
16350 (s390_emit_epilogue): Likewise.
16351 (s390_can_use_return_insn): Likewise.
16352 (s390_optimize_prologue): Likewise.
16353 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
16355 2016-02-05 Jakub Jelinek <jakub@redhat.com>
16358 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
16360 (ix86_option_override_internal): Disable TARGET_STV even for
16361 -m{incoming,preferred}-stack-boundary=3.
16363 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16365 * config.gcc: Mark deprecated rtems targets as obsolete.
16367 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
16369 PR rtl-optimization/64682
16370 PR rtl-optimization/69567
16371 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
16372 before I2 only if the register is both used and set in I2.
16374 2016-02-04 DJ Delorie <dj@redhat.com>
16376 * config/msp430/msp430.c (msp430_start_function): Add function type.
16378 2016-02-04 Jakub Jelinek <jakub@redhat.com>
16381 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
16383 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
16385 PR rtl-optimization/69577
16387 2015-10-29 Richard Henderson <rth@redhat.com>
16391 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
16392 sse check to the exact conditions of PR 67609.
16394 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
16397 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
16398 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
16399 not allowed into the traditional Altivec registers.
16400 (movtd_64bit_nodm): Likewise.
16401 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16403 2016-02-04 David Malcolm <dmalcolm@redhat.com>
16405 * config/aarch64/cortex-a57-fma-steering.c
16406 (aarch64_register_fma_steering): Remove "static" from arguments
16409 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
16412 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
16413 twice when complex.
16415 2016-02-04 Mike Frysinger <vapier@gentoo.org>
16417 * doc/invoke.texi: Delete -mno-fma4.
16419 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
16421 PR rtl-optimization/69577
16422 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
16423 (find_subregs_of_mode): Update accordingly. Iterate over partial
16426 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
16428 * config/arm/arm-protos.h (neon_reinterpret): Remove.
16429 * config/arm/arm.c (neon_reinterpret): Remove.
16430 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
16431 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
16432 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
16433 vreinterpretti): Remove.
16434 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
16435 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16436 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
16437 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
16438 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
16439 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
16440 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
16441 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
16442 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
16443 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
16444 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
16445 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
16446 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
16447 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
16448 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
16449 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
16450 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
16451 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
16452 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
16453 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
16454 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
16455 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
16456 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
16457 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
16458 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
16459 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
16460 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
16461 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
16462 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
16463 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
16464 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
16465 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
16466 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
16467 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
16468 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
16469 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
16470 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
16471 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
16472 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
16473 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
16474 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
16475 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
16476 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
16477 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
16478 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
16479 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
16480 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
16481 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
16482 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
16483 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
16484 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
16485 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
16486 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
16487 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
16488 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
16489 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
16490 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
16491 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
16492 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
16493 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
16494 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
16495 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
16496 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
16497 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
16498 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
16499 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
16500 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
16501 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
16502 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
16503 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
16504 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
16505 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
16506 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
16507 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
16508 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
16509 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
16510 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
16511 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
16512 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
16513 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
16514 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
16515 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
16516 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
16517 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
16518 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
16519 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
16520 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
16521 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
16522 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
16523 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
16524 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
16525 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
16526 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
16527 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
16528 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
16529 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
16530 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
16531 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
16532 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
16533 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
16534 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
16535 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
16536 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
16538 2016-02-04 Martin Liska <mliska@suse.cz>
16541 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
16542 that are gimple_store_p.
16543 (maybe_instrument_call): Likewise.
16545 2016-02-04 Bin Cheng <bin.cheng@arm.com>
16547 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
16548 register scaling out of memory reference and comment why.
16550 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16554 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
16555 folding the source of a SET.
16557 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16561 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
16562 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
16564 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
16568 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
16571 2016-02-04 Christian Bruel <christian.bruel@st.com>
16573 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
16574 * config/arm/arm.c (arm_set_current_function): Likewise.
16576 2016-02-04 Jakub Jelinek <jakub@redhat.com>
16577 Ilya Enkovich <enkovich.gnu@gmail.com>
16578 H.J. Lu <hongjiu.lu@intel.com>
16581 * config/i386/i386.c (convert_scalars_to_vector): Remove
16582 stack alignment fixes.
16583 (ix86_option_override_internal): Disable TARGET_STV if stack
16584 might not be aligned enough.
16585 (ix86_minimum_alignment): Assert that TARGET_STV is false.
16587 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
16589 * config/i386/x86-tune.def: Disable default prefetching
16592 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16593 Vladimir Makarov <vmakarov@redhat.com>
16596 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
16597 in validating fused toc addresses.
16599 2016-02-03 Jakub Jelinek <jakub@redhat.com>
16602 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
16603 range->m_caret fields if range->m_show_caret_p is false.
16606 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16607 Force oldval into register if it does not satisfy reg_or_short_operand
16608 predicate. Fix up formatting.
16610 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
16611 Alexandre Oliva <aoliva@redhat.com>
16614 * lra-constraints.c (simplify_operand_subreg): Check additionally
16615 address validity after potential reloading.
16616 (process_address_1): Check insns validity. In case of failure do
16619 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
16622 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
16625 2016-02-02 Jakub Jelinek <jakub@redhat.com>
16627 * wide-int.cc (canonize_uhwi): New function.
16628 (wi::divmod_internal): Use it.
16630 2016-02-02 James Norris <jnorris@codesourcery.com
16632 * gimplify.c (omp_notice_variable): Add usage check.
16634 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
16636 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16637 like LE, GE, LT, GT when emitting relational operator.
16639 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16641 * ira-costs.c (find_costs_and_classes): Add extra argument.
16642 * target.def (ira_change_pseudo_allocno_class): Add parameter.
16643 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16644 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16645 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16646 Add best_class parameter, and return it if not ALL_REGS.
16647 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16649 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16650 Update target hook.
16652 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16654 * config/aarch64/aarch64.c
16655 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16656 (aarch64_ira_change_pseudo_allocno_class): New function.
16658 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
16661 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16663 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16665 * config/avr/avr.c (avr_option_override): Set
16666 PARAM_ALLOW_STORE_DATA_RACES to 1.
16668 2016-02-02 Richard Biener <rguenther@suse.de>
16670 PR tree-optimization/69595
16671 * match.pd: Add range test simplifications to true/false.
16673 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
16675 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16676 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16679 2016-02-02 Richard Biener <rguenther@suse.de>
16681 PR tree-optimization/69606
16682 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16683 info on the result before moving a stmt.
16685 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
16687 PR middle-end/68542
16688 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16689 branch with vector comparison.
16690 * config/i386/sse.md (VI48_AVX): New mode iterator.
16691 (define_expand "cbranch<mode>4): Add support for conditional branch
16692 with vector comparison.
16693 * tree-vect-loop.c (optimize_mask_stores): New function.
16694 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16695 has_mask_store field of vect_info.
16696 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16697 vectorized loops having masked stores after vec_info destroy.
16698 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16699 correspondent macros.
16700 (optimize_mask_stores): Add prototype.
16702 2016-02-02 Alan Modra <amodra@gmail.com>
16705 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16708 2016-02-02 Alan Modra <amodra@gmail.com>
16711 * config/rs6000/rs6000.c (need_toc_init): New var, set it
16712 whenever toc_label_name used.
16713 (rs6000_file_start): Don't set up toc section here,
16714 (rs6000_output_function_epilogue): do so here instead,
16715 (rs6000_xcoff_file_start): and here.
16716 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16717 (load_toc_aix_di): Likewise.
16719 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16721 PR rtl-optimization/69592
16722 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16723 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16724 (num_sign_bit_copies_binary_arith_p): New inline function.
16725 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16727 2016-02-01 Jeff Law <law@redhat.com>
16729 PR tree-optimization/69580
16730 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16731 * tree-ssa-threadbackward.c
16732 (fsm_find_control_statement_thread_paths): Do not try to walk
16733 through large PHI nodes.
16735 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16737 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16738 when count is incremented above limit, don't analyze further
16741 * omp-low.c (oacc_parse_default_dims): Avoid
16742 -Wsign-compare warning, make sure value fits into int
16743 rather than just unsigned int.
16745 2016-02-01 Bin Cheng <bin.cheng@arm.com>
16747 PR tree-optimization/67921
16748 * fold-const.c (split_tree): New parameters. Convert pointer
16749 type variable part to proper type before negating.
16750 (fold_binary_loc): Pass new arguments to split_tree.
16752 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
16754 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16755 (nvptx_goacc_validate_dims): Extend to handle global defaults.
16756 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16757 * doc/tm.texti: Rebuilt.
16758 * doc/invoke.texi (fopenacc-dim): Document.
16759 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16760 (append_compiler_options): Likewise.
16761 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16762 (oacc_parse_default_dims): New.
16763 (oacc_validate_dims): Add USED arg. Select non-unity default when
16765 (oacc_loop_fixed_partitions): Return mask of used partitions.
16766 (oacc_loop_auto_partitions): Emit dump info.
16767 (oacc_loop_partition): Return mask of used partitions.
16768 (execute_oacc_device_lower): Parse default dimension arg. Adjust
16769 loop partitioning and validation calls.
16771 2016-02-01 Richard Biener <rguenther@suse.de>
16773 PR middle-end/69556
16774 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16776 2016-02-01 Richard Biener <rguenther@suse.de>
16778 PR tree-optimization/69574
16779 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16780 of asserting return chrec_dont_know.
16782 2016-02-01 Martin Liska <mliska@suse.cz>
16784 * mem-stats-traits.h: Add copyright header.
16785 * mem-stats.h: Likewise.
16787 2016-02-01 Richard Biener <rguenther@suse.de>
16789 PR tree-optimization/69579
16790 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16791 Do not propagate through abnormal PHI results.
16793 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
16795 * postreload.c (reload_cse_simplify): Remove dead code.
16797 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16799 PR rtl-optimization/69570
16800 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16801 if there is more than one set, not if there is a single set.
16803 2016-02-01 Richard Henderson <rth@redhat.com>
16806 * combine.c (make_compound_operation): When looking through a
16807 subreg, make sure to re-extend to the width of the outer mode.
16809 2016-01-30 Jakub Jelinek <jakub@redhat.com>
16811 PR tree-optimization/69546
16812 * wide-int.cc (wi::divmod_internal): For unsigned division
16813 where both operands fit into uhwi, if o1 is 1 and o0 has
16814 msb set, if divident_prec is larger than bits per hwi,
16815 clear another quotient word and return 2 instead of 1.
16816 Similarly for remainder with msb in HWI set, if dividend_prec
16817 is larger than bits per hwi.
16819 2016-01-29 Martin Jambor <mjambor@suse.cz>
16821 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16822 Use short lowercase names.
16823 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
16824 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16825 acq_rel one. Protect warning agains segfaults if
16826 get_memory_order_name returns NULL.
16827 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16828 with release semantics. Do not warn if get_memory_order already did.
16829 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16830 semantics. Fix check for relaxed or acquire semantics. Do not warn
16831 if get_memory_order already did.
16833 2016-01-29 Sebastian Pop <s.pop@samsung.com>
16835 * doc/install.texi: Document that isl-0.16 is supported.
16837 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
16840 * config/i386/constraints.md (Bm): Describe as special memory
16842 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16843 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16844 * genpreds.c (struct constraint_data): Add is_special_memory.
16845 (have_special_memory_constraints, special_memory_start): New
16847 (special_memory_end): Ditto.
16848 (add_constraint): Add new arg is_special_memory. Add code to
16849 process its true value. Update have_special_memory_constraints.
16850 (process_define_constraint): Pass the new arg.
16851 (process_define_register_constraint): Ditto.
16852 (choose_enum_order): Process special memory.
16853 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16854 function insn_extra_special_memory_constraint.
16855 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16856 * gensupport.c (process_rtx): Process
16857 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16858 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16859 * ira-lives.c (single_reg_class): Use
16860 insn_extra_special_memory_constraint.
16861 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16862 * lra-constraints.c (process_alt_operands): Ditto.
16863 (curr_insn_transform): Use insn_extra_special_memory_constraint.
16864 * recog.c (asm_operand_ok, preprocess_constraints): Process
16866 * reload.c (find_reloads): Ditto.
16867 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16868 * stmt.c (parse_input_constraint): Use
16869 insn_extra_special_memory_constraint.
16871 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16874 * lra-splill.c (lra_final_code_change): Revert r229087 by
16875 removing all sub-registers.
16877 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
16880 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16882 2016-01-29 Jakub Jelinek <jakub@redhat.com>
16885 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16886 SSE1, copy target into the temporary reg first before recursing
16889 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16891 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16894 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16896 * ginclude/stdarg.h: Test __cplusplus instead of
16897 __GXX_EXPERIMENTAL_CXX0X__.
16899 2016-01-29 Richard Biener <rguenther@suse.de>
16901 PR tree-optimization/69547
16902 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16903 Do not mark clobbers necessary.
16904 (mark_all_reaching_defs_necessary_1): Likewise.
16906 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16908 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16909 declaration name with %qs and print it in both error messages.
16910 Also fix indentation.
16912 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16915 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16916 trailing blank line from error message.
16918 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16921 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16924 2016-01-29 Richard Biener <rguenther@suse.de>
16926 PR middle-end/69537
16927 * match.pd: Allow all integral types when simplifying a
16928 widening or sign-changing conversion.
16930 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16932 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16933 back to setting codegen_error to fail codegen.
16935 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
16938 * config/i386/constraints.md (C): Only accept constant zero operand.
16939 (BC): New constraint.
16940 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16941 instead of C constraint.
16942 * doc/md.texi (Machine Constraints): Update description
16945 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
16948 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16950 2016-01-28 Jakub Jelinek <jakub@redhat.com>
16952 PR middle-end/69542
16953 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16956 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
16958 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16959 branches if using guessed profile.
16961 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
16963 * graphite-optimize-isl.c (optimize_isl): Fix dump.
16965 2016-01-28 Richard Henderson <rth@redhat.com>
16968 * config/aarch64/aarch64-modes.def (CC_Cmode): New
16969 * config/aarch64/aarch64-protos.h: Update.
16970 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16971 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16972 (aarch64_get_condition_code_1): Handle CC_Cmode.
16973 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16974 (*add<mode>3_compareC_cconly_imm): New.
16975 (*add<mode>3_compareC_cconly): New.
16976 (*add<mode>3_compareC_imm): New.
16977 (add<mode>3_compareC): New.
16978 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16979 to be first. Use aarch64_carry_operation.
16980 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16981 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16982 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16983 (subti3): Use subdi3_compare1.
16984 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16985 (sub<mode>3_compare1): New.
16986 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16987 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16988 (*subsi3_carryin_uxtw): Likewise.
16989 (*ngc<mode>, *ngcsi_uxtw): Likewise.
16990 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16991 * config/aarch64/iterators.md (DWI): New.
16992 * config/aarch64/predicates.md (aarch64_carry_operation): New.
16993 (aarch64_borrow_operation): New.
16995 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16997 * graphite-optimize-isl.c (optimize_isl): Print a different debug
16998 message when isl does not return a valid schedule.
17000 2016-01-28 Sebastian Pop <s.pop@samsung.com>
17002 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
17003 Remove comments from class declarations: they are already in the code
17006 2016-01-28 Sebastian Pop <s.pop@samsung.com>
17008 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
17010 (ternary_op_to_tree): Same.
17011 (unary_op_to_tree): Same.
17012 (nary_op_to_tree): Same.
17013 (gcc_expression_from_isl_expr_op): Same.
17014 (gcc_expression_from_isl_expression): Same.
17015 (graphite_create_new_loop): Same.
17016 (graphite_create_new_loop_guard): Same.
17017 (build_iv_mapping): Same.
17018 (graphite_create_new_guard): Same.
17019 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
17020 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
17022 2016-01-28 Sebastian Pop <s.pop@samsung.com>
17024 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
17025 instead of setting codegen_error to fail codegen.
17027 2016-01-28 Jason Merrill <jason@redhat.com>
17029 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
17031 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
17033 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17034 Remove CONST_INT_P check in CCMP cost calculation.
17036 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
17038 * config/aarch64/aarch64.c (generic_vector_cost):
17039 Set vec_permute_cost.
17040 (cortexa57_vector_cost): Likewise.
17041 (exynosm1_vector_cost): Likewise.
17042 (xgene1_vector_cost): Likewise.
17043 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
17044 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
17045 Add vec_permute_cost entry.
17047 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
17049 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
17051 (add<mode>3_compare0): Likewise.
17052 (addsi3_compare0_uxtw): Likewise.
17053 (add<mode>3nr_compare0): Likewise.
17054 (compare_neg<mode>): Likewise.
17055 (<optab><mode>3): Likewise.
17057 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
17059 * tree-vect-stmts.c (vectorizable_comparison): Add
17060 NULL check for vectype.
17062 2016-01-28 Richard Biener <rguenther@suse.de>
17064 PR tree-optimization/69466
17065 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
17066 Account for PHIs we couldn't duplicate.
17068 2016-01-28 Martin Liska <mliska@suse.cz>
17071 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
17072 instead of ENABLE_VALGRIND_CHECKING.
17074 2016-01-27 Richard Henderson <rth@redhat.com>
17077 * lra-remat.c (subreg_regs): New.
17078 (dump_candidates_and_remat_bb_data): Dump it.
17079 (operand_to_remat): Reject if operand in subreg_regs.
17080 (set_bb_regs): Collect subreg_regs.
17081 (lra_remat): Init and free subreg_regs. Compute
17082 calculate_local_reg_remat_bb_data before create_cands.
17084 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
17087 * config/i386/i386.c (ix86_update_stack_boundary): Don't
17088 change stack_alignment_needed for __tls_get_addr call.
17090 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
17092 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
17094 2016-01-27 Jeff Law <law@redhat.com>
17096 PR tree-optimization/68398
17097 PR tree-optimization/69196
17098 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
17099 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
17100 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17101 Only count PHIs in the last block in the path. The others will
17102 const/copy propagate away. Add heuristic to allow more irreducible
17103 subloops to be created when it is likely profitable to do so.
17105 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17106 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
17107 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
17109 2016-01-27 Jakub Jelinek <jakub@redhat.com>
17112 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
17113 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
17114 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
17115 * tree-streamer-in.c: Include asan.h.
17116 (streamer_get_builtin_tree): For builtins in sanitizer
17117 range call initialize_sanitizer_builtins and retry.
17119 2016-01-27 Ian Lance Taylor <iant@google.com>
17121 * common.opt (fkeep-gc-roots-live): New undocumented option.
17122 * tree-ssa-loop-ivopts.c (add_candidate_1): If
17123 -fkeep-gc-roots-live, skip pointers.
17124 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
17127 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
17130 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
17131 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
17133 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
17136 * configure.ac: NetBSD provides SSP in its C library.
17137 * configure: Updated.
17139 2016-01-27 Richard Biener <rguenther@suse.de>
17141 PR tree-optimization/69166
17142 * tree-vect-loop.c (vect_is_simple_reduction): Always check
17143 reduction code for commutativity / associativity.
17145 2016-01-27 Martin Jambor <mjambor@suse.cz>
17147 PR tree-optimization/69355
17148 * tree-sra.c (analyze_access_subtree): Correct hole detection when
17149 total_scalarization fails.
17151 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
17153 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
17156 2016-01-27 Christian Bruel <christian.bruel@st.com>
17159 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
17160 Move arm_reset_previous_fndecl and set_target_option_current_node in
17161 the conditional part. Call save_restore_target_globals.
17162 * config/arm/arm.c (arm_set_current_function):
17163 Refactor to better support #pragma target and attribute mix.
17164 Call save_restore_target_globals.
17165 * config/arm/arm-protos.h (save_restore_target_globals): New function.
17167 2016-01-27 Martin Liska <mliska@suse.cz>
17169 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
17170 reference for an HSA kernel and its host function.
17172 2016-01-27 Jakub Jelinek <jakub@redhat.com>
17174 PR tree-optimization/69399
17175 * wide-int.h (wi::lrshift): For larger precisions, only
17176 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
17178 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
17180 * config/arc/predicates.md (proper_comparison_operator): Reject
17181 constant-constant comparison.
17183 2016-01-26 Tom de Vries <tom@codesourcery.com>
17185 PR tree-optimization/69110
17186 * tree-data-ref.c (initialize_data_dependence_relation): Handle
17187 DR_NUM_DIMENSIONS == 0.
17189 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
17190 Sebastian Pop <s.pop@samsung.com>
17192 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
17193 isl_ast_op_cond and isl_ast_op_select.
17194 (gcc_expression_from_isl_expr_op): Same.
17196 2016-01-26 Jason Merrill <jason@redhat.com>
17199 * tree.c (recompute_constructor_flags): Split out from
17201 (verify_constructor_flags): New.
17202 * tree.h: Declare them.
17204 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
17206 PR rtl-optimization/69217
17207 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
17208 are no TYPE_FIELDS set for the record type.
17210 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17213 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
17214 toc_label_name unconditionally.
17215 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
17216 SYMBOL_REF string. Use toc_label_name instead of constructing
17218 (rs6000_elf_declare_function_name): Use toc_label_name instead of
17219 constructing LCTOC1.
17221 2016-01-26 Martin Sebor <msebor@redhat.com>
17224 * doc/extend.texi (Common Type Attributes): Move text that talks about
17225 attribute packed from attribute aligned to the section discussing
17226 the former attribute for clarity.
17228 2016-01-26 Richard Henderson <rth@redhat.com>
17230 PR middle-end/60908
17231 * trans-mem.c (tm_region_init): Mark entry block as visited.
17233 2016-01-26 David Malcolm <dmalcolm@redhat.com>
17236 * diagnostic-show-locus.c (layout::print_source_line): Replace
17237 call to pp_newline with call to layout::print_newline.
17238 (layout::print_annotation_line): Likewise.
17239 (layout::move_to_column): Likewise.
17240 (layout::print_any_fixits): After printing any fixits, print a
17241 trailing newline, if necessary.
17242 (layout::print_newline): New method, resetting any colorization
17244 (diagnostic_show_locus): Move the pp_newline to before the
17245 early bailout. Remove dummy block enclosing the layout instance.
17246 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
17247 of pp_newline_and_flush with pp_flush.
17248 (diagnostic_append_note): Delete use of pp_newline.
17249 (diagnostic_append_note_at_rich_loc): Delete.
17250 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
17251 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
17252 when newline characters are added to the buffer.
17254 2016-01-26 Michael Matz <matz@suse.de>
17256 * configure.ac (ac_cv_std_swap_in_utility): New test.
17257 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
17258 * configure: Regenerate.
17259 * config.in: Regenerate.
17261 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
17263 * config/arc/arc.md (cstoresi4): Force operand into register.
17264 (arcset<code>): Fix predicate.
17265 (arcsetltu): Likewise.
17266 (arcsetgeu): Likewise.
17267 (arcsethi): Likewise.
17268 (arcsetls): Likewise.
17270 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17272 PR tree-optimization/69483
17273 * gimple-fold.c (canonicalize_constructor_val): Return NULL
17274 if base has error_mark_node type.
17276 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
17279 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
17280 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
17282 (vget_lane_f16): Handle big-endian.
17283 (vgetq_lane_f16): Likewise.
17284 (vset_lane_f16): Likewise.
17285 (vsetq_lane_f16): Likewise.
17286 * config/arm/iterators.md (VQXMOV): Add V8HF.
17287 (VDQ): Add V4HF and V8HF.
17288 (V_reg): Handle V4HF and V8HF.
17289 (Is_float_mode): Likewise.
17290 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
17291 neon_vdup_nv8hf): New patterns.
17292 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
17293 Use VD_LANE iterator.
17294 (neon_vld1_dup<mode>): Use VQ2 iterator.
17296 2016-01-26 Nathan Sidwell <nathan@acm.org>
17298 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
17299 (set_oacc_fn_attrib): Add IS_KERNEL arg.
17300 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
17301 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
17302 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
17303 (oacc_validate_dims): Add LEVEL arg, don't return level.
17304 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
17305 oacc_validate_dims.
17306 (execute_oacc_device_lower): Adjust, add more dump output.
17307 * tree-ssa-loop.c (gate_oacc_kernels): Use
17308 oacc_fn_attrib_kernels_p.
17309 * tree-parloops.c (create_parallel_loop): Adjust
17310 set_oacc_fn_attrib call.
17312 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17315 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
17316 (append_compiler_options): Handle -fcilkplus.
17317 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
17319 2016-01-26 Nick Clifton <nickc@redhat.com>
17322 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
17323 been marked as DECL_ONE_ONLY but we do not the means to make it
17324 so, then do not allow it to bind locally.
17326 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17329 * opts.h (parse_sanitizer_options): New prototype.
17330 * opts.c (sanitizer_opts): New array.
17331 (parse_sanitizer_options): New function.
17332 (common_handle_option): Use parse_sanitizer_options.
17334 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
17337 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
17338 alignment adjustment to ...
17339 (ix86_update_stack_boundary): Here. Don't over-align stack for
17341 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
17342 if __tls_get_addr is called.
17344 2016-01-26 Christian Bruel <christian.bruel@st.com>
17346 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
17348 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
17350 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
17352 2016-01-26 Richard Biener <rguenther@suse.de>
17354 PR middle-end/69467
17355 * match.pd: Guard X * CST CMP 0 pattern with single_use.
17357 2016-01-26 Richard Biener <rguenther@suse.de>
17359 PR tree-optimization/69452
17360 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
17361 (move_computations_dom_walker::before_dom_children): Rename
17363 (move_computations_worker): This.
17364 (move_computations): Perform an RPO rather than a DOM walk.
17366 2016-01-26 Jakub Jelinek <jakub@redhat.com>
17369 * combine.c (combine_instructions): For REG_EQUAL note with
17370 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
17371 to the underlying register.
17372 * doc/rtl.texi (REG_EQUAL): Document the behavior of
17373 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
17375 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
17378 * config/aarch64/aarch64-builtins.c
17379 (aarch64_init_simd_builtin_types): Do not set structural
17380 equality to __Poly{8,16,64,128}_t types.
17382 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
17384 PR tree-optimization/69400
17385 * wide-int.cc (wi_pack): Take the precision as argument and
17386 perform canonicalization here rather than in the callers.
17387 Use the main loop to handle all full-width HWIs. Add a
17388 zero HWI if in_len isn't a full result.
17389 (wi::divmod_internal): Update accordingly.
17390 (wi::mul_internal): Likewise. Simplify.
17392 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
17393 Sebastian Pop <s.pop@samsung.com>
17395 * graphite-poly.c (apply_poly_transforms): Simplify.
17396 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
17397 (print_isl_map): Same.
17398 (print_isl_union_map): Same.
17399 (print_isl_schedule): New.
17400 (debug_isl_schedule): New.
17401 * graphite-dependences.c (scop_get_reads): Do not call
17402 isl_union_map_add_map that is undocumented isl functionality.
17403 (scop_get_must_writes): Same.
17404 (scop_get_may_writes): Same.
17405 (scop_get_original_schedule): Remove.
17406 (scop_get_dependences): Do not call isl_union_map_compute_flow that
17407 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
17408 (compute_deps): Remove.
17409 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
17410 (debug_schedule_ast): New.
17411 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
17412 set_separate_option.
17413 (graphite_regenerate_ast_isl): Add dump.
17414 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
17415 from scop->transformed_schedule.
17416 (graphite_regenerate_ast_isl): Add more dump.
17417 * graphite-optimize-isl.c (optimize_isl): Set
17418 scop->transformed_schedule. Check whether schedules are equal.
17419 (apply_poly_transforms): Move here.
17420 * graphite-poly.c (apply_poly_transforms): ... from here.
17421 (free_poly_bb): Static.
17422 (free_scop): Static.
17423 (pbb_number_of_iterations_at_time): Remove.
17424 (print_isl_ast): New.
17425 (debug_isl_ast): New.
17426 (debug_scop_pbb): New.
17427 * graphite-scop-detection.c (print_edge): Move.
17428 (print_sese): Move.
17429 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
17430 (build_scop_scattering): Remove.
17431 (create_pw_aff_from_tree): Assert instead of bailing out.
17432 (add_condition_to_pbb): Remove unused code, do not fail.
17433 (add_conditions_to_domain): Same.
17434 (add_conditions_to_constraints): Remove.
17435 (build_scop_context): New.
17436 (add_iter_domain_dimension): New.
17437 (build_iteration_domains): Initialize pbb->iterators.
17438 Call add_conditions_to_domain.
17441 (index_outermost_in_loop): New.
17442 (index_pbb_in_loop): New.
17443 (outermost_pbb_in): New.
17444 (add_in_sequence): New.
17445 (add_outer_projection): New.
17446 (outer_projection_mupa): New.
17447 (add_loop_schedule): New.
17448 (build_schedule_pbb): New.
17449 (build_schedule_loop): New.
17450 (embed_in_surrounding_loops): New.
17451 (build_schedule_loop_nest): New.
17452 (build_original_schedule): New.
17453 (build_poly_scop): Call build_original_schedule.
17454 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
17455 (free_poly_dr): Remove.
17456 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
17457 (free_poly_bb): Remove.
17458 (debug_loop_vec): Remove.
17459 (print_isl_ast): Declare.
17460 (debug_isl_ast): Declare.
17461 (scop_do_interchange): Remove.
17462 (scop_do_strip_mine): Remove.
17463 (scop_do_block): Remove.
17464 (flatten_all_loops): Remove.
17465 (optimize_isl): Remove.
17466 (pbb_number_of_iterations_at_time): Remove.
17467 (debug_scop_pbb): Declare.
17468 (print_schedule_ast): Declare.
17469 (debug_schedule_ast): Declare.
17470 (struct scop): Remove schedule. Add original_schedule,
17471 transformed_schedule.
17472 (free_gimple_poly_bb): Remove.
17473 (print_generated_program): Remove.
17474 (debug_generated_program): Remove.
17475 (unify_scattering_dimensions): Remove.
17476 * sese.c (print_edge): ... here.
17477 (print_sese): ... here.
17478 (debug_edge): ... here.
17479 (debug_sese): ... here.
17480 * sese.h (print_edge): Declare.
17481 (print_sese): Declare.
17482 (dump_edge): Declare.
17483 (dump_sese): Declare.
17485 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
17486 Sebastian Pop <s.pop@samsung.com>
17488 * Makefile.in: Set ISLVER in site.exp.
17490 2016-01-25 Jakub Jelinek <jakub@redhat.com>
17492 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
17493 DECL_VALUE_EXPR of new_var even for the non-array case. Look
17494 through DECL_VALUE_EXPR for expansion.
17496 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
17498 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
17499 the frame info after reload completed.
17501 2016-01-25 Jeff Law <law@redhat.com>
17503 PR tree-optimization/69196
17504 PR tree-optimization/68398
17505 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
17506 tree-ssa-threadupdate.c.
17507 (determine_bb_domination_status): Prototype
17508 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
17509 (determine_bb_domination_status): No longer static.
17510 (valid_jump_thread_path): Remove code to detect characteristics
17511 of the jump thread path not associated with correctness.
17512 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
17513 Correct test for thread path length. Count PHIs for real operands as
17514 statements that need to be copied. Do not count ASSERT_EXPRs.
17515 Look at all the blocks in the thread path. Compute and selectively
17516 filter thread paths based on threading through the latch, threading
17517 a multiway branch or crossing a multiway branch.
17519 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17521 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
17522 decl with __attribute__ ((unused)) annotation.
17524 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
17527 * tree-vect-stmts.c (vectorizable_condition): Check vectype
17528 of operands is compatible with a statement vectype.
17530 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
17532 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
17533 improve wording for mixed storage order support.
17535 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
17537 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
17538 (vcvt_u64_f64): Likewise.
17539 (vcvta_s64_f64): Likewise.
17540 (vcvta_u64_f64): Likewise.
17541 (vcvtm_s64_f64): Likewise.
17542 (vcvtm_u64_f64): Likewise.
17543 (vcvtn_s64_f64): Likewise.
17544 (vcvtn_u64_f64): Likewise.
17545 (vcvtp_s64_f64): Likewise.
17546 (vcvtp_u64_f64): Likewise.
17548 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
17550 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
17551 (arc_init): Check validity mll64 option.
17552 (arc_save_restore): Use double load/store instruction.
17553 (arc_expand_movmem): Likewise.
17554 (arc_split_move): Don't split if we have double load/store
17555 instructions. Returns a boolean.
17556 (arc_process_double_reg_moves): Change function to return boolean
17557 instead of a sequence of instructions.
17558 (arc_dwarf_register_span): New function.
17559 * config/arc/arc-protos.h (arc_split_move): Change prototype.
17560 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
17561 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
17562 (*movdf_insn): Likewise.
17563 * config/arc/arc.opt (mll64): New option.
17564 * config/arc/predicates.md (even_register_operand): New predicate.
17565 * doc/invoke.texi (ARC Options): Add mll64 documentation.
17567 2016-01-25 Richard Biener <rguenther@suse.de>
17570 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
17571 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
17573 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
17575 2016-01-25 Richard Biener <rguenther@suse.de>
17577 PR tree-optimization/69376
17578 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
17580 (VN_INFO_ANTI_RANGE_P): New inline.
17581 (VN_INFO_RANGE_TYPE): Likewise.
17582 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
17583 SSA_NAME_ANTI_RANGE_P.
17584 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
17585 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17586 Properly query VN_INFO_RANGE_TYPE.
17588 2016-01-25 Nick Clifton <nickc@redhat.com>
17591 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
17593 2016-01-23 Tom de Vries <tom@codesourcery.com>
17595 PR tree-optimization/69426
17596 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
17599 2016-01-23 Jakub Jelinek <jakub@redhat.com>
17601 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
17602 "the the" with "the" in the comments.
17603 * ipa-devirt.c (build_type_inheritance_graph,
17604 update_type_inheritance_graph): Likewise.
17605 * tree.c (build_function_type_list_1): Likewise.
17606 * cfgloopmanip.c (scale_loop_profile): Likewise.
17607 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
17608 * gimple-ssa-split-paths.c
17609 (find_block_to_duplicate_for_splitting_paths): Likewise.
17610 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
17611 * expr.c (convert_move): Likewise.
17612 * var-tracking.c (vt_stack_adjustments): Likewise.
17613 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17614 * tree-vrp.c (test_for_singularity): Likewise.
17616 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
17617 directly instead of building a temporary tree.
17620 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
17621 remove <algorithm> include.
17623 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17626 * config/i386/i386.c: Include dojump.h.
17627 (expand_small_movmem_or_setmem,
17628 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
17630 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
17631 if dynamic_check != -1.
17633 2016-01-21 Jeff Law <law@redhat.com>
17635 PR middle-end/69347
17636 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17637 record_temporary_equivalences. Rewritten to avoid unnecessary calls
17638 into dominated_by_p.
17639 (cprop_into_successor_phis): Avoid unnecessary tests.
17641 2016-01-22 Richard Henderson <rth@redhat.com>
17644 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17645 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17647 2016-01-22 Michael Matz <matz@suse.de>
17649 * system.h (string, algorithm): Include only conditionally.
17650 (new): Include always under C++.
17651 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17652 * final.c (toplevel): Ditto.
17653 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17654 * genconditions.c (write_header): Make gencondmd.c define
17656 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17658 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17659 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17661 2016-01-22 Christian Bruel <christian.bruel@st.com>
17664 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17666 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17669 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17670 define_insn_and_split. Ensure operands[1] and operands[0] do not
17671 get assigned the same register.
17673 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17675 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17677 2016-01-22 Christian Bruel <christian.bruel@st.com>
17679 * config/arm/arm-c.c (arm_pragma_target_parse):
17680 Remove warn_builtin_macro_redefined overwrite.
17682 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17684 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17685 flag_non_call_exceptions compatibility.
17687 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17690 * dwarf2out.c (add_child_die_after): New function.
17691 (dwarf_qual_info_t): New type.
17692 (dwarf_qual_info): New variable.
17693 (qualified_die_p): New function.
17694 (modified_type_die): For -fdebug-types-section, ensure
17695 canonical order of qualifiers. Put qualified DIEs adjacent
17696 to the corresponding non-qualified type DIE and search there
17697 for existing qualified DIEs.
17699 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17701 * doc/extend.texi (scalar_storage_order type attribute): Document
17702 restriction on type punning and aliasing, and remove future tense.
17704 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
17707 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17710 2016-01-21 Jeff Law <law@redhat.com>
17712 PR middle-end/69347
17713 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17714 useless call to record_temporary_equivalences.
17715 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17716 allocate 10 slots in the bb_path vector and let it grow as needed.
17717 (fsm_find_control_statement_thread_paths): Similarly for the next_path
17720 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17722 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17724 * configure: Regenerate.
17726 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
17728 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17729 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17731 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
17733 PR middle-end/66178
17734 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17735 drop EXPAND_INITIALIZER.
17736 * rtl.h (contains_symbolic_reference_p): Declare.
17737 * rtlanal.c (contains_symbolic_reference_p): New function.
17738 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17739 a subtraction into a NOT if symbolic constants are involved.
17741 2016-01-21 Anton Blanchard <anton@samba.org>
17742 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17745 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17747 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17750 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17752 * config/microblaze/microblaze.c
17753 (get_branch_target): New.
17754 (insert_wic_for_ilb_runout): New.
17756 (microblaze_machine_dependent_reorg): New.
17757 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17758 * config/microblaze/microblaze.md
17759 (UNSPEC_IPREFETCH): Define.
17760 (iprefetch): New pattern
17761 * config/microblaze/microblaze.opt
17762 (mxl-prefetch): New flag.
17764 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17766 * config/microblaze/microblaze.h
17767 (FIXED_REGISTERS): Update in macro.
17768 (CALL_USED_REGISTERS): Update in macro.
17770 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
17772 PR rtl-optimization/68920
17773 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17776 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
17778 PR rtl-optimization/68990
17779 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17780 pseudo instead of inheritance ones.
17782 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17783 Nick Clifton <nickc@redhat.com>
17787 * config/mips/mips.c (mips_compute_frame_info): Initialise
17788 args_size and hard_frame_pointer_offset fields of the frame
17789 structure before calling mips_global_pointer.
17791 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17793 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17795 * configure: Regenerate.
17797 2016-01-21 Richard Biener <rguenther@suse.de>
17799 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17801 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17803 * config/s390/s390.c (s390_asm_declare_function_size): Add code
17804 to actually emit the .size directive.
17806 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17807 Jakub Jelinek <jakub@redhat.com>
17811 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17812 args array size by one to avoid buffer overflow.
17814 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17816 * config/s390/s390.md (pool_section_start): Use switch_to_section
17817 to select proper read-only data section instead of hardcoding
17819 (pool_section_end): Use switch_to_section to match the above.
17821 2016-01-21 Richard Biener <rguenther@suse.de>
17823 PR tree-optimization/69378
17824 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17825 (set_ssa_val_to): Use it for dominance checks taking into
17826 account not executable edges.
17828 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17831 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17832 for bitsize instead of GET_MODE_PRECISION (mode).
17834 2016-01-20 Martin Sebor <msebor@redhat.com>
17837 * extend.texi (__sync Builtins): Clarify the semantics of
17838 __sync_fetch_and_OP built-ins on pointers.
17839 (__atomic Builtins): Same.
17841 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17842 Sebastian Pop <s.pop@samsung.com>
17844 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17845 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17846 (is_valid_rename): Same.
17847 (translate_isl_ast_to_gimple::get_rename): Same.
17848 (translate_isl_ast_to_gimple::rename_all_uses): Same.
17849 (translate_isl_ast_to_gimple::rename_uses): Same.
17850 (get_new_name): Check for close_phi nodes.
17851 (copy_loop_phi_args): Use phi_node_kind.
17852 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17853 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17855 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17856 Sebastian Pop <s.pop@samsung.com>
17858 Revert commit r229783.
17859 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17860 Remove use of parameter_rename_map.
17861 (copy_def): Remove.
17862 (copy_internal_parameters): Remove.
17863 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17864 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17865 (free_sese_info): Do not free parameter_rename_map.
17866 (set_rename): Do not use parameter_rename_map.
17867 (rename_uses): Update call to set_rename.
17868 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17869 * sese.h (parameter_rename_map_t): Remove.
17870 (struct sese_info_t): Remove field parameter_rename_map.
17872 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17873 Sebastian Pop <s.pop@samsung.com>
17875 * graphite-isl-ast-to-gimple.c: Fix comment.
17876 * graphite-scop-detection.c (defined_in_loop_p): New.
17877 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17878 names defined in loop.
17880 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17881 Sebastian Pop <s.pop@samsung.com>
17883 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17884 Discard unstructured if-then-else regions.
17886 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17887 Sebastian Pop <s.pop@samsung.com>
17889 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17890 (cleanup_loop_iter_dom): Remove.
17891 (build_loop_iteration_domains): Remove.
17892 (build_scop_context): Remove.
17893 (build_scop_iteration_domain): Remove.
17894 (add_loop_constraints): New.
17895 (build_iteration_domains): New.
17896 (build_poly_scop): Call build_iteration_domains.
17898 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17899 Sebastian Pop <s.pop@samsung.com>
17901 * graphite-scop-detection.c
17902 (scop_detection::harmful_loop_in_region): Free dom and loops.
17903 (scop_detection::loop_body_is_valid_scop): Free bbs.
17905 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17906 Sebastian Pop <s.pop@samsung.com>
17908 * graphite-scop-detection.c (record_loop_in_sese): New.
17909 (gather_bbs::before_dom_children): Call record_loop_in_sese.
17910 (build_scops): Remove call to build_sese_loop_nests.
17911 * sese.c (sese_record_loop): Remove.
17912 (build_sese_loop_nests): Remove.
17913 (new_sese_info): Remove region->loops.
17914 (free_sese_info): Same.
17915 * sese.h (sese_contains_loop): Same.
17916 (build_sese_loop_nests): Remove.
17917 (sese_contains_loop): Remove.
17919 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17920 Sebastian Pop <s.pop@samsung.com>
17922 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17923 loop_is_valid_in_scop.
17924 (scop_detection::harmful_stmt_in_region): Renamed
17925 harmful_loop_in_region.
17926 Call loop_is_valid_in_scop.
17928 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17929 Sebastian Pop <s.pop@samsung.com>
17931 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17934 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17935 Sebastian Pop <s.pop@samsung.com>
17937 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17938 * graphite.h (struct poly_bb): Remove field is_reduction.
17939 (PBB_IS_REDUCTION): Remove.
17941 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17942 Sebastian Pop <s.pop@samsung.com>
17944 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17945 (add_pdr_constraints): Same.
17946 (scop_get_reads): Same.
17947 (scop_get_must_writes): Same.
17948 (scop_get_may_writes): Same.
17949 (scop_get_original_schedule): Same.
17950 (extend_schedule): Same.
17951 (apply_schedule_on_deps): Same.
17952 (carries_deps): Same.
17953 (compute_deps): Same.
17954 (scop_get_dependences): Same.
17955 * graphite-isl-ast-to-gimple.c
17956 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17957 * graphite-optimize-isl.c (get_schedule_for_band): Same.
17958 (get_schedule_for_band_list): Same.
17959 (get_schedule_map): Same.
17960 (apply_schedule_map_to_scop): Same.
17961 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17962 (build_loop_iteration_domains): Same.
17963 (add_condition_to_pbb): Same.
17964 (add_param_constraints): Same.
17965 (pdr_add_memory_accesses): Same.
17966 (pdr_add_data_dimensions): Same.
17968 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17970 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17973 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17975 * common.opt (feliminate-dwarf2-dups): Replace references to
17976 "DWARF 2" with just "DWARF".
17977 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17978 * doc/extend.texi: Likewise.
17979 * doc/cpp.texi: Likewise.
17980 * doc/invoke.texi: Likewise.
17981 (Option Summary): Add -gdwarf to list of Debugging Options.
17982 (Debugging Options): Document -gdwarf.
17983 * doc/contrib.texi: Spell "DWARF" like that.
17985 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17987 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17988 warning. Fix up formatting.
17990 PR middle-end/67653
17991 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17992 attempt to mark memory input operand addressable and
17993 call prepare_gimple_addressable in that case. Don't adjust
17994 input_location for diagnostics, use error_at instead.
17996 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
17998 * config/rs6000/ppc-auxv.h: New file.
17999 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
18000 (cpu_is): Likewise.
18001 (cpu_supports): Likewise.
18002 * config/rs6000/rs6000.c: include "ppc-auxv.h".
18003 (cpu_is_info): New variable.
18004 (cpu_supports_info): Likewise.
18005 (tcb_verification_symbol): Likewise.
18006 (cpu_builtin_p): Likewise.
18007 (cpu_expand_builtin): New function.
18008 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
18009 (rs6000_init_builtins): Likewise.
18010 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
18011 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
18012 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
18013 * configure: Regenerate.
18014 * config.in: Likewise.
18015 * doc/extend.texi (PowerPC Built-in Functions): Document
18016 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
18018 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
18021 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
18023 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
18026 2016-01-20 Richard Henderson <rth@redhat.com>
18032 * tree.c (tm_define_builtin): New.
18033 (find_tm_vector_type): New.
18034 (build_tm_vector_builtins): New.
18035 (build_common_builtin_nodes): Call it.
18037 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
18039 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
18040 (arm_fp_ok): Likewise.
18041 (arm_fp): Likewise.
18042 (arm_crypto): Likewise.
18044 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
18045 Richard Biener <rguenther@suse.de>
18047 PR tree-optimization/69328
18048 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
18049 vectors have same number of elements.
18050 (vectorizable_condition): Fix masked version recognition.
18052 2016-01-20 Richard Biener <rguenther@suse.de>
18054 PR tree-optimization/69345
18055 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
18056 (VN_INFO_PTR_INFO): Likewise.
18057 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
18058 info when it is equal between non-dominating SSA names.
18059 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18060 Make sure to look at original SSA infos.
18062 2016-01-20 Jeff Law <law@redhat.com>
18065 * config/m68k/predicates.md (pow2_m1_operand): New predicate
18067 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
18068 (pc_or_label_operand): New predicate.
18069 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
18070 tests for small integers that are 2^n - 1.
18072 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
18074 * doc/invoke.texi (Options Summary): Add '.' after @xref.
18076 2016-01-19 Jeff Law <law@redhat.com>
18078 PR middle-end/69347
18079 * tree-ssa-threadbackwards.c
18080 (fsm_find_control_statement_thread_paths): Do not try to lookup
18081 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
18083 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
18085 * doc/lto.texi: Remove text that says only Gold has linker plugin
18088 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
18090 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
18091 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
18092 the DIE accordingly.
18093 (modified_type_die): Add REVERSE parameter and pass it recursively,
18094 as well as to base_type_die. Adjust presence check accordingly.
18095 (base_type_for_mode): Adjust call to modified_type_die.
18096 (add_type_attribute): Add REVERSE parameter and pass it to
18098 (generic_parameter_die): Adjust call to add_type_attribute.
18099 (add_scalar_info): Likewise.
18100 (add_subscript_info): Likewise.
18101 (gen_array_type_die): Likewise.
18102 (gen_descr_array_type_die): Likewise.
18103 (gen_entry_point_die): Likewise.
18104 (gen_enumeration_type_die): Likewise.
18105 (gen_formal_parameter_die): Likewise.
18106 (gen_subprogram_die): Likewise.
18107 (gen_variable_die ): Likewise.
18108 (gen_const_die): Likewise.
18109 (gen_field_die): Likewise.
18110 (gen_pointer_type_die): Likewise.
18111 (gen_reference_type_die): Likewise.
18112 (gen_ptr_to_mbr_type_die): Likewise.
18113 (gen_inheritance_die): Likewise.
18114 (gen_subroutine_type_die): Likewise.
18115 (gen_typedef_die): Likewise.
18116 (force_type_die): Adjust call to modified_type_die.
18118 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
18120 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
18121 flow throughout the file. Fix broken link to Objective-C 2.0
18123 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
18126 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
18128 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
18130 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
18133 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
18134 (maybe_record_node): Record cxa_pure_virtual as the only possible
18135 target if there are not ohter candidates.
18136 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
18138 2016-01-19 Richard Biener <rguenther@suse.de>
18140 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
18141 (get_memory_order): Likewise.
18143 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
18145 * tree-vect-stmts.c (vectorizable_store): Check
18148 2016-01-19 David Malcolm <dmalcolm@redhat.com>
18151 * gcc.c (driver::decode_argv): Add call to
18152 init_opts_obstack before init_options_struct.
18153 * opts.c (init_opts_obstack): Remove idempotency.
18154 (init_options_struct): Replace call to init_opts_obstack
18155 with a gcc_assert to verify that it has already been called.
18156 * toplev.c (toplev::main): Add call to init_opts_obstack before
18157 calls to init_options_struct.
18158 (toplev::finalize): Move cleanup of opts_obstack next to
18159 cleanup of save_decoded_options, clearing the latter, and
18160 save_decoded_options_count.
18162 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18165 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
18166 attribute to unconditional. Remove %? from output template.
18168 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
18169 Jiong Wang <jiong.wang@arm.com>
18171 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
18172 generated from different expand order.
18174 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
18176 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
18177 Add support for CCMP costing.
18179 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
18181 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
18182 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
18183 (fccmpe<mode>): Likewise.
18184 (fcmp): Rename to fcmp and globalize pattern.
18186 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
18187 (aarch64_gen_ccmp_next): Add FP support.
18189 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
18191 * target.def (gen_ccmp_first): Update documentation.
18192 (gen_ccmp_next): Likewise.
18193 * doc/tm.texi (gen_ccmp_first): Update documentation.
18194 (gen_ccmp_next): Likewise.
18195 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
18196 expand_ccmp_expr_1. Improve comments.
18197 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
18198 (ccmp_ior<mode>): Remove pattern.
18199 (cmp<mode>): Remove expand.
18200 (cmp): Globalize pattern.
18201 (cstorecc4): Use cc_register.
18202 (mov<mode>cc): Remove ccmp_cc_register check.
18203 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
18204 Simplify after removal of CC_DNE/* modes.
18205 (aarch64_ccmp_mode_to_code): Remove.
18206 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
18207 In 'k' case use integer as condition.
18208 (aarch64_nzcv_codes): Remove inverted cases.
18209 (aarch64_code_to_ccmode): Remove.
18210 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
18211 comparison with CC register to be used in folowing CCMP/branch/CSEL.
18212 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
18213 pattern. Return the comparison with CC register. Invert conditions
18214 when bitcode is OR.
18215 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
18216 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
18218 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
18220 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
18221 instrumented_version.
18223 2016-01-19 Richard Biener <rguenther@suse.de>
18225 PR tree-optimization/69336
18226 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
18227 handled components with get_ref_base_and_extent.
18228 (equal_mem_array_ref_p): Adjust.
18230 2016-01-19 Jakub Jelinek <jakub@redhat.com>
18233 * shrink-wrap.c: Include valtrack.h.
18234 (move_insn_for_shrink_wrap): Add DEBUG argument. If
18235 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
18236 in between insn and where it will be moved to. Call
18237 dead_debug_insert_temp.
18238 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
18239 first and dead_debug_local_finish at the end.
18240 For uses and defs bitmap, handle all regs in between REGNO and
18241 END_REGNO, not just the first one.
18243 2016-01-19 Richard Biener <rguenther@suse.de>
18245 PR tree-optimization/69352
18246 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
18247 (equal_mem_array_ref_p): Constrain size and max size properly.
18248 Compare the reverse flag.
18250 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
18252 * ira.c (ira): Update regstat data if we deleted insns.
18254 2016-01-19 Jakub Jelinek <jakub@redhat.com>
18256 PR rtl-optimization/68955
18257 PR rtl-optimization/64557
18258 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
18259 here. Fix up formatting.
18260 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
18262 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
18265 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
18266 assume that the node has body.
18267 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
18270 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
18272 * lto-streamer-out.c (lto_output): Do not stream instrumentation
18275 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
18277 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
18278 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
18280 2016-01-19 Martin Jambor <mjambor@suse.cz>
18281 Martin Liska <mliska@suse.cz>
18282 Michael Matz <matz@suse.de>
18284 * Makefile.in (OBJS): Add new source files.
18285 (GTFILES): Add hsa.c.
18286 * common.opt (disable_hsa): New variable.
18287 (-Whsa): New warning.
18288 * config.in (ENABLE_HSA): New.
18289 * configure.ac: Treat hsa differently from other accelerators.
18290 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
18291 $enable_offloading.
18292 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
18293 * doc/install.texi (Configuration): Document --with-hsa-runtime,
18294 --with-hsa-runtime-include, --with-hsa-runtime-lib and
18295 --with-hsa-kmt-lib.
18296 * doc/invoke.texi (-Whsa): Document.
18297 (hsa-gen-debug-stores): Likewise.
18298 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
18299 to invoke offload compiler for hsa acclerator.
18300 * opts.c (common_handle_option): Determine whether HSA offloading
18301 should be performed.
18302 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
18303 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
18304 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
18305 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
18306 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
18307 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
18308 GF_OMP_FOR_KIND_GRID_LOOP.
18309 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
18310 (pp_gimple_stmt_1): Likewise.
18311 * gimple-walk.c (walk_gimple_stmt): Likewise.
18312 * gimple.c (gimple_build_omp_grid_body): New function.
18313 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
18314 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
18315 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
18316 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
18317 GF_OMP_TEAMS_GRID_PHONY.
18318 (gimple_statement_omp_single_layout): Updated comments.
18319 (gimple_build_omp_grid_body): New function.
18320 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
18321 (gimple_omp_for_grid_phony): New function.
18322 (gimple_omp_for_set_grid_phony): Likewise.
18323 (gimple_omp_parallel_grid_phony): Likewise.
18324 (gimple_omp_parallel_set_grid_phony): Likewise.
18325 (gimple_omp_teams_grid_phony): Likewise.
18326 (gimple_omp_teams_set_grid_phony): Likewise.
18327 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
18328 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
18329 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
18330 (BUILT_IN_GOMP_TARGET): Updated type.
18331 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
18332 (adjust_for_condition): New function.
18333 (get_omp_for_step_from_incr): Likewise.
18334 (extract_omp_for_data): Moved parts to adjust_for_condition and
18335 get_omp_for_step_from_incr.
18336 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
18337 (fixup_child_record_type): Bail out if receiver_decl is NULL.
18338 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
18339 (scan_omp_parallel): Do not create child functions for phony
18341 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
18342 (scan_omp_1_op): Checking assert we are not remapping to
18343 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
18344 (parallel_needs_hsa_kernel_p): New function.
18345 (expand_parallel_call): Register apprpriate parallel child
18346 functions as HSA kernels.
18347 (grid_launch_attributes_trees): New type.
18348 (grid_attr_trees): New variable.
18349 (grid_create_kernel_launch_attr_types): New function.
18350 (grid_insert_store_range_dim): Likewise.
18351 (grid_get_kernel_launch_attributes): Likewise.
18352 (get_target_argument_identifier_1): Likewise.
18353 (get_target_argument_identifier): Likewise.
18354 (get_target_argument_value): Likewise.
18355 (push_target_argument_according_to_value): Likewise.
18356 (get_target_arguments): Likewise.
18357 (expand_omp_target): Call get_target_arguments instead of looking
18358 up for teams and thread limit.
18359 (grid_expand_omp_for_loop): New function.
18360 (grid_arg_decl_map): New type.
18361 (grid_remap_kernel_arg_accesses): New function.
18362 (grid_expand_target_kernel_body): New function.
18363 (expand_omp): Call it.
18364 (lower_omp_for): Do not emit phony constructs.
18365 (lower_omp_taskreg): Do not emit phony constructs but create for them
18366 a temporary variable receiver_decl.
18367 (lower_omp_taskreg): Do not emit phony constructs.
18368 (lower_omp_teams): Likewise.
18369 (lower_omp_grid_body): New function.
18370 (lower_omp_1): Call it.
18371 (grid_reg_assignment_to_local_var_p): New function.
18372 (grid_seq_only_contains_local_assignments): Likewise.
18373 (grid_find_single_omp_among_assignments_1): Likewise.
18374 (grid_find_single_omp_among_assignments): Likewise.
18375 (grid_find_ungridifiable_statement): Likewise.
18376 (grid_target_follows_gridifiable_pattern): Likewise.
18377 (grid_remap_prebody_decls): Likewise.
18378 (grid_copy_leading_local_assignments): Likewise.
18379 (grid_process_kernel_body_copy): Likewise.
18380 (grid_attempt_target_gridification): Likewise.
18381 (grid_gridify_all_targets_stmt): Likewise.
18382 (grid_gridify_all_targets): Likewise.
18383 (execute_lower_omp): Call grid_gridify_all_targets.
18384 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
18385 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
18386 (tree_omp_clause): Added union field dimension.
18387 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
18388 * tree.c (omp_clause_num_ops): Added number of arguments of
18389 OMP_CLAUSE__GRIDDIM_.
18390 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
18391 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
18392 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
18393 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
18394 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
18395 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
18396 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
18397 * tree-pass.h (make_pass_gen_hsail): Declare.
18398 (make_pass_ipa_hsa): Likewise.
18399 * ipa-hsa.c: New file.
18400 * lto-section-in.c (lto_section_name): Add hsa section name.
18401 * lto-streamer.h (lto_section_type): Add hsa section.
18402 * timevar.def (TV_IPA_HSA): New.
18403 * hsa-brig-format.h: New file.
18404 * hsa-brig.c: New file.
18405 * hsa-dump.c: Likewise.
18406 * hsa-gen.c: Likewise.
18409 * toplev.c (compile_file): Call hsa_output_brig.
18410 * hsa-regalloc.c: New file.
18412 2016-01-18 Jeff Law <law@redhat.com>
18414 PR tree-optimization/69320
18415 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
18416 ranged object, do nothing if the RHS constant is not [0..1].
18417 (optimize_stmt): Comparing a boolean ranged object against a
18418 constant outside [0..1] results in a compile-time constant.
18420 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
18423 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
18425 * doc/invoke.texi (Invoking GCC): Add new section to menu.
18426 (Option Summary): Update to reflect new section and moved options.
18427 (C++ Dialect Options): Move -fstats to new section.
18428 (Debugging Options): Move all dump, statistics, and other GCC
18429 developer options to new section. Rewrite section introduction
18430 and re-order remaining options to put the more basic ones first.
18431 (Optimization Options): Move -fira-verbose and -flto-report* to
18433 (Developer Options): New section incorporating moved options.
18434 * doc/cppopts.texi (-dM): Update cross-reference.
18436 2016-01-18 Richard Henderson <rth@redhat.com>
18439 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
18440 operands to pseudo only if CSE is expected. Split long immediate
18441 operands only after reload, and for the stack pointer.
18442 (*add<GPI>3_pluslong): Remove.
18443 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
18444 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
18445 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
18446 (*add<GPI>3 peepholes): New.
18447 (*add<GPI>3 splitters): New.
18448 * config/aarch64/constraints.md (Upl): New.
18449 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
18451 2016-01-18 Richard Biener <rguenther@suse.de>
18453 PR tree-optimization/69297
18454 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
18456 (vect_bb_vectorization_profitable_p): Clear visited flag again.
18458 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
18460 PR middle-end/68542
18461 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
18462 of mixind vector and scalar types.
18463 (fold_relational_const): Add handling of vector
18464 comparison with boolean result.
18465 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
18466 comparison of vector operands with boolean result for EQ/NE only.
18467 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
18468 (verify_gimple_cond): Likewise.
18469 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
18472 2016-01-18 Joseph Myers <joseph@codesourcery.com>
18474 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
18477 2016-01-18 Richard Biener <rguenther@suse.de>
18479 PR middle-end/69308
18480 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
18482 2016-01-18 Tom de Vries <tom@codesourcery.com>
18484 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
18486 2016-01-18 Tom de Vries <tom@codesourcery.com>
18488 * omp-low.c (set_oacc_fn_attrib): Make extern.
18489 * omp-low.h (set_oacc_fn_attrib): Declare.
18490 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
18491 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
18492 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
18493 Add and handle function parameter oacc_kernels_p.
18494 (find_reduc_addr, get_omp_data_i_param): New function.
18495 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
18496 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
18497 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
18498 Calculate dominance info. Skip loops that are not in a kernels region
18499 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
18500 (pass_parallelize_loops::execute): Call parallelize_loops with
18501 oacc_kernels_p argument.
18502 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
18503 New member function.
18504 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
18505 * passes.def: Add argument to pass_parallelize_loops instantation.
18507 2016-01-18 Tom de Vries <tom@codesourcery.com>
18509 * tree-parloops.c (pass_parallelize_loops::execute): Allow
18510 pass_parallelize_loops to be run outside the loop pipeline.
18512 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
18514 * tree-scalar-evolution.c (follow_copies_to_constant): New.
18515 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
18517 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
18520 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
18521 using get_ref_base_and_extent.
18522 (equal_mem_array_ref_p): New.
18523 (hashable_expr_equal_p): Add call to previous.
18525 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
18528 * tree-sra.c (disqualified_constants, constant_decl_p): New.
18529 (sra_initialize): Allocate disqualified_constants.
18530 (sra_deinitialize): Free disqualified_constants.
18531 (disqualify_candidate): Update disqualified_constants when appropriate.
18532 (create_access): Scan for constant-pool entries as we go along.
18533 (scalarizable_type_p): Add check against type_contains_placeholder_p.
18534 (maybe_add_sra_candidate): Allow constant-pool entries.
18535 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
18536 (initialize_constant_pool_replacements): New.
18537 (sra_modify_assign): Avoid mangling assignments created by previous,
18538 and don't generate writes into constant pool.
18539 (sra_modify_function_body): Call initialize_constant_pool_replacements.
18541 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18543 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
18544 andnot instruction.
18545 (scalar_chain::convert_op): Likewise.
18546 * config/i386/i386.md (*andndi3_doubleword): New.
18548 2016-01-18 Richard Biener <rguenther@suse.de>
18550 PR tree-optimization/69170
18551 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
18552 building a vector from scalar results of a pattern stmt.
18554 2016-01-18 Jakub Jelinek <jakub@redhat.com>
18556 * haifa-sched.c (autopref_multipass_init): Work around
18557 -Wmaybe-uninitialized warning.
18559 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
18561 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
18562 against the constant 0.
18564 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18566 PR tree-optimization/68799
18567 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
18568 look up phi candidates in the statement-candidate map.
18569 (phi_add_costs): Likewise.
18570 (record_phi_increments): Likewise.
18571 (phi_incr_cost): Likewise.
18572 (ncd_with_phi): Likewise.
18573 (all_phi_incrs_profitable): Likewise.
18575 2016-01-17 Jakub Jelinek <jakub@redhat.com>
18577 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
18578 -Wmaybe-uninitialized warning.
18580 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
18582 * doc/invoke.texi (Invoking GCC): Add new section to menu.
18583 (Option Summary): Update to reflect new section and moved options.
18584 (C++ Dialect Options): Move -fvtable-verify and related options.
18585 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
18586 and profiling-related options.
18587 (Optimization Options): Move profile generation options and
18588 -fstack-protector and related options.
18589 (Instrumentation Options): New section incorporating moved options.
18590 (Code Generation Options): Move -finstrument-functions and
18591 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
18593 2016-01-16 Tom de Vries <tom@codesourcery.com>
18595 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
18597 2016-01-16 Tom de Vries <tom@codesourcery.com>
18599 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
18601 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
18603 * hash-table.h (hash_table::empty): Turn into an inline wrapper
18604 that checks whether the table is already empty. Rename the
18605 original implementation to...
18606 (hash_table::empty_slot): ...this new private function.
18608 2016-01-15 David Malcolm <dmalcolm@redhat.com>
18610 PR diagnostic/68899
18611 * diagnostic-show-locus.c (layout::print_source_line): Move x
18612 offset of line until after call to
18613 get_line_width_without_trailing_whitespace.
18615 2016-01-15 Jeff Law <law@redhat.com>
18617 PR tree-optimization/69270
18618 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
18619 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
18620 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
18621 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
18622 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18623 ssa_name_has_boolean_range and constant_boolean_node.
18625 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
18627 PR rtl-optimization/69030
18628 * lra-spills.c (remove_pseudos): Check nrefs and make the function
18630 (spill_pseudos): Delete debug insn for dead pseudo.
18631 (lra_spill): Initiate spill_hard_reg and slots memory separately.
18633 2016-01-15 Jiong Wang <jiong.wang@arm.com>
18635 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18637 (TYPES_UNOPUS): Likewise.
18638 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18639 builtin type, from UNOP to UNOPUS.
18640 (lbtruncuv4sf): Likewise.
18641 (lbtruncuv2df): Likewise.
18642 (lrounduv2sf): Likewise.
18643 (lrounduv4sf): Likewise.
18644 (lrounduv2df): Likewise.
18645 (lroundusf): Likewise.
18646 (lroundusf): Likewise.
18647 (lceiluv2sf): Likewise.
18648 (lceiluv4sf): Likewise.
18649 (lceiluv2df): Likewise.
18650 (lceilusf): Likewise.
18651 (lceiludf): Likewise.
18652 (lflooruv2sf): Likewise.
18653 (lflooruv4sf): Likewise.
18654 (lflooruv2df): Likewise.
18655 (lfloorusf): Likewise.
18656 (lfloorudf): Likewise.
18657 (lfrintnuv2sf): Likewise.
18658 (lfrintnuv4sf): Likewise.
18659 (lfrintnuv2df): Likewise.
18660 (lfrintnusf): Likewise.
18661 (lfrintnudf): Likewise.
18662 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18664 (vcvtq_u32_f32): Likewise.
18665 (vcvtq_u64_f64): Likewise.
18666 (vcvta_u32_f32): Likewise.
18667 (vcvtaq_u32_f32): Likewise.
18668 (vcvtaq_u64_f64): Likewise.
18669 (vcvtm_u32_f32): Likewise.
18670 (vcvtmq_u32_f32): Likewise.
18671 (vcvtmq_u64_f64): Likewise.
18672 (vcvtn_u32_f32): Likwise.
18673 (vcvtnq_u32_f32): Likewise.
18674 (vcvtnq_u64_f64): Likewise.
18675 (vcvtp_u32_f32): Likewise.
18676 (vcvtpq_u32_f32): Likewise.
18677 (vcvtpq_u64_f64): Likewise.
18678 (vcvtmd_u64_f64): Likewise.
18679 (vcvtms_u32_f32): Likewise.
18680 (vcvtad_u64_f64): Likewise.
18681 (vcvtas_u32_f32): Likewise.
18682 (vcvtnd_u64_f64): Likewise.
18683 (vcvtns_u32_f32): Likewise.
18684 (vcvtpd_u64_f64): Likewise.
18685 (vcvtps_u32_f32): Likewise.
18687 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18689 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18690 CSEL of zero_extended registers.
18692 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18694 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18695 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18697 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18699 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18700 false when argument string is not found in the attributes table
18703 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
18706 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18707 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18708 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18709 precision estimate.
18711 2016-01-15 Richard Biener <rguenther@suse.de>
18713 PR tree-optimization/66856
18714 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18715 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18716 (vect_create_new_slp_node): Increment stmt reference count.
18717 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18718 an SLP tree before swapping operands.
18719 (vect_build_slp_tree): Likewise.
18720 (destroy_bb_vec_info): Free stmt info after SLP instances.
18721 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18722 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18723 (STMT_VINFO_NUM_SLP_USES): New macro.
18725 2016-01-15 Richard Biener <rguenther@suse.de>
18728 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18729 (add_linkage_name): ... here.
18730 (gen_typedef_die): Use add_linkage_name_raw instead of
18731 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18734 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
18736 * gimplify.c (oacc_default_clause): Decode reference and pointer
18737 types for both kernels and parallel regions.
18739 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
18741 PR middle-end/69246
18742 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18744 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18746 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18747 (convert_scalars_to_vector): Likewise.
18749 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
18751 * doc/extend.texi (Type Traits): Fix grammar.
18753 2016-01-15 Martin Jambor <mjambor@suse.cz>
18755 * tree-inline.c (remap_decl): Use existing dclarations if
18756 remapping a type and prevent_decl_creation_for_types.
18757 (replace_locals_stmt): Do an initial remapping of non-VLA typed
18758 decls first. Do real remapping with
18759 prevent_decl_creation_for_types set.
18760 * tree-inline.h (copy_body_data): New field
18761 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18764 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18766 * config/s390/s390.opt (mmvcle): More verbose help text.
18768 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18770 * config/s390/s390.opt: Add period to -mzvector option text.
18772 2016-01-15 Richard Biener <rguenther@suse.de>
18774 PR tree-optimization/68961
18775 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18776 of invariants in stores again.
18778 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
18780 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18782 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18784 * config/i386/i386.c (ix86_expand_branch): Don't split
18785 DI mode xor instruction to SI mode.
18787 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18790 * ipa-icf.c (sem_function::merge): Virtual functions may become
18791 reachable even if they address is not taken and there are no
18794 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18796 * lto-streamer-out.c (subtract_estimated_size): New function.
18797 (get_symbol_initial_value): Use it.
18799 2016-01-15 Christian Bruel <christian.bruel@st.com>
18802 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18803 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18804 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18805 use add_builtin_function_ext_scope instead of add_builtin_function.
18806 (neon_set_p, neon_crypto_set_p): Remove.
18807 (arm_init_builtins): Always call arm_init_neon_builtins and
18808 arm_init_crypto_builtins.
18809 (arm_expand_builtin): Check that builtins are allowed for the arch.
18810 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18811 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18812 arm_init_neon_builtins call.
18814 2016-01-15 Richard Biener <rguenther@suse.de>
18816 PR tree-optimization/69117
18817 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18818 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18819 of the leader conservatively.
18820 (free_scc_vn): Restore original SSA name infos.
18822 2016-01-14 Jeff Law <law@redhat.com>
18824 PR tree-optimization/69270
18825 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18826 single bit of precision, verify it's also unsigned.
18827 (record_edge_info): Use constant_boolean_node rather than fold_convert
18828 to convert boolean_true/boolean_false to the right type.
18830 2016-01-14 Richard Henderson <rth@redhat.com>
18833 * loop-doloop.c (record_reg_sets): New.
18834 (doloop_optimize): Reject the transform if the sequence
18835 clobbers registers live at the end of the loop block.
18836 (doloop_optimize_loops): Enable df_live if needed.
18838 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18840 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18841 * config/rs6000/rs6000.c: Likewise.
18842 * config/rs6000/rs6000.h: Likewise.
18843 * config/rs6000/rs6000.md: Likewise.
18844 * doc/extend.texi: Likewsie.
18846 2016-01-14 Jeff Law <law@redhat.com>
18848 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18851 2016-01-14 Richard Henderson <rth@redhat.com>
18855 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18856 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18857 instead of builtin_decl_declared_p to test for declaration.
18859 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
18861 * doc/loop.texi (Loop Analysis and Representation): Document
18862 loop_depth function.
18864 2016-01-14 Tom de Vries <tom@codesourcery.com>
18866 PR tree-optimization/68773
18867 * omp-low.c (expand_omp_target): Don't set force_output.
18868 * varpool.c (varpool_node::get_create): Same.
18869 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18870 offload_funcs with force_output.
18872 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18875 * lra-eliminations.c (move_plus_up): Don't change anything if either
18876 the outer or inner subreg mode is not MODE_INT.
18877 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18878 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18880 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18882 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18883 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18884 reduc_uplus_@var{m}): Remove.
18885 * expr.c (expand_expr_real_2): Remove expansion path for
18886 reduc_[us](min|max|plus) optabs.
18887 * optabs-tree.c (scalar_reduc_to_vector): Remove.
18888 * optabs-tree.h (scalar_reduc_to_vector): Remove.
18889 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18890 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18891 * tree-vect-loop.c (vectorizable_reduction): Remove test for
18892 reduc_[us](min|max|plus) optabs.
18894 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18896 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18897 (reduc_plus_scal_v2sf): New.
18898 (reduc_smax_v2sf): Rename to...
18899 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18900 (reduc_smin_v2sf): Rename to...
18901 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18903 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
18905 * alias.c (compare_base_symbol_refs): New function.
18906 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18909 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18911 PR middle-end/68146
18912 PR tree-optimization/69155
18913 * tree-complex.c: Include cfganal.h.
18914 (phis_to_revisit): New variable.
18915 (extract_component): Add phiarg_p argument. Assert that returned
18916 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18917 (update_phi_components): Partly rewrite to use loop over real/imag
18918 components instead of code duplication. If extract_component returns
18919 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18920 create_tmp_reg into the PHI node instead, and mention the phi triplet
18921 in phis_to_revisit.
18922 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
18923 in phis_to_revisit at the end.
18925 2016-01-14 Richard Biener <rguenther@suse.de>
18927 PR tree-optimization/68060
18928 * tree-vect-loop.c (vect_is_simple_reduction): Check the
18929 outer loop reduction is only used in the inner loop before
18930 detecting a double reduction.
18932 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18935 * combine.c (expand_field_assignment): Punt if compute_mode is
18936 unsupported scalar mode.
18938 2016-01-14 Richard Biener <rguenther@suse.de>
18940 PR tree-optimization/66856
18941 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18942 SLP node only if it built successfully.
18943 (vect_analyze_slp_instance): Adjust.
18945 2016-01-14 Jeff Law <law@redhat.com>
18947 PR tree-optimization/69270
18948 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18949 (record_edge_info): Use it. Convert boolean_{true,false}_node
18950 to the type of op0.
18952 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
18955 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18956 use block_ultimate_origin
18957 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18959 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18961 * doc/invoke.texi (Submodel Options): Rename section to
18962 "Machine-Dependent Options" to better reflect its content.
18963 Rewrite introductory text to remove archaic CPU names.
18966 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18968 * doc/invoke.texi (Code Gen Options): Move section up in file,
18969 before target-specific options. Update menu and option summary
18970 to reflect the new section ordering.
18972 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18974 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18975 (C++ Dialect Options): Add cross-reference to -std option.
18976 * doc/standards.texi (C++ Language): Document C++14 support.
18978 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18980 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18981 for pack/unpack functions for __ibm128.
18982 (PACK_IF): Likewise.
18983 (UNPACK_IF): Likewise.
18985 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18986 support for __ibm128 pack/unpack functions.
18987 (rs6000_invalid_builtin): Likewise.
18988 (rs6000_init_builtins): Likewise.
18989 (rs6000_opt_masks): Likewise.
18991 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18992 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18994 (RS6000_BTM_COMMON): Likewise.
18996 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18997 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18998 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18999 128-bit floating point. Add support for the double values to be
19000 in Altivec registers for TF/IF packing and unpacking, but restrict
19001 TD packing sub-fields to be FPR registers. Don't allow overlapped
19002 register support for packing. Allow pack inputs to be memory
19003 locations. Don't build generator functions for unpack<mode>_dm
19004 and unpack<mode>_nodm.
19005 (unpack<mode>_dm): Likewise.
19006 (unpack<mode>_nodm): Likewise.
19007 (pack<mode>): Likewise.
19009 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
19010 built-in functions to pack/unpack explicit __ibm128 values.
19011 (__builtin_unpack_ibm128): Likewise.
19013 * doc/extend.texi (PowerPC Built-in Functions): Document
19014 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
19016 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
19019 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
19020 Add new arg loc and pass it down as context.
19021 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
19022 to the location to use for the warning.
19023 (check_function_arguments): New arg loc. All callers changed. Pass
19024 it to check_function_nonnull.
19025 * c-common.h (check_function_arguments): Adjust declaration.
19027 2016-01-13 Jakub Jelinek <jakub@redhat.com>
19029 PR tree-optimization/69156
19030 * gimple.c (validate_type): Removed.
19031 (gimple_builtin_call_types_compatible_p): Use
19032 useless_type_conversion_p instead of validate_type.
19033 * value-prof.c (gimple_stringop_fixed_value): Fold
19034 icall_size to correct type.
19036 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
19038 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
19041 2016-01-13 Richard Henderson <rth@redhat.com>
19044 * target.def (builtin_tm_load, builtin_tm_store): Remove.
19045 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
19046 (ix86_builtin_tm_store): Remove.
19047 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
19048 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
19049 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
19050 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
19051 * doc/tm.texi: Rebuild.
19053 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
19054 (BUILT_IN_TM_MEMCPY_RTWN): New.
19055 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
19056 fallback from vector to integer helpers.
19057 (build_tm_load): Handle vector types directly, instead of
19059 (build_tm_store): Likewise.
19060 (expand_assign_tm): Prepare for register types not handled by
19061 the above. Copy them to memory and use memcpy.
19062 * tree.c (tm_define_builtin): New.
19063 (find_tm_vector_type): New.
19064 (build_tm_vector_builtins): New.
19065 (build_common_builtin_nodes): Call it.
19067 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
19069 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
19070 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
19072 2016-01-13 Tom de Vries <tom@codesourcery.com>
19074 PR tree-optimization/69169
19075 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
19076 handled_struct_type param.
19077 (create_variable_info_for, intra_create_variable_infos): Call
19078 create_variable_info_for_1 with extra arg.
19080 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
19082 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
19083 and "armv8.1-a+crc" entries.
19085 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
19088 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
19089 Change first operand predicate from register_or_constm1_operand
19090 to register_operand.
19091 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
19092 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
19093 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
19094 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
19095 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
19096 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
19097 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
19098 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
19099 comparison with constm1_rtx from vec_prefetch_gen part.
19101 2016-01-13 Richard Biener <rguenther@suse.de>
19103 PR tree-optimization/69013
19104 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
19105 Exchange assert for a test.
19107 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19110 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
19112 2016-01-13 Richard Biener <rguenther@suse.de>
19114 PR tree-optimization/69242
19115 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
19116 assert with a check.
19118 2016-01-13 Richard Biener <rguenther@suse.de>
19120 PR tree-optimization/69186
19121 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19122 Properly guard vect_update_misalignment_for_peel call.
19124 2016-01-12 Jeff Law <law@redhat.com>
19126 PR tree-optimization/pr67755
19127 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
19128 "need_profile_correction".
19129 (thread_block_1): Initialize new field to false by default. If we
19130 have multiple thread paths through a common joiner to different
19131 final targets, then set new field to true.
19132 (compute_path_counts): Only do count adjustment when it's really
19135 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
19137 * doc/invoke.texi (Spec Files): Move section down in file, past
19138 all command-line option descriptions.
19140 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19142 PR middle-end/54809
19143 * doc/gty.texi: Remove documentation of mark_hook.
19144 * gengtype.c (struct write_types_data): Remove code to support
19145 mark_hook attribute.
19146 (walk_type): Likewise.
19147 (write_func_for_structure): Likewise.
19149 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
19151 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
19152 Directory Options, and -specs= to Overall Options.
19153 (Overall Options): Adjust similarly. Reorder to group related
19154 options together. Make -specs= cross-reference the spec file details.
19155 (Directory Options): Adjust similarly.
19157 2016-01-12 Jeff Law <law@redhat.com>
19159 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
19161 2016-01-12 Olivier Hainque <hainque@adacore.com>
19163 * gcc.c (spec_undefvar_allowed): New global.
19164 (process_command): Set to true when running for --version or --help,
19166 (getenv_spec_function): When the variable is not defined, use the
19167 variable name as the variable value if we're allowed not to issue
19170 2016-01-12 Bin Cheng <bin.cheng@arm.com>
19172 PR tree-optimization/68911
19173 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
19174 information computed for expression "init + nit * step".
19176 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
19178 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
19179 about name of GCC executable. Remove deleted node from menu.
19180 (Directory Options) <-B>: Remove cross-reference to deleted node.
19181 (Target Options): Delete section.
19183 2016-01-12 Christian Bruel <christian.bruel@st.com>
19186 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
19187 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
19189 2016-01-12 Jakub Jelinek <jakub@redhat.com>
19192 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
19193 aligned_mem is properly set for AVX512-VL floating point masked
19197 * ifcvt.c (cond_exec_process_if_block): When removing the last
19198 insn from then_bb, remove also any possible barriers that follow it.
19200 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
19204 * config/i386/iamcu.h (SIZE_TYPE): New macro.
19205 (PTRDIFF_TYPE): Likewise.
19206 (WCHAR_TYPE): Likewise.
19207 (WCHAR_TYPE_SIZE): Likewise.
19208 (STDINT_LONG32): Likewise.
19210 2016-01-12 Richard Biener <rguenther@suse.de>
19212 PR tree-optimization/69053
19213 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
19214 convert initial value for cond reductions.
19216 2016-01-12 Richard Biener <rguenther@suse.de>
19218 PR tree-optimization/69007
19219 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
19220 widen_sum after dot_prod and sad.
19222 2016-01-12 Richard Biener <rguenther@suse.de>
19224 PR tree-optimization/69168
19225 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
19226 pattern stmt SLP type.
19227 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
19228 end up unused so cope with that case.
19230 2016-01-12 Richard Biener <rguenther@suse.de>
19232 PR tree-optimization/69157
19233 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
19234 stmts def type only during analyze phase.
19235 (vectorizable_call): Likewise.
19236 (vectorizable_simd_clone_call): Likewise.
19237 (vectorizable_conversion): Likewise.
19238 (vectorizable_assignment): Likewise.
19239 (vectorizable_shift): Likewise.
19240 (vectorizable_operation): Likewise.
19241 (vectorizable_store): Likewise.
19242 (vectorizable_load): Likewise.
19244 2016-01-12 Richard Biener <rguenther@suse.de>
19246 PR tree-optimization/69174
19247 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
19249 (vectorizable_load): Properly compute the number of loads needed
19250 for permuted strided SLP loads and do not spuriously assign
19251 to SLP_TREE_VEC_STMTS.
19253 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
19255 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
19256 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
19257 (MD_EXEC_PREFIX): Remove.
19258 (MD_STARTFILE_PREFIX) Removee.
19259 (FILE_NAME_ABSOLUTE_P): Remove.
19260 (CPP_SPEC): Do not read macros from sys/version.h.
19261 (LINK_COMMAND_SPEC): Remove.
19262 (LOCAL_INCLUDE_DIR): Remove.
19263 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
19264 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
19265 (POST_LINK_SPEC): Define to invoke stubify after linker
19266 (LIBSTDCXX): Remove define
19267 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
19268 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
19269 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
19270 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
19271 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
19272 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
19273 (i386_djgpp_asm_named_section): Add propotype of new procedure
19275 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
19276 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
19277 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
19278 in config/i386/djgpp.h).
19279 (STANDARD_STARTFILE_PREFIX_2): Define identical to
19280 STANDARD_STARTFILE_PREFIX_1.
19281 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
19282 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
19283 installation errors.
19284 (MAX_OFILE_ALIGNMENT): Define to 128.
19285 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
19287 * config/i386/djgpp.c: New file. Add implementation of
19288 i386_djgpp_asm_named_section.
19290 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
19292 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
19293 Add rule for building djgpp.o.
19295 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19297 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
19298 (rtx_is_swappable_p): Reductions are swappable.
19299 (insn_is_swappable_p): V2DF reductions are swappable.
19301 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
19303 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
19304 reloads for other unsupported memory operands.
19306 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
19307 Jim Wilson <jim.wilson@linaro.org>
19310 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
19311 copy_to_mode_reg instead of force_reg.
19313 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
19316 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
19317 TARGET_80387 is true.
19319 2016-01-11 Jakub Jelinek <jakub@redhat.com>
19322 * lra-eliminations.c (move_plus_up): Only move plus up
19323 if subreg of the constant can be simplified into constant
19324 and use the simplified subreg of the constant instead of
19325 the original constant.
19327 * fold-const.c (fold_convertible_p): Don't return true
19328 for conversion of VECTOR_TYPE to same sized integral type.
19329 (fold_convert_loc): Fix up formatting. Fold conversion of
19330 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
19331 instead of NOP_EXPR.
19333 PR tree-optimization/69214
19334 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
19335 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19338 PR tree-optimization/69207
19339 * tree-vect-slp.c (vect_get_constant_vectors): For
19340 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
19341 fold_convertible_p to vector_type's element type, and always
19342 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
19344 2016-01-11 Richard Biener <rguenther@suse.de>
19346 PR tree-optimization/69173
19347 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
19348 fixup the cycle if all stmts are in a pattern.
19350 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
19352 PR middle-end/68999
19353 * alias.c (base_alias_check): Move check for addresses with
19354 alignment ANDs before the call for compare_base_decls.
19355 (memrefs_conflict_p): Return -1 for different decls
19356 that went through alignment adjustments.
19358 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19360 PR rtl-optimization/68796
19361 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
19362 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
19363 and QImode comparisons against zero with CC_NZmode.
19364 * config/aarch64/iterators.md (short_mask): New mode_attr.
19366 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
19368 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
19369 (<avx512>_store<mode>_mask): Likewise.
19371 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
19372 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19374 PR rtl-optimization/68841
19375 * ifcvt.c (struct noce_if_info): Add orig_x field.
19376 (bbs_ok_for_cmove_arith): Add to_rename parameter.
19377 Don't record conflicts on to_rename if it's present.
19378 Allow memory destinations in sets.
19379 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
19380 blocks, passing orig_x to the checks.
19381 (noce_process_if_block): Set if_info->orig_x appropriately.
19383 2016-01-11 Tom de Vries <tom@codesourcery.com>
19385 PR tree-optimization/69069
19386 * tree-parloops.c (create_parallel_loop): Add missing phi args.
19388 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19390 PR rtl-optimization/68920
19391 * config/i386/i386.c (ix86_option_override_internal): Restrict number
19392 of conditional moves for RTL if-conversion to 1 for
19393 TARGET_ONE_IF_CONV_INSN.
19394 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
19395 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
19396 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
19397 parameter to restirct number of conditional moves for
19399 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
19400 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
19403 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
19406 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
19407 onepart vars. Fix typo in comment. Fix reversed condition in
19409 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
19412 * var-tracking.c (dump_onepart_variable_differences): New.
19413 (dataflow_set_different): If a detailed dump is requested,
19414 delay early returns and dump differences between onepart
19415 variables present before and after, and added variables.
19417 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
19420 * expr.c (expand_expr_real_1): For boolean vector constants
19421 with a scalar mode use const_scalar_mask_from_tree.
19422 (const_scalar_mask_from_tree): New.
19423 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
19424 assigned to a mask type to handle constants.
19426 2016-01-11 Martin Jambor <mjambor@suse.cz>
19429 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
19430 useless parameters if we cannot change function signature.
19432 2016-01-11 Martin Jambor <mjambor@suse.cz>
19435 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
19438 2016-01-11 Tom de Vries <tom@codesourcery.com>
19440 PR tree-optimization/69109
19441 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
19444 2016-01-11 Tom de Vries <tom@codesourcery.com>
19446 PR tree-optimization/69108
19447 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
19448 res is not used in a phi.
19450 2016-01-11 Yury Gribov <y.gribov@samsung.com>
19453 * common.opt (frandom-seed): Fix parameter name.
19454 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
19456 2016-01-11 Tom de Vries <tom@codesourcery.com>
19458 PR tree-optimization/69058
19459 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
19462 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
19464 * config/arc/arc.opt (mdiv-rem): Add period to the end.
19465 (mcode-density): Likewise.
19467 2016-01-10 Tom de Vries <tom@codesourcery.com>
19469 PR tree-optimization/69062
19470 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
19471 (parallelize_loops): Don't paralelize loop that has phi with address
19474 2016-01-10 Tom de Vries <tom@codesourcery.com>
19476 PR tree-optimization/69039
19477 * tree-parloops.c (try_create_reduction_list): Only allow single exit
19480 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
19482 PR middle-end/68743
19483 * match.pd: Require target has function_c99_misc before doing
19484 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
19486 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
19488 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
19490 * configure: Regenerate.
19492 2016-01-09 Jakub Jelinek <jakub@redhat.com>
19494 PR middle-end/50865
19495 PR tree-optimization/69097
19496 * fold-const.h (expr_not_equal_to): New prototype.
19497 * fold-const.c: Include stringpool.h and tree-ssanames.h.
19498 (expr_not_equal_to): New function.
19499 * match.pd (X % -Y is the same as X % Y): Don't optimize
19500 unless X is known not to be equal to minimum or Y is known
19501 not to be equal to -1.
19502 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
19503 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
19504 (simplify_stmt_using_ranges): Adjust caller.
19505 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
19506 substitute_and_fold.
19508 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
19510 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
19513 2016-01-08 Jakub Jelinek <jakub@redhat.com>
19515 PR tree-optimization/69167
19516 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
19517 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
19519 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
19521 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
19522 Richard Biener <rguenther@suse.de>
19524 PR tree-optimization/68707
19525 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
19526 instances that can be handled via vect_load_lanes.
19528 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
19530 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
19531 if we can't determine address equivalence.
19532 * alias.c (compare_base_decl): Update for changed return value of
19533 symtab_node::equal_address_to.
19535 2016-01-08 Jason Merrill <jason@redhat.com>
19539 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
19540 * expr.c (store_field): Not here.
19541 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
19542 call with TREE_ADDRESSABLE type.
19543 * tree-cfg.c (verify_gimple_call): Adjust.
19545 2016-01-08 Olivier Hainque <hainque@adacore.com>
19547 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
19550 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
19552 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
19553 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
19554 (reduc_smin_v2sf): Rename to...
19555 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
19556 (reduc_splus_v2sf): Rename to...
19557 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
19559 2016-01-08 Jakub Jelinek <jakub@redhat.com>
19561 PR tree-optimization/69162
19562 * gimplify.c (gimplify_va_arg_expr): Encode original type of
19563 valist argument in another argument.
19564 (gimplify_modify_expr): Adjust for the above change. Cleanup.
19565 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
19566 to determine the va_list type, build a MEM_REF instead of
19567 build_fold_indirect_ref.
19569 PR tree-optimization/69172
19570 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
19573 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
19575 PR tree-optimization/67781
19576 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
19577 and cmpnop in two steps: first the ones not accessed in original
19578 gimple expression in a endian independent way and then the ones not
19579 accessed in the final result in an endian-specific way.
19581 2016-01-08 Jakub Jelinek <jakub@redhat.com>
19583 PR tree-optimization/69083
19584 * tree-vect-slp.c (vect_get_constant_vectors): For
19585 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
19586 element type. If op is fold_convertible_p to vector_type's element
19587 type, use NOP_EXPR instead of VCE.
19589 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
19591 PR rtl-optimization/67778
19592 PR rtl-optimization/68634
19593 PR rtl-optimization/68909
19594 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
19595 block from the stack until done with it. Remove a superfluous
19596 bitmap set. Remove a superfluous bitmap test.
19598 2016-01-07 Martin Sebor <msebor@redhat.com>
19601 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
19602 constraint on the type of arguments.
19604 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
19606 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
19607 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
19608 unaligned_access on the gcc_options set.
19609 * config/arm/arm.c (arm_option_override_internal): Use
19610 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
19612 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
19615 * config/i386/i386.c (ix86_frame_pointer_required): Enable
19616 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
19618 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
19621 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19624 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19625 depending on frame_pointer_needed before remaining integer and SSE
19626 registers are saved.
19628 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
19631 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19633 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
19636 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19637 Use the "xBm" constraint.
19638 (float<sseintvecmodelower><mode>2<mask_name><round_name):
19640 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19641 (sse_cvtsi2ssq<round_name>): Likewise.
19642 (sse_cvtss2si<round_name>): Likewise.
19643 (sse_cvtss2siq<round_name>): Likewise.
19644 (sse2_cvtsi2sdq<round_name>): Likewise.
19645 (sse2_cvtsd2si<round_name>): Likewise.
19646 (sse2_cvtsd2siq<round_name>): Likewise.
19647 * config/i386/subst.md (round_nimm_scalar_predicate): New
19650 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
19652 PR middle-end/67639
19653 * varasm.c (make_decl_rtl): Mark invalid register vars as
19656 PR rtl-optimization/66206
19657 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19658 All callers changed.
19660 2016-01-07 Jakub Jelinek <jakub@redhat.com>
19662 PR tree-optimization/69141
19663 * tree-ssa-pre.c: Include langhooks.h.
19664 (eliminate_dom_walker::before_dom_children): Use
19665 lang_hooks.decl_printable_name instead of
19666 cgraph_node::get ()->name ().
19668 PR middle-end/68960
19669 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19670 it and DECL_ALIGN too.
19672 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
19674 * config/mips/mips-ftypes.def: Sort to lexicographical order.
19676 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19679 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19680 depending on frame_pointer_needed before remaining integer and SSE
19681 registers are saved.
19683 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19685 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19686 mode iterator with VSX_M2.
19687 (*p9_vecstore_<mode>): Likewise.
19688 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19689 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19690 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19691 (define_split for VSX_LE128 stores): Likewise.
19692 (define_peephole2 for TImode LE swaps): Likewise.
19693 (define_split for VSX_LE128 post-reload stores): Likewise.
19695 2016-01-06 Marek Polacek <polacek@redhat.com>
19698 * convert.c (convert_to_integer_1): Adjust call to
19699 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
19700 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
19701 EXPR instead of ARG.
19702 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19704 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19707 * doc/extend.texi (RL78 Variable Attributes): New section.
19709 2016-01-05 Marek Polacek <polacek@redhat.com>
19712 * builtins.c (get_memmodel): Use expansion point location rather than
19713 the input location. Call warning_at rather than warning.
19714 (expand_builtin_atomic_compare_exchange): Likewise.
19715 (expand_builtin_atomic_load): Likewise.
19716 (expand_builtin_atomic_store): Likewise.
19717 (expand_builtin_atomic_clear): Likewise.
19719 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19722 * config/i386/i386.c (ix86_expand_vector_logical_operator):
19723 Replace nonimmediate_operand with vector_operand.
19724 * config/i386/predicates.md (vector_operand): New predicate.
19725 (general_vector_operand): Replace nonimmediate_operand with
19727 * config/i386/sse.md: Replace nonimmediate_operand with
19728 vector_operand and m constraint with Bm constraint on SSE
19729 patterns with 16-byte memory operand.
19730 * config/i386/subst.md (round_nimm_predicate): Replace
19731 nonimmediate_operand with vector_operand.
19732 (round_saeonly_nimm_predicate): Likewise.
19733 (round_saeonly_nimm_scalar_predicate): New.
19735 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19738 * config/i386/constraints.md (Bm): New constraint.
19739 * config/i386/predicates.md (vector_memory_operand): New
19741 * config/i386/sse.md: Replace xm with xBm in plusminus and
19742 any_logic patterns.
19744 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19747 * doc/extend.texi (V850 Function Attributes): New section.
19748 (V850 Variable Attributes): New section.
19750 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19753 * doc/extend.texi (MicroBlaze Function Attributes): Document
19754 interrupt_handler and fast_interrupt attributes.
19756 2016-01-05 Sergei Trofimovich <siarheit@google.com>
19759 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19760 for local symbolic operands.
19761 * config/ia64/predicates.md (local_symbolic_operand64): New
19764 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19766 PR rtl-optimization/68651
19767 * combine.c (combine_simplify_rtx): Canonicalize x + x into
19770 2016-01-05 Nathan Sidwell <nathan@acm.org>
19772 * alias.c (compare_base_decls): Use symtab_node::get.
19774 2016-01-05 Nick Clifton <nickc@redhat.com>
19777 * ira-costs.c (copy_cost): Initialise the t_icode field of the
19778 secondary_reload_info structure.
19781 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19782 decls if weak support is available.
19784 2016-01-04 Martin Sebor <msebor@redhat.com>
19786 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19788 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19790 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19791 OPTION_MASK_P9_DFORM.
19793 * config/rs6000/constraints.md (wo constraint): New constraint for
19796 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19798 (rs6000_init_hard_regno_mode_ok): Likewise.
19800 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19803 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19804 expanders not to have constraints. Add support for ISA 3.0 xxperm
19805 instruction. Add support for fusing xxlor with xxperm.
19806 (altivec_vperm_<mode>_internal): Likewise.
19807 (altivec_vperm_v8hiv16qi): Likewise.
19808 (altivec_vperm_<mode>v16q): Likewise.
19809 (altivec_vperm_<mode>_uns): Likewise.
19810 (vperm_v8hiv4si): Likewise.
19811 (vperm_v16qiv8hi): Likewise.
19813 * doc/md.texi (RS/6000 constraints): Document wo constraint.
19815 2016-01-04 Jakub Jelinek <jakub@redhat.com>
19817 Update copyright years.
19819 * gcc.c (process_command): Update copyright notice dates.
19820 * gcov-dump.c (print_version): Ditto.
19821 * gcov.c (print_version): Ditto.
19822 * gcov-tool.c (print_version): Ditto.
19823 * gengtype.c (create_file): Ditto.
19824 * doc/cpp.texi: Bump @copying's copyright year.
19825 * doc/cppinternals.texi: Ditto.
19826 * doc/gcc.texi: Ditto.
19827 * doc/gccint.texi: Ditto.
19828 * doc/gcov.texi: Ditto.
19829 * doc/install.texi: Ditto.
19830 * doc/invoke.texi: Ditto.
19832 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19834 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19835 modes larger than TImode as TImode if NEON is not enabled.
19837 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19840 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19841 mode for %f0-%f31 only if TARGET_FPU.
19843 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19846 * config/sparc/sparc.c (scan_record_type): Take into account subfields
19847 to compute the PACKED_P predicate.
19848 (function_arg_record_value): Minor tweaks.
19850 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19852 * doc/install.texi (--with-multilib-list): Describe the meaning of the
19853 option for arm*-*-* targets.
19855 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
19857 * doc/extend.texi (Common Function Attributes): Move docs for
19858 MSP430-specific attributes to....
19859 (MSP430 Function Attributes): ...here. Delete the redundant
19860 entries and copy-edit the remaining text.
19861 (MSP430 Variable Attributes): Use uniform format for index
19862 entries and add a cross-reference to the corresponding function
19865 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
19867 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19869 (x86 Options): Likewise.
19871 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19875 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19876 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19877 to corresponding attribute.
19879 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19881 * doc/extend.texi (Common Function Attributes) <noplt>: Move
19882 to correct alphabetization of table. Copy-edit and correct
19884 <stack_protect>: Likewise.
19885 <target_clones>: Likewise.
19887 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19888 Correct punctuation.
19889 (Code Gen Options) <-fno-plt>: Copy-edit.
19891 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19894 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19895 SI values. Explicitly convert SI to DI and vice-versa.
19897 2016-01-01 Jakub Jelinek <jakub@redhat.com>
19899 PR tree-optimization/69070
19900 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19901 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19904 * ubsan.c (ubsan_instrument_float_cast): Call
19905 initialize_sanitizer_builtins.
19908 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19910 Copyright (C) 2016 Free Software Foundation, Inc.
19912 Copying and distribution of this file, with or without modification,
19913 are permitted in any medium without royalty provided the copyright
19914 notice and this notice are preserved.